Skip to content

feat: hide upgrade CTAs from and show owner to managed accounts#30247

Merged
pawel-cebula merged 19 commits intomasterfrom
account-owner-ui
Mar 21, 2025
Merged

feat: hide upgrade CTAs from and show owner to managed accounts#30247
pawel-cebula merged 19 commits intomasterfrom
account-owner-ui

Conversation

@pawel-cebula
Copy link
Contributor

@pawel-cebula pawel-cebula commented Mar 20, 2025

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 billing changes (https://github.com/PostHog/billing/pull/1155), which now sync Vitally account owner information and return it via billing API

  • Hides upgrade related CTAs on the billing page from managed accounts
  • Shows account owner information in the menu, at the bottom of the CURRENT ORGANIZATION section, since the account owner is on a billing organization level, allowing click-to-copy

Alternative options considered

  • Link to community profile page - no private contact option there, just a public AMA. We could add contact details there too, maybe by adding some custom query param, but doesn't feel like adding more steps is helpful and my assumption is that accounts know their AEs/CSMs already.
  • Surveys - briefly looked into using surveys here as a contact form - definitely a bit of a stretch but doable. I'm not convinced about the ROI on this though.

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)

SCR-20250320-qutd

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

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 isManagedAccount selector in frontend/src/scenes/billing/billingLogic.tsx to determine account status based on owner presence
  • Added new account_owner field with email and name properties to BillingType interface in frontend/src/types.ts
  • Added AccountOwner component in frontend/src/layout/navigation/TopBar/AccountPopover.tsx with click-to-copy functionality
  • Modified CreditCTAHero and Billing components to conditionally hide upgrade CTAs for managed accounts
  • Added event tracking in eventUsageLogic.ts for account owner information interactions

6 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2025

Size Change: +278 B (0%)

Total Size: 9.75 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 9.75 MB +278 B (0%)

compressed-size-action

) : null}

{!billing?.has_active_subscription && !billing?.trial && platformAndSupportProduct && (
{!isManagedAccount && !billing?.has_active_subscription && !billing?.trial && platformAndSupportProduct && (
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

@pawel-cebula pawel-cebula Mar 21, 2025

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

@pawel-cebula pawel-cebula Mar 21, 2025

Choose a reason for hiding this comment

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

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

@pawel-cebula pawel-cebula Mar 21, 2025

Choose a reason for hiding this comment

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

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?)

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 5)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 4)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 4)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 5)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 5)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@pawel-cebula pawel-cebula merged commit 2eb16cf into master Mar 21, 2025
109 checks passed
@pawel-cebula pawel-cebula deleted the account-owner-ui branch March 21, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants