From 06346ccdd115385ed3290ccaa0681964a365350e Mon Sep 17 00:00:00 2001 From: Ashad Qureshi Date: Tue, 24 Jun 2025 23:02:51 +0500 Subject: [PATCH 1/3] Trail Changed to 2-Day Free Trial --- auto-analyst-frontend/lib/credits-config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auto-analyst-frontend/lib/credits-config.ts b/auto-analyst-frontend/lib/credits-config.ts index 6d4afb55..5bf33280 100644 --- a/auto-analyst-frontend/lib/credits-config.ts +++ b/auto-analyst-frontend/lib/credits-config.ts @@ -49,9 +49,9 @@ export interface TrialConfig { * Trial period configuration - Change here to update across the entire app */ export const TRIAL_CONFIG: TrialConfig = { - duration: 5, - unit: 'minutes', - displayText: '5-Minute Trial', + duration: 2, + unit: 'days', + displayText: '2-Day Trial', credits: 500 } From 6522298e2c54ddf175d8fc7dba822a6c5a081202 Mon Sep 17 00:00:00 2001 From: Ashad Qureshi Date: Wed, 25 Jun 2025 23:54:58 +0500 Subject: [PATCH 2/3] Trail Updated --- auto-analyst-frontend/lib/credits-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-analyst-frontend/lib/credits-config.ts b/auto-analyst-frontend/lib/credits-config.ts index 5bf33280..a3ca5bd1 100644 --- a/auto-analyst-frontend/lib/credits-config.ts +++ b/auto-analyst-frontend/lib/credits-config.ts @@ -51,7 +51,7 @@ export interface TrialConfig { export const TRIAL_CONFIG: TrialConfig = { duration: 2, unit: 'days', - displayText: '2-Day Trial', + displayText: '2-Day', credits: 500 } From 254bb152fa3aee914d18f9d7df9f019c56beeb08 Mon Sep 17 00:00:00 2001 From: Ashad Qureshi Date: Thu, 26 Jun 2025 12:26:26 +0500 Subject: [PATCH 3/3] Type fixed --- auto-analyst-frontend/app/checkout/page.tsx | 12 ++++++------ auto-analyst-frontend/app/pricing/page.tsx | 2 +- auto-analyst-frontend/lib/credits-config.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/auto-analyst-frontend/app/checkout/page.tsx b/auto-analyst-frontend/app/checkout/page.tsx index c923a3e5..bd024063 100644 --- a/auto-analyst-frontend/app/checkout/page.tsx +++ b/auto-analyst-frontend/app/checkout/page.tsx @@ -531,9 +531,9 @@ export default function CheckoutPage() { )}
-

- Billed {planDetails.cycle === 'year' ? 'yearly' : planDetails.cycle === 'day' ? 'daily' : 'monthly'} -

+

+ Billed {planDetails.cycle === 'year' ? 'yearly' : planDetails.cycle === 'day' ? 'daily' : 'monthly'} +

{billingCycle === 'yearly' && (

Credits reset monthly, but you're billed yearly @@ -581,9 +581,9 @@ export default function CheckoutPage() { )} {discountApplied && discountInfo && ( `You save $${ - discountInfo.type === 'percent' - ? ((planDetails.amount * discountInfo.value) / 100).toFixed(2) - : discountInfo.value.toFixed(2) + discountInfo.type === 'percent' + ? ((planDetails.amount * discountInfo.value) / 100).toFixed(2) + : discountInfo.value.toFixed(2) } with promo code!` )} {billingCycle === 'yearly' && planDetails.name === 'Standard' && discountApplied && discountInfo && ( diff --git a/auto-analyst-frontend/app/pricing/page.tsx b/auto-analyst-frontend/app/pricing/page.tsx index ece63920..1f6a29a2 100644 --- a/auto-analyst-frontend/app/pricing/page.tsx +++ b/auto-analyst-frontend/app/pricing/page.tsx @@ -32,7 +32,7 @@ const pricingTiers = [ 'Advanced data analysis', 'Access to all models', 'Priority support', - `${TrialUtils.getTrialDisplayText()} free trial`, + `${TrialUtils.getTrialDisplayText()}`, ], highlight: true, trial: true, diff --git a/auto-analyst-frontend/lib/credits-config.ts b/auto-analyst-frontend/lib/credits-config.ts index a3ca5bd1..1be559bc 100644 --- a/auto-analyst-frontend/lib/credits-config.ts +++ b/auto-analyst-frontend/lib/credits-config.ts @@ -51,7 +51,7 @@ export interface TrialConfig { export const TRIAL_CONFIG: TrialConfig = { duration: 2, unit: 'days', - displayText: '2-Day', + displayText: '2-Day Free Trial', credits: 500 }