Skip to content

Move Consumption Pace ahead of Pie - #14

Merged
merefield merged 2 commits into
mainfrom
agent/consumption-pace-second
Aug 13, 2026
Merged

merefield merged 2 commits into
mainfrom
agent/consumption-pace-second

Conversation

@merefield

@merefield merefield commented Aug 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • move Consumption Pace to the second position in the Quota view rail
  • make v cycle Bars → Consumption Pace → Pie → Fuel Tank
  • update click, hover, pulse, and footer-button tests for the new order
  • replace the remaining internal presentation style… vocabulary with view… names, matching the user-facing interface
  • keep the README and maintained forum introduction in sync

Why

Consumption Pace provides a more immediately useful comparison between quota use and elapsed window time than the decorative Pie presentation, so it should be easier to reach and more prominent in the view list.

Saved Quota view restoration is unchanged: users still return to whichever view they previously selected.

The follow-up terminology cleanup is mechanical and preserves serialized preference values. It also fixes the tab-label tiers to follow the reordered view IDs, so the second tab now both reads and selects Consumption Pace at every responsive width.

Verification

  • go test ./...
  • go test -race -cover ./...
  • go vet ./...
  • git diff --check

Race coverage: root 67.9%, internal/codex 84.7%, internal/ui 91.2%, internal/version 81.0%.

@merefield
merefield marked this pull request as ready for review August 13, 2026 20:59

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 reorders the Quota sub-view rail to make Consumption Pace more prominent (ahead of Pie) and aligns internal terminology by renaming the remaining style… presentation identifiers to view…, while keeping persisted Quota view preference values stable.

Changes:

  • Reordered Quota view navigation (rail + v cycling) to Bars → Consumption Pace → Pie → Fuel Tank.
  • Renamed internal presentation identifiers from meterStyle…/style… to meterView…/view… across UI code and tests.
  • Updated docs and UI interaction tests (hover/click/pulse/footer) to match the new Quota view order.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Updates Quota sub-view order description to Consumption Pace before Pie.
intro-post.md Updates Quota presentation order in the maintained introduction post.
internal/ui/view.go Switches rendering logic to meterView and updates Quota sub-tab rendering hook.
internal/ui/view_test.go Renames style→view in tests and updates assertions to match new identifiers/order.
internal/ui/theme.go Introduces meterViewID, renames constants to view…, and reorders quotaViewOrder.
internal/ui/tabs.go Renames tab types/functions to view-based variants and reorders Quota tab labels.
internal/ui/tabs_test.go Updates tab interaction/ordering tests for the new view order and renamed fields.
internal/ui/quota_api_eq.go Uses meterView when computing grid layout for API-eq insight rendering.
internal/ui/quota_api_eq_test.go Updates quota-view iteration and rendering assertions for renamed types/order.
internal/ui/preferences.go Renames style→view in preferences plumbing while preserving serialized values.
internal/ui/preferences_test.go Updates preference restore/default tests to use view identifiers.
internal/ui/monitor_test.go Updates monitor tests to set/select viewMonitor.
internal/ui/model.go Renames state fields/messages/handlers from style→view and updates view cycling/selection.
internal/ui/model_test.go Updates navigation/footer-button tests for new view cycling and renamed identifiers.
internal/ui/meters.go Renames style→view in meter rendering/grid selection and radial detection helpers.
internal/ui/meters_test.go Updates meter visualization/layout tests for view identifiers and reordered quota views.
internal/ui/benchmark.go Updates benchmark hit-testing guard to use viewBenchmark.
internal/ui/benchmark_test.go Updates benchmark tests to set/select viewBenchmark.

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

@merefield
merefield merged commit d35d948 into main Aug 13, 2026
7 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