feat: hide upgrade CTAs from and show owner to managed accounts#30247
feat: hide upgrade CTAs from and show owner to managed accounts#30247pawel-cebula merged 19 commits intomasterfrom
Conversation
…upgrade and credit CTAs from managed accounts
There was a problem hiding this comment.
PR Summary
This PR adds functionality to hide upgrade CTAs from managed accounts and display account owner information in the UI, improving the experience for managed accounts and aligning with sales team efforts.
- Added
isManagedAccountselector infrontend/src/scenes/billing/billingLogic.tsxto determine account status based on owner presence - Added new
account_ownerfield withemailandnameproperties toBillingTypeinterface infrontend/src/types.ts - Added
AccountOwnercomponent infrontend/src/layout/navigation/TopBar/AccountPopover.tsxwith click-to-copy functionality - Modified
CreditCTAHeroandBillingcomponents to conditionally hide upgrade CTAs for managed accounts - Added event tracking in
eventUsageLogic.tsfor account owner information interactions
6 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
|
Size Change: +278 B (0%) Total Size: 9.75 MB ℹ️ View Unchanged
|
| ) : null} | ||
|
|
||
| {!billing?.has_active_subscription && !billing?.trial && platformAndSupportProduct && ( | ||
| {!isManagedAccount && !billing?.has_active_subscription && !billing?.trial && platformAndSupportProduct && ( |
There was a problem hiding this comment.
This change probably conflicts with your other PR - also managed accounts shouldn't be on free accounts so I think this won't be needed.
There was a problem hiding this comment.
This change probably conflicts with your other PR
Yup will see what gets merged first and resolve conflicts then
also managed accounts shouldn't be on free accounts so I think this won't be needed.
I assumed so too initially but then thought that maybe an account gets AE/CSM assigned in Vitally when they reach out and start convo but before they sign. Will confirm with Mine.
There was a problem hiding this comment.
Simon replied
Q: Can an account be managed (get AE/CSM assigned in Vitally) before becoming a paying customer?
A: Yes they might do if the AE is managing them through a trial
Q: Got it and technically could they already get AE/CSM assigned before starting a trial? E.g. when they reach out to the team as a prospect. Or AE/CSM would only get assigned once at least on trial?
A: We’d only assign them in Vitally once having spoken with them and got them on a trial
So technically it's not needed since we'd hide this already if they're on the trial but I'd still lean towards keeping this check to make it future proof in case sales process changes?
There was a problem hiding this comment.
We do have cta in other places so it's not really hiding all of them but I'm ok with this change for now.
There was a problem hiding this comment.
Got it, will keep it then and try to track down other places where we might want to hide them (might do that as a follow up so that we can merge this?)
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
…ble to false via billing api response
Problem
We've been showing upgrade related CTAs to managed accounts, which has been confusing to them and was often at odds with the sales team efforts
Changes
Following on from
billingchanges (https://github.com/PostHog/billing/pull/1155), which now sync Vitally account owner information and return it via billing APICURRENT ORGANIZATIONsection, since the account owner is on a billing organization level, allowing click-to-copyAlternative options considered
For more context see
Does this work well for both Cloud and self-hosted?
Cloud only
How did you test this code?
Manually (see below and Loom: https://www.loom.com/share/80f127f1d6644b8da4f07e7cf031b11d)