Skip to content

The open alternative to Salesforce, designed for AI.

Remove call-recorder recording and summary tab front components (#24770)

nitinc9e78bc17f97
diff --git a/packages/twenty-apps/public/call-recorder/css.d.ts b/packages/twenty-apps/public/call-recorder/css.d.ts
deleted file mode 100644
index 35306c6fc9a..00000000000
--- a/packages/twenty-apps/public/call-recorder/css.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-declare module '*.css';
diff --git a/packages/twenty-apps/public/call-recorder/package.json b/packages/twenty-apps/public/call-recorder/package.json
index 87fae727668..a0d4bb8ed83 100644
--- a/packages/twenty-apps/public/call-recorder/package.json
+++ b/packages/twenty-apps/public/call-recorder/package.json
@@ -27,8 +27,6 @@
"sharp": "^0.35.3"
},
"devDependencies": {
- "@emotion/react": "^11.14.0",
- "@emotion/styled": "^11.14.0",
"@types/node": "^24.7.2",
"@types/react": "^19.0.0",
"@typescript/native-preview": "^7.0.0-dev.20260116.1",
@@ -37,7 +35,6 @@
"react-dom": "^19.0.0",
"twenty-client-sdk": "2.31.0-alpha.1",
"twenty-sdk": "2.31.0-alpha.1",
- "twenty-ui": "^1.0.0-alpha.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^4.1.9"
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-record-page-layout-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-record-page-layout-universal-identifier.ts
deleted file mode 100644
index 2d50bcddc8f..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-record-page-layout-universal-identifier.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';
-
-// Shared core CalendarEvent record page layout that this app attaches tabs to,
-// resolved from the derived standard identifiers (re-owned in Twenty 2.31).
-export const CALENDAR_EVENT_RECORD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER =
- STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS.calendarEventRecordPage
- .universalIdentifier;
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-front-component-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-front-component-universal-identifier.ts
deleted file mode 100644
index 3fe07b41b80..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-front-component-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_RECORDING_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
- '445d742e-1c27-46ee-a9ab-4a1dde65adcf';
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-tab-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-tab-universal-identifier.ts
deleted file mode 100644
index c559deebca8..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-tab-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER =
- '10c2c22d-952b-42ea-81fe-2e93e7d30f86';
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-widget-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-widget-universal-identifier.ts
deleted file mode 100644
index 1588ffe3b72..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-recording-page-layout-widget-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER =
- '29c2315b-2ee6-41df-91b7-42f58f6c1a53';
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-front-component-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-front-component-universal-identifier.ts
deleted file mode 100644
index 2d086dabf66..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-front-component-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_SUMMARY_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
- '960d8d79-22f4-4892-9d66-ac94ac8a3f62';
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-tab-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-tab-universal-identifier.ts
deleted file mode 100644
index 910e375c02b..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-tab-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER =
- '8ee79a0f-e02d-4292-be9f-a9344f202f8c';
diff --git a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-widget-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-widget-universal-identifier.ts
deleted file mode 100644
index a501ee82411..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/constants/calendar-event-summary-page-layout-widget-universal-identifier.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER =
- 'd6652f36-5963-4daa-a3ba-ec55bfe2735c';
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-recording.front-component.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-recording.front-component.tsx
deleted file mode 100644
index d5eae720464..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-recording.front-component.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { defineFrontComponent } from 'twenty-sdk/define';
-
-import 'twenty-ui/style.css';
-
-import { CALENDAR_EVENT_RECORDING_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-recording-front-component-universal-identifier';
-import { CalendarEventRecording } from 'src/front-components/components/CalendarEventRecording';
-
-export default defineFrontComponent({
- universalIdentifier:
- CALENDAR_EVENT_RECORDING_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
- name: 'calendar-event-recording',
- description:
- 'Read-only recording viewer with synced transcript for the calendar event record page.',
- component: CalendarEventRecording,
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-summary.front-component.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-summary.front-component.tsx
deleted file mode 100644
index d3f7dc6955c..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/calendar-event-summary.front-component.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import { defineFrontComponent } from 'twenty-sdk/define';
-
-import { CALENDAR_EVENT_SUMMARY_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-summary-front-component-universal-identifier';
-import { CalendarEventSummary } from 'src/front-components/components/CalendarEventSummary';
-
-export default defineFrontComponent({
- universalIdentifier:
- CALENDAR_EVENT_SUMMARY_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
- name: 'calendar-event-summary',
- description:
- 'Read-only AI summary viewer for the calendar event record page.',
- component: CalendarEventSummary,
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecording.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecording.tsx
deleted file mode 100644
index 586a783700d..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecording.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { useSelectedRecordIds } from 'twenty-sdk/front-component';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { CalendarEventRecordingContent } from 'src/front-components/components/CalendarEventRecordingContent';
-
-const StyledCenteredState = styled.div`
- align-items: center;
- box-sizing: border-box;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- height: 100%;
- justify-content: center;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-export const CalendarEventRecording = () => {
- const selectedRecordIds = useSelectedRecordIds();
- const calendarEventId =
- selectedRecordIds.length === 1 ? selectedRecordIds[0] : undefined;
-
- if (isUndefined(calendarEventId)) {
- return (
- <StyledCenteredState>
- Open a calendar event to see its recording.
- </StyledCenteredState>
- );
- }
-
- return (
- <CalendarEventRecordingContent
- key={calendarEventId}
- calendarEventId={calendarEventId}
- />
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingBody.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingBody.tsx
deleted file mode 100644
index e537770fe9f..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingBody.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { RecordingSkeletonLoader } from 'src/front-components/components/RecordingSkeletonLoader';
-import { RecordingTranscript } from 'src/front-components/components/RecordingTranscript';
-import { RecordingVideoPlayer } from 'src/front-components/components/RecordingVideoPlayer';
-import { TranscriptErrorBox } from 'src/front-components/components/TranscriptErrorBox';
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-
-const StyledCenteredState = styled.div`
- align-items: center;
- box-sizing: border-box;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- justify-content: center;
- min-height: 240px;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-const StyledRecordingContainer = styled.div<{
- $hasVideo?: boolean;
-}>`
- display: grid;
- gap: ${() => themeCssVariables.spacing[2]};
- grid-template-rows: ${({ $hasVideo }) =>
- $hasVideo ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr)'};
- min-height: 0;
-`;
-
-type CalendarEventRecordingBodyProps = {
- transcript: unknown;
- videoFileUrl: string | undefined;
- isCalendarEventRecordingQueryLoading: boolean;
- errorMessage: string | undefined;
- currentTimeSeconds: number;
- calendarEventParticipants: CalendarEventRecordingParticipant[];
- onVideoTimeUpdate: (videoCurrentTimeSeconds: number) => void;
- onVideoRetry: () => void;
-};
-
-export const CalendarEventRecordingBody = ({
- transcript,
- videoFileUrl,
- isCalendarEventRecordingQueryLoading,
- errorMessage,
- currentTimeSeconds,
- calendarEventParticipants,
- onVideoTimeUpdate,
- onVideoRetry,
-}: CalendarEventRecordingBodyProps) => {
- const hasVideo = !isUndefined(videoFileUrl);
-
- if (!isUndefined(errorMessage)) {
- return (
- <TranscriptErrorBox
- title="Failed to load the recording"
- description={errorMessage}
- />
- );
- }
-
- if (isCalendarEventRecordingQueryLoading) {
- return <RecordingSkeletonLoader />;
- }
-
- if (isUndefined(transcript) && !hasVideo) {
- return (
- <StyledCenteredState>
- No recording for this calendar event yet.
- </StyledCenteredState>
- );
- }
-
- return (
- <StyledRecordingContainer $hasVideo={hasVideo}>
- {hasVideo && (
- <RecordingVideoPlayer
- src={videoFileUrl}
- onTimeUpdate={onVideoTimeUpdate}
- onRetry={onVideoRetry}
- />
- )}
- <RecordingTranscript
- transcript={transcript}
- currentTimeSeconds={currentTimeSeconds}
- calendarEventParticipants={calendarEventParticipants}
- />
- </StyledRecordingContainer>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingContent.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingContent.tsx
deleted file mode 100644
index 389123e5121..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventRecordingContent.tsx
+++ /dev/null
@@ -1,148 +0,0 @@
-import styled from '@emotion/styled';
-import { isNonEmptyArray } from '@sniptt/guards';
-import { useMemo, useState } from 'react';
-import { IconLink } from 'twenty-ui/icon';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { CalendarEventRecordingBody } from 'src/front-components/components/CalendarEventRecordingBody';
-import { CopyToClipboardButton } from 'src/front-components/components/CopyToClipboardButton';
-import { useCalendarEventParticipants } from 'src/front-components/hooks/use-calendar-event-participants';
-import { useCalendarEventRecording } from 'src/front-components/hooks/use-calendar-event-recording';
-import { buildTranscriptPlainText } from 'src/front-components/utils/build-transcript-plain-text.util';
-import { parseTranscriptEntries } from 'src/front-components/utils/parse-transcript-entries.util';
-
-const TRANSCRIPT_TIME_UPDATE_INTERVAL_SECONDS = 0.25;
-
-const StyledRecordingShell = styled.div`
- background: ${() => themeCssVariables.background.primary};
- border: 1px solid transparent;
- border-bottom: 1px solid transparent;
- border-radius: ${() => themeCssVariables.border.radius.md};
- box-sizing: border-box;
- font-family: ${() => themeCssVariables.font.family};
- padding: ${() => themeCssVariables.spacing[4]};
- position: relative;
- width: 100%;
-`;
-
-const StyledRecordingHeader = styled.div`
- align-items: center;
- box-sizing: border-box;
- display: flex;
- height: ${() => themeCssVariables.spacing[6]};
-`;
-
-const StyledRecordingTitle = styled.h2`
- color: ${() => themeCssVariables.font.color.primary};
- flex: 1;
- font-size: ${() => themeCssVariables.font.size.md};
- font-weight: ${() => themeCssVariables.font.weight.medium};
- margin: 0;
- overflow: hidden;
- padding-inline: ${() => themeCssVariables.spacing[1]};
- user-select: none;
-`;
-
-const StyledRecordingHeaderActions = styled.div`
- align-items: center;
- display: flex;
- gap: ${() => themeCssVariables.spacing[1]};
-`;
-
-const StyledRecordingBody = styled.div`
- box-sizing: border-box;
- margin-top: ${() => themeCssVariables.spacing[2]};
-`;
-
-const StyledRecordingContentFrame = styled.div`
- background-color: ${() => themeCssVariables.background.secondary};
- border: 1px solid ${() => themeCssVariables.border.color.medium};
- border-radius: ${() => themeCssVariables.border.radius.md};
- box-sizing: border-box;
- padding: ${() => themeCssVariables.spacing[2]};
-`;
-
-type CalendarEventRecordingContentProps = {
- calendarEventId: string;
-};
-
-export const CalendarEventRecordingContent = ({
- calendarEventId,
-}: CalendarEventRecordingContentProps) => {
- const [currentTimeSeconds, setCurrentTimeSeconds] = useState(0);
-
- const updateCurrentTimeSeconds = (videoCurrentTimeSeconds: number) => {
- const nextCurrentTimeSeconds =
- Math.floor(
- videoCurrentTimeSeconds / TRANSCRIPT_TIME_UPDATE_INTERVAL_SECONDS,
- ) * TRANSCRIPT_TIME_UPDATE_INTERVAL_SECONDS;
-
- setCurrentTimeSeconds((previousCurrentTimeSeconds) =>
- previousCurrentTimeSeconds === nextCurrentTimeSeconds
- ? previousCurrentTimeSeconds
- : nextCurrentTimeSeconds,
- );
- };
-
- const {
- transcript,
- videoFile,
- isCalendarEventRecordingQueryLoading,
- errorMessage,
- refetchCalendarEventRecording,
- } = useCalendarEventRecording(calendarEventId);
- const { calendarEventParticipants } =
- useCalendarEventParticipants(calendarEventId);
-
- const handleVideoRetry = () => {
- setCurrentTimeSeconds(0);
- refetchCalendarEventRecording();
- };
-
- const videoFileUrl = videoFile?.url ?? undefined;
-
- const transcriptPlainText = useMemo(() => {
- const entries = parseTranscriptEntries(transcript);
-
- if (!isNonEmptyArray(entries)) {
- return undefined;
- }
-
- return buildTranscriptPlainText({ entries, calendarEventParticipants });
- }, [transcript, calendarEventParticipants]);
-
- return (
- <StyledRecordingShell>
- <StyledRecordingHeader>
- <StyledRecordingTitle>Recording and Transcript</StyledRecordingTitle>
- <StyledRecordingHeaderActions>
- <CopyToClipboardButton
- textToCopy={transcriptPlainText}
- ariaLabel="Copy transcript"
- />
- <CopyToClipboardButton
- textToCopy={videoFileUrl}
- ariaLabel="Copy video download link"
- Icon={IconLink}
- />
- </StyledRecordingHeaderActions>
- </StyledRecordingHeader>
- <StyledRecordingBody>
- <StyledRecordingContentFrame>
- <CalendarEventRecordingBody
- transcript={transcript}
- videoFileUrl={videoFileUrl}
- isCalendarEventRecordingQueryLoading={
- isCalendarEventRecordingQueryLoading
- }
- errorMessage={errorMessage}
- currentTimeSeconds={currentTimeSeconds}
- calendarEventParticipants={calendarEventParticipants}
- onVideoTimeUpdate={updateCurrentTimeSeconds}
- onVideoRetry={handleVideoRetry}
- />
- </StyledRecordingContentFrame>
- </StyledRecordingBody>
- </StyledRecordingShell>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummary.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummary.tsx
deleted file mode 100644
index ffeed13539d..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummary.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { useSelectedRecordIds } from 'twenty-sdk/front-component';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { CalendarEventSummaryContent } from 'src/front-components/components/CalendarEventSummaryContent';
-
-const StyledCenteredState = styled.div`
- align-items: center;
- box-sizing: border-box;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- height: 100%;
- justify-content: center;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-export const CalendarEventSummary = () => {
- const selectedRecordIds = useSelectedRecordIds();
- const calendarEventId =
- selectedRecordIds.length === 1 ? selectedRecordIds[0] : undefined;
-
- if (isUndefined(calendarEventId)) {
- return (
- <StyledCenteredState>
- Open a calendar event to see its summary.
- </StyledCenteredState>
- );
- }
-
- return (
- <CalendarEventSummaryContent
- key={calendarEventId}
- calendarEventId={calendarEventId}
- />
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryBody.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryBody.tsx
deleted file mode 100644
index 4cd44178629..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryBody.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { SummaryMarkdown } from 'src/front-components/components/SummaryMarkdown';
-import { TranscriptErrorBox } from 'src/front-components/components/TranscriptErrorBox';
-
-const StyledCenteredState = styled.div`
- align-items: center;
- box-sizing: border-box;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- justify-content: center;
- min-height: 240px;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-type CalendarEventSummaryBodyProps = {
- summaryMarkdown: string | undefined;
- isCalendarEventSummaryQueryLoading: boolean;
- errorMessage: string | undefined;
-};
-
-export const CalendarEventSummaryBody = ({
- summaryMarkdown,
- isCalendarEventSummaryQueryLoading,
- errorMessage,
-}: CalendarEventSummaryBodyProps) => {
- if (!isUndefined(errorMessage)) {
- return (
- <TranscriptErrorBox
- title="Failed to load the summary"
- description={errorMessage}
- />
- );
- }
-
- if (isCalendarEventSummaryQueryLoading) {
- return <StyledCenteredState>Loading summary…</StyledCenteredState>;
- }
-
- if (isUndefined(summaryMarkdown)) {
- return (
- <StyledCenteredState>
- No summary for this calendar event yet.
- </StyledCenteredState>
- );
- }
-
- return <SummaryMarkdown markdown={summaryMarkdown} />;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryContent.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryContent.tsx
deleted file mode 100644
index a6d8877f10d..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CalendarEventSummaryContent.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-import styled from '@emotion/styled';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { CalendarEventSummaryBody } from 'src/front-components/components/CalendarEventSummaryBody';
-import { CopyToClipboardButton } from 'src/front-components/components/CopyToClipboardButton';
-import { useCalendarEventSummary } from 'src/front-components/hooks/use-calendar-event-summary';
-
-const StyledSummaryShell = styled.div`
- background: ${() => themeCssVariables.background.primary};
- border: 1px solid transparent;
- border-radius: ${() => themeCssVariables.border.radius.md};
- box-sizing: border-box;
- font-family: ${() => themeCssVariables.font.family};
- padding: ${() => themeCssVariables.spacing[4]};
- position: relative;
- width: 100%;
-`;
-
-const StyledSummaryHeader = styled.div`
- align-items: center;
- box-sizing: border-box;
- display: flex;
- height: ${() => themeCssVariables.spacing[6]};
-`;
-
-const StyledSummaryTitle = styled.h2`
- color: ${() => themeCssVariables.font.color.primary};
- flex: 1;
- font-size: ${() => themeCssVariables.font.size.md};
- font-weight: ${() => themeCssVariables.font.weight.medium};
- margin: 0;
- overflow: hidden;
- padding-inline: ${() => themeCssVariables.spacing[1]};
- user-select: none;
-`;
-
-const StyledSummaryBody = styled.div`
- box-sizing: border-box;
- margin-top: ${() => themeCssVariables.spacing[2]};
-`;
-
-const StyledSummaryContentFrame = styled.div`
- background-color: ${() => themeCssVariables.background.secondary};
- border: 1px solid ${() => themeCssVariables.border.color.medium};
- border-radius: ${() => themeCssVariables.border.radius.md};
- box-sizing: border-box;
- padding: ${() => themeCssVariables.spacing[3]};
-`;
-
-type CalendarEventSummaryContentProps = {
- calendarEventId: string;
-};
-
-export const CalendarEventSummaryContent = ({
- calendarEventId,
-}: CalendarEventSummaryContentProps) => {
- const { summaryMarkdown, isCalendarEventSummaryQueryLoading, errorMessage } =
- useCalendarEventSummary(calendarEventId);
-
- return (
- <StyledSummaryShell>
- <StyledSummaryHeader>
- <StyledSummaryTitle>Summary</StyledSummaryTitle>
- <CopyToClipboardButton
- textToCopy={summaryMarkdown}
- ariaLabel="Copy summary"
- />
- </StyledSummaryHeader>
- <StyledSummaryBody>
- <StyledSummaryContentFrame>
- <CalendarEventSummaryBody
- summaryMarkdown={summaryMarkdown}
- isCalendarEventSummaryQueryLoading={
- isCalendarEventSummaryQueryLoading
- }
- errorMessage={errorMessage}
- />
- </StyledSummaryContentFrame>
- </StyledSummaryBody>
- </StyledSummaryShell>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CopyToClipboardButton.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CopyToClipboardButton.tsx
deleted file mode 100644
index c10d2c1343a..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/CopyToClipboardButton.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import styled from '@emotion/styled';
-import { copyToClipboard } from 'twenty-sdk/front-component';
-import { IconCopy, type IconComponent } from 'twenty-ui/icon';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-const COPY_ICON_SIZE = 16;
-
-const StyledButton = styled.button`
- align-items: center;
- background: transparent;
- border: 1px solid ${() => themeCssVariables.border.color.medium};
- border-radius: ${() => themeCssVariables.border.radius.sm};
- color: ${() => themeCssVariables.font.color.secondary};
- cursor: pointer;
- display: flex;
- height: ${() => themeCssVariables.spacing[6]};
- justify-content: center;
- padding: 0 ${() => themeCssVariables.spacing[1]};
- transition: background 0.1s ease;
- width: ${() => themeCssVariables.spacing[6]};
-
- &:hover:not(:disabled) {
- background: ${() => themeCssVariables.background.tertiary};
- }
-
- &:disabled {
- color: ${() => themeCssVariables.font.color.light};
- cursor: not-allowed;
- }
-`;
-
-type CopyToClipboardButtonProps = {
- textToCopy: string | undefined;
- ariaLabel: string;
- Icon?: IconComponent;
-};
-
-export const CopyToClipboardButton = ({
- textToCopy,
- ariaLabel,
- Icon = IconCopy,
-}: CopyToClipboardButtonProps) => {
- const isDisabled = textToCopy === undefined || textToCopy.length === 0;
-
- const handleClick = () => {
- if (isDisabled) {
- return;
- }
-
- // The host performs the clipboard write and owns the success/error
- // snackbar; the front-component sandbox has no direct navigator.clipboard
- // access, and the host does not report back whether the copy succeeded.
- void copyToClipboard(textToCopy);
- };
-
- return (
- <StyledButton
- type="button"
- aria-label={ariaLabel}
- title={ariaLabel}
- disabled={isDisabled}
- onClick={handleClick}
- >
- <Icon size={COPY_ICON_SIZE} />
- </StyledButton>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingSkeletonLoader.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingSkeletonLoader.tsx
deleted file mode 100644
index 7984851dd87..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingSkeletonLoader.tsx
+++ /dev/null
@@ -1,98 +0,0 @@
-import { keyframes } from '@emotion/react';
-import styled from '@emotion/styled';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-const SKELETON_ENTRY_COUNT = 3;
-const SKELETON_BAR_HEIGHT = '16px';
-const SKELETON_BORDER_RADIUS = '4px';
-
-const skeletonHighlightSweep = keyframes`
- 100% {
- transform: translateX(100%);
- }
-`;
-
-const StyledSkeletonBar = styled.div`
- background-color: ${() => themeCssVariables.background.tertiary};
- border-radius: ${SKELETON_BORDER_RADIUS};
- height: ${SKELETON_BAR_HEIGHT};
- overflow: hidden;
- position: relative;
-
- &::after {
- animation: ${skeletonHighlightSweep} 1.5s ease-in-out infinite;
- background-image: linear-gradient(
- 90deg,
- transparent,
- ${() => themeCssVariables.background.transparent.lighter},
- transparent
- );
- content: '';
- inset: 0;
- position: absolute;
- transform: translateX(-100%);
- }
-`;
-
-const StyledSkeletonAvatar = styled(StyledSkeletonBar)`
- border-radius: 50px;
- flex-shrink: 0;
- width: ${SKELETON_BAR_HEIGHT};
-`;
-
-const StyledSkeletonSpeakerBar = styled(StyledSkeletonBar)`
- width: 96px;
-`;
-
-const StyledSkeletonTextBar = styled(StyledSkeletonBar)<{ $width: string }>`
- width: ${({ $width }) => $width};
-`;
-
-const StyledSkeletonEntry = styled.div`
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[2]};
- padding: ${() => themeCssVariables.spacing[2]};
- width: 100%;
-`;
-
-const StyledSkeletonEntryHeader = styled.div`
- align-items: center;
- display: flex;
- gap: ${() => themeCssVariables.spacing[2]};
- min-height: ${() => themeCssVariables.spacing[6]};
-`;
-
-const StyledSkeletonContainer = styled.div`
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[2]};
- min-height: 240px;
- width: 100%;
-`;
-
-export const RecordingSkeletonLoader = () => {
- const skeletonEntries = Array.from(
- { length: SKELETON_ENTRY_COUNT },
- (_, skeletonEntryIndex) => skeletonEntryIndex,
- );
-
- return (
- <StyledSkeletonContainer aria-hidden="true">
- {skeletonEntries.map((skeletonEntryIndex) => (
- <StyledSkeletonEntry key={skeletonEntryIndex}>
- <StyledSkeletonEntryHeader>
- <StyledSkeletonAvatar />
- <StyledSkeletonSpeakerBar />
- </StyledSkeletonEntryHeader>
- <StyledSkeletonTextBar $width="100%" />
- <StyledSkeletonTextBar
- $width={skeletonEntryIndex % 2 === 0 ? '75%' : '55%'}
- />
- </StyledSkeletonEntry>
- ))}
- </StyledSkeletonContainer>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingTranscript.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingTranscript.tsx
deleted file mode 100644
index 0cd53258e9a..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingTranscript.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { useMemo } from 'react';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { TranscriptEntryList } from 'src/front-components/components/TranscriptEntryList';
-import { TranscriptErrorBox } from 'src/front-components/components/TranscriptErrorBox';
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { parseTranscriptEntries } from 'src/front-components/utils/parse-transcript-entries.util';
-import { parseTranscriptMarker } from 'src/logic-functions/domain/parse-transcript-marker.util';
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-const StyledTranscriptCenteredState = styled.div`
- align-items: center;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- flex: 1;
- font-size: ${() => themeCssVariables.font.size.sm};
- justify-content: center;
-`;
-
-type RecordingTranscriptProps = {
- transcript: unknown;
- currentTimeSeconds: number;
- calendarEventParticipants: CalendarEventRecordingParticipant[];
-};
-
-export const RecordingTranscript = ({
- transcript,
- currentTimeSeconds,
- calendarEventParticipants,
-}: RecordingTranscriptProps) => {
- const marker = useMemo(() => parseTranscriptMarker(transcript), [transcript]);
- const entries = useMemo(
- () => parseTranscriptEntries(transcript),
- [transcript],
- );
-
- if (isUndefined(transcript)) {
- return (
- <StyledTranscriptCenteredState>
- No transcript for this calendar event yet.
- </StyledTranscriptCenteredState>
- );
- }
-
- if (marker?.status === 'PENDING') {
- return (
- <StyledTranscriptCenteredState>
- The transcript is being generated. Check back in a few minutes.
- </StyledTranscriptCenteredState>
- );
- }
-
- if (marker?.status === 'FAILED') {
- return (
- <TranscriptErrorBox
- title="Transcription failed"
- description={
- isNonEmptyString(marker.subCode)
- ? `The transcription provider could not process this recording (${marker.subCode}).`
- : 'The transcription provider could not process this recording.'
- }
- />
- );
- }
-
- if (isUndefined(entries)) {
- return (
- <TranscriptErrorBox
- title="Unrecognized transcript format"
- description="The stored transcript does not match the expected diarized format."
- />
- );
- }
-
- if (entries.length === 0) {
- return (
- <StyledTranscriptCenteredState>
- The transcript is empty.
- </StyledTranscriptCenteredState>
- );
- }
-
- return (
- <TranscriptEntryList
- entries={entries}
- currentTimeSeconds={currentTimeSeconds}
- calendarEventParticipants={calendarEventParticipants}
- />
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingVideoPlayer.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingVideoPlayer.tsx
deleted file mode 100644
index 057217f8d31..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecordingVideoPlayer.tsx
+++ /dev/null
@@ -1,170 +0,0 @@
-import styled from '@emotion/styled';
-import { useState, type SyntheticEvent } from 'react';
-import { CircularProgressBar } from 'twenty-ui/feedback';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-const DEFAULT_VIDEO_ASPECT_RATIO = '16 / 9';
-
-// Forces the browser to decode the first frame under preload="metadata"
-// (Safari otherwise paints nothing until play). Fragments stay client-side,
-// so the signed file URL is unaffected.
-const FIRST_FRAME_SEEK_FRAGMENT = '#t=0.001';
-
-type RecordingVideoLoadState = 'awaiting-first-frame' | 'ready' | 'errored';
-
-const StyledVideoViewport = styled.div`
- aspect-ratio: ${DEFAULT_VIDEO_ASPECT_RATIO};
- background: ${() => themeCssVariables.background.primary};
- border-radius: ${() => themeCssVariables.border.radius.sm};
- overflow: hidden;
- position: relative;
- width: 100%;
-`;
-
-const StyledVideo = styled.video<{ $isFirstFrameReady: boolean }>`
- accent-color: ${() => themeCssVariables.accent.accent9};
- background: ${() => themeCssVariables.background.primary};
- color-scheme: light dark;
- display: block;
- height: 100%;
- object-fit: contain;
- opacity: ${({ $isFirstFrameReady }) => ($isFirstFrameReady ? 1 : 0)};
- transition: opacity 200ms ease;
- width: 100%;
-
- @media (prefers-reduced-motion: reduce) {
- transition: none;
- }
-`;
-
-const StyledBufferingOverlay = styled.div<{ $isVisible: boolean }>`
- align-items: center;
- color: ${() => themeCssVariables.font.color.tertiary};
- display: flex;
- inset: 0;
- justify-content: center;
- opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)};
- pointer-events: none;
- position: absolute;
- transition: opacity 150ms ease
- ${({ $isVisible }) => ($isVisible ? '300ms' : '0ms')};
-
- @media (prefers-reduced-motion: reduce) {
- transition-duration: 0ms;
- }
-`;
-
-const StyledPlaybackErrorState = styled.div`
- align-items: center;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[2]};
- height: 100%;
- justify-content: center;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-const StyledPlaybackErrorTitle = styled.span`
- color: ${() => themeCssVariables.font.color.primary};
- font-size: ${() => themeCssVariables.font.size.sm};
- font-weight: ${() => themeCssVariables.font.weight.medium};
-`;
-
-const StyledPlaybackErrorDescription = styled.span`
- color: ${() => themeCssVariables.font.color.secondary};
- font-size: ${() => themeCssVariables.font.size.xs};
-`;
-
-const StyledRetryButton = styled.button`
- background: ${() => themeCssVariables.background.secondary};
- border: 1px solid ${() => themeCssVariables.border.color.medium};
- border-radius: ${() => themeCssVariables.border.radius.sm};
- color: ${() => themeCssVariables.font.color.secondary};
- cursor: pointer;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- font-weight: ${() => themeCssVariables.font.weight.medium};
- margin-top: ${() => themeCssVariables.spacing[1]};
- padding: ${() => themeCssVariables.spacing[1]}
- ${() => themeCssVariables.spacing[3]};
-
- &:hover {
- background: ${() => themeCssVariables.background.tertiary};
- }
-`;
-
-type RecordingVideoPlayerProps = {
- src: string;
- onTimeUpdate: (currentTimeSeconds: number) => void;
- onRetry: () => void;
-};
-
-export const RecordingVideoPlayer = ({
- src,
- onTimeUpdate,
- onRetry,
-}: RecordingVideoPlayerProps) => {
- const [loadState, setLoadState] = useState<RecordingVideoLoadState>(
- 'awaiting-first-frame',
- );
- const [isPlaybackStalled, setIsPlaybackStalled] = useState(false);
-
- const markFirstFrameReady = () => {
- setLoadState((previousLoadState) =>
- previousLoadState === 'awaiting-first-frame'
- ? 'ready'
- : previousLoadState,
- );
- setIsPlaybackStalled(false);
- };
-
- const handleTimeUpdate = (event: SyntheticEvent<HTMLVideoElement>) => {
- markFirstFrameReady();
- onTimeUpdate(event.currentTarget.currentTime);
- };
-
- const handleWaiting = () => setIsPlaybackStalled(true);
-
- const handlePause = () => setIsPlaybackStalled(false);
-
- const handleError = () => setLoadState('errored');
-
- if (loadState === 'errored') {
- return (
- <StyledVideoViewport>
- <StyledPlaybackErrorState>
- <StyledPlaybackErrorTitle>Playback failed</StyledPlaybackErrorTitle>
- <StyledPlaybackErrorDescription>
- The recording could not be loaded.
- </StyledPlaybackErrorDescription>
- <StyledRetryButton onClick={onRetry}>Retry</StyledRetryButton>
- </StyledPlaybackErrorState>
- </StyledVideoViewport>
- );
- }
-
- return (
- <StyledVideoViewport>
- <StyledVideo
- $isFirstFrameReady={loadState === 'ready'}
- controls
- playsInline
- preload="metadata"
- src={`${src}${FIRST_FRAME_SEEK_FRAGMENT}`}
- onCanPlay={markFirstFrameReady}
- onError={handleError}
- onLoadedData={markFirstFrameReady}
- onPause={handlePause}
- onSeeked={markFirstFrameReady}
- onTimeUpdate={handleTimeUpdate}
- onWaiting={handleWaiting}
- />
- <StyledBufferingOverlay
- $isVisible={loadState === 'awaiting-first-frame' || isPlaybackStalled}
- >
- <CircularProgressBar barWidth={3} size={24} />
- </StyledBufferingOverlay>
- </StyledVideoViewport>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryInlineSegments.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryInlineSegments.tsx
deleted file mode 100644
index 4008facb2c8..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryInlineSegments.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import styled from '@emotion/styled';
-import { Fragment } from 'react';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { type SummaryInlineSegment } from 'src/front-components/types/summary-inline-segment.type';
-
-const StyledBold = styled.strong`
- color: ${() => themeCssVariables.font.color.primary};
- font-weight: ${() => themeCssVariables.font.weight.medium};
-`;
-
-type SummaryInlineSegmentsProps = {
- segments: SummaryInlineSegment[];
-};
-
-export const SummaryInlineSegments = ({
- segments,
-}: SummaryInlineSegmentsProps) => (
- <>
- {segments.map((segment, index) =>
- segment.isBold ? (
- <StyledBold key={index}>{segment.text}</StyledBold>
- ) : (
- <Fragment key={index}>{segment.text}</Fragment>
- ),
- )}
- </>
-);
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryMarkdown.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryMarkdown.tsx
deleted file mode 100644
index a663b22b313..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/SummaryMarkdown.tsx
+++ /dev/null
@@ -1,87 +0,0 @@
-import styled from '@emotion/styled';
-import { useMemo } from 'react';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { SummaryInlineSegments } from 'src/front-components/components/SummaryInlineSegments';
-import { parseSummaryMarkdownBlocks } from 'src/front-components/utils/parse-summary-markdown-blocks.util';
-
-const TOP_LEVEL_HEADING_MAX = 2;
-
-const StyledSummary = styled.div`
- color: ${() => themeCssVariables.font.color.secondary};
- display: flex;
- flex-direction: column;
- font-family: ${() => themeCssVariables.font.family};
- font-size: ${() => themeCssVariables.font.size.sm};
- gap: ${() => themeCssVariables.spacing[2]};
- line-height: 1.5;
-`;
-
-const StyledHeading = styled.h3<{ $isTopLevel: boolean }>`
- color: ${() => themeCssVariables.font.color.primary};
- font-size: ${({ $isTopLevel }) =>
- $isTopLevel
- ? themeCssVariables.font.size.md
- : themeCssVariables.font.size.sm};
- font-weight: ${() => themeCssVariables.font.weight.medium};
- margin: 0;
- margin-top: ${() => themeCssVariables.spacing[1]};
-`;
-
-const StyledParagraph = styled.p`
- margin: 0;
-`;
-
-const StyledList = styled.ul`
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[1]};
- margin: 0;
- padding-left: ${() => themeCssVariables.spacing[3]};
-`;
-
-type SummaryMarkdownProps = {
- markdown: string;
-};
-
-export const SummaryMarkdown = ({ markdown }: SummaryMarkdownProps) => {
- const blocks = useMemo(
- () => parseSummaryMarkdownBlocks(markdown),
- [markdown],
- );
-
- return (
- <StyledSummary>
- {blocks.map((block, index) => {
- if (block.type === 'heading') {
- return (
- <StyledHeading
- key={index}
- $isTopLevel={block.level <= TOP_LEVEL_HEADING_MAX}
- >
- <SummaryInlineSegments segments={block.segments} />
- </StyledHeading>
- );
- }
-
- if (block.type === 'list') {
- return (
- <StyledList key={index}>
- {block.items.map((item, itemIndex) => (
- <li key={itemIndex}>
- <SummaryInlineSegments segments={item} />
- </li>
- ))}
- </StyledList>
- );
- }
-
- return (
- <StyledParagraph key={index}>
- <SummaryInlineSegments segments={block.segments} />
- </StyledParagraph>
- );
- })}
- </StyledSummary>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryList.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryList.tsx
deleted file mode 100644
index fcab6228a03..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryList.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-import styled from '@emotion/styled';
-import { useMemo } from 'react';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { TranscriptEntryListItem } from 'src/front-components/components/TranscriptEntryListItem';
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { type TranscriptEntry } from 'src/front-components/types/transcript-entry.type';
-import { buildCalendarEventParticipantBySpeakerName } from 'src/front-components/utils/build-calendar-event-participant-by-speaker-name.util';
-import { findActiveTranscriptEntryIndex } from 'src/front-components/utils/find-active-transcript-entry-index.util';
-import { getCalendarEventParticipantForSpeakerName } from 'src/front-components/utils/get-calendar-event-participant-for-speaker-name.util';
-
-const StyledTranscriptContainer = styled.div`
- display: flex;
- flex: 1;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[2]};
- min-height: 0;
-`;
-
-type TranscriptEntryListProps = {
- entries: TranscriptEntry[];
- currentTimeSeconds: number;
- calendarEventParticipants: CalendarEventRecordingParticipant[];
-};
-
-export const TranscriptEntryList = ({
- entries,
- currentTimeSeconds,
- calendarEventParticipants,
-}: TranscriptEntryListProps) => {
- const activeEntryIndex = findActiveTranscriptEntryIndex(
- entries,
- currentTimeSeconds,
- );
- const calendarEventParticipantBySpeakerName = useMemo(
- () => buildCalendarEventParticipantBySpeakerName(calendarEventParticipants),
- [calendarEventParticipants],
- );
-
- return (
- <StyledTranscriptContainer>
- {entries.map((entry, entryIndex) => {
- const calendarEventParticipant =
- getCalendarEventParticipantForSpeakerName({
- speakerName: entry.speakerName,
- calendarEventParticipantBySpeakerName,
- });
-
- return (
- <TranscriptEntryListItem
- key={entryIndex}
- entry={entry}
- isActive={entryIndex === activeEntryIndex}
- currentTimeSeconds={currentTimeSeconds}
- calendarEventParticipant={calendarEventParticipant}
- />
- );
- })}
- </StyledTranscriptContainer>
- );
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryListItem.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryListItem.tsx
deleted file mode 100644
index 50367f3574e..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptEntryListItem.tsx
+++ /dev/null
@@ -1,124 +0,0 @@
-import styled from '@emotion/styled';
-import { isUndefined } from '@sniptt/guards';
-import { Avatar, Chip, ChipVariant } from 'twenty-ui/data-display';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import {
- type TranscriptEntry,
- type TranscriptWord,
-} from 'src/front-components/types/transcript-entry.type';
-import { formatSecondsAsClockTimestamp } from 'src/logic-functions/utils/format-seconds-as-clock-timestamp.util';
-
-const StyledEntry = styled.div<{ $isActive: boolean }>`
- align-items: flex-start;
- background: ${({ $isActive }) =>
- $isActive ? themeCssVariables.background.transparent.blue : 'transparent'};
- border-radius: ${() => themeCssVariables.border.radius.sm};
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[2]};
- justify-content: center;
- padding: ${() => themeCssVariables.spacing[2]};
- width: 100%;
-`;
-
-const StyledEntryHeader = styled.div`
- align-items: center;
- align-self: stretch;
- display: flex;
- gap: ${() => themeCssVariables.spacing[2]};
- min-height: ${() => themeCssVariables.spacing[6]};
- min-width: 0;
-`;
-
-const StyledTimestamp = styled.span`
- color: ${() => themeCssVariables.font.color.tertiary};
- font-size: ${() => themeCssVariables.font.size.xs};
- line-height: 1.4;
-`;
-
-const StyledEntryText = styled.p`
- align-self: stretch;
- color: ${() => themeCssVariables.font.color.secondary};
- font-size: ${() => themeCssVariables.font.size.sm};
- line-height: 1.4;
- margin: 0;
-`;
-
-const StyledWord = styled.span<{ $isSpoken: boolean }>`
- color: ${({ $isSpoken }) =>
- $isSpoken
- ? themeCssVariables.font.color.primary
- : themeCssVariables.font.color.secondary};
- line-height: 1.4;
- transition: color 0.15s ease;
-`;
-
-type TranscriptEntryListItemProps = {
- entry: TranscriptEntry;
- isActive: boolean;
- currentTimeSeconds: number;
- calendarEventParticipant: CalendarEventRecordingParticipant | undefined;
-};
-
-export const TranscriptEntryListItem = ({
- entry,
- isActive,
- currentTimeSeconds,
- calendarEventParticipant,
-}: TranscriptEntryListItemProps) => {
- const speakerDisplayName =
- calendarEventParticipant?.displayName ?? entry.speakerName;
-
- return (
- <StyledEntry $isActive={isActive}>
- <StyledEntryHeader>
- <Chip
- clickable={false}
- isBold
- label={speakerDisplayName}
- variant={ChipVariant.Transparent}
- leftComponent={
- <Avatar
- avatarUrl={calendarEventParticipant?.avatarUrl}
- placeholder={speakerDisplayName}
- placeholderColorSeed={
- calendarEventParticipant?.placeholderColorSeed ??
- speakerDisplayName
- }
- size="md"
- type="rounded"
- />
- }
- />
- {!isUndefined(entry.startSeconds) && (
- <StyledTimestamp>
- {formatSecondsAsClockTimestamp(entry.startSeconds)}
- </StyledTimestamp>
- )}
- </StyledEntryHeader>
- <StyledEntryText>
- {entry.words.map((word, wordIndex) => (
- <StyledWord
- key={wordIndex}
- $isSpoken={isWordSpoken({ word, currentTimeSeconds })}
- >
- {wordIndex > 0 ? ' ' : ''}
- {word.text}
- </StyledWord>
- ))}
- </StyledEntryText>
- </StyledEntry>
- );
-};
-
-const isWordSpoken = ({
- word,
- currentTimeSeconds,
-}: {
- word: TranscriptWord;
- currentTimeSeconds: number;
-}): boolean =>
- !isUndefined(word.startSeconds) && currentTimeSeconds >= word.startSeconds;
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptErrorBox.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptErrorBox.tsx
deleted file mode 100644
index 29020b4bb7b..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptErrorBox.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import styled from '@emotion/styled';
-import { themeCssVariables } from 'twenty-ui/theme-constants';
-
-const StyledStateContainer = styled.div`
- box-sizing: border-box;
- font-family: ${() => themeCssVariables.font.family};
- height: 100%;
- padding: ${() => themeCssVariables.spacing[4]};
-`;
-
-const StyledErrorBox = styled.div`
- background: ${() => themeCssVariables.background.transparent.danger};
- border: 1px solid ${() => themeCssVariables.border.color.danger};
- border-radius: ${() => themeCssVariables.border.radius.md};
- display: flex;
- flex-direction: column;
- gap: ${() => themeCssVariables.spacing[1]};
- padding: ${() => themeCssVariables.spacing[3]};
-`;
-
-const StyledErrorTitle = styled.span`
- color: ${() => themeCssVariables.font.color.danger};
- font-size: ${() => themeCssVariables.font.size.sm};
- font-weight: ${() => themeCssVariables.font.weight.medium};
-`;
-
-const StyledErrorDescription = styled.span`
- color: ${() => themeCssVariables.font.color.secondary};
- font-size: ${() => themeCssVariables.font.size.sm};
-`;
-
-type TranscriptErrorBoxProps = {
- title: string;
- description: string;
-};
-
-export const TranscriptErrorBox = ({
- title,
- description,
-}: TranscriptErrorBoxProps) => (
- <StyledStateContainer>
- <StyledErrorBox>
- <StyledErrorTitle>{title}</StyledErrorTitle>
- <StyledErrorDescription>{description}</StyledErrorDescription>
- </StyledErrorBox>
- </StyledStateContainer>
-);
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-participants.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-participants.ts
deleted file mode 100644
index 22b729be8c4..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-participants.ts
+++ /dev/null
@@ -1,172 +0,0 @@
-import { useEffect, useState } from 'react';
-import { CoreApiClient } from 'twenty-client-sdk/core';
-
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { getAbsoluteAvatarUrl } from 'src/front-components/utils/get-absolute-avatar-url.util';
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-const CALENDAR_EVENT_PARTICIPANT_LOOKUP_LIMIT = 100;
-
-type CalendarEventParticipantName = {
- firstName?: string | null;
- lastName?: string | null;
-};
-
-type CalendarEventParticipantRelatedRecord = {
- id?: string | null;
- avatarUrl?: string | null;
- name?: CalendarEventParticipantName | null;
-};
-
-type CalendarEventParticipantNode = {
- id: string;
- displayName?: string | null;
- handle?: string | null;
- personId?: string | null;
- workspaceMemberId?: string | null;
- person?: CalendarEventParticipantRelatedRecord | null;
- workspaceMember?: CalendarEventParticipantRelatedRecord | null;
-};
-
-type CalendarEventParticipantEdge = {
- node: CalendarEventParticipantNode;
-};
-
-type UseCalendarEventParticipantsReturn = {
- calendarEventParticipants: CalendarEventRecordingParticipant[];
-};
-
-export const useCalendarEventParticipants = (
- calendarEventId: string | undefined,
-): UseCalendarEventParticipantsReturn => {
- const [calendarEventParticipants, setCalendarEventParticipants] = useState<
- CalendarEventRecordingParticipant[]
- >([]);
-
- useEffect(() => {
- if (!isNonEmptyString(calendarEventId)) {
- setCalendarEventParticipants([]);
- return;
- }
-
- let cancelled = false;
-
- const fetchCalendarEventParticipants = async () => {
- try {
- const client = new CoreApiClient();
- const queryResult = await client.query({
- calendarEventParticipants: {
- __args: {
- filter: { calendarEventId: { eq: calendarEventId } },
- first: CALENDAR_EVENT_PARTICIPANT_LOOKUP_LIMIT,
- },
- edges: {
- node: {
- id: true,
- displayName: true,
- handle: true,
- personId: true,
- workspaceMemberId: true,
- person: {
- id: true,
- avatarUrl: true,
- name: {
- firstName: true,
- lastName: true,
- },
- },
- workspaceMember: {
- id: true,
- avatarUrl: true,
- name: {
- firstName: true,
- lastName: true,
- },
- },
- },
- },
- },
- });
-
- if (cancelled) {
- return;
- }
-
- const calendarEventParticipantEdges = (queryResult
- .calendarEventParticipants?.edges ??
- []) as CalendarEventParticipantEdge[];
-
- setCalendarEventParticipants(
- calendarEventParticipantEdges.map((calendarEventParticipantEdge) =>
- mapCalendarEventParticipantNode(calendarEventParticipantEdge.node),
- ),
- );
- } catch {
- if (cancelled) {
- return;
- }
-
- setCalendarEventParticipants([]);
- }
- };
-
- fetchCalendarEventParticipants();
-
- return () => {
- cancelled = true;
- };
- }, [calendarEventId]);
-
- return { calendarEventParticipants };
-};
-
-const mapCalendarEventParticipantNode = (
- calendarEventParticipantNode: CalendarEventParticipantNode,
-): CalendarEventRecordingParticipant => {
- const personName = readFullName(calendarEventParticipantNode.person?.name);
- const workspaceMemberName = readFullName(
- calendarEventParticipantNode.workspaceMember?.name,
- );
- const calendarDisplayName = readOptionalString(
- calendarEventParticipantNode.displayName,
- );
- const handle = readOptionalString(calendarEventParticipantNode.handle);
-
- return {
- id: calendarEventParticipantNode.id,
- avatarUrl: getAbsoluteAvatarUrl(
- calendarEventParticipantNode.person?.avatarUrl ??
- calendarEventParticipantNode.workspaceMember?.avatarUrl,
- ),
- displayName:
- personName ?? workspaceMemberName ?? calendarDisplayName ?? handle,
- nameCandidates: [
- calendarDisplayName,
- personName,
- workspaceMemberName,
- handle,
- ].filter((nameCandidate): nameCandidate is string =>
- isNonEmptyString(nameCandidate),
- ),
- placeholderColorSeed:
- calendarEventParticipantNode.workspaceMemberId ??
- calendarEventParticipantNode.personId ??
- calendarEventParticipantNode.id,
- };
-};
-
-const readFullName = (
- name: CalendarEventParticipantName | null | undefined,
-): string | undefined => {
- const firstName = readOptionalString(name?.firstName);
- const lastName = readOptionalString(name?.lastName);
- const fullName = [firstName, lastName]
- .filter((namePart): namePart is string => isNonEmptyString(namePart))
- .join(' ');
-
- return isNonEmptyString(fullName) ? fullName : undefined;
-};
-
-const readOptionalString = (
- value: string | null | undefined,
-): string | undefined => (isNonEmptyString(value) ? value.trim() : undefined);
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-recording.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-recording.ts
deleted file mode 100644
index 63954c1ecfe..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-recording.ts
+++ /dev/null
@@ -1,164 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-import { useEffect, useState } from 'react';
-import { CoreApiClient } from 'twenty-client-sdk/core';
-
-type CalendarEventRecordingState = {
- transcript: unknown;
- videoFile: CalendarEventRecordingVideoFile | undefined;
- isCalendarEventRecordingQueryLoading: boolean;
- errorMessage: string | undefined;
-};
-
-type CalendarEventRecordingResult = CalendarEventRecordingState & {
- refetchCalendarEventRecording: () => void;
-};
-
-type CalendarEventRecordingVideoFile = {
- fileId: string;
- label: string | null;
- url: string | null;
- extension: string | null;
-};
-
-type CalendarEventRecordingCallRecordingNode = {
- id: string;
- transcript: unknown;
- video: CalendarEventRecordingVideoFile[] | null;
-};
-
-type CalendarEventRecordingCallRecordingEdge = {
- node: CalendarEventRecordingCallRecordingNode;
-};
-
-const CALENDAR_EVENT_RECORDING_LOOKUP_LIMIT = 10;
-const CALENDAR_EVENT_RECORDING_ERROR_MESSAGE = 'Please try again later.';
-
-export const useCalendarEventRecording = (
- calendarEventId: string | undefined,
-): CalendarEventRecordingResult => {
- const [state, setState] = useState<CalendarEventRecordingState>({
- transcript: undefined,
- videoFile: undefined,
- isCalendarEventRecordingQueryLoading: !isUndefined(calendarEventId),
- errorMessage: undefined,
- });
- const [refetchToken, setRefetchToken] = useState(0);
-
- const refetchCalendarEventRecording = () => {
- setRefetchToken((previousRefetchToken) => previousRefetchToken + 1);
- };
-
- useEffect(() => {
- if (isUndefined(calendarEventId)) {
- setState({
- transcript: undefined,
- videoFile: undefined,
- isCalendarEventRecordingQueryLoading: false,
- errorMessage: undefined,
- });
- return;
- }
-
- let cancelled = false;
-
- const fetchRecording = async () => {
- setState({
- transcript: undefined,
- videoFile: undefined,
- isCalendarEventRecordingQueryLoading: true,
- errorMessage: undefined,
- });
-
- try {
- const client = new CoreApiClient();
- const queryResult = await client.query({
- callRecordings: {
- __args: {
- filter: { calendarEventId: { eq: calendarEventId } },
- orderBy: [{ startedAt: 'DescNullsLast' }],
- first: CALENDAR_EVENT_RECORDING_LOOKUP_LIMIT,
- },
- edges: {
- node: {
- id: true,
- transcript: true,
- video: {
- fileId: true,
- label: true,
- url: true,
- extension: true,
- },
- },
- },
- },
- });
-
- if (cancelled) {
- return;
- }
-
- const callRecordingEdges = (queryResult.callRecordings?.edges ??
- []) as CalendarEventRecordingCallRecordingEdge[];
- const callRecordingNodes = callRecordingEdges.map(
- (callRecordingEdge) => callRecordingEdge.node,
- );
- const callRecordingNode =
- selectCalendarEventRecording(callRecordingNodes);
-
- setState({
- transcript: callRecordingNode?.transcript ?? undefined,
- videoFile: isUndefined(callRecordingNode)
- ? undefined
- : getVideoFile(callRecordingNode),
- isCalendarEventRecordingQueryLoading: false,
- errorMessage: undefined,
- });
- } catch {
- if (cancelled) {
- return;
- }
-
- setState({
- transcript: undefined,
- videoFile: undefined,
- isCalendarEventRecordingQueryLoading: false,
- errorMessage: CALENDAR_EVENT_RECORDING_ERROR_MESSAGE,
- });
- }
- };
-
- fetchRecording();
-
- return () => {
- cancelled = true;
- };
- }, [calendarEventId, refetchToken]);
-
- return { ...state, refetchCalendarEventRecording };
-};
-
-const hasTranscript = (
- callRecordingNode: CalendarEventRecordingCallRecordingNode,
-): boolean =>
- !isUndefined(callRecordingNode.transcript) &&
- callRecordingNode.transcript !== null;
-
-const getVideoFile = (
- callRecordingNode: CalendarEventRecordingCallRecordingNode,
-): CalendarEventRecordingVideoFile | undefined =>
- callRecordingNode.video?.find(
- (videoFile) => !isUndefined(videoFile.url) && videoFile.url !== null,
- );
-
-const selectCalendarEventRecording = (
- callRecordingNodes: CalendarEventRecordingCallRecordingNode[],
-): CalendarEventRecordingCallRecordingNode | undefined =>
- callRecordingNodes.find(
- (callRecordingNode) =>
- hasTranscript(callRecordingNode) &&
- !isUndefined(getVideoFile(callRecordingNode)),
- ) ??
- callRecordingNodes.find(hasTranscript) ??
- callRecordingNodes.find(
- (callRecordingNode) => !isUndefined(getVideoFile(callRecordingNode)),
- );
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-summary.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-summary.ts
deleted file mode 100644
index 3c1144be911..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-calendar-event-summary.ts
+++ /dev/null
@@ -1,117 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-import { useEffect, useState } from 'react';
-import { CoreApiClient } from 'twenty-client-sdk/core';
-
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-type CalendarEventSummaryState = {
- summaryMarkdown: string | undefined;
- isCalendarEventSummaryQueryLoading: boolean;
- errorMessage: string | undefined;
-};
-
-type CalendarEventSummaryCallRecordingNode = {
- id: string;
- summary: { markdown: string | null } | null;
-};
-
-type CalendarEventSummaryCallRecordingEdge = {
- node: CalendarEventSummaryCallRecordingNode;
-};
-
-const CALENDAR_EVENT_SUMMARY_LOOKUP_LIMIT = 10;
-const CALENDAR_EVENT_SUMMARY_ERROR_MESSAGE = 'Please try again later.';
-
-const selectSummaryMarkdown = (
- callRecordingNodes: CalendarEventSummaryCallRecordingNode[],
-): string | undefined => {
- const summaryMarkdown = callRecordingNodes.find((callRecordingNode) =>
- isNonEmptyString(callRecordingNode.summary?.markdown),
- )?.summary?.markdown;
-
- return isNonEmptyString(summaryMarkdown) ? summaryMarkdown : undefined;
-};
-
-export const useCalendarEventSummary = (
- calendarEventId: string | undefined,
-): CalendarEventSummaryState => {
- const [state, setState] = useState<CalendarEventSummaryState>({
- summaryMarkdown: undefined,
- isCalendarEventSummaryQueryLoading: !isUndefined(calendarEventId),
- errorMessage: undefined,
- });
-
- useEffect(() => {
- if (isUndefined(calendarEventId)) {
- setState({
- summaryMarkdown: undefined,
- isCalendarEventSummaryQueryLoading: false,
- errorMessage: undefined,
- });
- return;
- }
-
- let cancelled = false;
-
- const fetchSummary = async () => {
- setState({
- summaryMarkdown: undefined,
- isCalendarEventSummaryQueryLoading: true,
- errorMessage: undefined,
- });
-
- try {
- const client = new CoreApiClient();
- const queryResult = await client.query({
- callRecordings: {
- __args: {
- filter: { calendarEventId: { eq: calendarEventId } },
- orderBy: [{ startedAt: 'DescNullsLast' }],
- first: CALENDAR_EVENT_SUMMARY_LOOKUP_LIMIT,
- },
- edges: {
- node: {
- id: true,
- summary: { markdown: true },
- },
- },
- },
- });
-
- if (cancelled) {
- return;
- }
-
- const callRecordingEdges = (queryResult.callRecordings?.edges ??
- []) as CalendarEventSummaryCallRecordingEdge[];
- const callRecordingNodes = callRecordingEdges.map(
- (callRecordingEdge) => callRecordingEdge.node,
- );
-
- setState({
- summaryMarkdown: selectSummaryMarkdown(callRecordingNodes),
- isCalendarEventSummaryQueryLoading: false,
- errorMessage: undefined,
- });
- } catch {
- if (cancelled) {
- return;
- }
-
- setState({
- summaryMarkdown: undefined,
- isCalendarEventSummaryQueryLoading: false,
- errorMessage: CALENDAR_EVENT_SUMMARY_ERROR_MESSAGE,
- });
- }
- };
-
- fetchSummary();
-
- return () => {
- cancelled = true;
- };
- }, [calendarEventId]);
-
- return state;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-participant-by-speaker-name.type.ts b/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-participant-by-speaker-name.type.ts
deleted file mode 100644
index c6fbe5e000c..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-participant-by-speaker-name.type.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-
-export type CalendarEventParticipantBySpeakerName = Map<
- string,
- CalendarEventRecordingParticipant
->;
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-recording-participant.type.ts b/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-recording-participant.type.ts
deleted file mode 100644
index ec760f1bb60..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/types/calendar-event-recording-participant.type.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export type CalendarEventRecordingParticipant = {
- id: string;
- avatarUrl: string | undefined;
- displayName: string | undefined;
- nameCandidates: string[];
- placeholderColorSeed: string;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-inline-segment.type.ts b/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-inline-segment.type.ts
deleted file mode 100644
index 474eff8e906..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-inline-segment.type.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export type SummaryInlineSegment = {
- text: string;
- isBold: boolean;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-markdown-block.type.ts b/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-markdown-block.type.ts
deleted file mode 100644
index 2ba417b7d75..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/types/summary-markdown-block.type.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { type SummaryInlineSegment } from 'src/front-components/types/summary-inline-segment.type';
-
-export type SummaryMarkdownBlock =
- | { type: 'heading'; level: number; segments: SummaryInlineSegment[] }
- | { type: 'paragraph'; segments: SummaryInlineSegment[] }
- | { type: 'list'; items: SummaryInlineSegment[][] };
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/types/transcript-entry.type.ts b/packages/twenty-apps/public/call-recorder/src/front-components/types/transcript-entry.type.ts
deleted file mode 100644
index 0be25406701..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/types/transcript-entry.type.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export type TranscriptWord = {
- text: string;
- startSeconds: number | undefined;
- endSeconds: number | undefined;
-};
-
-export type TranscriptEntry = {
- speakerName: string;
- startSeconds: number | undefined;
- endSeconds: number | undefined;
- text: string;
- words: TranscriptWord[];
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/build-transcript-plain-text.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/build-transcript-plain-text.test.ts
deleted file mode 100644
index e4482dfd4e8..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/build-transcript-plain-text.test.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { type TranscriptEntry } from 'src/front-components/types/transcript-entry.type';
-import { buildTranscriptPlainText } from 'src/front-components/utils/build-transcript-plain-text.util';
-
-const buildEntry = (
- overrides: Partial<TranscriptEntry> & Pick<TranscriptEntry, 'speakerName'>,
-): TranscriptEntry => ({
- startSeconds: undefined,
- endSeconds: undefined,
- text: '',
- words: [],
- ...overrides,
-});
-
-describe('buildTranscriptPlainText', () => {
- it('renders each entry with speaker, timestamp, and text separated by blank lines', () => {
- const entries: TranscriptEntry[] = [
- buildEntry({
- speakerName: 'Ada Lovelace',
- startSeconds: 72,
- text: 'Hello there',
- }),
- buildEntry({
- speakerName: 'Grace Hopper',
- startSeconds: 130,
- text: 'Hi',
- }),
- ];
-
- expect(
- buildTranscriptPlainText({ entries, calendarEventParticipants: [] }),
- ).toBe('Ada Lovelace (1:12)\nHello there\n\nGrace Hopper (2:10)\nHi');
- });
-
- it('omits the timestamp when the entry has no start time', () => {
- const entries: TranscriptEntry[] = [
- buildEntry({ speakerName: 'Ada Lovelace', text: 'Hello there' }),
- ];
-
- expect(
- buildTranscriptPlainText({ entries, calendarEventParticipants: [] }),
- ).toBe('Ada Lovelace\nHello there');
- });
-
- it('prefers the matched participant display name over the raw speaker label', () => {
- const entries: TranscriptEntry[] = [
- buildEntry({
- speakerName: 'ada lovelace',
- startSeconds: 0,
- text: 'Hello there',
- }),
- ];
- const calendarEventParticipants: CalendarEventRecordingParticipant[] = [
- {
- id: 'participant-1',
- avatarUrl: undefined,
- displayName: 'Ada L.',
- nameCandidates: ['Ada Lovelace'],
- placeholderColorSeed: 'participant-1',
- },
- ];
-
- expect(
- buildTranscriptPlainText({ entries, calendarEventParticipants }),
- ).toBe('Ada L. (0:00)\nHello there');
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/find-active-transcript-entry-index.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/find-active-transcript-entry-index.test.ts
deleted file mode 100644
index 5616dbef333..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/find-active-transcript-entry-index.test.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { type TranscriptEntry } from 'src/front-components/types/transcript-entry.type';
-import { findActiveTranscriptEntryIndex } from 'src/front-components/utils/find-active-transcript-entry-index.util';
-
-const makeTranscriptEntry = ({
- startSeconds,
- endSeconds,
-}: {
- startSeconds: number | undefined;
- endSeconds: number | undefined;
-}): TranscriptEntry => ({
- speakerName: 'Ada Lovelace',
- startSeconds,
- endSeconds,
- text: 'Hello',
- words: [{ text: 'Hello', startSeconds, endSeconds }],
-});
-
-describe('findActiveTranscriptEntryIndex', () => {
- it('does not keep an open-ended entry active after the next entry starts', () => {
- expect(
- findActiveTranscriptEntryIndex(
- [
- makeTranscriptEntry({ startSeconds: 1, endSeconds: undefined }),
- makeTranscriptEntry({ startSeconds: 10, endSeconds: 20 }),
- ],
- 25,
- ),
- ).toBe(-1);
- });
-
- it('uses the next known start as the boundary for entries without an end time', () => {
- expect(
- findActiveTranscriptEntryIndex(
- [
- makeTranscriptEntry({ startSeconds: 1, endSeconds: undefined }),
- makeTranscriptEntry({ startSeconds: 10, endSeconds: 20 }),
- ],
- 9,
- ),
- ).toBe(0);
-
- expect(
- findActiveTranscriptEntryIndex(
- [
- makeTranscriptEntry({ startSeconds: 1, endSeconds: undefined }),
- makeTranscriptEntry({ startSeconds: 10, endSeconds: 20 }),
- ],
- 10,
- ),
- ).toBe(1);
- });
-
- it('keeps the final open-ended entry active after it starts', () => {
- expect(
- findActiveTranscriptEntryIndex(
- [
- makeTranscriptEntry({ startSeconds: 1, endSeconds: 2 }),
- makeTranscriptEntry({ startSeconds: 10, endSeconds: undefined }),
- ],
- 25,
- ),
- ).toBe(1);
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-speaker-name-match-keys.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-speaker-name-match-keys.test.ts
deleted file mode 100644
index 32711416bdd..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-speaker-name-match-keys.test.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { getSpeakerNameMatchKeys } from 'src/front-components/utils/get-speaker-name-match-keys.util';
-
-describe('getSpeakerNameMatchKeys', () => {
- it('matches transcript full names to compact calendar aliases', () => {
- expect(getSpeakerNameMatchKeys('Martin Muller')).toContain('martmull');
- expect(getSpeakerNameMatchKeys('Martmull92')).toContain('martmull');
- });
-
- it('keeps exact normalized full names available for regular participant names', () => {
- expect(getSpeakerNameMatchKeys('Nitin Koche')).toEqual([
- 'nitin koche',
- 'nitinkoche',
- 'nitikoch',
- ]);
- });
-
- it('folds accents before generating compact match keys', () => {
- expect(getSpeakerNameMatchKeys('Martin Müller')).toContain('martmull');
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-inline-segments.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-inline-segments.test.ts
deleted file mode 100644
index a38bb61b3a4..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-inline-segments.test.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { parseSummaryInlineSegments } from 'src/front-components/utils/parse-summary-inline-segments.util';
-
-describe('parseSummaryInlineSegments', () => {
- it('returns a single plain segment when there is no bold', () => {
- expect(parseSummaryInlineSegments('Just text')).toEqual([
- { text: 'Just text', isBold: false },
- ]);
- });
-
- it('splits a bold run from surrounding text', () => {
- expect(parseSummaryInlineSegments('before **bold** after')).toEqual([
- { text: 'before ', isBold: false },
- { text: 'bold', isBold: true },
- { text: ' after', isBold: false },
- ]);
- });
-
- it('preserves whitespace between adjacent bold runs', () => {
- expect(parseSummaryInlineSegments('**Alex** **Sam**')).toEqual([
- { text: 'Alex', isBold: true },
- { text: ' ', isBold: false },
- { text: 'Sam', isBold: true },
- ]);
- });
-
- it('treats unclosed or empty markers as plain text', () => {
- expect(parseSummaryInlineSegments('**unclosed')).toEqual([
- { text: '**unclosed', isBold: false },
- ]);
- expect(parseSummaryInlineSegments('****')).toEqual([
- { text: '****', isBold: false },
- ]);
- });
-
- it('returns an empty array for an empty string', () => {
- expect(parseSummaryInlineSegments('')).toEqual([]);
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-markdown-blocks.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-markdown-blocks.test.ts
deleted file mode 100644
index a548926b11c..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-summary-markdown-blocks.test.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { parseSummaryMarkdownBlocks } from 'src/front-components/utils/parse-summary-markdown-blocks.util';
-
-describe('parseSummaryMarkdownBlocks', () => {
- it('parses headings with their level', () => {
- expect(parseSummaryMarkdownBlocks('## Overview')).toEqual([
- {
- type: 'heading',
- level: 2,
- segments: [{ text: 'Overview', isBold: false }],
- },
- ]);
- });
-
- it('groups consecutive bullet lines into a single list block', () => {
- expect(parseSummaryMarkdownBlocks('- First\n- Second')).toEqual([
- {
- type: 'list',
- items: [
- [{ text: 'First', isBold: false }],
- [{ text: 'Second', isBold: false }],
- ],
- },
- ]);
- });
-
- it('closes the open list when a heading or paragraph follows', () => {
- expect(parseSummaryMarkdownBlocks('- Item\nParagraph after')).toEqual([
- { type: 'list', items: [[{ text: 'Item', isBold: false }]] },
- {
- type: 'paragraph',
- segments: [{ text: 'Paragraph after', isBold: false }],
- },
- ]);
- });
-
- it('keeps bold segments inside headings and bullets', () => {
- expect(parseSummaryMarkdownBlocks('**Alex**\n- Send the deck')).toEqual([
- { type: 'paragraph', segments: [{ text: 'Alex', isBold: true }] },
- { type: 'list', items: [[{ text: 'Send the deck', isBold: false }]] },
- ]);
- });
-
- it('ignores blank lines and separates blocks by them', () => {
- expect(parseSummaryMarkdownBlocks('## Gist\n\nA one-line recap.')).toEqual([
- {
- type: 'heading',
- level: 2,
- segments: [{ text: 'Gist', isBold: false }],
- },
- {
- type: 'paragraph',
- segments: [{ text: 'A one-line recap.', isBold: false }],
- },
- ]);
- });
-
- it('returns no blocks for empty or whitespace-only markdown', () => {
- expect(parseSummaryMarkdownBlocks('')).toEqual([]);
- expect(parseSummaryMarkdownBlocks('\n \n')).toEqual([]);
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-transcript-entries.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-transcript-entries.test.ts
deleted file mode 100644
index 998896dc270..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/parse-transcript-entries.test.ts
+++ /dev/null
@@ -1,162 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import { parseTranscriptEntries } from 'src/front-components/utils/parse-transcript-entries.util';
-
-describe('parseTranscriptEntries', () => {
- it('parses diarized entries into speaker, start time, and joined text', () => {
- expect(
- parseTranscriptEntries([
- {
- participant: { id: 100, name: 'Ada Lovelace' },
- words: [
- {
- text: 'Hello',
- start_timestamp: {
- relative: 1.2,
- absolute: '2026-06-12T10:00:01Z',
- },
- end_timestamp: {
- relative: 1.6,
- absolute: '2026-06-12T10:00:01Z',
- },
- },
- {
- text: 'there',
- start_timestamp: {
- relative: 1.7,
- absolute: '2026-06-12T10:00:02Z',
- },
- end_timestamp: {
- relative: 2.1,
- absolute: '2026-06-12T10:00:02Z',
- },
- },
- ],
- },
- {
- participant: { id: 101, name: 'Grace Hopper' },
- words: [
- {
- text: 'Hi',
- start_timestamp: {
- relative: 3.4,
- absolute: '2026-06-12T10:00:03Z',
- },
- },
- ],
- },
- ]),
- ).toEqual([
- {
- speakerName: 'Ada Lovelace',
- startSeconds: 1.2,
- endSeconds: 2.1,
- text: 'Hello there',
- words: [
- { text: 'Hello', startSeconds: 1.2, endSeconds: 1.6 },
- { text: 'there', startSeconds: 1.7, endSeconds: 2.1 },
- ],
- },
- {
- speakerName: 'Grace Hopper',
- startSeconds: 3.4,
- endSeconds: undefined,
- text: 'Hi',
- words: [{ text: 'Hi', startSeconds: 3.4, endSeconds: undefined }],
- },
- ]);
- });
-
- it('falls back to an unknown speaker when the participant has no name', () => {
- expect(
- parseTranscriptEntries([
- { participant: { id: 100, name: null }, words: [{ text: 'Hello' }] },
- { words: [{ text: 'Hi' }] },
- ]),
- ).toEqual([
- {
- speakerName: 'Unknown speaker',
- startSeconds: undefined,
- endSeconds: undefined,
- text: 'Hello',
- words: [
- { text: 'Hello', startSeconds: undefined, endSeconds: undefined },
- ],
- },
- {
- speakerName: 'Unknown speaker',
- startSeconds: undefined,
- endSeconds: undefined,
- text: 'Hi',
- words: [{ text: 'Hi', startSeconds: undefined, endSeconds: undefined }],
- },
- ]);
- });
-
- it('returns an undefined start time when the first word has no relative timestamp', () => {
- expect(
- parseTranscriptEntries([
- {
- participant: { name: 'Ada Lovelace' },
- words: [
- {
- text: 'Hello',
- start_timestamp: { absolute: '2026-06-12T10:00:01Z' },
- },
- ],
- },
- ]),
- ).toEqual([
- {
- speakerName: 'Ada Lovelace',
- startSeconds: undefined,
- endSeconds: undefined,
- text: 'Hello',
- words: [
- { text: 'Hello', startSeconds: undefined, endSeconds: undefined },
- ],
- },
- ]);
- });
-
- it('skips entries without usable words instead of failing the whole transcript', () => {
- expect(
- parseTranscriptEntries([
- { participant: { name: 'Ada Lovelace' }, words: [] },
- { participant: { name: 'Grace Hopper' } },
- {
- participant: { name: 'Alan Turing' },
- words: [{ text: ' ' }, 42, null],
- },
- { participant: { name: 'Joan Clarke' }, words: [{ text: 'Kept' }] },
- 'not an entry',
- ]),
- ).toEqual([
- {
- speakerName: 'Joan Clarke',
- startSeconds: undefined,
- endSeconds: undefined,
- text: 'Kept',
- words: [
- { text: 'Kept', startSeconds: undefined, endSeconds: undefined },
- ],
- },
- ]);
- });
-
- it('returns an empty list for an empty transcript array', () => {
- expect(parseTranscriptEntries([])).toEqual([]);
- });
-
- it('returns undefined for values that are not a diarized transcript array', () => {
- expect(parseTranscriptEntries(null)).toBeUndefined();
- expect(parseTranscriptEntries(undefined)).toBeUndefined();
- expect(parseTranscriptEntries('transcript text')).toBeUndefined();
- expect(
- parseTranscriptEntries({
- recallTranscriptId: 'recall-transcript-1',
- status: 'PENDING',
- }),
- ).toBeUndefined();
- });
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-calendar-event-participant-by-speaker-name.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-calendar-event-participant-by-speaker-name.util.ts
deleted file mode 100644
index cb70604e1a6..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-calendar-event-participant-by-speaker-name.util.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-
-import { type CalendarEventParticipantBySpeakerName } from 'src/front-components/types/calendar-event-participant-by-speaker-name.type';
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { getSpeakerNameMatchKeys } from 'src/front-components/utils/get-speaker-name-match-keys.util';
-
-export const buildCalendarEventParticipantBySpeakerName = (
- calendarEventParticipants: CalendarEventRecordingParticipant[],
-): CalendarEventParticipantBySpeakerName => {
- const calendarEventParticipantBySpeakerName: CalendarEventParticipantBySpeakerName =
- new Map();
- const ambiguousSpeakerNameMatchKeys = new Set<string>();
-
- for (const calendarEventParticipant of calendarEventParticipants) {
- for (const nameCandidate of calendarEventParticipant.nameCandidates) {
- const speakerNameMatchKeys = getSpeakerNameMatchKeys(nameCandidate);
-
- for (const speakerNameMatchKey of speakerNameMatchKeys) {
- const matchingCalendarEventParticipant =
- calendarEventParticipantBySpeakerName.get(speakerNameMatchKey);
-
- if (ambiguousSpeakerNameMatchKeys.has(speakerNameMatchKey)) {
- continue;
- }
-
- if (isUndefined(matchingCalendarEventParticipant)) {
- calendarEventParticipantBySpeakerName.set(
- speakerNameMatchKey,
- calendarEventParticipant,
- );
- continue;
- }
-
- if (
- matchingCalendarEventParticipant.id !== calendarEventParticipant.id
- ) {
- calendarEventParticipantBySpeakerName.delete(speakerNameMatchKey);
- ambiguousSpeakerNameMatchKeys.add(speakerNameMatchKey);
- }
- }
- }
- }
-
- return calendarEventParticipantBySpeakerName;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-transcript-plain-text.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-transcript-plain-text.util.ts
deleted file mode 100644
index 5d9c0060f5f..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/build-transcript-plain-text.util.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { type TranscriptEntry } from 'src/front-components/types/transcript-entry.type';
-import { buildCalendarEventParticipantBySpeakerName } from 'src/front-components/utils/build-calendar-event-participant-by-speaker-name.util';
-import { getCalendarEventParticipantForSpeakerName } from 'src/front-components/utils/get-calendar-event-participant-for-speaker-name.util';
-import { formatSecondsAsClockTimestamp } from 'src/logic-functions/utils/format-seconds-as-clock-timestamp.util';
-
-// Mirrors the on-screen transcript: participant display name resolution wins
-// over the raw diarized speaker label so the copied text matches what is read.
-export const buildTranscriptPlainText = ({
- entries,
- calendarEventParticipants,
-}: {
- entries: TranscriptEntry[];
- calendarEventParticipants: CalendarEventRecordingParticipant[];
-}): string => {
- const calendarEventParticipantBySpeakerName =
- buildCalendarEventParticipantBySpeakerName(calendarEventParticipants);
-
- return entries
- .map((entry) => {
- const calendarEventParticipant =
- getCalendarEventParticipantForSpeakerName({
- speakerName: entry.speakerName,
- calendarEventParticipantBySpeakerName,
- });
- const speakerDisplayName =
- calendarEventParticipant?.displayName ?? entry.speakerName;
- const timestamp = isUndefined(entry.startSeconds)
- ? ''
- : ` (${formatSecondsAsClockTimestamp(entry.startSeconds)})`;
-
- return `${speakerDisplayName}${timestamp}\n${entry.text}`;
- })
- .join('\n\n');
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/find-active-transcript-entry-index.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/find-active-transcript-entry-index.util.ts
deleted file mode 100644
index 54fcd26283a..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/find-active-transcript-entry-index.util.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-
-import { type TranscriptEntry } from 'src/front-components/types/transcript-entry.type';
-
-export const findActiveTranscriptEntryIndex = (
- entries: TranscriptEntry[],
- currentTimeSeconds: number,
-): number => {
- for (let entryIndex = entries.length - 1; entryIndex >= 0; entryIndex--) {
- const entry = entries[entryIndex];
-
- if (
- isTranscriptEntryActive({
- entries,
- entry,
- entryIndex,
- currentTimeSeconds,
- })
- ) {
- return entryIndex;
- }
- }
-
- return -1;
-};
-
-const isTranscriptEntryActive = ({
- entries,
- entry,
- entryIndex,
- currentTimeSeconds,
-}: {
- entries: TranscriptEntry[];
- entry: TranscriptEntry;
- entryIndex: number;
- currentTimeSeconds: number;
-}): boolean => {
- if (
- isUndefined(entry.startSeconds) ||
- currentTimeSeconds < entry.startSeconds
- ) {
- return false;
- }
-
- if (!isUndefined(entry.endSeconds)) {
- return currentTimeSeconds <= entry.endSeconds;
- }
-
- const nextTranscriptEntryStartSeconds = findNextTranscriptEntryStartSeconds(
- entries,
- entryIndex,
- );
-
- return isUndefined(nextTranscriptEntryStartSeconds)
- ? true
- : currentTimeSeconds < nextTranscriptEntryStartSeconds;
-};
-
-const findNextTranscriptEntryStartSeconds = (
- entries: TranscriptEntry[],
- entryIndex: number,
-): number | undefined => {
- for (
- let nextEntryIndex = entryIndex + 1;
- nextEntryIndex < entries.length;
- nextEntryIndex++
- ) {
- const nextTranscriptEntryStartSeconds =
- entries[nextEntryIndex].startSeconds;
-
- if (!isUndefined(nextTranscriptEntryStartSeconds)) {
- return nextTranscriptEntryStartSeconds;
- }
- }
-
- return undefined;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-absolute-avatar-url.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-absolute-avatar-url.util.ts
deleted file mode 100644
index 404717f70c6..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-absolute-avatar-url.util.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-// Duplicates minimal front image URL logic for this app.
-// Remove once shared front utilities can be imported safely in front components.
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-type GetImageAbsoluteUrlArgs = {
- imageUrl: string;
- baseUrl: string;
-};
-
-const getImageAbsoluteUrl = ({
- imageUrl,
- baseUrl,
-}: GetImageAbsoluteUrlArgs): string => {
- const lowerCaseImageUrl = imageUrl.toLowerCase();
- const isAlreadyAbsoluteUrl =
- ['http:', 'https:', 'data:', 'blob:'].some((scheme) =>
- lowerCaseImageUrl.startsWith(scheme),
- ) || imageUrl.startsWith('//');
-
- if (isAlreadyAbsoluteUrl) {
- return imageUrl;
- }
-
- if (imageUrl.startsWith('/')) {
- return new URL(`/files${imageUrl}`, baseUrl).toString();
- }
-
- return new URL(`/files/${imageUrl}`, baseUrl).toString();
-};
-
-export const getAbsoluteAvatarUrl = (
- avatarUrl: string | null | undefined,
-): string | undefined => {
- if (!isNonEmptyString(avatarUrl)) {
- return undefined;
- }
-
- const apiBaseUrl = process.env.TWENTY_API_URL;
-
- if (!isNonEmptyString(apiBaseUrl)) {
- return avatarUrl.trim();
- }
-
- return getImageAbsoluteUrl({
- imageUrl: avatarUrl.trim(),
- baseUrl: apiBaseUrl,
- });
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-calendar-event-participant-for-speaker-name.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-calendar-event-participant-for-speaker-name.util.ts
deleted file mode 100644
index 261f4dc79bb..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-calendar-event-participant-for-speaker-name.util.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-
-import { type CalendarEventParticipantBySpeakerName } from 'src/front-components/types/calendar-event-participant-by-speaker-name.type';
-import { type CalendarEventRecordingParticipant } from 'src/front-components/types/calendar-event-recording-participant.type';
-import { getSpeakerNameMatchKeys } from 'src/front-components/utils/get-speaker-name-match-keys.util';
-
-export const getCalendarEventParticipantForSpeakerName = ({
- speakerName,
- calendarEventParticipantBySpeakerName,
-}: {
- speakerName: string;
- calendarEventParticipantBySpeakerName: CalendarEventParticipantBySpeakerName;
-}): CalendarEventRecordingParticipant | undefined => {
- for (const speakerNameMatchKey of getSpeakerNameMatchKeys(speakerName)) {
- const calendarEventParticipant =
- calendarEventParticipantBySpeakerName.get(speakerNameMatchKey);
-
- if (!isUndefined(calendarEventParticipant)) {
- return calendarEventParticipant;
- }
- }
-
- return undefined;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-speaker-name-match-keys.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-speaker-name-match-keys.util.ts
deleted file mode 100644
index 085f0f0a65b..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-speaker-name-match-keys.util.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-const MINIMUM_FUZZY_MATCH_KEY_LENGTH = 5;
-
-export const getSpeakerNameMatchKeys = (speakerName: string): string[] => {
- const normalizedSpeakerName = normalizeSpeakerName(speakerName);
- const compactSpeakerName = getCompactSpeakerName(normalizedSpeakerName);
- const compactSpeakerNameWithoutDigits = compactSpeakerName.replace(/\d/g, '');
- const abbreviatedSpeakerNameMatchKey = getAbbreviatedSpeakerNameMatchKey(
- normalizedSpeakerName,
- );
-
- return [
- ...new Set(
- [
- normalizedSpeakerName,
- compactSpeakerName,
- compactSpeakerNameWithoutDigits,
- abbreviatedSpeakerNameMatchKey,
- ].filter(isSpeakerNameMatchKey),
- ),
- ];
-};
-
-const normalizeSpeakerName = (speakerName: string): string =>
- speakerName
- .trim()
- .normalize('NFD')
- .replace(/[\u0300-\u036f]/g, '')
- .toLocaleLowerCase();
-
-const getCompactSpeakerName = (speakerName: string): string =>
- normalizeSpeakerName(speakerName).replace(/[^a-z0-9]/g, '');
-
-const getAbbreviatedSpeakerNameMatchKey = (
- speakerName: string,
-): string | undefined => {
- const speakerNameParts = normalizeSpeakerName(speakerName)
- .split(/\s+/)
- .map(getCompactSpeakerName)
- .filter(isNonEmptyString);
-
- if (speakerNameParts.length < 2) {
- return undefined;
- }
-
- const firstSpeakerNamePart = speakerNameParts[0];
- const lastSpeakerNamePart = speakerNameParts[speakerNameParts.length - 1];
- const abbreviatedSpeakerNameMatchKey = `${firstSpeakerNamePart.slice(
- 0,
- 4,
- )}${lastSpeakerNamePart.slice(0, 4)}`;
-
- return abbreviatedSpeakerNameMatchKey.length >= MINIMUM_FUZZY_MATCH_KEY_LENGTH
- ? abbreviatedSpeakerNameMatchKey
- : undefined;
-};
-
-const isSpeakerNameMatchKey = (
- speakerNameMatchKey: string | undefined,
-): speakerNameMatchKey is string =>
- isNonEmptyString(speakerNameMatchKey) &&
- (speakerNameMatchKey.includes(' ') ||
- speakerNameMatchKey.length >= MINIMUM_FUZZY_MATCH_KEY_LENGTH);
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-video-file-extension.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-video-file-extension.util.ts
deleted file mode 100644
index 7dbfd4efab9..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-video-file-extension.util.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { isUndefined } from '@sniptt/guards';
-
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-export const getVideoFileExtension = ({
- extension,
- label,
-}: {
- extension: string | null;
- label: string | null;
-}): string | undefined => {
- const labelParts = label?.split('.');
- const videoFileExtension =
- extension ??
- (isUndefined(labelParts) ? undefined : labelParts[labelParts.length - 1]);
- const normalizedVideoFileExtension = videoFileExtension
- ?.toLowerCase()
- .replace(/^\./, '');
-
- return isNonEmptyString(normalizedVideoFileExtension)
- ? normalizedVideoFileExtension
- : undefined;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-inline-segments.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-inline-segments.util.ts
deleted file mode 100644
index 69ef26f133d..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-inline-segments.util.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { type SummaryInlineSegment } from 'src/front-components/types/summary-inline-segment.type';
-
-const BOLD_PATTERN = /\*\*(.+?)\*\*/g;
-
-// Splits a markdown line into plain and **bold** runs, preserving surrounding
-// whitespace so adjacent bold runs don't collapse together.
-export const parseSummaryInlineSegments = (
- text: string,
-): SummaryInlineSegment[] => {
- const boldMatches = [...text.matchAll(BOLD_PATTERN)];
-
- const { segments, cursor } = boldMatches.reduce<{
- segments: SummaryInlineSegment[];
- cursor: number;
- }>(
- (accumulator, match) => {
- const matchStart = match.index ?? 0;
- const leadingText = text.slice(accumulator.cursor, matchStart);
- const leadingSegments =
- leadingText.length > 0 ? [{ text: leadingText, isBold: false }] : [];
-
- return {
- segments: [
- ...accumulator.segments,
- ...leadingSegments,
- { text: match[1], isBold: true },
- ],
- cursor: matchStart + match[0].length,
- };
- },
- { segments: [], cursor: 0 },
- );
-
- const trailingText = text.slice(cursor);
-
- return trailingText.length > 0
- ? [...segments, { text: trailingText, isBold: false }]
- : segments;
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-markdown-blocks.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-markdown-blocks.util.ts
deleted file mode 100644
index 71b7d995ec4..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-summary-markdown-blocks.util.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import { type SummaryInlineSegment } from 'src/front-components/types/summary-inline-segment.type';
-import { type SummaryMarkdownBlock } from 'src/front-components/types/summary-markdown-block.type';
-import { parseSummaryInlineSegments } from 'src/front-components/utils/parse-summary-inline-segments.util';
-
-const HEADING_PATTERN = /^(#{1,6})\s+(.+)$/;
-const BULLET_PATTERN = /^[-*]\s+(.+)$/;
-
-const flushPendingList = (
- blocks: SummaryMarkdownBlock[],
- pendingListItems: SummaryInlineSegment[][],
-): SummaryMarkdownBlock[] =>
- pendingListItems.length > 0
- ? [...blocks, { type: 'list', items: pendingListItems }]
- : blocks;
-
-export const parseSummaryMarkdownBlocks = (
- markdown: string,
-): SummaryMarkdownBlock[] => {
- const { blocks, pendingListItems } = markdown.split('\n').reduce<{
- blocks: SummaryMarkdownBlock[];
- pendingListItems: SummaryInlineSegment[][];
- }>(
- (accumulator, rawLine) => {
- const line = rawLine.trim();
-
- if (line === '') {
- return {
- blocks: flushPendingList(
- accumulator.blocks,
- accumulator.pendingListItems,
- ),
- pendingListItems: [],
- };
- }
-
- const headingMatch = HEADING_PATTERN.exec(line);
-
- if (headingMatch !== null) {
- return {
- blocks: [
- ...flushPendingList(
- accumulator.blocks,
- accumulator.pendingListItems,
- ),
- {
- type: 'heading',
- level: headingMatch[1].length,
- segments: parseSummaryInlineSegments(headingMatch[2]),
- },
- ],
- pendingListItems: [],
- };
- }
-
- const bulletMatch = BULLET_PATTERN.exec(line);
-
- if (bulletMatch !== null) {
- return {
- blocks: accumulator.blocks,
- pendingListItems: [
- ...accumulator.pendingListItems,
- parseSummaryInlineSegments(bulletMatch[1]),
- ],
- };
- }
-
- return {
- blocks: [
- ...flushPendingList(accumulator.blocks, accumulator.pendingListItems),
- { type: 'paragraph', segments: parseSummaryInlineSegments(line) },
- ],
- pendingListItems: [],
- };
- },
- { blocks: [], pendingListItems: [] },
- );
-
- return flushPendingList(blocks, pendingListItems);
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-transcript-entries.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-transcript-entries.util.ts
deleted file mode 100644
index 7d57942b353..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/front-components/utils/parse-transcript-entries.util.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-import { isArray, isNumber, isUndefined } from '@sniptt/guards';
-
-import {
- type TranscriptEntry,
- type TranscriptWord,
-} from 'src/front-components/types/transcript-entry.type';
-import { asRecord } from 'src/logic-functions/utils/as-record.util';
-import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';
-
-type TranscriptRecord = NonNullable<ReturnType<typeof asRecord>>;
-
-const isTranscriptRecord = (
- candidate: TranscriptRecord | undefined,
-): candidate is TranscriptRecord => !isUndefined(candidate);
-
-const readRelativeTimestamp = (
- timestamp: TranscriptRecord | undefined,
-): number | undefined => {
- const relativeTimestamp = timestamp?.relative;
-
- return isNumber(relativeTimestamp) && Number.isFinite(relativeTimestamp)
- ? relativeTimestamp
- : undefined;
-};
-
-const readTranscriptWord = (
- candidate: TranscriptRecord,
-): TranscriptWord | undefined => {
- if (!isNonEmptyString(candidate.text)) {
- return undefined;
- }
-
- return {
- text: candidate.text.trim(),
- startSeconds: readRelativeTimestamp(asRecord(candidate.start_timestamp)),
- endSeconds: readRelativeTimestamp(asRecord(candidate.end_timestamp)),
- };
-};
-
-const readSpeakerName = (participant: TranscriptRecord | undefined): string => {
- const name = participant?.name;
-
- return isNonEmptyString(name) ? name.trim() : 'Unknown speaker';
-};
-
-const readTranscriptEntry = (
- candidate: TranscriptRecord,
-): TranscriptEntry | undefined => {
- if (!isArray(candidate.words)) {
- return undefined;
- }
-
- const words = candidate.words
- .map(asRecord)
- .filter(isTranscriptRecord)
- .map(readTranscriptWord)
- .filter((word): word is TranscriptWord => !isUndefined(word));
-
- if (words.length === 0) {
- return undefined;
- }
-
- return {
- speakerName: readSpeakerName(asRecord(candidate.participant)),
- startSeconds: words[0].startSeconds,
- endSeconds: words[words.length - 1].endSeconds,
- text: words.map((word) => word.text).join(' '),
- words,
- };
-};
-
-// Undefined means the value is not a diarized transcript; malformed entries are skipped, not fatal.
-export const parseTranscriptEntries = (
- transcript: unknown,
-): TranscriptEntry[] | undefined => {
- if (!isArray(transcript)) {
- return undefined;
- }
-
- return transcript
- .map(asRecord)
- .filter(isTranscriptRecord)
- .map(readTranscriptEntry)
- .filter((entry): entry is TranscriptEntry => !isUndefined(entry));
-};
diff --git a/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-recording-tab.ts b/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-recording-tab.ts
deleted file mode 100644
index 89b5bb8cd8a..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-recording-tab.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import {
- definePageLayoutTab,
- PageLayoutTabLayoutMode,
-} from 'twenty-sdk/define';
-
-import { CALENDAR_EVENT_RECORD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-record-page-layout-universal-identifier';
-import { CALENDAR_EVENT_RECORDING_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-recording-front-component-universal-identifier';
-import { CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-recording-page-layout-tab-universal-identifier';
-import { CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-recording-page-layout-widget-universal-identifier';
-
-export default definePageLayoutTab({
- universalIdentifier:
- CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER,
- title: 'Call Recording',
- position: 15,
- icon: 'IconVideo',
- layoutMode: PageLayoutTabLayoutMode.CANVAS,
- pageLayoutUniversalIdentifier:
- CALENDAR_EVENT_RECORD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER,
- widgets: [
- {
- universalIdentifier:
- CALENDAR_EVENT_RECORDING_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER,
- title: 'Transcript',
- type: 'FRONT_COMPONENT',
- configuration: {
- configurationType: 'FRONT_COMPONENT',
- frontComponentUniversalIdentifier:
- CALENDAR_EVENT_RECORDING_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
- },
- },
- ],
-});
diff --git a/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-summary-tab.ts b/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-summary-tab.ts
deleted file mode 100644
index 126ecfc93d6..00000000000
--- a/packages/twenty-apps/public/call-recorder/src/page-layouts/calendar-event-summary-tab.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import {
- definePageLayoutTab,
- PageLayoutTabLayoutMode,
-} from 'twenty-sdk/define';
-
-import { CALENDAR_EVENT_RECORD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-record-page-layout-universal-identifier';
-import { CALENDAR_EVENT_SUMMARY_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-summary-front-component-universal-identifier';
-import { CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-summary-page-layout-tab-universal-identifier';
-import { CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER } from 'src/constants/calendar-event-summary-page-layout-widget-universal-identifier';
-
-export default definePageLayoutTab({
- universalIdentifier:
- CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_TAB_UNIVERSAL_IDENTIFIER,
- title: 'Summary',
- position: 14,
- icon: 'IconFileText',
- layoutMode: PageLayoutTabLayoutMode.CANVAS,
- pageLayoutUniversalIdentifier:
- CALENDAR_EVENT_RECORD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIER,
- widgets: [
- {
- universalIdentifier:
- CALENDAR_EVENT_SUMMARY_PAGE_LAYOUT_WIDGET_UNIVERSAL_IDENTIFIER,
- title: 'Summary',
- type: 'FRONT_COMPONENT',
- configuration: {
- configurationType: 'FRONT_COMPONENT',
- frontComponentUniversalIdentifier:
- CALENDAR_EVENT_SUMMARY_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
- },
- },
- ],
-});
diff --git a/packages/twenty-apps/public/call-recorder/tsconfig.spec.json b/packages/twenty-apps/public/call-recorder/tsconfig.spec.json
index b780a60a65e..ea69a6c0105 100644
--- a/packages/twenty-apps/public/call-recorder/tsconfig.spec.json
+++ b/packages/twenty-apps/public/call-recorder/tsconfig.spec.json
@@ -4,6 +4,6 @@
"composite": true,
"types": ["vitest/globals", "node"]
},
- "include": ["css.d.ts", "src/**/*.ts", "src/**/*.tsx"],
+ "include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}
diff --git a/packages/twenty-apps/public/call-recorder/yarn.lock b/packages/twenty-apps/public/call-recorder/yarn.lock
index 17c4f2b1143..bff2b73dd99 100644
--- a/packages/twenty-apps/public/call-recorder/yarn.lock
+++ b/packages/twenty-apps/public/call-recorder/yarn.lock
@@ -15,160 +15,6 @@ __metadata:
languageName: node
linkType: hard
-"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/code-frame@npm:7.29.7"
- dependencies:
- "@babel/helper-validator-identifier": "npm:^7.29.7"
- js-tokens: "npm:^4.0.0"
- picocolors: "npm:^1.1.1"
- checksum: 10c0/169fc2080169a40c1760155eaaaf739bcb882df0bec76a83adbda5493645bc17270a3434b8848c494b1933e96fe1d147370001e3cda09a39f43ae30f08ef2069
- languageName: node
- linkType: hard
-
-"@babel/generator@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/generator@npm:7.29.7"
- dependencies:
- "@babel/parser": "npm:^7.29.7"
- "@babel/types": "npm:^7.29.7"
- "@jridgewell/gen-mapping": "npm:^0.3.12"
- "@jridgewell/trace-mapping": "npm:^0.3.28"
- jsesc: "npm:^3.0.2"
- checksum: 10c0/9bf72b01b5bd0ea5b1288a0e37dbd360bff2f2b1ce73342c0d40fb3db2ec3dc004ada5ffa925c5e12939a416eed59e600d562b8ecd938ce0d27dfd0eb6c6c2b7
- languageName: node
- linkType: hard
-
-"@babel/helper-globals@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/helper-globals@npm:7.29.7"
- checksum: 10c0/f38417c40b1129a1b2b519ca961b9040c8827d1444fd74068702286b91b77089431dc76b6b9d5c1496e5da2a4f3ad329c6946e688ba3fa0d1d0b3d2b4f34f36a
- languageName: node
- linkType: hard
-
-"@babel/helper-module-imports@npm:^7.16.7":
- version: 7.29.7
- resolution: "@babel/helper-module-imports@npm:7.29.7"
- dependencies:
- "@babel/traverse": "npm:^7.29.7"
- "@babel/types": "npm:^7.29.7"
- checksum: 10c0/6adf60d97356027413342a092f818d9678c4f5caff716a33e3284b5ae14e47a9e88059d421dde4ee4894691260039a12602c0e7becadc175602194b40dfa345d
- languageName: node
- linkType: hard
-
-"@babel/helper-string-parser@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/helper-string-parser@npm:7.29.7"
- checksum: 10c0/194bc0f1716e396d5ffde56ad6119745fb9557662c98611590e5e454906783a4ccb21ce93056b8eb69a4909044834e45d96e50ac695bbe9e3221648fe033c06c
- languageName: node
- linkType: hard
-
-"@babel/helper-validator-identifier@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/helper-validator-identifier@npm:7.29.7"
- checksum: 10c0/4795354e7ae0dcafa72de1cd04ec51252dc1498517170beaf019e03effc5b7bf13c6b21a3949a77e07b8125be7f106ed1131350d8ebd4566ae874094a726d62b
- languageName: node
- linkType: hard
-
-"@babel/parser@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/parser@npm:7.29.7"
- dependencies:
- "@babel/types": "npm:^7.29.7"
- bin:
- parser: ./bin/babel-parser.js
- checksum: 10c0/65133038f80b54a714d6027cb77cee3f9a6b5c4c6842ce674301e13947cbcbfa8055e63acaf1b84c085d34226a14425b2c2b97b829e0e226d2e8f1299942a51d
- languageName: node
- linkType: hard
-
-"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.29.2":
- version: 7.29.7
- resolution: "@babel/runtime@npm:7.29.7"
- checksum: 10c0/ca11572f7146b21e0bde6a9ed4bb6a89eafbee5f0944c7eb54d0d8a2dac962c33638a1d611e14faa71dfbb92b4b5f9236232208568a6b7d5c6f3f39ddb91771e
- languageName: node
- linkType: hard
-
-"@babel/template@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/template@npm:7.29.7"
- dependencies:
- "@babel/code-frame": "npm:^7.29.7"
- "@babel/parser": "npm:^7.29.7"
- "@babel/types": "npm:^7.29.7"
- checksum: 10c0/8bb7f900dcab0e9e1c5ffbc33ca10e0d26b7b2e2ca804becb73ee771b9c4ed6e2908a4ae4a14c08560febb45d2b6b9a173955e42ad404d05f8b04840a14d9c58
- languageName: node
- linkType: hard
-
-"@babel/traverse@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/traverse@npm:7.29.7"
- dependencies:
- "@babel/code-frame": "npm:^7.29.7"
- "@babel/generator": "npm:^7.29.7"
- "@babel/helper-globals": "npm:^7.29.7"
- "@babel/parser": "npm:^7.29.7"
- "@babel/template": "npm:^7.29.7"
- "@babel/types": "npm:^7.29.7"
- debug: "npm:^4.3.1"
- checksum: 10c0/e256a1fbdb956555b76f3c285b1e453f6bedec8b3afb61751d99d933efd11c7d79caf5ddf2493570058a9f7deaa1b48324380d7c1aa1443fd9508becbf56331a
- languageName: node
- linkType: hard
-
-"@babel/types@npm:^7.29.7":
- version: 7.29.7
- resolution: "@babel/types@npm:7.29.7"
- dependencies:
- "@babel/helper-string-parser": "npm:^7.29.7"
- "@babel/helper-validator-identifier": "npm:^7.29.7"
- checksum: 10c0/b6623994c69717fa27294f5fa46d59140338e2d86c6c1c13085c84ef7d53086ee357fbf4fe9abe3dd3da75734dc77c4c0df2f90fb29e667558bb3b3fb705e88f
- languageName: node
- linkType: hard
-
-"@base-ui/react@npm:^1.5.0":
- version: 1.6.0
- resolution: "@base-ui/react@npm:1.6.0"
- dependencies:
- "@babel/runtime": "npm:^7.29.2"
- "@base-ui/utils": "npm:0.3.1"
- "@floating-ui/react-dom": "npm:^2.1.8"
- "@floating-ui/utils": "npm:^0.2.11"
- use-sync-external-store: "npm:^1.6.0"
- peerDependencies:
- "@date-fns/tz": ^1.2.0
- "@types/react": ^17 || ^18 || ^19
- date-fns: ^4.0.0
- react: ^17 || ^18 || ^19
- react-dom: ^17 || ^18 || ^19
- peerDependenciesMeta:
- "@date-fns/tz":
- optional: true
- "@types/react":
- optional: true
- date-fns:
- optional: true
- checksum: 10c0/5e5994dc782710eac900d68cc0691aea70a47fabc6ef8d2ea943103d9aa96c4b44f9fd76ba65d29fa2667a5fbd7ea7a1cc02fe111c4bf639d4e3e65a1c281118
- languageName: node
- linkType: hard
-
-"@base-ui/utils@npm:0.3.1":
- version: 0.3.1
- resolution: "@base-ui/utils@npm:0.3.1"
- dependencies:
- "@babel/runtime": "npm:^7.29.2"
- "@floating-ui/utils": "npm:^0.2.11"
- reselect: "npm:^5.2.0"
- use-sync-external-store: "npm:^1.6.0"
- peerDependencies:
- "@types/react": ^17 || ^18 || ^19
- react: ^17 || ^18 || ^19
- react-dom: ^17 || ^18 || ^19
- peerDependenciesMeta:
- "@types/react":
- optional: true
- checksum: 10c0/4de858c3e2c8a4486a549d51c5e887bba6921e5a7f8db54439ba558feaf1656c3592a873928aee8a1711ee9210be3a65ca43b26713e97f649695ed2fa8c3af2c
- languageName: node
- linkType: hard
-
"@emnapi/core@npm:1.10.0":
version: 1.10.0
resolution: "@emnapi/core@npm:1.10.0"
@@ -206,152 +52,6 @@ __metadata:
languageName: node
linkType: hard
-"@emotion/babel-plugin@npm:^11.13.5":
- version: 11.13.5
- resolution: "@emotion/babel-plugin@npm:11.13.5"
- dependencies:
- "@babel/helper-module-imports": "npm:^7.16.7"
- "@babel/runtime": "npm:^7.18.3"
- "@emotion/hash": "npm:^0.9.2"
- "@emotion/memoize": "npm:^0.9.0"
- "@emotion/serialize": "npm:^1.3.3"
- babel-plugin-macros: "npm:^3.1.0"
- convert-source-map: "npm:^1.5.0"
- escape-string-regexp: "npm:^4.0.0"
- find-root: "npm:^1.1.0"
- source-map: "npm:^0.5.7"
- stylis: "npm:4.2.0"
- checksum: 10c0/8ccbfec7defd0e513cb8a1568fa179eac1e20c35fda18aed767f6c59ea7314363ebf2de3e9d2df66c8ad78928dc3dceeded84e6fa8059087cae5c280090aeeeb
- languageName: node
- linkType: hard
-
-"@emotion/cache@npm:^11.14.0":
- version: 11.14.0
- resolution: "@emotion/cache@npm:11.14.0"
- dependencies:
- "@emotion/memoize": "npm:^0.9.0"
- "@emotion/sheet": "npm:^1.4.0"
- "@emotion/utils": "npm:^1.4.2"
- "@emotion/weak-memoize": "npm:^0.4.0"
- stylis: "npm:4.2.0"
- checksum: 10c0/3fa3e7a431ab6f8a47c67132a00ac8358f428c1b6c8421d4b20de9df7c18e95eec04a5a6ff5a68908f98d3280044f247b4965ac63df8302d2c94dba718769724
- languageName: node
- linkType: hard
-
-"@emotion/hash@npm:^0.9.2":
- version: 0.9.2
- resolution: "@emotion/hash@npm:0.9.2"
- checksum: 10c0/0dc254561a3cc0a06a10bbce7f6a997883fd240c8c1928b93713f803a2e9153a257a488537012efe89dbe1246f2abfe2add62cdb3471a13d67137fcb808e81c2
- languageName: node
- linkType: hard
-
-"@emotion/is-prop-valid@npm:^1.3.0":
- version: 1.4.0
- resolution: "@emotion/is-prop-valid@npm:1.4.0"
- dependencies:
- "@emotion/memoize": "npm:^0.9.0"
- checksum: 10c0/5f857814ec7d8c7e727727346dfb001af6b1fb31d621a3ce9c3edf944a484d8b0d619546c30899ae3ade2f317c76390ba4394449728e9bf628312defc2c41ac3
- languageName: node
- linkType: hard
-
-"@emotion/memoize@npm:^0.9.0":
- version: 0.9.0
- resolution: "@emotion/memoize@npm:0.9.0"
- checksum: 10c0/13f474a9201c7f88b543e6ea42f55c04fb2fdc05e6c5a3108aced2f7e7aa7eda7794c56bba02985a46d8aaa914fcdde238727a98341a96e2aec750d372dadd15
- languageName: node
- linkType: hard
-
-"@emotion/react@npm:^11.14.0":
- version: 11.14.0
- resolution: "@emotion/react@npm:11.14.0"
- dependencies:
- "@babel/runtime": "npm:^7.18.3"
- "@emotion/babel-plugin": "npm:^11.13.5"
- "@emotion/cache": "npm:^11.14.0"
- "@emotion/serialize": "npm:^1.3.3"
- "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0"
- "@emotion/utils": "npm:^1.4.2"
- "@emotion/weak-memoize": "npm:^0.4.0"
- hoist-non-react-statics: "npm:^3.3.1"
- peerDependencies:
- react: ">=16.8.0"
- peerDependenciesMeta:
- "@types/react":
- optional: true
- checksum: 10c0/d0864f571a9f99ec643420ef31fde09e2006d3943a6aba079980e4d5f6e9f9fecbcc54b8f617fe003c00092ff9d5241179149ffff2810cb05cf72b4620cfc031
- languageName: node
- linkType: hard
-
-"@emotion/serialize@npm:^1.3.3":
- version: 1.3.3
- resolution: "@emotion/serialize@npm:1.3.3"
- dependencies:
- "@emotion/hash": "npm:^0.9.2"
- "@emotion/memoize": "npm:^0.9.0"
- "@emotion/unitless": "npm:^0.10.0"
- "@emotion/utils": "npm:^1.4.2"
- csstype: "npm:^3.0.2"
- checksum: 10c0/b28cb7de59de382021de2b26c0c94ebbfb16967a1b969a56fdb6408465a8993df243bfbd66430badaa6800e1834724e84895f5a6a9d97d0d224de3d77852acb4
- languageName: node
- linkType: hard
-
-"@emotion/sheet@npm:^1.4.0":
- version: 1.4.0
- resolution: "@emotion/sheet@npm:1.4.0"
- checksum: 10c0/3ca72d1650a07d2fbb7e382761b130b4a887dcd04e6574b2d51ce578791240150d7072a9bcb4161933abbcd1e38b243a6fb4464a7fe991d700c17aa66bb5acc7
- languageName: node
- linkType: hard
-
-"@emotion/styled@npm:^11.14.0":
- version: 11.14.1
- resolution: "@emotion/styled@npm:11.14.1"
- dependencies:
- "@babel/runtime": "npm:^7.18.3"
- "@emotion/babel-plugin": "npm:^11.13.5"
- "@emotion/is-prop-valid": "npm:^1.3.0"
- "@emotion/serialize": "npm:^1.3.3"
- "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0"
- "@emotion/utils": "npm:^1.4.2"
- peerDependencies:
- "@emotion/react": ^11.0.0-rc.0
- react: ">=16.8.0"
- peerDependenciesMeta:
- "@types/react":
- optional: true
- checksum: 10c0/2bbf8451df49c967e41fbcf8111a7f6dafe6757f0cc113f2f6e287206c45ac1d54dc8a95a483b7c0cee8614b8a8d08155bded6453d6721de1f8cc8d5b9216963
- languageName: node
- linkType: hard
-
-"@emotion/unitless@npm:^0.10.0":
- version: 0.10.0
- resolution: "@emotion/unitless@npm:0.10.0"
- checksum: 10c0/150943192727b7650eb9a6851a98034ddb58a8b6958b37546080f794696141c3760966ac695ab9af97efe10178690987aee4791f9f0ad1ff76783cdca83c1d49
- languageName: node
- linkType: hard
-
-"@emotion/use-insertion-effect-with-fallbacks@npm:^1.2.0":
- version: 1.2.0
- resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.2.0"
- peerDependencies:
- react: ">=16.8.0"
- checksum: 10c0/074dbc92b96bdc09209871070076e3b0351b6b47efefa849a7d9c37ab142130767609ca1831da0055988974e3b895c1de7606e4c421fecaa27c3e56a2afd3b08
- languageName: node
- linkType: hard
-
-"@emotion/utils@npm:^1.4.2":
- version: 1.4.2
- resolution: "@emotion/utils@npm:1.4.2"
- checksum: 10c0/7d0010bf60a2a8c1a033b6431469de4c80e47aeb8fd856a17c1d1f76bbc3a03161a34aeaa78803566e29681ca551e7bf9994b68e9c5f5c796159923e44f78d9a
- languageName: node
- linkType: hard
-
-"@emotion/weak-memoize@npm:^0.4.0":
- version: 0.4.0
- resolution: "@emotion/weak-memoize@npm:0.4.0"
- checksum: 10c0/64376af11f1266042d03b3305c30b7502e6084868e33327e944b539091a472f089db307af69240f7188f8bc6b319276fd7b141a36613f1160d73d12a60f6ca1a
- languageName: node
- linkType: hard
-
"@esbuild/aix-ppc64@npm:0.28.1":
version: 0.28.1
resolution: "@esbuild/aix-ppc64@npm:0.28.1"
@@ -534,44 +234,6 @@ __metadata:
languageName: node
linkType: hard
-"@floating-ui/core@npm:^1.7.5":
- version: 1.7.5
- resolution: "@floating-ui/core@npm:1.7.5"
- dependencies:
- "@floating-ui/utils": "npm:^0.2.11"
- checksum: 10c0/f9c52205e198b231d63a387b09c659aab08c46a1899e0b0bbe147b8b4f048b546f15ba17cb5d2a471da9534f1883d979425e13e5c4ceee67be63e4b0abd4db5d
- languageName: node
- linkType: hard
-
-"@floating-ui/dom@npm:^1.7.6":
- version: 1.7.6
- resolution: "@floating-ui/dom@npm:1.7.6"
- dependencies:
- "@floating-ui/core": "npm:^1.7.5"
- "@floating-ui/utils": "npm:^0.2.11"
- checksum: 10c0/5c098e0d7b58c9bc769f276cca1766994c2c9c70c92d091a61bba8b3e9be53c011e0a79a8457fc2fb2f3d91697a26eb52e0a4962ef936dc963b45f58613c212f
- languageName: node
- linkType: hard
-
-"@floating-ui/react-dom@npm:^2.1.8":
- version: 2.1.8
- resolution: "@floating-ui/react-dom@npm:2.1.8"
- dependencies:
- "@floating-ui/dom": "npm:^1.7.6"
- peerDependencies:
- react: ">=16.8.0"
- react-dom: ">=16.8.0"
- checksum: 10c0/26260ca4bb23b57c73b824062505abf977a008ce6e0463bdacca74f7e49853c4cd1d2bbf1a77c6caa17fa37dfffda2c6c4cd07a8737ebd7474aaff7818401d75
- languageName: node
- linkType: hard
-
-"@floating-ui/utils@npm:^0.2.11":
- version: 0.2.11
- resolution: "@floating-ui/utils@npm:0.2.11"
- checksum: 10c0/f4bcea1559bdbb721ecc8e8ead423ac58d6a5b6e70b602cf0810ba6ad4ed1c77211b207faa88b278a9042f0c743133de08a203ed6741c1b6443423332884d5b3
- languageName: node
- linkType: hard
-
"@genql/runtime@npm:^2.10.0":
version: 2.10.0
resolution: "@genql/runtime@npm:2.10.0"
@@ -1087,62 +749,13 @@ __metadata:
languageName: node
linkType: hard
-"@jridgewell/gen-mapping@npm:^0.3.12":
- version: 0.3.13
- resolution: "@jridgewell/gen-mapping@npm:0.3.13"
- dependencies:
- "@jridgewell/sourcemap-codec": "npm:^1.5.0"
- "@jridgewell/trace-mapping": "npm:^0.3.24"
- checksum: 10c0/9a7d65fb13bd9aec1fbab74cda08496839b7e2ceb31f5ab922b323e94d7c481ce0fc4fd7e12e2610915ed8af51178bdc61e168e92a8c8b8303b030b03489b13b
- languageName: node
- linkType: hard
-
-"@jridgewell/resolve-uri@npm:^3.1.0":
- version: 3.1.2
- resolution: "@jridgewell/resolve-uri@npm:3.1.2"
- checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e
- languageName: node
- linkType: hard
-
-"@jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0, @jridgewell/sourcemap-codec@npm:^1.5.5":
+"@jridgewell/sourcemap-codec@npm:^1.5.5":
version: 1.5.5
resolution: "@jridgewell/sourcemap-codec@npm:1.5.5"
checksum: 10c0/f9e538f302b63c0ebc06eecb1dd9918dd4289ed36147a0ddce35d6ea4d7ebbda243cda7b2213b6a5e1d8087a298d5cf630fb2bd39329cdecb82017023f6081a0
languageName: node
linkType: hard
-"@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.28":
- version: 0.3.31
- resolution: "@jridgewell/trace-mapping@npm:0.3.31"
- dependencies:
- "@jridgewell/resolve-uri": "npm:^3.1.0"
- "@jridgewell/sourcemap-codec": "npm:^1.4.14"
- checksum: 10c0/4b30ec8cd56c5fd9a661f088230af01e0c1a3888d11ffb6b47639700f71225be21d1f7e168048d6d4f9449207b978a235c07c8f15c07705685d16dc06280e9d9
- languageName: node
- linkType: hard
-
-"@monaco-editor/loader@npm:^1.5.0":
- version: 1.7.0
- resolution: "@monaco-editor/loader@npm:1.7.0"
- dependencies:
- state-local: "npm:^1.0.6"
- checksum: 10c0/1fd3579cb09b669493cf553dfc0723a93483140a44353ce9a739827edfa7b2c6541b254024d15c48176ece749ef666b6d16cce6cf0e4396c7fa1c5a48012d08a
- languageName: node
- linkType: hard
-
-"@monaco-editor/react@npm:^4.7.0":
- version: 4.7.0
- resolution: "@monaco-editor/react@npm:4.7.0"
- dependencies:
- "@monaco-editor/loader": "npm:^1.5.0"
- peerDependencies:
- monaco-editor: ">= 0.25.0 < 1"
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- checksum: 10c0/a4e91c6eda1a71f5fd23871bd801de435490ccbc43934d23cba65cefe2be7e9d02c9a57c4ef80fc9fe99e4d4deea51e5db19cb4e0ecf3f51818dda0eb9cdbf12
- languageName: node
- linkType: hard
-
"@napi-rs/wasm-runtime@npm:^1.1.4":
version: 1.1.5
resolution: "@napi-rs/wasm-runtime@npm:1.1.5"
@@ -1218,20 +831,6 @@ __metadata:
languageName: node
linkType: hard
-"@radix-ui/colors@npm:^3.0.0":
- version: 3.0.0
- resolution: "@radix-ui/colors@npm:3.0.0"
- checksum: 10c0/612c6bb4efe987f2d49aaca2f785687d08150da59a248328bc2b4e187ece4ef731c1dc5c6a9430fffcac4af9e65cf2f89ceb9806f8809940c9eb238b79d2cf2f
- languageName: node
- linkType: hard
-
-"@remix-run/router@npm:1.23.4":
- version: 1.23.4
- resolution: "@remix-run/router@npm:1.23.4"
- checksum: 10c0/ef17eb2a606c125f09c55683585099725421af1c11f1c1d1c3841fe4eea3f99eb56b26ecbb17429a173c704ecae336c37e0d74855faa9330667433ef4f419436
- languageName: node
- linkType: hard
-
"@rolldown/binding-android-arm64@npm:1.0.3":
version: 1.0.3
resolution: "@rolldown/binding-android-arm64@npm:1.0.3"
@@ -1362,30 +961,10 @@ __metadata:
languageName: node
linkType: hard
-"@tabler/icons-react@npm:^3.31.0":
- version: 3.44.0
- resolution: "@tabler/icons-react@npm:3.44.0"
- dependencies:
- "@tabler/icons": "npm:3.44.0"
- peerDependencies:
- react: ">= 16"
- checksum: 10c0/9a4bb6f1121d001049be8bb5757160ce4d5f2430671479ee94763f88ef43a69ab8d89b835d6c6451de22f3071793b779fefeed43db49d7993de1ea65c50145c9
- languageName: node
- linkType: hard
-
-"@tabler/icons@npm:3.44.0":
- version: 3.44.0
- resolution: "@tabler/icons@npm:3.44.0"
- checksum: 10c0/0d5c1f9d6e68aa04c4a661e96035190e0884e0bc0022d31922efad3cfba210a25b2f013c0b6c0ab6aeb3d5a402a9b85a168966bd11a30ba6087f614f8521ccf3
- languageName: node
- linkType: hard
-
"@twentyhq/call-recorder@workspace:.":
version: 0.0.0-use.local
resolution: "@twentyhq/call-recorder@workspace:."
dependencies:
- "@emotion/react": "npm:^11.14.0"
- "@emotion/styled": "npm:^11.14.0"
"@sniptt/guards": "npm:^0.2.0"
"@types/node": "npm:^24.7.2"
"@types/react": "npm:^19.0.0"
@@ -1396,7 +975,6 @@ __metadata:
sharp: "npm:^0.35.3"
twenty-client-sdk: "npm:2.31.0-alpha.1"
twenty-sdk: "npm:2.31.0-alpha.1"
- twenty-ui: "npm:^1.0.0-alpha.1"
typescript: "npm:^5.9.3"
vite-tsconfig-paths: "npm:^4.2.1"
vitest: "npm:^4.1.9"
@@ -1454,13 +1032,6 @@ __metadata:
languageName: node
linkType: hard
-"@types/parse-json@npm:^4.0.0":
- version: 4.0.2
- resolution: "@types/parse-json@npm:4.0.2"
- checksum: 10c0/b1b863ac34a2c2172fbe0807a1ec4d5cb684e48d422d15ec95980b81475fac4fdb3768a8b13eef39130203a7c04340fc167bae057c7ebcafd7dec9fe6c36aeb1
- languageName: node
- linkType: hard
-
"@types/qs@npm:^6.9.0":
version: 6.15.1
resolution: "@types/qs@npm:6.15.1"
@@ -1742,17 +1313,6 @@ __metadata:
languageName: node
linkType: hard
-"babel-plugin-macros@npm:^3.1.0":
- version: 3.1.0
- resolution: "babel-plugin-macros@npm:3.1.0"
- dependencies:
- "@babel/runtime": "npm:^7.12.5"
- cosmiconfig: "npm:^7.0.0"
- resolve: "npm:^1.19.0"
- checksum: 10c0/c6dfb15de96f67871d95bd2e8c58b0c81edc08b9b087dc16755e7157f357dc1090a8dc60ebab955e92587a9101f02eba07e730adc253a1e4cf593ca3ebd3839c
- languageName: node
- linkType: hard
-
"backo2@npm:^1.0.2":
version: 1.0.2
resolution: "backo2@npm:1.0.2"
@@ -1770,13 +1330,6 @@ __metadata:
languageName: node
linkType: hard
-"callsites@npm:^3.0.0":
- version: 3.1.0
- resolution: "callsites@npm:3.1.0"
- checksum: 10c0/fff92277400eb06c3079f9e74f3af120db9f8ea03bad0e84d9aede54bbe2d44a56cccb5f6cf12211f93f52306df87077ecec5b712794c5a9b5dac6d615a3f301
- languageName: node
- linkType: hard
-
"chai@npm:^6.2.2":
version: 6.2.2
resolution: "chai@npm:6.2.2"
@@ -1847,13 +1400,6 @@ __metadata:
languageName: node
linkType: hard
-"clsx@npm:^2.1.1":
- version: 2.1.1
- resolution: "clsx@npm:2.1.1"
- checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
- languageName: node
- linkType: hard
-
"code-excerpt@npm:^4.0.0":
version: 4.0.0
resolution: "code-excerpt@npm:4.0.0"
@@ -1879,13 +1425,6 @@ __metadata:
languageName: node
linkType: hard
-"convert-source-map@npm:^1.5.0":
- version: 1.9.0
- resolution: "convert-source-map@npm:1.9.0"
- checksum: 10c0/281da55454bf8126cbc6625385928c43479f2060984180c42f3a86c8b8c12720a24eac260624a7d1e090004028d2dee78602330578ceec1a08e27cb8bb0a8a5b
- languageName: node
- linkType: hard
-
"convert-source-map@npm:^2.0.0":
version: 2.0.0
resolution: "convert-source-map@npm:2.0.0"
@@ -1900,34 +1439,14 @@ __metadata:
languageName: node
linkType: hard
-"cosmiconfig@npm:^7.0.0":
- version: 7.1.0
- resolution: "cosmiconfig@npm:7.1.0"
- dependencies:
- "@types/parse-json": "npm:^4.0.0"
- import-fresh: "npm:^3.2.1"
- parse-json: "npm:^5.0.0"
- path-type: "npm:^4.0.0"
- yaml: "npm:^1.10.0"
- checksum: 10c0/b923ff6af581638128e5f074a5450ba12c0300b71302398ea38dbeabd33bbcaa0245ca9adbedfcf284a07da50f99ede5658c80bb3e39e2ce770a99d28a21ef03
- languageName: node
- linkType: hard
-
-"css-mediaquery@npm:^0.1.2":
- version: 0.1.2
- resolution: "css-mediaquery@npm:0.1.2"
- checksum: 10c0/b7825a78f52ce8a8198e004fcad0d7be1d3c9a0463ecd05ba31a0f2c94fb81468ad6f4d7bf715a6ca775696e7a17500c2a339b5216a6d0f789cbf78f9454d048
- languageName: node
- linkType: hard
-
-"csstype@npm:^3.0.2, csstype@npm:^3.2.2":
+"csstype@npm:^3.2.2":
version: 3.2.3
resolution: "csstype@npm:3.2.3"
checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce
languageName: node
linkType: hard
-"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1":
+"debug@npm:4, debug@npm:^4.1.1":
version: 4.4.3
resolution: "debug@npm:4.4.3"
dependencies:
@@ -1985,15 +1504,6 @@ __metadata:
languageName: node
linkType: hard
-"error-ex@npm:^1.3.1":
- version: 1.3.4
- resolution: "error-ex@npm:1.3.4"
- dependencies:
- is-arrayish: "npm:^0.2.1"
- checksum: 10c0/b9e34ff4778b8f3b31a8377e1c654456f4c41aeaa3d10a1138c3b7635d8b7b2e03eb2475d46d8ae055c1f180a1063e100bffabf64ea7e7388b37735df5328664
- languageName: node
- linkType: hard
-
"es-define-property@npm:^1.0.1":
version: 1.0.1
resolution: "es-define-property@npm:1.0.1"
@@ -2146,13 +1656,6 @@ __metadata:
languageName: node
linkType: hard
-"escape-string-regexp@npm:^4.0.0":
- version: 4.0.0
- resolution: "escape-string-regexp@npm:4.0.0"
- checksum: 10c0/9497d4dd307d845bd7f75180d8188bb17ea8c151c1edbf6b6717c100e104d629dc2dfb687686181b0f4b7d732c7dfdc4d5e7a8ff72de1b0ca283a75bbb3a9cd9
- languageName: node
- linkType: hard
-
"estree-walker@npm:^3.0.3":
version: 3.0.3
resolution: "estree-walker@npm:3.0.3"
@@ -2220,13 +1723,6 @@ __metadata:
languageName: node
linkType: hard
-"find-root@npm:^1.1.0":
- version: 1.1.0
- resolution: "find-root@npm:1.1.0"
- checksum: 10c0/1abc7f3bf2f8d78ff26d9e00ce9d0f7b32e5ff6d1da2857bcdf4746134c422282b091c672cde0572cac3840713487e0a7a636af9aa1b74cb11894b447a521efa
- languageName: node
- linkType: hard
-
"follow-redirects@npm:^1.16.0":
version: 1.16.0
resolution: "follow-redirects@npm:1.16.0"
@@ -2381,7 +1877,7 @@ __metadata:
languageName: node
linkType: hard
-"hasown@npm:^2.0.2, hasown@npm:^2.0.3, hasown@npm:^2.0.4":
+"hasown@npm:^2.0.2, hasown@npm:^2.0.4":
version: 2.0.4
resolution: "hasown@npm:2.0.4"
dependencies:
@@ -2390,15 +1886,6 @@ __metadata:
languageName: node
linkType: hard
-"hoist-non-react-statics@npm:^3.3.1":
- version: 3.3.2
- resolution: "hoist-non-react-statics@npm:3.3.2"
- dependencies:
- react-is: "npm:^16.7.0"
- checksum: 10c0/fe0889169e845d738b59b64badf5e55fa3cf20454f9203d1eb088df322d49d4318df774828e789898dcb280e8a5521bb59b3203385662ca5e9218a6ca5820e74
- languageName: node
- linkType: hard
-
"https-proxy-agent@npm:^5.0.1":
version: 5.0.1
resolution: "https-proxy-agent@npm:5.0.1"
@@ -2409,13 +1896,6 @@ __metadata:
languageName: node
linkType: hard
-"hyphenate-style-name@npm:^1.0.0":
- version: 1.1.0
- resolution: "hyphenate-style-name@npm:1.1.0"
- checksum: 10c0/bfe88deac2414a41a0d08811e277c8c098f23993d6a1eb17f14a0f11b54c4d42865a63d3cfe1914668eefb9a188e2de58f38b55a179a238fd1fef606893e194f
- languageName: node
- linkType: hard
-
"iconv-lite@npm:^0.7.2":
version: 0.7.2
resolution: "iconv-lite@npm:0.7.2"
@@ -2425,16 +1905,6 @@ __metadata:
languageName: node
linkType: hard
-"import-fresh@npm:^3.2.1":
- version: 3.3.1
- resolution: "import-fresh@npm:3.3.1"
- dependencies:
- parent-module: "npm:^1.0.0"
- resolve-from: "npm:^4.0.0"
- checksum: 10c0/bf8cc494872fef783249709385ae883b447e3eb09db0ebd15dcead7d9afe7224dad7bd7591c6b73b0b19b3c0f9640eb8ee884f01cfaf2887ab995b0b36a0cbec
- languageName: node
- linkType: hard
-
"indent-string@npm:^5.0.0":
version: 5.0.0
resolution: "indent-string@npm:5.0.0"
@@ -2503,22 +1973,6 @@ __metadata:
languageName: node
linkType: hard
-"is-arrayish@npm:^0.2.1":
- version: 0.2.1
- resolution: "is-arrayish@npm:0.2.1"
- checksum: 10c0/e7fb686a739068bb70f860b39b67afc62acc62e36bb61c5f965768abce1873b379c563e61dd2adad96ebb7edf6651111b385e490cf508378959b0ed4cac4e729
- languageName: node
- linkType: hard
-
-"is-core-module@npm:^2.16.1":
- version: 2.16.2
- resolution: "is-core-module@npm:2.16.2"
- dependencies:
- hasown: "npm:^2.0.3"
- checksum: 10c0/14b4258390283709c15476d023ec173e27458d5d014ccdb8ed39d576e551c3fa45498b7c9fe178f1529c4cb2648ddd58852a6a62107a019f6e349529f277518a
- languageName: node
- linkType: hard
-
"is-fullwidth-code-point@npm:^5.0.0, is-fullwidth-code-point@npm:^5.1.0":
version: 5.1.0
resolution: "is-fullwidth-code-point@npm:5.1.0"
@@ -2561,29 +2015,6 @@ __metadata:
languageName: node
linkType: hard
-"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0":
- version: 4.0.0
- resolution: "js-tokens@npm:4.0.0"
- checksum: 10c0/e248708d377aa058eacf2037b07ded847790e6de892bbad3dac0abba2e759cb9f121b00099a65195616badcb6eca8d14d975cb3e89eb1cfda644756402c8aeed
- languageName: node
- linkType: hard
-
-"jsesc@npm:^3.0.2":
- version: 3.1.0
- resolution: "jsesc@npm:3.1.0"
- bin:
- jsesc: bin/jsesc
- checksum: 10c0/531779df5ec94f47e462da26b4cbf05eb88a83d9f08aac2ba04206508fc598527a153d08bd462bae82fc78b3eaa1a908e1a4a79f886e9238641c4cdefaf118b1
- languageName: node
- linkType: hard
-
-"json-parse-even-better-errors@npm:^2.3.0":
- version: 2.3.1
- resolution: "json-parse-even-better-errors@npm:2.3.1"
- checksum: 10c0/140932564c8f0b88455432e0f33c4cb4086b8868e37524e07e723f4eaedb9425bdc2bafd71bd1d9765bd15fd1e2d126972bc83990f55c467168c228c24d665f3
- languageName: node
- linkType: hard
-
"jsonc-parser@npm:^3.2.0":
version: 3.3.1
resolution: "jsonc-parser@npm:3.3.1"
@@ -2711,13 +2142,6 @@ __metadata:
languageName: node
linkType: hard
-"lines-and-columns@npm:^1.1.6":
- version: 1.2.4
- resolution: "lines-and-columns@npm:1.2.4"
- checksum: 10c0/3da6ee62d4cd9f03f5dc90b4df2540fb85b352081bee77fe4bbcd12c9000ead7f35e0a38b8d09a9bb99b13223446dd8689ff3c4959807620726d788701a83d2d
- languageName: node
- linkType: hard
-
"lodash@npm:^4.17.20, lodash@npm:^4.17.21":
version: 4.18.1
resolution: "lodash@npm:4.18.1"
@@ -2725,17 +2149,6 @@ __metadata:
languageName: node
linkType: hard
-"loose-envify@npm:^1.4.0":
- version: 1.4.0
- resolution: "loose-envify@npm:1.4.0"
- dependencies:
- js-tokens: "npm:^3.0.0 || ^4.0.0"
- bin:
- loose-envify: cli.js
- checksum: 10c0/655d110220983c1a4b9c0c679a2e8016d4b67f6e9c7b5435ff5979ecdb20d0813f4dec0a08674fcbdd4846a3f07edbb50a36811fd37930b94aaa0d9daceb017e
- languageName: node
- linkType: hard
-
"magic-string@npm:^0.30.21":
version: 0.30.21
resolution: "magic-string@npm:0.30.21"
@@ -2745,15 +2158,6 @@ __metadata:
languageName: node
linkType: hard
-"matchmediaquery@npm:^0.3.0":
- version: 0.3.1
- resolution: "matchmediaquery@npm:0.3.1"
- dependencies:
- css-mediaquery: "npm:^0.1.2"
- checksum: 10c0/19a254e0a1eb639fcc6aa7428a6e2d36cb5646a165579897e771580653e470b43d7f4a224c522700dbf1d8f19fb7c63a9719e0a6017727ade967155a2ae89fea
- languageName: node
- linkType: hard
-
"math-intrinsics@npm:^1.1.0":
version: 1.1.0
resolution: "math-intrinsics@npm:1.1.0"
@@ -2868,13 +2272,6 @@ __metadata:
languageName: node
linkType: hard
-"object-assign@npm:^4.1.1":
- version: 4.1.1
- resolution: "object-assign@npm:4.1.1"
- checksum: 10c0/1f4df9945120325d041ccf7b86f31e8bcc14e73d29171e37a7903050e96b81323784ec59f93f102ec635bcf6fa8034ba3ea0a8c7e69fa202b87ae3b6cec5a414
- languageName: node
- linkType: hard
-
"obug@npm:^2.1.1":
version: 2.1.3
resolution: "obug@npm:2.1.3"
@@ -2927,27 +2324,6 @@ __metadata:
languageName: node
linkType: hard
-"parent-module@npm:^1.0.0":
- version: 1.0.1
- resolution: "parent-module@npm:1.0.1"
- dependencies:
- callsites: "npm:^3.0.0"
- checksum: 10c0/c63d6e80000d4babd11978e0d3fee386ca7752a02b035fd2435960ffaa7219dc42146f07069fb65e6e8bf1caef89daf9af7535a39bddf354d78bf50d8294f556
- languageName: node
- linkType: hard
-
-"parse-json@npm:^5.0.0":
- version: 5.2.0
- resolution: "parse-json@npm:5.2.0"
- dependencies:
- "@babel/code-frame": "npm:^7.0.0"
- error-ex: "npm:^1.3.1"
- json-parse-even-better-errors: "npm:^2.3.0"
- lines-and-columns: "npm:^1.1.6"
- checksum: 10c0/77947f2253005be7a12d858aedbafa09c9ae39eb4863adf330f7b416ca4f4a08132e453e08de2db46459256fb66afaac5ee758b44fe6541b7cdaf9d252e59585
- languageName: node
- linkType: hard
-
"patch-console@npm:^2.0.0":
version: 2.0.0
resolution: "patch-console@npm:2.0.0"
@@ -2955,20 +2331,6 @@ __metadata:
languageName: node
linkType: hard
-"path-parse@npm:^1.0.7":
- version: 1.0.7
- resolution: "path-parse@npm:1.0.7"
- checksum: 10c0/11ce261f9d294cc7a58d6a574b7f1b935842355ec66fba3c3fd79e0f036462eaf07d0aa95bb74ff432f9afef97ce1926c720988c6a7451d8a584930ae7de86e1
- languageName: node
- linkType: hard
-
-"path-type@npm:^4.0.0":
- version: 4.0.0
- resolution: "path-type@npm:4.0.0"
- checksum: 10c0/666f6973f332f27581371efaf303fd6c272cc43c2057b37aa99e3643158c7e4b2626549555d88626e99ea9e046f82f32e41bbde5f1508547e9a11b149b52387c
- languageName: node
- linkType: hard
-
"pathe@npm:^2.0.3":
version: 2.0.3
resolution: "pathe@npm:2.0.3"
@@ -3024,17 +2386,6 @@ __metadata:
languageName: node
linkType: hard
-"prop-types@npm:^15.6.1":
- version: 15.8.1
- resolution: "prop-types@npm:15.8.1"
- dependencies:
- loose-envify: "npm:^1.4.0"
- object-assign: "npm:^4.1.1"
- react-is: "npm:^16.13.1"
- checksum: 10c0/59ece7ca2fb9838031d73a48d4becb9a7cc1ed10e610517c7d8f19a1e02fa47f7c27d557d8a5702bec3cfeccddc853579832b43f449e54635803f277b1c78077
- languageName: node
- linkType: hard
-
"proxy-from-env@npm:^2.1.0":
version: 2.1.0
resolution: "proxy-from-env@npm:2.1.0"
@@ -3053,13 +2404,6 @@ __metadata:
languageName: node
linkType: hard
-"react-is@npm:^16.13.1, react-is@npm:^16.7.0":
- version: 16.13.1
- resolution: "react-is@npm:16.13.1"
- checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1
- languageName: node
- linkType: hard
-
"react-reconciler@npm:^0.33.0":
version: 0.33.0
resolution: "react-reconciler@npm:0.33.0"
@@ -3071,44 +2415,6 @@ __metadata:
languageName: node
linkType: hard
-"react-responsive@npm:^9.0.2":
- version: 9.0.2
- resolution: "react-responsive@npm:9.0.2"
- dependencies:
- hyphenate-style-name: "npm:^1.0.0"
- matchmediaquery: "npm:^0.3.0"
- prop-types: "npm:^15.6.1"
- shallow-equal: "npm:^1.2.1"
- peerDependencies:
- react: ">=16.8.0"
- checksum: 10c0/c58b30d8b8ff993edbc73f7de59a2d86d8abd6380b06a9b41667c3bdd5401e5e710fa1d0fdac21368759ab9b958e8b479a111329a06e9b0241ee08f500b37a20
- languageName: node
- linkType: hard
-
-"react-router-dom@npm:^6.4.4":
- version: 6.30.6
- resolution: "react-router-dom@npm:6.30.6"
- dependencies:
- "@remix-run/router": "npm:1.23.4"
- react-router: "npm:6.30.6"
- peerDependencies:
- react: ">=16.8"
- react-dom: ">=16.8"
- checksum: 10c0/57dbb2ae4ac787f78c4d10b764c1c5223635378033e33dda4e0a4417144ae847fb43dc98008075951826258287c27c67729ca713c90957cf2ecf9055561bdc2e
- languageName: node
- linkType: hard
-
-"react-router@npm:6.30.6":
- version: 6.30.6
- resolution: "react-router@npm:6.30.6"
- dependencies:
- "@remix-run/router": "npm:1.23.4"
- peerDependencies:
- react: ">=16.8"
- checksum: 10c0/d101388d92a44e159ef30dd2402a7f7b6aace8f837bb42aed1f8a6b3a4eff769d1822bf69382f0acb85a790628dac081c22bedb2bca12707e0e5e91427010fc3
- languageName: node
- linkType: hard
-
"react@npm:^19.0.0, react@npm:^19.2.0":
version: 19.2.7
resolution: "react@npm:19.2.7"
@@ -3123,48 +2429,6 @@ __metadata:
languageName: node
linkType: hard
-"reselect@npm:^5.2.0":
- version: 5.2.0
- resolution: "reselect@npm:5.2.0"
- checksum: 10c0/d0a8497e404b25a769fe792eacae88b9b576c30870450cd243d76ec9427d91a59c4a2cc00d824d283448b444c4c698a8f961d771c8ae39c759313afb31950e2e
- languageName: node
- linkType: hard
-
-"resolve-from@npm:^4.0.0":
- version: 4.0.0
- resolution: "resolve-from@npm:4.0.0"
- checksum: 10c0/8408eec31a3112ef96e3746c37be7d64020cda07c03a920f5024e77290a218ea758b26ca9529fd7b1ad283947f34b2291c1c0f6aa0ed34acfdda9c6014c8d190
- languageName: node
- linkType: hard
-
-"resolve@npm:^1.19.0":
- version: 1.22.12
- resolution: "resolve@npm:1.22.12"
- dependencies:
- es-errors: "npm:^1.3.0"
- is-core-module: "npm:^2.16.1"
- path-parse: "npm:^1.0.7"
- supports-preserve-symlinks-flag: "npm:^1.0.0"
- bin:
- resolve: bin/resolve
- checksum: 10c0/b16dc9b537c02e8c3388f7d3dcff9741d3071625f9a97ac1c885f2b0ca51e78df22328fb6d6ef214dd9101fb7cfc19aa2836fe3410402a94f3f7b8639c7149bf
- languageName: node
- linkType: hard
-
-"resolve@patch:resolve@npm%3A^1.19.0#optional!builtin<compat/resolve>":
- version: 1.22.12
- resolution: "resolve@patch:resolve@npm%3A1.22.12#optional!builtin<compat/resolve>::version=1.22.12&hash=c3c19d"
- dependencies:
- es-errors: "npm:^1.3.0"
- is-core-module: "npm:^2.16.1"
- path-parse: "npm:^1.0.7"
- supports-preserve-symlinks-flag: "npm:^1.0.0"
- bin:
- resolve: bin/resolve
- checksum: 10c0/fc6519984ae1f894d877c0060ba8b1f5ba3bc0e85a02f74e141929c118c23d74d9735619a9cc2965397387e514884245c65d72a40731dcb6cfc84c7bcdc8321e
- languageName: node
- linkType: hard
-
"restore-cursor@npm:^4.0.0":
version: 4.0.0
resolution: "restore-cursor@npm:4.0.0"
@@ -3281,13 +2545,6 @@ __metadata:
languageName: node
linkType: hard
-"shallow-equal@npm:^1.2.1":
- version: 1.2.1
- resolution: "shallow-equal@npm:1.2.1"
- checksum: 10c0/51e03abadd97c9ebe590547d92db9148446962a3f23a3a0fb1ba2fccab80af881eef0ff1f8ccefd3f066c0bc5a4c8ca53706194813b95c8835fa66448a843a26
- languageName: node
- linkType: hard
-
"sharp@npm:^0.35.3":
version: 0.35.3
resolution: "sharp@npm:0.35.3"
@@ -3416,13 +2673,6 @@ __metadata:
languageName: node
linkType: hard
-"source-map@npm:^0.5.7":
- version: 0.5.7
- resolution: "source-map@npm:0.5.7"
- checksum: 10c0/904e767bb9c494929be013017380cbba013637da1b28e5943b566031e29df04fba57edf3f093e0914be094648b577372bd8ad247fa98cfba9c600794cd16b599
- languageName: node
- linkType: hard
-
"stack-utils@npm:^2.0.6":
version: 2.0.6
resolution: "stack-utils@npm:2.0.6"
@@ -3439,13 +2689,6 @@ __metadata:
languageName: node
linkType: hard
-"state-local@npm:^1.0.6":
- version: 1.0.7
- resolution: "state-local@npm:1.0.7"
- checksum: 10c0/8dc7daeac71844452fafb514a6d6b6f40d7e2b33df398309ea1c7b3948d6110c57f112b7196500a10c54fdde40291488c52c875575670fb5c819602deca48bd9
- languageName: node
- linkType: hard
-
"std-env@npm:^4.0.0-rc.1":
version: 4.1.0
resolution: "std-env@npm:4.1.0"
@@ -3483,13 +2726,6 @@ __metadata:
languageName: node
linkType: hard
-"stylis@npm:4.2.0":
- version: 4.2.0
- resolution: "stylis@npm:4.2.0"
- checksum: 10c0/a7128ad5a8ed72652c6eba46bed4f416521bc9745a460ef5741edc725252cebf36ee45e33a8615a7057403c93df0866ab9ee955960792db210bb80abd5ac6543
- languageName: node
- linkType: hard
-
"subscriptions-transport-ws@npm:^0.9.16":
version: 0.9.19
resolution: "subscriptions-transport-ws@npm:0.9.19"
@@ -3505,13 +2741,6 @@ __metadata:
languageName: node
linkType: hard
-"supports-preserve-symlinks-flag@npm:^1.0.0":
- version: 1.0.0
- resolution: "supports-preserve-symlinks-flag@npm:1.0.0"
- checksum: 10c0/6c4032340701a9950865f7ae8ef38578d8d7053f5e10518076e6554a9381fa91bd9c6850193695c141f32b21f979c985db07265a758867bac95de05f7d8aeb39
- languageName: node
- linkType: hard
-
"symbol-observable@npm:^1.0.4":
version: 1.2.0
resolution: "symbol-observable@npm:1.2.0"
@@ -3655,35 +2884,6 @@ __metadata:
languageName: node
linkType: hard
-"twenty-ui@npm:^1.0.0-alpha.1":
- version: 1.0.0-alpha.1
- resolution: "twenty-ui@npm:1.0.0-alpha.1"
- dependencies:
- "@base-ui/react": "npm:^1.5.0"
- "@monaco-editor/react": "npm:^4.7.0"
- "@radix-ui/colors": "npm:^3.0.0"
- "@sniptt/guards": "npm:^0.2.0"
- "@tabler/icons-react": "npm:^3.31.0"
- clsx: "npm:^2.1.1"
- react-responsive: "npm:^9.0.2"
- react-router-dom: "npm:^6.4.4"
- type-fest: "npm:^4.10.1"
- zod: "npm:^4.1.11"
- peerDependencies:
- monaco-editor: ">= 0.25.0 < 1"
- react: ^19.0.0
- react-dom: ^19.0.0
- checksum: 10c0/213582e582949d6ffe90a7a8ab89a1d4e9dc724d34ed1b80bd7d50e834a8cb8539723556d41b39dc658f76f176bd8490ae0da8a3d6a713e79e6573b732084179
- languageName: node
- linkType: hard
-
-"type-fest@npm:^4.10.1":
- version: 4.41.0
- resolution: "type-fest@npm:4.41.0"
- checksum: 10c0/f5ca697797ed5e88d33ac8f1fec21921839871f808dc59345c9cf67345bfb958ce41bd821165dbf3ae591cedec2bf6fe8882098dfdd8dc54320b859711a2c1e4
- languageName: node
- linkType: hard
-
"type-fest@npm:^5.4.1":
version: 5.7.0
resolution: "type-fest@npm:5.7.0"
@@ -3741,15 +2941,6 @@ __metadata:
languageName: node
linkType: hard
-"use-sync-external-store@npm:^1.6.0":
- version: 1.6.0
- resolution: "use-sync-external-store@npm:1.6.0"
- peerDependencies:
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
- checksum: 10c0/35e1179f872a53227bdf8a827f7911da4c37c0f4091c29b76b1e32473d1670ebe7bcd880b808b7549ba9a5605c233350f800ffab963ee4a4ee346ee983b6019b
- languageName: node
- linkType: hard
-
"utility-types@npm:^3.10.0":
version: 3.11.0
resolution: "utility-types@npm:3.11.0"
@@ -4013,13 +3204,6 @@ __metadata:
languageName: node
linkType: hard
-"yaml@npm:^1.10.0":
- version: 1.10.3
- resolution: "yaml@npm:1.10.3"
- checksum: 10c0/c309ff85a0a569a981d71ab9cf0fef68672a16b9cdf40639d1c3b30034f6cd16ee428602bd6d64ecf006f8c8bee499023cac236538f79898aa99fb5db529a2ed
- languageName: node
- linkType: hard
-
"yoga-layout@npm:~3.2.1":
version: 3.2.1
resolution: "yoga-layout@npm:3.2.1"
@@ -4043,10 +3227,3 @@ __metadata:
checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8
languageName: node
linkType: hard
-
-"zod@npm:^4.1.11":
- version: 4.4.3
- resolution: "zod@npm:4.4.3"
- checksum: 10c0/7ea31b558e88f9faf44f31dd185e2e1cbf51fed3081787fb96cc2534749b50c0acfc6da7f0922a7353ed092dd358c7d50c28ea96c94d04af64191bd33152eca3
- languageName: node
- linkType: hard