Skip to content

TUI Bugs and Rendering Issues #5

@thiras

Description

@thiras

Description

This issue tracks various TUI bugs and rendering issues that need to be addressed in the clobster terminal interface.

Known Issues

1. Settings View Incomplete

  • The Settings view currently renders a placeholder block instead of actual settings UI
  • Location: src/ui/mod.rs (lines 40-45)

2. Notification/Error Overlap

  • Both notification and error messages render to the same notification_area
  • If both are present simultaneously, they may overlap or one may be hidden
  • Location: src/ui/mod.rs (lines 51-57)

3. Layout Responsiveness

  • Need to verify the TUI handles terminal resize events properly
  • Small terminal windows may cause layout issues with widgets

4. Widget State Synchronization

  • Ensure widget states (scroll position, selection) are properly preserved across renders
  • Tab switching should maintain view state

Affected Components

  • src/ui/mod.rs - Main UI renderer
  • src/ui/layout.rs - Layout calculations
  • src/ui/widgets/ - Individual widget implementations:
    • market_list.rs
    • order_list.rs
    • orderbook.rs
    • position_list.rs
    • status_bar.rs
    • tab_bar.rs
    • help.rs
    • notifications.rs

Acceptance Criteria

  • Settings view renders actual configuration options
  • Notifications and errors display without overlap
  • Terminal resize is handled gracefully
  • Widget state is preserved when switching views
  • All views render correctly at minimum terminal size (80x24)

Additional Context

Built with ratatui - refer to ratatui documentation for rendering patterns.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingui

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions