You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
| title | status | type | priority | created_at | updated_at | parent | blocked_by | |
|---|---|---|---|---|---|---|---|---|
| TUI: quit confirmation dialog | todo | task | normal | 2026-03-30T04:47:46Z | 2026-03-30T04:49:03Z | claudbg-i6l2 |
|
Implement a modal quit confirmation dialog.
Trigger
Press q or Q from any screen (except when another modal is open).
Appearance
┌──────────────────────┐
│ Quit claudbg? │
│ │
│ q = yes Esc = no │
└──────────────────────┘
Centered overlay on top of the current screen (using ratatui::widgets::Clear to clear the background area).
State
AppState.show_quit_dialog: bool
q/Q→show_quit_dialog = true- While dialog is shown:
q→should_quit = true(exit loop),Escape→show_quit_dialog = false - Dialog intercepts all other key input while open.
Implementation notes
- Use
ratatui::layout::Rectcentered calculation to position the dialog. - Render with
Block::bordered().title("Quit?")and aParagraphinside. - Use
Clearwidget behind the dialog block to prevent bleed-through.
Blocked by
- event loop (claudbg-ut9q)