Skip to content

fix(seer): Allow self-serve and billing users to go to the /subscription page and try to start Seer trial#104820

Merged
ryan953 merged 2 commits intomasterfrom
ryan953/remove-conditions-for-going-to-sub-page
Dec 12, 2025
Merged

fix(seer): Allow self-serve and billing users to go to the /subscription page and try to start Seer trial#104820
ryan953 merged 2 commits intomasterfrom
ryan953/remove-conditions-for-going-to-sub-page

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented Dec 11, 2025

No description provided.

@ryan953 ryan953 changed the title fix(seer): Allow anyone to goto the subscription page and try to star… fix(seer): Allow anyone to goto the subscription page and try to start Seer trial Dec 11, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 11, 2025
@ryan953 ryan953 requested review from a team December 11, 2025 22:50
)}
</Alert>
)}
<LinkButton
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sorry, forgot to add the caveat yesterday that for sponsored and enterprise orgs, users without billing perms do not have access to the subscription page

since this lives in gsApp you could access subscription through useSubscription, then just render the previous alert you had when !hasBillingPerms && !subscription.canSelfServe

alternatively you could keep this as is, and any non-billing members on sponsored/enterprise orgs that click Try Out Seer Now will just get the insufficient access screen:
Image

will leave to your discretion what you think the best experience is 🙏🏽

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we'll put the subscrition check in. it should be in all places that link out like that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yup! as far as i’m aware this is the only new place that links the subscription settings.

for future i’m pushing for ways to make this behavior more consistent across the product and easier for product engineers to use without needing much input from the billing team nor even much billing context (starting with hooks like useProductBillingAccess and expanding from there).

until then, thanks for bearing with all my comments! 🙏🏽

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

gah, found a function hasAccessToSubscriptionOverview() thats almost perfect to use. but the return from useSubscription() is nullable so it's not a clean plug-in :(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

only 2 callsites though, so fixed up the helper 👍


export function hasAccessToSubscriptionOverview(
subscription: Subscription,
subscription: Subscription | null,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this makes it easy to push the return of useSubscription() into the check.

@ryan953 ryan953 changed the title fix(seer): Allow anyone to goto the subscription page and try to start Seer trial fix(seer): Allow self-serve and billing users to go to the /subscription page and try to start Seer trial Dec 12, 2025
Copy link
Copy Markdown
Contributor

@isabellaenriquez isabellaenriquez left a comment

Choose a reason for hiding this comment

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

clean, thanks!

@ryan953 ryan953 enabled auto-merge (squash) December 12, 2025 17:53
@ryan953 ryan953 merged commit 1e27e69 into master Dec 12, 2025
49 checks passed
@ryan953 ryan953 deleted the ryan953/remove-conditions-for-going-to-sub-page branch December 12, 2025 17:57
@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants