improvement: adjust blue upgrade button in upgrade modal desktop#967
improvement: adjust blue upgrade button in upgrade modal desktop#967
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughConsolidates the upgrade flow into a unified layout with in-app license activation/deactivation, license details display, and revised pricing toggles. Introduces an ActivateLicenseDialog and activateLicenseKey mutation, updates purchase/checkout triggers, and makes a minor variant adjustment to the Sign Out button in Settings. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant UP as Upgrade Page
participant ALD as ActivateLicenseDialog
participant API as License API
participant ST as Settings/Store
U->>UP: Open Upgrade
U->>UP: Click "Activate License"
UP->>ALD: Open dialog (open=true)
U->>ALD: Enter license key, Submit
ALD->>API: activateLicenseKey(key)
API-->>ALD: success (license, expiry)
ALD->>ST: Update settings with license
ST->>UP: Trigger query refresh
UP-->>U: Updated license status shown
alt Deactivate license
U->>UP: Click "Deactivate License"
UP->>API: resetLicense()
API-->>UP: success
UP->>ST: Clear license, refresh
ST-->>U: License removed from UI
end
sequenceDiagram
autonumber
actor U as User
participant UP as Upgrade Page
participant CO as Checkout
U->>UP: Toggle pricing (Commercial or Cap Pro)
U->>UP: Click "Purchase/Upgrade"
UP->>CO: openCommercialCheckout / openCapProCheckout
CO-->>U: External checkout flow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Style