Skip to content

The open alternative to Salesforce, designed for AI.

chore(billing): rename user credits to Personal AI usage (#29009)

Etiennef90fdedb4e1d
diff --git a/packages/twenty-front/src/modules/settings/billing/components/SettingsBillingUserCreditsSection.tsx b/packages/twenty-front/src/modules/settings/billing/components/SettingsBillingUserCreditsSection.tsx
index f4140596689..32249ffaa5d 100644
--- a/packages/twenty-front/src/modules/settings/billing/components/SettingsBillingUserCreditsSection.tsx
+++ b/packages/twenty-front/src/modules/settings/billing/components/SettingsBillingUserCreditsSection.tsx
@@ -63,14 +63,14 @@ export const SettingsBillingUserCreditsSection = () => {
return (
<Section.Root>
<Section.Header
- title={t`User credits`}
- description={t`Each member spends their own AI credits before workspace credits`}
+ title={t`Personal AI usage`}
+ description={t`Each member gets an AI allowance, used before workspace credits`}
/>
<Card.Root>
<SettingsOptionCardContentSwitch
Icon={IconCoins}
- title={t`Use workspace credits when a member runs out`}
- description={t`When off, a member's AI chats stop until their credits renew`}
+ title={t`Use workspace credits after a member reaches their limit`}
+ description={t`When off, a member's AI chats pause until their personal usage resets`}
checked={
billingCustomer.userCreditsFallback ===
UserCreditsFallback.WORKSPACE_CREDITS
diff --git a/packages/twenty-front/src/modules/settings/billing/components/__tests__/SettingsBillingUserCreditsSection.test.tsx b/packages/twenty-front/src/modules/settings/billing/components/__tests__/SettingsBillingUserCreditsSection.test.tsx
index 36c7c2d481a..f543254897c 100644
--- a/packages/twenty-front/src/modules/settings/billing/components/__tests__/SettingsBillingUserCreditsSection.test.tsx
+++ b/packages/twenty-front/src/modules/settings/billing/components/__tests__/SettingsBillingUserCreditsSection.test.tsx
@@ -101,7 +101,7 @@ describe('SettingsBillingUserCreditsSection', () => {
});
const toggle = await screen.findByRole('switch', {
- name: 'Use workspace credits when a member runs out',
+ name: 'Use workspace credits after a member reaches their limit',
});
expect(toggle).toBeChecked();
@@ -127,6 +127,6 @@ describe('SettingsBillingUserCreditsSection', () => {
userCreditsFallback: UserCreditsFallback.WORKSPACE_CREDITS,
});
- expect(screen.queryByText('User credits')).not.toBeInTheDocument();
+ expect(screen.queryByText('Personal AI usage')).not.toBeInTheDocument();
});
});
diff --git a/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitUnitLabels.ts b/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitUnitLabels.ts
index c0065565a9b..b34bbb4cca5 100644
--- a/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitUnitLabels.ts
+++ b/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitUnitLabels.ts
@@ -5,7 +5,10 @@ import { UsageUnit } from '~/generated-metadata/graphql';
export const USAGE_LIMIT_UNIT_LABELS: Record<UsageUnit, UsageLimitUnitLabel> = {
[UsageUnit.CREDIT]: { name: msg`Credits`, suffix: msg`credits` },
- [UsageUnit.USER_CREDIT]: { name: msg`User credits`, suffix: msg`credits` },
+ [UsageUnit.USER_CREDIT]: {
+ name: msg`Personal AI usage`,
+ suffix: msg`credits`,
+ },
[UsageUnit.TOKEN]: { name: msg`Tokens`, suffix: msg`tokens` },
[UsageUnit.INVOCATION]: { name: msg`Operations`, suffix: msg`operations` },
[UsageUnit.MINUTE]: { name: msg`Minutes`, suffix: msg`min` },