Skip to content

Add responsive style tabs - #4

Merged
merefield merged 2 commits into
mainfrom
agent/add-responsive-style-tabs
Aug 11, 2026
Merged

merefield merged 2 commits into
mainfrom
agent/add-responsive-style-tabs

Conversation

@merefield

Copy link
Copy Markdown
Owner

What changed

  • replaces sequential style cycling with a responsive, clickable tab rail
  • supports mouse hover/click, Tab, and Shift+Tab navigation with activation pulses
  • keeps a pulsing red indicator on the Stopwatch tab while recording
  • assigns S to Stopwatch Start and retains P for Stop
  • simplifies and realigns header/footer metadata for a less crowded interface
  • bumps the source version to v0.1.2

Why

Direct tab selection makes the available presentations visible and easier to reach than cycling through them one at a time. Responsive label tiers preserve all five choices as the terminal narrows, while keyboard controls remain available without mouse support.

Validation

  • go vet ./...
  • go test -race -cover ./...
  • local stripped build and --version smoke check
  • stripped cross-builds for macOS, Linux, and Windows on amd64 and arm64
  • binary format and SHA-256 verification for all six distribution artifacts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TUI navigation model by replacing sequential meter-style cycling with a responsive, clickable tab rail (including keyboard navigation via Tab/Shift+Tab), while also updating Stopwatch start controls and bumping the source version to v0.1.2.

Changes:

  • Introduces a responsive meter-style tab rail with mouse hover/click selection and Tab/Shift+Tab navigation, including activation pulse feedback and a recording indicator on the Stopwatch tab.
  • Reworks header/footer metadata alignment (signal/account in header; theme right-aligned in footer; removes style button from footer) and updates related UI geometry/hit-testing.
  • Updates Stopwatch start hotkey/labels (s / “Start”) and bumps version references/tests to v0.1.2.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates documented controls and version; describes new tab-based style selection.
main_test.go Updates --version/-v expected output to v0.1.2.
internal/version/version.go Bumps maintained fallback version to 0.1.2.
internal/version/version_test.go Updates version fallback expectation to 0.1.2.
internal/ui/view.go Moves signal/account metadata into header and adds style tab rail above meters; footer theme right-aligned.
internal/ui/view_test.go Adds coverage for the streamlined header/footer metadata alignment.
internal/ui/theme.go Adds previous() to support Shift+Tab reverse navigation.
internal/ui/tabs.go Implements responsive style tab layout/rendering and tab hit-testing.
internal/ui/tabs_test.go Adds tests for responsive labels, mouse hover/click + pulse, recording dot, and s behavior outside Stopwatch.
internal/ui/stopwatch.go Renames Stopwatch control label/hints from Go/G to Start/S.
internal/ui/stopwatch_test.go Updates tests to use Start/S labeling and hotkey.
internal/ui/model.go Adds style hover/flash state, Tab/Shift+Tab navigation, and style tab click handling; removes footer style button; adjusts layout.
internal/ui/model_test.go Updates tests for Tab/Shift+Tab style navigation and revised footer behavior.
Suppressed comments (1)

README.md:183

  • The Stopwatch meter-style description still refers to pressing/clicking “Go”, but the UI and hotkey were renamed to Start/S. This makes the README inconsistent with the updated controls.
Select a tab with the mouse, `Tab`, or `Shift+Tab`:

1. **Bars** — chunky quota bars, with one full-width rate-limit window per row.
2. **Stopwatch** — establishes a zero baseline across locally active Codex
   sessions when you press Go. A large readout follows newly appended token
   telemetry once per second and shows total observed tokens, elapsed time, and
   average rate; clickable Go and Stop controls sit beside it. The full-width

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/ui/model.go Resolved
@merefield

Copy link
Copy Markdown
Owner Author

Also addressed Copilot’s suppressed README consistency note in commit f467f88: the remaining “Go” references now use “Start,” matching the S hotkey and visible button label.

@merefield
merefield marked this pull request as ready for review August 11, 2026 15:07
@merefield
merefield merged commit 513de26 into main Aug 11, 2026
6 checks passed
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