Repository navigation
Move Consumption Pace ahead of Pie - #14
Merged
Merged
Conversation
merefield
marked this pull request as ready for review
August 13, 2026 20:59
There was a problem hiding this comment.
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 +
vcycling) to Bars → Consumption Pace → Pie → Fuel Tank. - Renamed internal presentation identifiers from
meterStyle…/style…tometerView…/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.
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
vcycle Bars → Consumption Pace → Pie → Fuel Tankstyle…vocabulary withview…names, matching the user-facing interfaceWhy
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 --checkRace coverage: root 67.9%,
internal/codex84.7%,internal/ui91.2%,internal/version81.0%.