The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Rename recording tabs to Transcript (#26318)
nitin6bb16210354e
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingTranscriptBody.tsx b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingTranscriptBody.tsxindex e94d45cf81d..0be91a82c12 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingTranscriptBody.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingTranscriptBody.tsx@@ -68,8 +68,8 @@ export const CallRecordingTranscriptBody = ({return (<CallRecordingWidgetEmptyStateDisplayanimatedPlaceholderType="noCallRecording"- title={t`No Call Recording`}- subTitle={t`No call recording exists for this calendar event yet.`}+ title={t`No Transcript`}+ subTitle={t`No transcript is available for this calendar event yet.`}/>);}diff --git a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingTranscriptBody.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingTranscriptBody.stories.tsxindex e0220f6483a..708be6653a5 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingTranscriptBody.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingTranscriptBody.stories.tsx@@ -85,7 +85,8 @@ const pageLayoutWithTranscriptWidget: PageLayout = {applicationId: '',universalIdentifier: '20202020-0000-0000-0000-000000000002',id: CALL_RECORDING_TAB_ID,- title: 'Call Recording',+ title: 'Transcript',+ icon: 'IconBlockquote',position: 0,pageLayoutId: PAGE_LAYOUT_TEST_INSTANCE_ID,widgets: [transcriptWidget],@@ -871,7 +872,7 @@ export const NoRecording: Story = {play: async ({ canvasElement }) => {const canvas = within(canvasElement);- await canvas.findByText('No Call Recording');+ await canvas.findByText('No Transcript');},};diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.tsindex 2a664203151..c2f543570a1 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-calendar-event-standard-metadata.spec.ts@@ -211,7 +211,7 @@ describe('CalendarEvent standard metadata build', () => {});});- it('configures the native call recording tab on the calendar event record page', () => {+ it('configures the native transcript tab on the calendar event record page', () => {const callRecordingTabUniversalIdentifier =STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.callRecording.universalIdentifier;@@ -219,6 +219,13 @@ describe('CalendarEvent standard metadata build', () => {STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.callRecording.widgets.transcript.universalIdentifier;+ expect(callRecordingTabUniversalIdentifier).toBe(+ '51243414-7c83-506d-a595-e5c50f85af17',+ );+ expect(transcriptWidgetUniversalIdentifier).toBe(+ 'e812ce13-5531-530a-a881-84a67315c9fe',+ );+const callRecordingTab =allFlatEntityMaps.flatPageLayoutTabMaps.byUniversalIdentifier[callRecordingTabUniversalIdentifier@@ -229,8 +236,8 @@ describe('CalendarEvent standard metadata build', () => {];expect(callRecordingTab).toMatchObject({- title: 'Call Recording',- icon: 'IconVideo',+ title: 'Transcript',+ icon: 'IconBlockquote',position: 40,layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,});diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-call-recording-standard-metadata.spec.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-call-recording-standard-metadata.spec.tsindex 05a0f77285b..5a9862601d8 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-call-recording-standard-metadata.spec.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/__tests__/compute-call-recording-standard-metadata.spec.ts@@ -179,7 +179,7 @@ describe('CallRecording standard metadata build', () => {});});- it('configures the native call recording tab on the call recording record page', () => {+ it('configures the native transcript tab on the call recording record page', () => {const callRecordingTabUniversalIdentifier =STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.callRecordingRecordPage.tabs.callRecording.universalIdentifier;@@ -187,13 +187,20 @@ describe('CallRecording standard metadata build', () => {STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.callRecordingRecordPage.tabs.callRecording.widgets.transcript.universalIdentifier;+ expect(callRecordingTabUniversalIdentifier).toBe(+ 'e8a4c6f5-3307-5747-acb6-019cf00aaaf2',+ );+ expect(transcriptWidgetUniversalIdentifier).toBe(+ '335b21cf-4da9-54dd-9663-e933a51915a8',+ );+expect(allFlatEntityMaps.flatPageLayoutTabMaps.byUniversalIdentifier[callRecordingTabUniversalIdentifier],).toMatchObject({- title: 'Call Recording',- icon: 'IconVideo',+ title: 'Transcript',+ icon: 'IconBlockquote',position: 40,layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,});diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.tsindex e6954e44013..7acd8b4c6c8 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-calendar-event-page-layout.config.ts@@ -1,3 +1,5 @@+import { msg } from '@lingui/core/macro';+import {STANDARD_OBJECTS,STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS,@@ -17,6 +19,7 @@ import {type StandardPageLayoutConfig,type StandardPageLayoutTabConfig,} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type';+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';const CALENDAR_EVENT_PAGE_TABS = {home: {@@ -92,9 +95,11 @@ const CALENDAR_EVENT_PAGE_TABS = {universalIdentifier:STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage.tabs.callRecording.universalIdentifier,- title: 'Call Recording',+ title: i18nLabel(+ msg({ message: 'Transcript', context: 'pageLayoutTab.title' }),+ ),position: 40,- icon: 'IconVideo',+ icon: 'IconBlockquote',layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,widgets: {transcript: {diff --git a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-call-recording-page-layout.config.ts b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-call-recording-page-layout.config.tsindex 951eb99360a..21f6e214f70 100644--- a/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-call-recording-page-layout.config.ts+++ b/packages/twenty-server/src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-call-recording-page-layout.config.ts@@ -1,3 +1,5 @@+import { msg } from '@lingui/core/macro';+import {STANDARD_OBJECTS,STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS,@@ -17,6 +19,7 @@ import {type StandardPageLayoutConfig,type StandardPageLayoutTabConfig,} from 'src/engine/workspace-manager/twenty-standard-application/utils/page-layout-config/standard-page-layout-config.type';+import { i18nLabel } from 'src/engine/workspace-manager/twenty-standard-application/utils/i18n-label.util';const CALL_RECORDING_PAGE_TABS = {home: {@@ -70,9 +73,11 @@ const CALL_RECORDING_PAGE_TABS = {universalIdentifier:STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.callRecordingRecordPage.tabs.callRecording.universalIdentifier,- title: 'Call Recording',+ title: i18nLabel(+ msg({ message: 'Transcript', context: 'pageLayoutTab.title' }),+ ),position: 40,- icon: 'IconVideo',+ icon: 'IconBlockquote',layoutMode: PageLayoutTabLayoutMode.VERTICAL_LIST,widgets: {transcript: {diff --git a/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts b/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.tsindex 50965df97a0..96b9dfe2e23 100644--- a/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts+++ b/packages/twenty-ui/src/icon/constants/TwentyIconDictionary.ts@@ -208,6 +208,16 @@ export const TWENTY_ICON_DICTIONARY = [useWhen: 'Representing a widget or the act of adding a widget.',avoidWhen: 'Representing a complete dashboard or generic application.',},+ {+ key: 'transcript',+ label: 'Transcript',+ category: 'layouts',+ iconName: 'IconBlockquote',+ tablerName: 'blockquote',+ keywords: ['transcript', 'transcription', 'spoken words'],+ useWhen: 'Representing a transcript tab or widget.',+ avoidWhen: 'Representing recording controls or audio and video playback.',+ },{key: 'record-page',label: 'Record Page',diff --git a/packages/twenty-ui/src/icon/icon-dictionary.md b/packages/twenty-ui/src/icon/icon-dictionary.mdindex a15db93869d..6dac0ecc736 100644--- a/packages/twenty-ui/src/icon/icon-dictionary.md+++ b/packages/twenty-ui/src/icon/icon-dictionary.md@@ -55,6 +55,7 @@ import { IconHierarchy } from 'twenty-ui/icon';| Layout | `IconAppWindow` | `app-window` | Representing layouts as a general concept. | Representing a specific layout page, widget, or dashboard. | layout, page structure, arrangement || Layout page | `IconPerspective` | `perspective` | Representing a configurable page inside a layout. | Representing the broader layout system or a record page. | layout page, page canvas, page configuration || Widget | `IconLayoutGridAdd` | `layout-grid-add` | Representing a widget or the act of adding a widget. | Representing a complete dashboard or generic application. | widget, add widget, dashboard block |+| Transcript | `IconBlockquote` | `blockquote` | Representing a transcript tab or widget. | Representing recording controls or audio and video playback. | transcript, transcription, spoken words || Record Page | `IconAddressBook` | `address-book` | Representing a page dedicated to one record. | Representing a generic layout page or object definition. | record page, record layout, record detail || Side Panel | `IconLayoutSidebarRight` | `layout-sidebar-right` | Representing a side panel that shows contextual content alongside a page. | Representing the main navigation sidebar, a modal, or an open or close panel action. | side panel, right panel, context panel, drawer || Command Menu Item | `IconCommand` | `command` | Representing an item or action in the command menu. | Representing a navigation item or keyboard shortcut alone. | command menu, command item, keyboard command |