Skip to content

[backport cloud/1.38] Feat/workspaces 6 billing#8713

Merged
simula-r merged 1 commit intocloud/1.38from
backport-8508-to-cloud-1.38
Feb 7, 2026
Merged

[backport cloud/1.38] Feat/workspaces 6 billing#8713
simula-r merged 1 commit intocloud/1.38from
backport-8508-to-cloud-1.38

Conversation

@simula-r
Copy link
Contributor

@simula-r simula-r commented Feb 7, 2026

Backport of #8508 to cloud/1.38

Automatically created by manual backport (cherry-pick of c5431de).

Conflicts resolved:

  • src/platform/cloud/subscription/composables/useSubscriptionCredits.test.ts — accepted PR version (uses useBillingContext mock instead of pinia/firebase auth)
  • src/services/dialogService.ts — merged: kept cloud/1.38 eager imports for dialog components, replaced TopUpCreditsDialogContent with Legacy/Workspace variants, replaced useSubscription with useBillingContext, added workspace/legacy component selection in showTopUpCreditsDialog; skipped lazy loader refactor (separate PR, not part of Feat/workspaces 6 billing #8508)

Implements billing infrastructure for team workspaces, separate from
legacy personal billing.

- **Billing abstraction**: New `useBillingContext` composable that
switches between legacy (personal) and workspace billing based on
context
- **Workspace subscription flows**: Pricing tables, plan transitions,
cancellation dialogs, and payment preview components for workspace
billing
- **Top-up credits**: Workspace-specific top-up dialog with polling for
payment confirmation
- **Workspace API**: Extended with billing endpoints (subscriptions,
invoices, payment methods, credits top-up)
- **Workspace switcher**: Now displays tier badges for each workspace
- **Subscribe polling**: Added polling mechanisms
(`useSubscribePolling`, `useTopupPolling`) for async payment flows

- Billing flow correctness for workspace vs legacy contexts
- Polling timeout and error handling in payment flows

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8508-Feat-workspaces-6-billing-2f96d73d365081f69f65c1ddf369010d)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@simula-r simula-r added the backport Backporting a PR onto a release candidate label Feb 7, 2026
@simula-r simula-r requested review from a team and pythongosssss as code owners February 7, 2026 05:09
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 7, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 7, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • backport

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch backport-8508-to-cloud-1.38

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🎭 Playwright Tests: ⚠️ Passed with flaky tests

Results: 505 passed, 0 failed, 1 flaky, 8 skipped (Total: 514)

❌ Failed Tests

📊 Browser Reports
  • chromium: View Report (✅ 493 / ❌ 0 / ⚠️ 1 / ⏭️ 8)
  • chromium-2x: View Report (✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • chromium-0.5x: View Report (✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • mobile-chrome: View Report (✅ 9 / ❌ 0 / ⚠️ 0 / ⏭️ 0)

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 02/07/2026, 05:10:27 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@simula-r simula-r merged commit 9691f5f into cloud/1.38 Feb 7, 2026
34 checks passed
@simula-r simula-r deleted the backport-8508-to-cloud-1.38 branch February 7, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Backporting a PR onto a release candidate size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants