AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(frontend): say "workflows" in the billing and usage-limit copy merged after the rename (#15590)
Nicholas Tindleb512f81154aa
diff --git a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsxindex 6830a8c77c..090f10b09e 100644--- a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/PaywallModal.tsx@@ -68,7 +68,7 @@ export function PaywallModal() {{recovery.paymentFailed ? (<PaymentRecoveryCardpayment={recovery.payment}- fallback="Update your payment method in billing to continue. Your chats, agents and results are saved."+ fallback="Update your payment method in billing to continue. Your chats, workflows and results are saved."/>) : (<>diff --git a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/__tests__/PaywallModal.payment.test.tsx b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/__tests__/PaywallModal.payment.test.tsxindex d3228aca04..be716c7222 100644--- a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/__tests__/PaywallModal.payment.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/__tests__/PaywallModal.payment.test.tsx@@ -128,7 +128,7 @@ test("sends a failed charge without a readable invoice to billing", async () =>expect(await screen.findByText(- "Update your payment method in billing to continue. Your chats, agents and results are saved.",+ "Update your payment method in billing to continue. Your chats, workflows and results are saved.",),).toBeDefined();expect(screen.queryByRole("button", { name: /^Start/ })).toBeNull();diff --git a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallHeader.tsx b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallHeader.tsxindex 91c39fc451..27f5678c4e 100644--- a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallHeader.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallHeader.tsx@@ -13,7 +13,7 @@ export function PaywallHeader() {Choose a plan to keep working</Text><Text variant="body" className="!text-zinc-500">- Your chats, agents and files are saved.+ Your chats, workflows and files are saved.</Text><Linkhref="/tour/chat?utm_source=platform_paywall"diff --git a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallPlanChoices.tsx b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallPlanChoices.tsxindex a6f0cf558b..222b75b516 100644--- a/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallPlanChoices.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/PaywallGate/components/PaywallPlanChoices.tsx@@ -89,7 +89,7 @@ export function PaywallPlanChoices({</div>)}<Text variant="small" tone="secondary" className="text-center text-xs">- Your conversations and agents stay saved. Cancel anytime.+ Your conversations and workflows stay saved. Cancel anytime.</Text></section>);@@ -115,7 +115,7 @@ function PlanChoice({const features = isPro? ["Experts for content, sales and research, with Otto coordinating",- "Agents that keep working in the background on a schedule",+ "Workflows that keep working in the background on a schedule",]: [plan.usagediff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/RateLimitResetDialog/__tests__/RateLimitResetDialog.test.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/RateLimitResetDialog/__tests__/RateLimitResetDialog.test.tsxindex 6201555b4d..e6b362968f 100644--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/RateLimitResetDialog/__tests__/RateLimitResetDialog.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/RateLimitResetDialog/__tests__/RateLimitResetDialog.test.tsx@@ -251,7 +251,7 @@ describe("Usage limit dialog", () => {);expect(screen.getByText(- "Pro was due to start on Oct 12, but the $50 charge didn’t go through. Pay now and Pro starts right away. Your chats, agents and results are saved.",+ "Pro was due to start on Oct 12, but the $50 charge didn’t go through. Pay now and Pro starts right away. Your chats, workflows and results are saved.",),).toBeDefined();for (const amount of screen.getAllByText(/\$50/)) {diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/__tests__/payment-recovery.test.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/__tests__/payment-recovery.test.tsxindex d2e685337a..77a3ef1825 100644--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/__tests__/payment-recovery.test.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/__tests__/payment-recovery.test.tsx@@ -53,7 +53,7 @@ it.each(["past_due", "unpaid"])(expect(screen.getByText("Your payment didn’t go through")).toBeDefined();expect(screen.getByText(- "Pro was due to start on Sep 17, but the $54.13 charge didn’t go through. Pay now and Pro starts right away. Your chats, agents and results are saved.",+ "Pro was due to start on Sep 17, but the $54.13 charge didn’t go through. Pay now and Pro starts right away. Your chats, workflows and results are saved.",),).toBeDefined();for (const amount of screen.getAllByText(/\$54\.13/)) {@@ -75,7 +75,7 @@ it("points to the payment method row when the open invoice can't be read", asyncrender(<SettingsBillingPage />);expect(await screen.findByText(- "Update your payment method below to continue. Your chats, agents and results are saved.",+ "Update your payment method below to continue. Your chats, workflows and results are saved.",),).toBeDefined();expect(screen.queryByRole("link", { name: /^Pay / })).toBeNull();diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/AutopilotUsageCard/AutopilotUsageCard.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/AutopilotUsageCard/AutopilotUsageCard.tsxindex 25f268a132..ad6116da3d 100644--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/AutopilotUsageCard/AutopilotUsageCard.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/AutopilotUsageCard/AutopilotUsageCard.tsx@@ -52,7 +52,7 @@ export function AutopilotUsageCard({ index = 0 }: Props) {<Text variant="small" tone="secondary" className="leading-6">{state.unlimited? "Your plan has no daily or weekly usage limits."- : "Choose a plan to continue working with your saved conversations and agents."}+ : "Choose a plan to continue working with your saved conversations and workflows."}</Text></div>) : (diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/BillingOffer.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/BillingOffer.tsxindex 76182f2f64..44d2f429ff 100644--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/BillingOffer.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/BillingOffer.tsx@@ -39,7 +39,7 @@ export function BillingOffer({ controller }: Props) {<SupportOffereyebrow="AutoGPT Pro"title="Pro is active"- description="Pro is active. Pick up where you left off with your conversations and agents."+ description="Pro is active. Pick up where you left off with your conversations and workflows."label="Back to your work"href="/copilot"ready@@ -79,7 +79,7 @@ export function BillingOffer({ controller }: Props) {const benefits = isTrial? ["A full daily and weekly allowance once payment goes through",- "Your chats, agents and files stay where they are",+ "Your chats, workflows and files stay where they are",]: target === "Max"? [@@ -90,7 +90,7 @@ export function BillingOffer({ controller }: Props) {]: ["Experts for content, sales and research, with Otto coordinating",- "Agents that keep working in the background on a schedule",+ "Workflows that keep working in the background on a schedule",];const quiet =isTrial &&diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/SubscriptionTab.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/SubscriptionTab.tsxindex fd9f237b5c..a07bddec38 100644--- a/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/SubscriptionTab.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/settings/billing/components/SubscriptionTab/SubscriptionTab.tsx@@ -35,7 +35,7 @@ export function SubscriptionTab({ isPlanCheckoutReturn = false }: Props) {{paymentFailed ? (<PaymentRecoveryCardpayment={payment}- fallback="Update your payment method below to continue. Your chats, agents and results are saved."+ fallback="Update your payment method below to continue. Your chats, workflows and results are saved."/>) : null}{showTrialCard ? <TrialCard /> : null}diff --git a/autogpt_platform/frontend/src/components/organisms/UsageExperience/PlanOffer.tsx b/autogpt_platform/frontend/src/components/organisms/UsageExperience/PlanOffer.tsxindex 491d65d4a1..c70821e9ff 100644--- a/autogpt_platform/frontend/src/components/organisms/UsageExperience/PlanOffer.tsx+++ b/autogpt_platform/frontend/src/components/organisms/UsageExperience/PlanOffer.tsx@@ -44,8 +44,8 @@ export function PlanOffer({? "A full daily and weekly allowance once payment goes through": "Experts for content, sales and research, with Otto coordinating",freshUsage- ? "Your chats, agents and files stay where they are"- : "Agents that keep working in the background on a schedule",+ ? "Your chats, workflows and files stay where they are"+ : "Workflows that keep working in the background on a schedule",]: [usageMultiplierdiff --git a/autogpt_platform/frontend/src/services/usageExperience/__tests__/presentation.test.ts b/autogpt_platform/frontend/src/services/usageExperience/__tests__/presentation.test.tsindex cabb9c377b..de21711594 100644--- a/autogpt_platform/frontend/src/services/usageExperience/__tests__/presentation.test.ts+++ b/autogpt_platform/frontend/src/services/usageExperience/__tests__/presentation.test.ts@@ -86,7 +86,7 @@ describe("usage messages", () => {expect(usagePresentation(experience)).toMatchObject({title: "You can continue today at 5:00 PM",noticeTitle: "You can continue today at 5:00 PM",- description: "Your chats, agents and results are saved.",+ description: "Your chats, workflows and results are saved.",});});it("states the amount and start date of a failed first trial charge", () => {@@ -109,7 +109,7 @@ describe("usage messages", () => {expect(usagePresentation(experience)).toMatchObject({title: "Your payment didn’t go through",description:- "Pro was due to start on Oct 12, but the $54.13 charge didn’t go through. Pay now and Pro starts right away. Your chats, agents and results are saved.",+ "Pro was due to start on Oct 12, but the $54.13 charge didn’t go through. Pay now and Pro starts right away. Your chats, workflows and results are saved.",});});it("keeps the billing route when the open invoice is unavailable", () => {@@ -119,7 +119,7 @@ describe("usage messages", () => {"NO_TIER",);expect(usagePresentation(experience).description).toBe(- "Review your billing details to continue. Your chats, agents and results are saved.",+ "Review your billing details to continue. Your chats, workflows and results are saved.",);});});diff --git a/autogpt_platform/frontend/src/services/usageExperience/payment.ts b/autogpt_platform/frontend/src/services/usageExperience/payment.tsindex da568eae50..0a3d0354fd 100644--- a/autogpt_platform/frontend/src/services/usageExperience/payment.ts+++ b/autogpt_platform/frontend/src/services/usageExperience/payment.ts@@ -14,6 +14,6 @@ export function formatPaymentDue(payment: UsageExperience["payment"]) {return {url: payment.payment_url,actionLabel: `Pay ${amount} now`,- description: `${plan} was due to start${date ? ` on ${date}` : ""}, but the ${amount} charge didn’t go through. Pay now and ${plan === "Your plan" ? "your plan" : plan} starts right away. Your chats, agents and results are saved.`,+ description: `${plan} was due to start${date ? ` on ${date}` : ""}, but the ${amount} charge didn’t go through. Pay now and ${plan === "Your plan" ? "your plan" : plan} starts right away. Your chats, workflows and results are saved.`,};}diff --git a/autogpt_platform/frontend/src/services/usageExperience/presentation.ts b/autogpt_platform/frontend/src/services/usageExperience/presentation.tsindex d18fbaaf04..72987b917f 100644--- a/autogpt_platform/frontend/src/services/usageExperience/presentation.ts+++ b/autogpt_platform/frontend/src/services/usageExperience/presentation.ts@@ -30,10 +30,10 @@ export function usagePresentation(noticeTitle: title,description: payment? (formatPaymentDue(experience.payment)?.description ??- "Review your billing details to continue. Your chats, agents and results are saved.")+ "Review your billing details to continue. Your chats, workflows and results are saved."): canceled- ? "Your trial won’t turn into a paid subscription. Your chats, agents and results are saved whenever you’re ready to choose a plan."- : "Your chats, agents and results are saved. Choose a plan to keep going.",+ ? "Your trial won’t turn into a paid subscription. Your chats, workflows and results are saved whenever you’re ready to choose a plan."+ : "Your chats, workflows and results are saved. Choose a plan to keep going.",supportLabel: "Contact support",secondary: "Back to my work",trialSpent: false,@@ -60,11 +60,11 @@ export function usagePresentation(description: trialSpent? experience.freshProUsage? formatTrialStartDescription(experience.trialEndsAt)- : "Choose your next plan to continue. Your chats, agents and results are saved."+ : "Choose your next plan to continue. Your chats, workflows and results are saved.": isTopTier- ? "Your chats, agents and results are saved."+ ? "Your chats, workflows and results are saved.": !experience.resetsAt- ? "Choose a plan to continue. Your chats, agents and results are saved."+ ? "Choose a plan to continue. Your chats, workflows and results are saved.": tier === "PRO"? `${resume}, or upgrade to Max for ${usageMultiplier ? `${usageMultiplier} times the usage` : "more usage"}.`: `${resume}, or ${tier === "BASIC" ? "upgrade to Pro" : "start Pro"}.`,