Skip to content

fix: mobile view usage bar fix#914

Merged
MaheshtheDev merged 1 commit into
mainfrom
05-09-fix_mobile_view_usage_bar_gix
May 9, 2026
Merged

fix: mobile view usage bar fix#914
MaheshtheDev merged 1 commit into
mainfrom
05-09-fix_mobile_view_usage_bar_gix

Conversation

@MaheshtheDev
Copy link
Copy Markdown
Member

No description provided.

@MaheshtheDev MaheshtheDev changed the title fix: mobile view usage bar gix fix: mobile view usage bar fix May 9, 2026
@MaheshtheDev MaheshtheDev marked this pull request as ready for review May 9, 2026 16:53
Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@claude
Copy link
Copy Markdown

claude Bot commented May 9, 2026

Claude finished @MaheshtheDev's task in 2m 33s —— View job


Review Complete

  • Fetching PR diff
  • Analyzing changes for bugs and security issues
  • Checking surrounding code context
  • Submitting review

Summary: This PR fixes broken mobile usage bar code that was referencing undefined variables (tokensToCredits, tokensLimit, tokensPercent, searchesPercent, searchesLimit). The new implementation correctly uses planUsagePct, tokensUsed, and searchesUsed from the useTokenUsage hook, and simplifies the UI to a single unified "Plan usage" display.

No bugs or security issues found. The percentage value is already properly bounded (0-100) upstream.

Score: 10/10 — Clean bug fix, ready to ship.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp 5fdd733 May 09 2026, 04:54 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app 5fdd733 Commit Preview URL May 09 2026, 04:55 PM

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: Fixes mobile usage bar by replacing broken code (referencing undefined variables) with a working unified "Plan usage" display.

Issues found: None — this looks good to ship.

Details: The previous implementation referenced tokensToCredits, tokensLimit, tokensPercent, searchesPercent, and searchesLimit which were never imported or defined — this would cause runtime ReferenceErrors. The new code correctly uses planUsagePct, tokensUsed, and searchesUsed which are properly exported from useTokenUsage. The planUsagePct value is already bounded to [0, 100] by calculateUsagePercent() in billing-utils.

Score: 10/10

@MaheshtheDev MaheshtheDev merged commit 0cbcd44 into main May 9, 2026
11 checks passed
@graphite-app graphite-app Bot requested a review from Dhravya May 11, 2026 18:55
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.

2 participants