Repository navigation
feat(tui): add calendar pace indicators and align sidebar rows - #6
Conversation
|
Thanks, the pace math and the renderer tests are solid, and the alignment reads well in the screenshot. Two things before this can merge:
Minor: a delta of 5.4 renders as On weekends: calendar time as the default is fine with me. If we add an option later, it goes behind config, not in this PR. |
Compare usage with elapsed calendar time for each window. Show reserve, deficit, or on pace within five percentage points. Use fixed columns and a ten-cell bar with an inline track span. Add pace, format, and renderer tests.
54f864f to
b5fb1d7
Compare
|
Thanks for the review. Addressed in
Calendar time remains the default, with no weekend option in this PR. All 43 tests pass, including the lifecycle tests from #5. Production typecheck passes. The 18 pace tests also pass with |

Summary
Add pace indicators for the rolling, weekly, and monthly usage windows.
+Nppwhen usage is below the elapsed share.-Nppwhen usage is above the elapsed share.on pace.resetsAt, with the day clamped to the previous month when necessary.1moinstead of30d.Align labels, bars, percentages, pace indicators, and reset countdowns with fixed columns. Use a ten-cell bar and preserve its track color through an inline span.
This branch is rebased onto main after #5. It preserves setup-owned state, polling, and cleanup. Renderer tests invoke plugin cleanup before disposing views and detect leaked intervals.
This PR adds no configuration options and does not change credential resolution.
Verification
npm test: 43 tests pass across five files, including all refresh and lifecycle tests from fix(tui): keep usage state and polling in plugin setup #5.npm run typecheck: passes for production sources.TZ=America/New_York.Tests use synthetic responses, not live credentials or API requests.