Skip to content

fix(app): show the server allowance meter for metered paid plans - #21314

Merged
Git-on-my-level merged 8 commits into
mainfrom
lane/sub-w1-meter
Oct 13, 2026
Merged

Git-on-my-level merged 8 commits into
mainfrom
lane/sub-w1-meter

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What changed and why

The usage page now treats a present unlimited transcription_allowance as authoritative even when an older subscription snapshot carries Free's finite transcription limit. Finite snapshots still provide the total budget because remaining seconds alone cannot recover a total at exhaustion. Word/insight visibility and access gates retain their existing behavior. The conflict resolution preserves main #21337's Paywall Opened instrumentation: user-triggered openers pass trackOpen=true, while already-instrumented openers pass false to prevent duplicate events.

Product invariants affected

none

How it was verified

  • Widget layer: TZ=UTC flutter test test/widgets/usage_page_redesign_test.dart — 22 passed after merging origin/main (e98b7a49378). These render the real UsagePage and scroll its real list.
  • The contradictory pre-fix(subscription): report true plans and enforced BYOK transcription budgets #21315 JSON fixture contains synthetic Neo, features=['byok'], hidden subscription UI, nested/top-level 18,000-second limits, and a managed allowance with null remaining seconds. It renders no progress meter despite usage above 80% of the stale Free cap.
  • The finite Plus-BYOK pre-fix(subscription): report true plans and enforced BYOK transcription budgets #21315 fixture still renders 20 of 300 minutes from the incorrect old total, even though remaining is 88,800 seconds. This is documented rollout behavior, not a correct budget. Only the backend projection supplies a reliable 1,500-minute total at every usage level, including exhaustion.
  • Protected spine layer: TZ=UTC flutter test test/spine — 129 passed. Preflight, normal push gates and exact-head CI are reported in the handoff.
  • Not run: physical device, agent-flutter against a signed-in app, live authenticated UI, or production queries. Verification uses hermetic widget rendering.

Tests

app/test/widgets/usage_page_redesign_test.dart adds real-JSON regressions for unlimited enforcement versus stale finite BYOK totals and finite Plus-BYOK before the backend fix. Existing Plus/remapped Plus, unlimited-v2, Free three-meter and identity/gate assertions remain covered.

Required deployment order

#21315 backend must be deployed and verified before any mobile release containing #21314. Merging #21315 alone is insufficient. The unlimited guard protects legacy unlimited accounts from the old contradictory response, but it cannot reconstruct a finite Plus total from remaining seconds. Plus-BYOK still shows Free's 300-minute snapshot until the backend projection is deployed.

Merge order remains #21313, #21315, #21314. No deployment, flag flip or production write is part of this PR.

UI evidence

UI-Evidence: none -- Real UsagePage rendering verified by hermetic widget tests; no installed-device screenshot captured.

Failure class

Failure-Class: none

Risks for reviewers

  • Confirm unlimited enforcement overrides every finite snapshot transcription meter, while absent allowance preserves older-backend behavior.
  • Finite remaining seconds are not a total. Treat the backend deployment ordering as a release requirement, particularly Plus-BYOK and exhausted accounts.
  • Paid-plan 80%/100% hint copy remains the existing Free/on-device copy. Neutral localized copy and the at-cap choice are deferred to W4; no localization files changed here.
  • The monthly meter continues appearing in the existing Today/Month/Year/All-time panels; period placement remains W4 scope.

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review October 13, 2026 01:00
@Git-on-my-level
Git-on-my-level merged commit 279fa99 into main Oct 13, 2026
48 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/sub-w1-meter branch October 13, 2026 01:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T01:05:24.340692Z c1f5aaf Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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