Line data Source code
1 : /** Stable RUM action names for billing CTAs; frustration monitors match the `billing.` prefix. */
2 2356 : export const BILLING_ACTION_NAME = {
3 : addCreditsPopover: 'billing.add_credits.popover',
4 : addCreditsTile: 'billing.add_credits.credits_tile',
5 : addCreditsStatusBanner: 'billing.add_credits.status_banner',
6 : topUpPrimary: 'billing.top_up.primary',
7 : managePlanPopover: 'billing.manage_plan.popover',
8 : upgradePlanPanel: 'billing.upgrade_plan.panel',
9 : subscribeToRun: 'billing.subscribe.run_button',
10 : subscribeTopbar: 'billing.subscribe.topbar',
11 : subscribeTeamPlan: 'billing.plan_cta.team'
12 : } as const
13 :
14 0 : export function planCtaActionName(tierKey: string): string {
15 0 : return `billing.plan_cta.${tierKey}`
16 : }
|