Skip to content

refactor(tui): drop ratatui-passthrough wrappers in compositor/window.rs #321

@Kohei-Wada

Description

@Kohei-Wada

Where

  • `ttymap-tui/src/compositor/window.rs:263-283`

What

`paragraph` / `table` / `list` are 1-line clamp + `render_*_widget` passthroughs to ratatui. The semantic wrappers (`scrollbar`, `panel`, `style`) earn their keep, but these 3 don't. Used only by `lua/bridge/card_component.rs`.

Proposal

Remove the passthrough methods. Expose `RenderWindow::frame(&mut self) -> &mut Frame` and have card_component call ratatui directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumLong-term maintenancerefactorCode refactoring without behavior change

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions