Skip to content

feat(usage): the meters' pace is a setting, off by default - #834

Merged
devswha merged 1 commit into
mainfrom
feat/usage-pace-setting
Oct 11, 2026
Merged

devswha merged 1 commit into
mainfrom
feat/usage-pace-setting

Conversation

@devswha

@devswha devswha commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Change

The usage meters' pace (#513: the mark of an even pace on each bar, the rate under it, "Runs out in …" and the chip's red hairline for a low share) becomes a setting, Settings → Subscription usage → Show pace, off by default. With it off the meters read as they did before #513; with it on, as #513 made them.

#513 is not released yet, so nobody loses anything: this decides how it first ships.

Validation

  • bun run typecheck: pass. settings.test.ts, i18n.test.ts, usage.test.ts: 85 pass.
  • scripts/usage-regression.ts (run through its exported check against a real server and Chrome): pass. New: with plan limits on and the pace not chosen, the strip's label has no "Runs out", no chip is is-fast, and the popover has no mark or rate; turning Show pace on brings them, and the existing pace checks run from there.
  • scripts/settings-pages-demo-regression.ts: 13 PASS (the Subscription usage page with its new row fits 390px and 320px phones in en, ko, ja and zh).

Release

Client-side only.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3398a092-78cc-459f-b144-094d0240a98b

📥 Commits

Reviewing files that changed from the base of the PR and between f6244ff and 6ab8356.


📒 Files selected for processing (9)
  • scripts/usage-regression.ts
  • src/components/SettingsDialog.tsx
  • src/components/UsageMeters.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.zh.ts
  • src/lib/settings.test.ts
  • src/lib/settings.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.



📝 Summary

Summary by CodeRabbit

  • New Features
    • Added a “Show pace” setting for subscription usage meters. It’s off by default; enable it to see pace indicators, current usage rates, and warnings when a limit may run out before reset.
    • Added translations for the setting in Japanese, Korean, Turkish, and Simplified Chinese.

Walkthrough

Adds a usagePace setting that defaults to false. The settings dialog exposes the option, and usage meters show pace markers, rate text, and run-out warnings only when it is enabled. Translations and regression checks cover the setting.

Changes

Usage pace setting

Layer / File(s) Summary
Define and sanitize the setting
src/lib/settings.ts, src/lib/settings.test.ts
Settings includes usagePace, which defaults to false. Sanitization retains only the boolean value true; tests cover the default and sanitization.
Expose the setting and gate pace display
src/components/SettingsDialog.tsx, src/components/UsageMeters.tsx, src/lib/i18n.*.ts
The settings dialog adds a Show pace option. Usage meters gate pace indicators and run-out details on usagePace. Japanese, Korean, Turkish, and Simplified Chinese translations add the setting label and description.
Verify default and enabled display
scripts/usage-regression.ts
The regression script checks that pace details are absent by default and that enabling Show pace displays a fast usage chip.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature

Suggested reviewers: haeminway1


Merge Risk: ⚪ Minimal · up to 6ab83

Pace indicators remain off unless enabled, and the reviewed changes show no actionable user-facing issue. The change is mergeable after normal checks.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: making usage-meter pace indicators configurable and disabled by default.
Description check Passed The description includes the required Change and Validation sections, explains the resulting behavior, identifies affected components and translations, and reports relevant test results. The additiona…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR


🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 80ca9bb into main Oct 11, 2026
9 checks passed
@devswha
devswha deleted the feat/usage-pace-setting branch October 11, 2026 19:28
devswha added a commit that referenced this pull request Oct 11, 2026
## Change

Release 0.4.7, from main at 80ca9bb (47 PRs since v0.4.6).

- `package.json` and `herdr-plugin.toml`: 0.4.7.
- CHANGELOG: `[Unreleased]` becomes `[0.4.7] - 2026-10-12`, with the
compare links.
- #513's entry moves out of the 0.4.0 section, where its branch's merge
left it, and gets its credit; it says the pace is a setting, off by
default (#834).
- A Maintenance section covers the PRs that had no entry: #743, #756,
#767, #795, #805, #810, #813, #821, #826, #831.
- The note under the Hermes entry that asked for a runtime bump at
release now says what a remote PC needs.
- `release-summaries.json`: 0.4.7 in en/ko/ja/zh/tr (6 new, 6 improved,
5 fixed). The Turkish lines are not checked by a native speaker.
- `REMOTE_BUNDLE_VERSION` 25 -> 26. Since v0.4.5's runtime the bridge
gained Hermes transcripts (#604), conversation pushes (#689) and
Grok/Antigravity activity (#816), so `remote-v26` is published before
the app release.

Not in this release: #606.

## Validation

- `bun scripts/release-notes.ts 0.4.7` renders the summaries and the
full changelog (235 lines).
- `bun run typecheck` and `bun run build`: pass.
- `TMPDIR=/tmp bun run test:unit`: one failure, `server/voice.test.ts`
("audio.webm" vs "clip.webm"), which fails the same way on unmodified
`main` on this Mac (Bun 1.4.0); CI runs Bun 1.4.2.
- Every PR merged since v0.4.6 was checked against the changelog
section: all 47 are linked.

## Release

After this merges and its CI on `main` passes: push `remote-v26`, wait
for its release, then run the Release workflow with `0.4.7`.
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.

1 participant