Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jm/refactor tui #33

Merged
merged 4 commits into from
Feb 19, 2024
Merged

jm/refactor tui #33

merged 4 commits into from
Feb 19, 2024

Conversation

joshka
Copy link
Member

@joshka joshka commented Feb 19, 2024

  • refactor: remove unnecessary Tui struct
  • refactor: simplify tui::init/restore
  • refactor: remove tui from handle_action
  • refactor: simplify action handling

The split into backend vs terminal adds no value
Resize happens automatically when calling terminal::draw
Tui is passed to handle action purely for the single scenario
Apply CQS - send the next action instead of returning it
@joshka joshka merged commit 98e590f into main Feb 19, 2024
6 checks passed
@joshka joshka deleted the jm/refactor-tui branch February 19, 2024 06:52
@kdheepak kdheepak mentioned this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants