fix: remove duplicate 'Unlimited' suffix from plan names#5865
Merged
Conversation
The backend already returns full titles like "Unlimited Plan Monthly" and "Unlimited Plan Annual". The app was appending " Unlimited" again, producing "Unlimited Plan Monthly Unlimited" and "Unlimited Plan Annual Unlimited".
Contributor
Greptile SummaryThis PR fixes a UI display bug where plan names showed a duplicate "Unlimited" suffix (e.g. "Unlimited Plan Monthly Unlimited") in the plans sheet. The root cause was a mismatch between the backend and frontend: commit Key changes:
The fix is straightforward and correctly aligns the frontend with the updated backend contract. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant App as Flutter App
participant API as Backend /v1/payments/available-plans
participant Stripe as Stripe API
App->>API: GET /v1/payments/available-plans
API->>Stripe: Retrieve monthly price
Stripe-->>API: price_data (unit_amount, interval)
API->>Stripe: Retrieve annual price
Stripe-->>API: price_data (unit_amount, interval)
API-->>App: { plans: [ { title: "Unlimited Plan Monthly", ... }, { title: "Unlimited Plan Annual", ... } ] }
Note over App: Before fix: title = planData['title'] + " Unlimited"<br/>→ "Unlimited Plan Monthly Unlimited" ❌
Note over App: After fix: title = planData['title'] as String<br/>→ "Unlimited Plan Monthly" ✅
App->>App: _buildDynamicPlanOption(planData)
App->>App: _buildHardcodedPlanOption(title: title, ...)
Last reviewed commit: "fix: remove duplicat..." |
Glucksberg
pushed a commit
to Glucksberg/omi-local
that referenced
this pull request
Apr 28, 2026
…re#5865) ## Summary - Commit 2db36d8 (Mar 14 — "Add desktop Plan and Usage subscriptions") changed the backend to return full plan titles like "Unlimited Plan Monthly" / "Unlimited Plan Annual" instead of just "Monthly" / "Annual" - The app-side code in `_buildDynamicPlanOption()` was still appending " Unlimited", resulting in "Unlimited Plan Monthly Unlimited" and "Unlimited Plan Annual Unlimited" - Removed the redundant suffix so plan names display correctly ## Test plan - [ ] Open the plans sheet and verify plan names no longer show duplicate "Unlimited" text 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
_buildDynamicPlanOption()was still appending " Unlimited", resulting in "Unlimited Plan Monthly Unlimited" and "Unlimited Plan Annual Unlimited"Test plan
🤖 Generated with Claude Code