Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

@ArtyomSavchenko ArtyomSavchenko commented Nov 3, 2025

Before:
Screenshot 2025-11-03 at 17 48 09
After:
Screenshot 2025-11-03 at 20 09 42

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-14022

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the previous upgrade button with a usage indicator that displays storage and bandwidth usage visually. The changes consolidate subscription state management into a centralized store and provide users with a continuous view of their workspace resource consumption.

  • Introduces a subscription store to centralize workspace limits and usage state management
  • Replaces UpgradeButton component with LimitsIndicator showing visual progress bars for storage/bandwidth
  • Adds comprehensive workspace limit checking functionality with proper error handling

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
plugins/billing/src/plugin.ts Updates component reference from UpgradeButtonExt to UsageExtension
plugins/billing-resources/src/utils.ts Adds subscription store management, workspace limit checking, and usage calculation functions
plugins/billing-resources/src/stores/subscription.ts New centralized store for subscription state and usage information
plugins/billing-resources/src/index.ts Updates component exports to use LimitsIndicator instead of UpgradeButton
plugins/billing-resources/src/components/WorkbenchExtension.svelte Adds role-based access control for showing usage extension
plugins/billing-resources/src/components/UsageSection.svelte Updates to handle nullable usage data and use centralized limit calculations
plugins/billing-resources/src/components/UsageProgressBar.svelte New progress bar component with color-coded usage levels
plugins/billing-resources/src/components/UsageProgress.svelte Minor styling adjustment for label spacing
plugins/billing-resources/src/components/UsagePopup.svelte New popup component for detailed usage information
plugins/billing-resources/src/components/UpgradeButton.svelte Removed old upgrade button component
plugins/billing-resources/src/components/Subscriptions.svelte Removes unused loading state variable
plugins/billing-resources/src/components/LimitsIndicator.svelte New main component displaying usage indicators with workspace change handling

Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review November 3, 2025 13:15
@aonnikov
Copy link
Member

aonnikov commented Nov 3, 2025

Ok but the main icon is unreadable

@ArtyomSavchenko ArtyomSavchenko merged commit c0346f0 into develop Nov 4, 2025
24 of 26 checks passed
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.

4 participants