Skip to content

[PB-6291]: fix/cap the storage usage bar when usage is over the limit - #2298

Draft
terrerox wants to merge 1 commit into
masterfrom
fix/storage-bar-over-limit
Draft

terrerox wants to merge 1 commit into
masterfrom
fix/storage-bar-over-limit

Conversation

@terrerox

@terrerox terrerox commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Description

The storage usage bar could run outside its card when usage was over the plan limit (e.g. 33.8 GB used on a 1 GB plan after a downgrade), in Account and Workspace Members. The bar now sizes its segments as percentages capped at 100%, and the whole bar turns red when over the limit.

  • UsageBar sizes the Drive and Backups segments as percentages of the bar, capped at 100%, keeping their proportion
  • The bar turns red when usage is over the limit and the divider only shows when both segments are visible
  • Backups tooltip now shows the backups size instead of the Drive size
  • Unit tests added for UsageBar and usageBarUtils

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Segments are now sized as percentages of the bar and capped at 100%,
so usage above the plan limit no longer overflows the card. The bar
turns red when over the limit. The Backups tooltip now shows the
backups size instead of the Drive size.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4629591
Status: ✅  Deploy successful!
Preview URL: https://a9bf7023.drive-web.pages.dev
Branch Preview URL: https://fix-storage-bar-over-limit.drive-web.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@terrerox terrerox self-assigned this Nov 6, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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