The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Rename AI Chat and AI Workflow usage to Chats and Agents (#26899)
Thomas des Francs8fed6f05bcf5
diff --git a/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx b/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdxindex d709cd11430..e699e646531 100644--- a/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx+++ b/packages/twenty-docs/user-guide/billing/capabilities/usage-limits.mdx@@ -11,7 +11,7 @@ Viewing and changing limits requires the **Workspace** settings permission.| Usage | Operations | Measured in | Scopes ||-------|------------|-------------|--------|-| **AI** | AI Chat, AI Workflow, Web Search | Credits or operations | Workspace, member, API key, app |+| **AI** | Chats, Agents, Web Search | Credits or operations | Workspace, member, API key, app || **Workflows** | Workflow Execution | Credits or runs | Workspace, app || **Logic functions** | Code Execution | Credits or runs | Workspace, app, logic function || **Email** | Email Send | Credits or emails | Workspace, member |diff --git a/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx b/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsxindex 8fc5417f48e..c39e3e13120 100644--- a/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx+++ b/packages/twenty-front/src/modules/log-console/components/__stories__/LogConsole.stories.tsx@@ -551,7 +551,7 @@ export const UsageOpen: Story = {await userEvent.click(await canvas.findByRole('tab', { name: 'Usage' }));await canvas.findByText('Jonas Weber');- await canvas.findByText('AI Chat');+ await canvas.findByText('Chats');await canvas.findByText('0.0055 credits');},};diff --git a/packages/twenty-front/src/modules/settings/billing/components/__stories__/SettingsBillingLimitUsageSelect.stories.tsx b/packages/twenty-front/src/modules/settings/billing/components/__stories__/SettingsBillingLimitUsageSelect.stories.tsxindex efc927e0438..881b6dee7c1 100644--- a/packages/twenty-front/src/modules/settings/billing/components/__stories__/SettingsBillingLimitUsageSelect.stories.tsx+++ b/packages/twenty-front/src/modules/settings/billing/components/__stories__/SettingsBillingLimitUsageSelect.stories.tsx@@ -74,7 +74,7 @@ export const NavigateAndSelect: Story = {await userEvent.click(within(popup).getByRole('button', { name: 'AI' }));expect(await within(popup).findByRole('button', {- name: 'AI Chat',+ name: 'Chats',pressed: true,}),).toBeVisible();diff --git a/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitOperationTypeIcons.ts b/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitOperationTypeIcons.tsindex 6176c874290..645a083c01b 100644--- a/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitOperationTypeIcons.ts+++ b/packages/twenty-front/src/modules/settings/billing/constants/UsageLimitOperationTypeIcons.ts@@ -4,12 +4,12 @@ import {IconCode,type IconComponent,IconFiles,+ IconLego,IconMail,- IconMessageCircle,+ IconMessage,IconPhone,IconPlayerPlay,IconRepeat,- IconRobot,IconSearch,IconSend,IconSettingsAutomation,@@ -23,8 +23,8 @@ export const USAGE_LIMIT_OPERATION_TYPE_ICONS: Record<IconComponent> = {[UsageOperationType.ALL]: IconPlayerPlay,- [UsageOperationType.AI_CHAT_TOKEN]: IconMessageCircle,- [UsageOperationType.AI_WORKFLOW_TOKEN]: IconRobot,+ [UsageOperationType.AI_CHAT_TOKEN]: IconMessage,+ [UsageOperationType.AI_WORKFLOW_TOKEN]: IconLego,[UsageOperationType.WORKFLOW_EXECUTION]: IconSettingsAutomation,[UsageOperationType.CODE_EXECUTION]: IconCode,[UsageOperationType.WEB_SEARCH]: IconSearch,diff --git a/packages/twenty-front/src/modules/settings/billing/utils/__tests__/filterUsageLimitRows.test.ts b/packages/twenty-front/src/modules/settings/billing/utils/__tests__/filterUsageLimitRows.test.tsindex 5e84f5203ae..ee411179397 100644--- a/packages/twenty-front/src/modules/settings/billing/utils/__tests__/filterUsageLimitRows.test.ts+++ b/packages/twenty-front/src/modules/settings/billing/utils/__tests__/filterUsageLimitRows.test.ts@@ -6,7 +6,7 @@ import { UsageResourceType } from '~/generated-metadata/graphql';const buildRow = (overrides: Partial<UsageLimitRow> = {}): UsageLimitRow => ({id: 'row-id',- name: 'AI · AI Chat',+ name: 'AI · Chats',NameIcon: IconCoins,spenderName: 'Tim Cook',spenderAvatarUrl: null,diff --git a/packages/twenty-front/src/modules/settings/usage/constants/UsageOperationTypeLabels.ts b/packages/twenty-front/src/modules/settings/usage/constants/UsageOperationTypeLabels.tsindex 45eb5b7d7a6..cb061fce90c 100644--- a/packages/twenty-front/src/modules/settings/usage/constants/UsageOperationTypeLabels.ts+++ b/packages/twenty-front/src/modules/settings/usage/constants/UsageOperationTypeLabels.ts@@ -10,8 +10,8 @@ export const USAGE_OPERATION_TYPE_LABELS: Record<MessageDescriptor> = {[UsageOperationType.ALL]: msg`All operations`,- [UsageOperationType.AI_CHAT_TOKEN]: msg`AI Chat`,- [UsageOperationType.AI_WORKFLOW_TOKEN]: msg`AI Workflow`,+ [UsageOperationType.AI_CHAT_TOKEN]: msg`Chats`,+ [UsageOperationType.AI_WORKFLOW_TOKEN]: msg`Agents`,[UsageOperationType.WORKFLOW_EXECUTION]: msg`Workflow Execution`,[UsageOperationType.CODE_EXECUTION]: msg`Code Execution`,[UsageOperationType.WEB_SEARCH]: msg`Web Search`,