feat: add workspace ownership transfer and payment settings [risk:high] - #501
Merged
Conversation
Add shared ownership confirmation, role refresh, and the payment-method Portal entry. Model: gpt-6
Preserve the pinned reliability fixes together with workspace ownership transfer. Model: gpt-6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Risk: 🔴 high | Confidence: medium — changes workspace authority and billing entry points; local checks and visual verification cover the UI, while live Stripe handoff remains untested.
Workspace owners can now transfer ownership to an existing member from workspace settings by selecting the recipient and typing the workspace name. The former owner becomes a regular member; the dialog explains that the subscription and current payment method remain in place.
The shared desktop/mobile surfaces refresh organization permissions after role changes. Billing settings now expose the payment-method-only Stripe Portal to authorized owners/admins, including the desktop external-browser return path. Optional-cloud DTOs and capability-gated operations keep the local composition isolated.
Validation: Web/mobile/CLI builds and Electron app build (8 GB Node heap; local placeholder update URL), local repository checks, targeted billing-permission and membership-refresh regressions, and Chinese desktop/mobile Storybook interaction screenshots. Adversarial auth/billing/UI and final independent reviews found no remaining P0/P1.
Deployment: enable the companion cloud ownership-transfer endpoint and payment-method normalization before publishing the client changes. Live Portal card replacement and the next subscription charge were not exercised.