feat(cli): Rich-styled UI with animations, responsive layout, and help system - #12
Merged
Conversation
…p system - Rewrite PortableCLIManager with Rich rendering (panels, tables, colors) - Add splash screen with animated spinner and progress bar - Add animated spinners for loading states and login screen - Make all views responsive for narrow terminals (Termux, SSH) - Dashboard: stacked panels on narrow width, side-by-side on wide - Drops: hide columns progressively as width decreases - Settings: priority/exclude lists side-by-side when width allows - Add /help command with categorized help pages (navigation, control, system) - Add /detach command to detach tmux sessions - Fix ANSI escape rendering (use prompt_toolkit.formatted_text.ANSI) - Fix Rich markup being eaten by angle brackets in settings help text - Replace Unicode box-drawing splash logo with ASCII art for WSL compatibility - Add DEPLOY.md with full build/run instructions for every platform - Update README.md with command tables and deploy.md link
Add _screen_text, _channels_lines, _drops_lines wrappers that strip ANSI codes and return the old list[str] format expected by tests.
- Use capitalized column names (Drop, Progress, Viewers, ACL) in assertions - Bump narrow terminal threshold from 52 to 60 cols to hide Linked column - Allowed column hidden on narrow terminals (< 92 cols) as designed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PortableCLIManagerwith Rich rendering (panels, tables, colors, progress bars) bridged to prompt_toolkit viaANSIclass/helpopens a full-page view with three categories (navigation, control, system), each showing commands with descriptions in a Rich table/detachcommand -- Detaches from tmux sessions while keeping the miner runningcolor_system="truecolor"for auto-detection, replaced Unicode box-drawing logo with ASCII art, fixed Rich markup angle bracket issuesprompt_toolkit.formatted_text.ANSIto properly convert Rich output to prompt_toolkit formatted textDEPLOY.mdwith complete build/run instructions for every platform (Windows, Linux, macOS, Termux). UpdatedREADME.mdwith command tables and deploy linkChanges
tui/cli.py/detachtui/state.pysplash_shownandspinner_tickfieldsDEPLOY.mdREADME.mdTest Plan
python -m pytest tests/test_tui_state.py-- all pass/help,/help navigation,/help control,/help systemall render/detachcommand exists and is in COMMANDS tupleTextobjects (not raw markup)