From c8764f6a01792153d4ff57e10e15177f09cf1d9b Mon Sep 17 00:00:00 2001 From: Bianca Yang Date: Mon, 18 Mar 2024 16:49:01 -0700 Subject: [PATCH] fix storybook --- frontend/src/mocks/fixtures/_billing_v2.tsx | 90 ++++++++++----------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/frontend/src/mocks/fixtures/_billing_v2.tsx b/frontend/src/mocks/fixtures/_billing_v2.tsx index 4c4ee10716fbc..43b499844eb70 100644 --- a/frontend/src/mocks/fixtures/_billing_v2.tsx +++ b/frontend/src/mocks/fixtures/_billing_v2.tsx @@ -11,8 +11,8 @@ export const billingJson: BillingV2Type = { current_period_end: dayjs('2024-04-07T22:54:32Z'), interval: 'month', }, - current_total_amount_usd: '0.00', - current_total_amount_usd_after_discount: '0.00', + current_total_amount_usd: '403.07', + current_total_amount_usd_after_discount: '403.07', products: [ { name: 'Product analytics', @@ -260,9 +260,9 @@ export const billingJson: BillingV2Type = { unit_amount_usd: '0', up_to: 1000000, current_amount_usd: '0.00', - current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + current_usage: 882128, + projected_usage: 1000000, + projected_amount_usd: '0.00', }, { flat_amount_usd: '0', @@ -270,8 +270,8 @@ export const billingJson: BillingV2Type = { up_to: 2000000, current_amount_usd: '0.00', current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + projected_usage: 1000000, + projected_amount_usd: '310.00', }, { flat_amount_usd: '0', @@ -279,8 +279,8 @@ export const billingJson: BillingV2Type = { up_to: 15000000, current_amount_usd: '0.00', current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + projected_usage: 5000000, + projected_amount_usd: '650.00', }, { flat_amount_usd: '0', @@ -323,12 +323,12 @@ export const billingJson: BillingV2Type = { unit_amount_usd: null, current_amount_usd_before_addons: '0.00', current_amount_usd: '0.00', - current_usage: 0, - usage_limit: null, + current_usage: 882128, + usage_limit: 882128, has_exceeded_limit: false, - percentage_usage: 0, - projected_usage: 0, - projected_amount_usd: '0.00', + percentage_usage: 0.4423939206, + projected_usage: 7000000, + projected_amount_usd: '960.00', unit: 'event', addons: [ { @@ -346,9 +346,9 @@ export const billingJson: BillingV2Type = { unit_amount_usd: '0', up_to: 1000000, current_amount_usd: '0.00', - current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + current_usage: 882128, + projected_usage: 1000000, + projected_amount_usd: '0.00', }, { flat_amount_usd: '0', @@ -356,8 +356,8 @@ export const billingJson: BillingV2Type = { up_to: 2000000, current_amount_usd: '0.00', current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + projected_usage: 1000000, + projected_amount_usd: '70.8', }, { flat_amount_usd: '0', @@ -365,8 +365,8 @@ export const billingJson: BillingV2Type = { up_to: 15000000, current_amount_usd: '0.00', current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + projected_usage: 1910636, + projected_amount_usd: '57.32', }, { flat_amount_usd: '0', @@ -411,9 +411,9 @@ export const billingJson: BillingV2Type = { unit: 'event', unit_amount_usd: null, current_amount_usd: null, - current_usage: 0, - projected_usage: 0, - projected_amount_usd: '0.00', + current_usage: 882128, + projected_usage: 3910636, + projected_amount_usd: '128.12', plans: [ { plan_key: 'addon-20230509', @@ -502,13 +502,13 @@ export const billingJson: BillingV2Type = { projected_amount_usd: null, }, ], - current_plan: true, + current_plan: false, included_if: null, contact_support: null, unit_amount_usd: null, }, ], - contact_support: null, + contact_support: false, }, { name: 'Data pipelines', @@ -687,7 +687,7 @@ export const billingJson: BillingV2Type = { unit_amount_usd: null, }, ], - contact_support: null, + contact_support: false, }, ], contact_support: false, @@ -1191,34 +1191,34 @@ export const billingJson: BillingV2Type = { }, ], type: 'session_replay', - free_allocation: 0, + free_allocation: 5000, tiers: [ { flat_amount_usd: '0', unit_amount_usd: '0', up_to: 5000, current_amount_usd: '0.00', - current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + current_usage: 5000, + projected_usage: 5000, + projected_amount_usd: '0.00', }, { flat_amount_usd: '0', unit_amount_usd: '0.04', up_to: 15000, current_amount_usd: '0.00', - current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + current_usage: 10000, + projected_usage: 10000, + projected_amount_usd: '400.00', }, { flat_amount_usd: '0', unit_amount_usd: '0.003', up_to: 50000, current_amount_usd: '0.00', - current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + current_usage: 1022, + projected_usage: 35000, + projected_amount_usd: '105', }, { flat_amount_usd: '0', @@ -1226,8 +1226,8 @@ export const billingJson: BillingV2Type = { up_to: 150000, current_amount_usd: '0.00', current_usage: 0, - projected_usage: null, - projected_amount_usd: null, + projected_usage: 10000, + projected_amount_usd: '270.00', }, { flat_amount_usd: '0', @@ -1251,13 +1251,13 @@ export const billingJson: BillingV2Type = { tiered: true, unit_amount_usd: null, current_amount_usd_before_addons: '0.00', - current_amount_usd: '0.00', - current_usage: 0, - usage_limit: null, + current_amount_usd: '403.07', + current_usage: 16022, + usage_limit: 100000, has_exceeded_limit: false, - percentage_usage: 0, - projected_usage: 0, - projected_amount_usd: '0.00', + percentage_usage: 0.16022, + projected_usage: 50000, + projected_amount_usd: '775.00', unit: 'recording', addons: [], contact_support: false,