[PM-36886] fix: Gate premium upgrade flow on self-hosted environments#6939
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6939 +/- ##
==========================================
- Coverage 86.43% 86.33% -0.11%
==========================================
Files 870 873 +3
Lines 63301 63477 +176
Branches 9189 9200 +11
==========================================
+ Hits 54714 54802 +88
- Misses 5428 5514 +86
- Partials 3159 3161 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
Claude Code is reviewing this pull request... If this comment does not update with results, check the Actions log. |
0e0e134 to
d3f2605
Compare
Free self-hosted users have no Stripe pricing endpoint or checkout session available to them, so the existing upgrade UI either showed broken pricing, errored on the pricing fetch, or routed users into a checkout that cannot complete. Subscription management for self-hosted accounts lives on the web vault, not in-app. Surface that affordance directly: Settings hides the Plan row, and the Plan screen swaps the upgrade card for an info card that deep- links to the web vault subscription page. Resolves: PM-36886, PM-36887, PM-36889, PM-37472.
8e36a6d to
7b9969c
Compare
david-livefront
approved these changes
May 20, 2026
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.
🎟️ Tracking
📔 Objective
Free self-hosted users have no Stripe pricing endpoint or checkout session available to them, so the existing premium upgrade surfaces either showed broken pricing, errored on the pricing fetch, or routed users into a checkout that cannot complete. Subscription management for self-hosted accounts lives exclusively on the web vault.
Gate the in-app upgrade affordance on cloud environments and surface a non-actionable info callout in its place:
SettingsViewModelhides the Plan row entirely when the active environment is self-hosted.PlanViewModelskips the Stripe pricing fetch on self-hosted and emits a dedicatedFree.SelfHostedview state.PlanScreenrenders aBitwardenInfoCalloutCarddirecting the user to log in to the web vault on a computer to manage their subscription, alongside the static premium feature list so self-hosted users can still see what Premium unlocks.📸 Screenshots