The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat(call-recorder): custom settings tab with grouped sections (#24913)
nitindca6e292bbb4
diff --git a/packages/twenty-apps/public/call-recorder/.gitignore b/packages/twenty-apps/public/call-recorder/.gitignoreindex 1f36fb003c2..daf9f5bcc68 100644--- a/packages/twenty-apps/public/call-recorder/.gitignore+++ b/packages/twenty-apps/public/call-recorder/.gitignore@@ -42,3 +42,4 @@ yarn-error.log*# typescript*.tsbuildinfo*.d.ts+!css.d.tsdiff --git a/packages/twenty-apps/public/call-recorder/css.d.ts b/packages/twenty-apps/public/call-recorder/css.d.tsnew file mode 100644index 00000000000..35306c6fc9a--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/css.d.ts@@ -0,0 +1 @@+declare module '*.css';diff --git a/packages/twenty-apps/public/call-recorder/package.json b/packages/twenty-apps/public/call-recorder/package.jsonindex c652decec9e..b60bf66950e 100644--- a/packages/twenty-apps/public/call-recorder/package.json+++ b/packages/twenty-apps/public/call-recorder/package.json@@ -27,6 +27,8 @@"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",@@ -35,7 +37,9 @@"react-dom": "^19.0.0","twenty-client-sdk": "2.37.0","twenty-sdk": "2.37.0",+ "twenty-ui": "^1.0.0-alpha.1","typescript": "^5.9.3",+ "use-debounce": "^10.0.0","vite-tsconfig-paths": "^4.2.1","vitest": "^4.1.9"}diff --git a/packages/twenty-apps/public/call-recorder/src/__tests__/application-config.test.ts b/packages/twenty-apps/public/call-recorder/src/__tests__/application-config.test.tsindex f2862729cd5..2c69adfd354 100644--- a/packages/twenty-apps/public/call-recorder/src/__tests__/application-config.test.ts+++ b/packages/twenty-apps/public/call-recorder/src/__tests__/application-config.test.ts@@ -1,10 +1,17 @@import { describe, expect, it } from 'vitest';import applicationConfig from 'src/application-config';+import { CALL_RECORDER_MAPPED_VARIABLE_KEYS } from 'src/front-components/constants/call-recorder-settings-layout.constant';import { CALL_RECORDER_TRANSCRIPT_PROVIDER_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-transcript-provider-env-var-name';import { RECALL_ASYNC_TRANSCRIPT_PROVIDERS } from 'src/logic-functions/constants/recall-async-transcript-providers';describe('application config', () => {+ it('lays out every application variable in the settings component', () => {+ expect([...CALL_RECORDER_MAPPED_VARIABLE_KEYS].sort()).toEqual(+ Object.keys(applicationConfig.config.applicationVariables ?? {}).sort(),+ );+ });+it('offers every supported transcript provider as a select option', () => {const options =applicationConfig.config.applicationVariables?.[diff --git a/packages/twenty-apps/public/call-recorder/src/application-config.ts b/packages/twenty-apps/public/call-recorder/src/application-config.tsindex 6c1cb941d25..1f3ea2a489c 100644--- a/packages/twenty-apps/public/call-recorder/src/application-config.ts+++ b/packages/twenty-apps/public/call-recorder/src/application-config.ts@@ -2,6 +2,7 @@ import { defineApplication, FieldType } from 'twenty-sdk/define';import { APP_DESCRIPTION } from 'src/constants/app-description';import { APP_DISPLAY_NAME } from 'src/constants/app-display-name';+import { CALL_RECORDER_TRANSCRIPT_PROVIDER_OPTIONS } from 'src/constants/call-recorder-transcript-provider-options';import {APPLICATION_UNIVERSAL_IDENTIFIER,CALL_RECORDER_ADDITIONAL_SUMMARY_PROMPT_APP_VARIABLE_UNIVERSAL_IDENTIFIER,@@ -132,10 +133,7 @@ export default defineApplication({'Speech-to-text provider used to transcribe recordings once the call ends. Recall.ai transcription needs no extra setup. Gladia re-detects the spoken language per utterance, which transcribes mixed-language calls more accurately, but requires a Gladia API key in the Recall.ai dashboard (Transcription > Gladia) for each region in use.',isSecret: false,type: FieldType.SELECT,- options: [- { label: 'Recall.ai', value: 'recallai_async' },- { label: 'Gladia (multilingual)', value: 'gladia_v2_async' },- ],+ options: CALL_RECORDER_TRANSCRIPT_PROVIDER_OPTIONS,value: DEFAULT_CALL_RECORDER_TRANSCRIPT_PROVIDER,},[CALL_RECORDER_SUMMARY_ENABLED_ENV_VAR_NAME]: {diff --git a/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-settings-front-component-universal-identifier.ts b/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-settings-front-component-universal-identifier.tsnew file mode 100644index 00000000000..32d00c2a55e--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-settings-front-component-universal-identifier.ts@@ -0,0 +1,2 @@+export const CALL_RECORDER_SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =+ '0bb12b64-9fa0-48e5-afc4-887c5224ca13';diff --git a/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-transcript-provider-options.ts b/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-transcript-provider-options.tsnew file mode 100644index 00000000000..1b08595f94f--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/constants/call-recorder-transcript-provider-options.ts@@ -0,0 +1,4 @@+export const CALL_RECORDER_TRANSCRIPT_PROVIDER_OPTIONS = [+ { label: 'Recall.ai', value: 'recallai_async' },+ { label: 'Gladia (multilingual)', value: 'gladia_v2_async' },+];diff --git a/packages/twenty-apps/public/call-recorder/src/default-role.ts b/packages/twenty-apps/public/call-recorder/src/default-role.tsindex 4a7ce104c46..2ed3dfd71d3 100644--- a/packages/twenty-apps/public/call-recorder/src/default-role.ts+++ b/packages/twenty-apps/public/call-recorder/src/default-role.ts@@ -68,5 +68,8 @@ export default defineApplicationRole({permissionFlagUniversalIdentifiers: [SystemPermissionFlag.UPLOAD_FILE,SystemPermissionFlag.AI,+ // The settings front component reads and writes the app's own application+ // variables through the metadata API, which is gated behind this flag.+ SystemPermissionFlag.APPLICATIONS,],});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/AdornedHexInput.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/AdornedHexInput.tsxnew file mode 100644index 00000000000..a1a2c370726--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/AdornedHexInput.tsx@@ -0,0 +1,65 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { SettingsColorSample } from 'src/front-components/components/SettingsColorSample';+import { StyledSettingsTextInput } from 'src/front-components/components/StyledSettingsTextInput';++const StyledAdornmentContainer = styled.div`+ align-items: center;+ background-color: ${() => themeCssVariables.background.transparent.light};+ border: 1px solid ${() => themeCssVariables.border.color.medium};+ border-bottom-left-radius: ${() => themeCssVariables.border.radius.md};+ border-right: none;+ border-top-left-radius: ${() => themeCssVariables.border.radius.md};+ box-sizing: border-box;+ display: flex;+ height: 32px;+ padding: ${() => themeCssVariables.spacing[2]};+`;++const StyledAdornedInput = styled(StyledSettingsTextInput)`+ border-bottom-left-radius: 0;+ border-left: none;+ border-top-left-radius: 0;+`;++const StyledContainer = styled.div`+ align-items: center;+ display: flex;+ width: 100%;++ &:focus-within ${StyledAdornmentContainer} {+ border-color: ${() => themeCssVariables.color.blue};+ }+`;++type AdornedHexInputProps = {+ id: string;+ value: string;+ swatchColor: string;+ onChange: (value: string) => void;+ onBlur?: () => void;+};++export const AdornedHexInput = ({+ id,+ value,+ swatchColor,+ onChange,+ onBlur,+}: AdornedHexInputProps) => (+ <StyledContainer>+ <StyledAdornmentContainer>+ <SettingsColorSample colorName="gray" color={swatchColor} />+ </StyledAdornmentContainer>+ <StyledAdornedInput+ id={id}+ type="text"+ autoComplete="off"+ placeholder="#1d1d1d"+ value={value}+ onChange={(event) => onChange(event.target.value)}+ onBlur={onBlur}+ />+ </StyledContainer>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecorderSettings.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecorderSettings.tsxnew file mode 100644index 00000000000..74cb2daeb98--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/CallRecorderSettings.tsx@@ -0,0 +1,50 @@+import 'twenty-ui/style.css';++import styled from '@emotion/styled';+import {+ useColorScheme,+ useFrontComponentId,+} from 'twenty-sdk/front-component';+import { THEME_DARK, THEME_LIGHT } from 'twenty-ui/theme';+import {+ ThemeContext,+ themeCssVariables,+ type ThemeType,+} from 'twenty-ui/theme-constants';++import { InCallSection } from 'src/front-components/components/InCallSection';+import { RecorderSection } from 'src/front-components/components/RecorderSection';+import { TranscriptionSection } from 'src/front-components/components/TranscriptionSection';++const StyledContainer = styled.div`+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ gap: ${() => themeCssVariables.spacing[8]};+ width: 100%;+`;++export const CallRecorderSettings = () => {+ const colorScheme = useColorScheme();+ const frontComponentId = useFrontComponentId();++ // twenty-ui components read icon sizes off ThemeContext, and the context+ // default resolves them to var() strings an SVG size attribute cannot use —+ // menu check marks render at their intrinsic size without a real theme here.+ return (+ <ThemeContext.Provider+ value={{+ theme: (colorScheme === 'dark'+ ? THEME_DARK+ : THEME_LIGHT) as unknown as ThemeType,+ colorScheme,+ }}+ >+ <StyledContainer>+ <RecorderSection frontComponentId={frontComponentId} />+ <InCallSection frontComponentId={frontComponentId} />+ <TranscriptionSection frontComponentId={frontComponentId} />+ </StyledContainer>+ </ThemeContext.Provider>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuItemsContainer.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuItemsContainer.tsxnew file mode 100644index 00000000000..21b12dfa2d8--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuItemsContainer.tsx@@ -0,0 +1,43 @@+import styled from '@emotion/styled';+import { type ReactNode } from 'react';+import { themeCssVariables } from 'twenty-ui/theme-constants';++const StyledExternalContainer = styled.div`+ align-items: flex-start;+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ height: fit-content;+ min-height: 0;+ padding: ${() => themeCssVariables.spacing[1]};+ width: 100%;+`;++const StyledScrollableContainer = styled.div`+ box-sizing: border-box;+ display: flex;+ min-height: 0;+ overflow-y: auto;+ scrollbar-color: ${() => themeCssVariables.border.color.medium} transparent;+ scrollbar-width: thin;+ width: 100%;+`;++const StyledInternalContainer = styled.div`+ display: flex;+ flex-direction: column;+ gap: 2px;+ width: 100%;+`;++export const DropdownMenuItemsContainer = ({+ children,+}: {+ children: ReactNode;+}) => (+ <StyledExternalContainer>+ <StyledScrollableContainer>+ <StyledInternalContainer>{children}</StyledInternalContainer>+ </StyledScrollableContainer>+ </StyledExternalContainer>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuOption.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuOption.tsxnew file mode 100644index 00000000000..836443bf870--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuOption.tsx@@ -0,0 +1,52 @@+import styled from '@emotion/styled';+import { type ReactNode } from 'react';+import {+ MenuItemLeftContent,+ StyledMenuItemIconCheck,+ StyledMenuItemSelect,+} from 'twenty-ui/navigation';+import { useTheme } from 'twenty-ui/theme-constants';++const StyledOptionContainer = styled.div`+ cursor: pointer;+ width: 100%;+`;++type DropdownMenuOptionProps = {+ id: string;+ text: string;+ selected: boolean;+ isActive: boolean;+ LeftComponent?: ReactNode;+ onSelect: () => void;+};++export const DropdownMenuOption = ({+ id,+ text,+ selected,+ isActive,+ LeftComponent,+ onSelect,+}: DropdownMenuOptionProps) => {+ const theme = useTheme();++ return (+ <StyledOptionContainer+ id={id}+ role="option"+ tabIndex={-1}+ aria-selected={selected}+ onClick={onSelect}+ >+ <StyledMenuItemSelect focused={isActive}>+ <MenuItemLeftContent+ LeftComponent={LeftComponent}+ LeftIcon={null}+ text={text}+ />+ {selected && <StyledMenuItemIconCheck size={theme.icon.size.md} />}+ </StyledMenuItemSelect>+ </StyledOptionContainer>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuSeparator.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuSeparator.tsxnew file mode 100644index 00000000000..f0935f6c188--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/DropdownMenuSeparator.tsx@@ -0,0 +1,10 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++const StyledDropdownMenuSeparator = styled.div`+ background-color: ${() => themeCssVariables.border.color.light};+ min-height: 1px;+ width: 100%;+`;++export const DropdownMenuSeparator = () => <StyledDropdownMenuSeparator />;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/InCallSection.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/InCallSection.tsxnew file mode 100644index 00000000000..9aa3ce3a2f1--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/InCallSection.tsx@@ -0,0 +1,113 @@+import { useId, useState } from 'react';+import { Section } from 'twenty-ui/layout';+import { H2Title } from 'twenty-ui/typography';++import { LabelledSettingsField } from 'src/front-components/components/LabelledSettingsField';+import { SettingsOptionCardContentToggle } from 'src/front-components/components/SettingsOptionCardContentToggle';+import { StyledDimmable } from 'src/front-components/components/StyledDimmable';+import { StyledSettingsCard } from 'src/front-components/components/StyledSettingsCard';+import { StyledSettingsSectionStack } from 'src/front-components/components/StyledSettingsSectionStack';+import { StyledSettingsTextArea } from 'src/front-components/components/StyledSettingsTextArea';+import { TimingCounterRow } from 'src/front-components/components/TimingCounterRow';+import {+ CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD,+ CALL_RECORDER_RECORDING_NOTICE_ROW,+ CALL_RECORDER_TIMING_ROWS,+} from 'src/front-components/constants/call-recorder-settings-layout.constant';+import { useAutosaveApplicationVariable } from 'src/front-components/hooks/use-autosave-application-variable';+import { getApplicationVariableValue } from 'src/front-components/utils/get-application-variable-value.util';+import { truncateRecordingNoticeMessage } from 'src/logic-functions/utils/truncate-recording-notice-message.util';++type InCallSectionProps = {+ frontComponentId: string;+};++export const InCallSection = ({ frontComponentId }: InCallSectionProps) => {+ const noticeMessageInputId = useId();+ const [isNoticeEnabled, setIsNoticeEnabled] = useState(+ () =>+ getApplicationVariableValue(+ CALL_RECORDER_RECORDING_NOTICE_ROW.variableKey,+ ) === 'true',+ );+ const [noticeMessageValue, setNoticeMessageValue] = useState(() =>+ getApplicationVariableValue(+ CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD.variableKey,+ ),+ );++ const { saveImmediately: saveNoticeEnabledImmediately } =+ useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_RECORDING_NOTICE_ROW.variableKey,+ });+ const { saveDebounced: saveNoticeMessageDebounced } =+ useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD.variableKey,+ });++ const handleNoticeEnabledChange = (checked: boolean) => {+ const value = checked ? 'true' : 'false';++ setIsNoticeEnabled(checked);+ saveNoticeEnabledImmediately(value);+ };++ const handleNoticeMessageChange = (value: string) => {+ const truncatedValue = truncateRecordingNoticeMessage(value);++ setNoticeMessageValue(truncatedValue);+ saveNoticeMessageDebounced(truncatedValue);+ };++ return (+ <Section>+ <H2Title+ title="In the call"+ description="What the recorder does while it is in your meetings."+ />+ <StyledSettingsSectionStack>+ <StyledSettingsCard>+ {CALL_RECORDER_TIMING_ROWS.map((row) => (+ <TimingCounterRow+ key={row.variableKey}+ frontComponentId={frontComponentId}+ variableKey={row.variableKey}+ title={row.title}+ description={row.description}+ Icon={row.Icon}+ divider+ persistedValue={getApplicationVariableValue(row.variableKey)}+ />+ ))}+ <SettingsOptionCardContentToggle+ Icon={CALL_RECORDER_RECORDING_NOTICE_ROW.Icon}+ title={CALL_RECORDER_RECORDING_NOTICE_ROW.title}+ description={CALL_RECORDER_RECORDING_NOTICE_ROW.description}+ checked={isNoticeEnabled}+ onChange={handleNoticeEnabledChange}+ />+ </StyledSettingsCard>+ <StyledDimmable $dimmed={!isNoticeEnabled}>+ <LabelledSettingsField+ label={CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD.label}+ inputId={noticeMessageInputId}+ hint={CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD.hint}+ >+ <StyledSettingsTextArea+ id={noticeMessageInputId}+ placeholder="Value"+ disabled={!isNoticeEnabled}+ value={noticeMessageValue}+ onChange={(event) =>+ handleNoticeMessageChange(event.target.value)+ }+ onBlur={() => saveNoticeMessageDebounced.flush()}+ />+ </LabelledSettingsField>+ </StyledDimmable>+ </StyledSettingsSectionStack>+ </Section>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/LabelledSettingsField.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/LabelledSettingsField.tsxnew file mode 100644index 00000000000..474305a0421--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/LabelledSettingsField.tsx@@ -0,0 +1,52 @@+import styled from '@emotion/styled';+import { isNonEmptyString } from '@sniptt/guards';+import { type ReactNode } from 'react';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { StyledSettingsError } from 'src/front-components/components/StyledSettingsError';++const StyledField = styled.div`+ display: flex;+ flex-direction: column;+`;++// twenty-front hard-codes this size in FieldLabel.module.scss; there is no token.+const StyledLabel = styled.label`+ color: ${() => themeCssVariables.font.color.primary};+ font-family: ${() => themeCssVariables.font.family};+ font-size: 11px;+ font-weight: ${() => themeCssVariables.font.weight.semiBold};+ margin-bottom: ${() => themeCssVariables.spacing[1]};+`;++const StyledHint = styled.span`+ color: ${() => themeCssVariables.font.color.secondary};+ font-family: ${() => themeCssVariables.font.family};+ font-size: ${() => themeCssVariables.font.size.sm};+ margin-top: ${() => themeCssVariables.spacing[3]};+`;++type LabelledSettingsFieldProps = {+ label: string;+ inputId: string;+ hint?: string;+ errorMessage?: string;+ children: ReactNode;+};++export const LabelledSettingsField = ({+ label,+ inputId,+ hint,+ errorMessage,+ children,+}: LabelledSettingsFieldProps) => (+ <StyledField>+ <StyledLabel htmlFor={inputId}>{label}</StyledLabel>+ {children}+ {isNonEmptyString(errorMessage) && (+ <StyledSettingsError>{errorMessage}</StyledSettingsError>+ )}+ {isNonEmptyString(hint) && <StyledHint>{hint}</StyledHint>}+ </StyledField>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/RecorderSection.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/RecorderSection.tsxnew file mode 100644index 00000000000..c2a12a69705--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/RecorderSection.tsx@@ -0,0 +1,183 @@+import { isUndefined } from '@sniptt/guards';+import { useId, useState } from 'react';+import { Section } from 'twenty-ui/layout';+import { type ThemeColor } from 'twenty-ui/theme';+import { H2Title } from 'twenty-ui/typography';++import { AdornedHexInput } from 'src/front-components/components/AdornedHexInput';+import { LabelledSettingsField } from 'src/front-components/components/LabelledSettingsField';+import { SettingsOptionCardContentSelect } from 'src/front-components/components/SettingsOptionCardContentSelect';+import { SettingsOptionCardContentToggle } from 'src/front-components/components/SettingsOptionCardContentToggle';+import { StyledDimmable } from 'src/front-components/components/StyledDimmable';+import { StyledSettingsCard } from 'src/front-components/components/StyledSettingsCard';+import { StyledSettingsSectionStack } from 'src/front-components/components/StyledSettingsSectionStack';+import { StyledSettingsTextInput } from 'src/front-components/components/StyledSettingsTextInput';+import { TileBackgroundControl } from 'src/front-components/components/TileBackgroundControl';+import {+ CALL_RECORDER_NAME_FIELD,+ CALL_RECORDER_TILE_BACKGROUND_ROW,+ CALL_RECORDER_USE_WORKSPACE_LOGO_ROW,+} from 'src/front-components/constants/call-recorder-settings-layout.constant';+import { THEME_COLOR_HEX } from 'src/front-components/constants/theme-color-hex.constant';+import { useAutosaveApplicationVariable } from 'src/front-components/hooks/use-autosave-application-variable';+import { getApplicationVariableValue } from 'src/front-components/utils/get-application-variable-value.util';+import { getNormalizedHexValue } from 'src/front-components/utils/get-normalized-hex-value.util';+import { getThemeColorFromHex } from 'src/front-components/utils/get-theme-color-from-hex.util';+import { normalizeHexColor } from 'src/front-components/utils/normalize-hex-color.util';+import { DEFAULT_CALL_RECORDER_BOT_IMAGE_BACKGROUND } from 'src/logic-functions/constants/default-call-recorder-bot-image-background';++type RecorderSectionProps = {+ frontComponentId: string;+};++export const RecorderSection = ({ frontComponentId }: RecorderSectionProps) => {+ const nameInputId = useId();+ const hexInputId = useId();+ const [nameValue, setNameValue] = useState(() =>+ getApplicationVariableValue(CALL_RECORDER_NAME_FIELD.variableKey),+ );+ const [isWorkspaceLogoEnabled, setIsWorkspaceLogoEnabled] = useState(+ () =>+ getApplicationVariableValue(+ CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.variableKey,+ ) === 'true',+ );+ const [tileBackgroundValue, setTileBackgroundValue] = useState(() =>+ getApplicationVariableValue(CALL_RECORDER_TILE_BACKGROUND_ROW.variableKey),+ );+ const [isCustomHexOverride, setIsCustomHexOverride] = useState<+ boolean | undefined+ >(undefined);++ const { saveDebounced: saveNameDebounced } = useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_NAME_FIELD.variableKey,+ });+ const { saveImmediately: saveWorkspaceLogoImmediately } =+ useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.variableKey,+ });+ const {+ saveDebounced: saveTileBackgroundDebounced,+ saveImmediately: saveTileBackgroundImmediately,+ } = useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_TILE_BACKGROUND_ROW.variableKey,+ });++ const selectedTileColor = getThemeColorFromHex(tileBackgroundValue);+ const isCustomHexSelected =+ isCustomHexOverride ?? isUndefined(selectedTileColor);+ const swatchColor =+ normalizeHexColor(tileBackgroundValue) ??+ DEFAULT_CALL_RECORDER_BOT_IMAGE_BACKGROUND;++ const handleNameChange = (value: string) => {+ setNameValue(value);+ saveNameDebounced(value);+ };++ const handleWorkspaceLogoChange = (checked: boolean) => {+ const value = checked ? 'true' : 'false';++ setIsWorkspaceLogoEnabled(checked);+ saveWorkspaceLogoImmediately(value);+ };++ const handleSelectTileColor = (color: ThemeColor) => {+ const value = THEME_COLOR_HEX[color];++ setIsCustomHexOverride(false);+ setTileBackgroundValue(value);+ saveTileBackgroundImmediately(value);+ };++ const handleHexChange = (value: string) => {+ setTileBackgroundValue(value);++ const valueToSave = getNormalizedHexValue(value);++ if (isUndefined(valueToSave)) {+ saveTileBackgroundDebounced.cancel();+ return;+ }++ saveTileBackgroundDebounced(valueToSave);+ };++ return (+ <Section>+ <H2Title+ title="Recorder"+ description="How the recorder appears when it joins your meetings."+ />+ <StyledSettingsSectionStack>+ <LabelledSettingsField+ label={CALL_RECORDER_NAME_FIELD.label}+ inputId={nameInputId}+ hint={CALL_RECORDER_NAME_FIELD.hint}+ >+ <StyledSettingsTextInput+ id={nameInputId}+ type="text"+ autoComplete="off"+ placeholder="Value"+ value={nameValue}+ onChange={(event) => handleNameChange(event.target.value)}+ onBlur={() => saveNameDebounced.flush()}+ />+ </LabelledSettingsField>+ <StyledSettingsCard>+ <SettingsOptionCardContentToggle+ Icon={CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.Icon}+ title={CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.title}+ description={CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.description}+ divider+ checked={isWorkspaceLogoEnabled}+ onChange={handleWorkspaceLogoChange}+ />+ <SettingsOptionCardContentSelect+ Icon={CALL_RECORDER_TILE_BACKGROUND_ROW.Icon}+ title={CALL_RECORDER_TILE_BACKGROUND_ROW.title}+ description={CALL_RECORDER_TILE_BACKGROUND_ROW.description}+ isDimmed={!isWorkspaceLogoEnabled}+ >+ <TileBackgroundControl+ swatchColor={swatchColor}+ selectedColor={+ isCustomHexSelected ? undefined : selectedTileColor+ }+ isCustomSelected={isCustomHexSelected}+ disabled={!isWorkspaceLogoEnabled}+ onSelectColor={handleSelectTileColor}+ onSelectCustom={() => setIsCustomHexOverride(true)}+ />+ </SettingsOptionCardContentSelect>+ </StyledSettingsCard>+ {isCustomHexSelected && (+ <StyledDimmable $dimmed={!isWorkspaceLogoEnabled}>+ <LabelledSettingsField+ label="Custom hex"+ inputId={hexInputId}+ hint="Six-digit hex, for example #1d1d1d."+ errorMessage={+ isUndefined(getNormalizedHexValue(tileBackgroundValue))+ ? 'Invalid hex colour'+ : undefined+ }+ >+ <AdornedHexInput+ id={hexInputId}+ value={tileBackgroundValue}+ swatchColor={swatchColor}+ onChange={handleHexChange}+ onBlur={() => saveTileBackgroundDebounced.flush()}+ />+ </LabelledSettingsField>+ </StyledDimmable>+ )}+ </StyledSettingsSectionStack>+ </Section>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/Separator.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/Separator.tsxnew file mode 100644index 00000000000..7f83a37289c--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/Separator.tsx@@ -0,0 +1,14 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++const StyledHr = styled.hr`+ border: none;+ border-top: 1px solid ${() => themeCssVariables.border.color.light};+ margin: 0px;+ margin-left: ${() => themeCssVariables.spacing[4]};+ margin-right: ${() => themeCssVariables.spacing[4]};+`;++export const Separator = () => {+ return <StyledHr />;+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCardContentBase.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCardContentBase.tsxnew file mode 100644index 00000000000..14a0429f37e--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCardContentBase.tsx@@ -0,0 +1,42 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++export const StyledSettingsCardContent = styled.div<{ $isDimmed?: boolean }>`+ align-items: center;+ background-color: ${() => themeCssVariables.background.secondary};+ display: flex;+ gap: ${() => themeCssVariables.spacing[3]};+ opacity: ${({ $isDimmed }) => ($isDimmed ? 0.72 : 1)};+ padding: ${() => themeCssVariables.spacing[4]};+`;++export const StyledSettingsCardIcon = styled.div`+ align-items: center;+ background-color: ${() => themeCssVariables.background.primary};+ border: 2px solid ${() => themeCssVariables.border.color.light};+ border-radius: ${() => themeCssVariables.border.radius.sm};+ box-sizing: border-box;+ display: flex;+ height: ${() => themeCssVariables.spacing[8]};+ justify-content: center;+ min-width: ${() => themeCssVariables.spacing[8]};+ width: ${() => themeCssVariables.spacing[8]};+`;++export const StyledSettingsCardTitle = styled.div`+ color: ${() => themeCssVariables.font.color.primary};+ font-weight: ${() => themeCssVariables.font.weight.medium};+ margin-bottom: ${() => themeCssVariables.spacing[1]};+`;++export const StyledSettingsCardTextContainer = styled.div`+ flex: 1;+ min-width: 0;+`;++export const StyledSettingsCardDescription = styled.div`+ color: ${() => themeCssVariables.font.color.secondary};+ font-size: ${() => themeCssVariables.font.size.sm};+ line-height: ${() => themeCssVariables.text.lineHeight.lg};+ overflow: hidden;+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsColorSample.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsColorSample.tsxnew file mode 100644index 00000000000..9c90eddf7d6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsColorSample.tsx@@ -0,0 +1,21 @@+import styled from '@emotion/styled';+import { ColorSample, type ColorSampleProps } from 'twenty-ui/data-display';+import { themeCssVariables } from 'twenty-ui/theme-constants';++type SettingsColorSampleProps = Omit<ColorSampleProps, 'variant'>;++// The front-component style bridge does not preserve ColorSample's pill radius.+const StyledContainer = styled.span`+ display: flex;++ > div {+ border-radius: ${() => themeCssVariables.border.radius.pill};+ corner-shape: round;+ }+`;++export const SettingsColorSample = (props: SettingsColorSampleProps) => (+ <StyledContainer>+ <ColorSample {...props} />+ </StyledContainer>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCounter.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCounter.tsxnew file mode 100644index 00000000000..0229fd717dd--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsCounter.tsx@@ -0,0 +1,147 @@+import styled from '@emotion/styled';+import { isUndefined } from '@sniptt/guards';+import { IconMinus, IconPlus } from 'twenty-ui/icon';+import { IconButton } from 'twenty-ui/input';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { StyledSettingsTextInput } from 'src/front-components/components/StyledSettingsTextInput';++const StyledCounterContainer = styled.div<{ $showButtons: boolean }>`+ align-items: center;+ display: flex;+ gap: ${() => themeCssVariables.spacing[1]};+ margin-left: auto;+ width: ${({ $showButtons }) =>+ $showButtons+ ? themeCssVariables.spacing[30]+ : themeCssVariables.spacing[16]};++ button svg {+ pointer-events: none;+ }+`;++const StyledTextInputContainer = styled.div`+ width: ${() => themeCssVariables.spacing[16]};++ input {+ font-weight: ${() => themeCssVariables.font.weight.medium};+ height: ${() => themeCssVariables.spacing[6]};+ text-align: center;+ width: ${() => themeCssVariables.spacing[16]};+ }+`;++type SettingsCounterProps = {+ value: string;+ onChange: (value: string, changeType: 'input' | 'button') => void;+ onBlur?: () => void;+ minValue?: number;+ maxValue?: number;+ disabled?: boolean;+ showButtons?: boolean;+ inputId?: string;+ errorMessageId?: string;+ isInvalid?: boolean;+};++// twenty-front's SettingsCounter works on numbers and snaps invalid text back+// to minValue. The app keeps its own draft-string validation instead, so a+// half-typed value stays on screen with the Invalid number line beneath it.+export const SettingsCounter = ({+ value,+ onChange,+ onBlur,+ minValue = 0,+ maxValue,+ disabled = false,+ showButtons = true,+ inputId,+ errorMessageId,+ isInvalid = false,+}: SettingsCounterProps) => {+ const parsedValue = Number(value.trim());+ const isParsable = value.trim() !== '' && Number.isFinite(parsedValue);++ const handleDecrementCounter = () => {+ if (!isParsable) {+ onChange(String(minValue), 'button');+ return;+ }++ const nextValue = Math.max(parsedValue - 1, minValue);++ if (nextValue !== parsedValue) {+ onChange(String(nextValue), 'button');+ }+ };++ const handleIncrementCounter = () => {+ if (!isParsable) {+ onChange(String(minValue), 'button');+ return;+ }++ const nextValue = isUndefined(maxValue)+ ? parsedValue + 1+ : Math.min(parsedValue + 1, maxValue);++ if (nextValue !== parsedValue) {+ onChange(String(nextValue), 'button');+ }+ };++ const handleTextInputChange = (nextValue: string) => {+ const nextParsedValue = Number(nextValue.trim());++ if (+ nextValue.trim() !== '' &&+ Number.isFinite(nextParsedValue) &&+ (nextParsedValue < minValue ||+ (!isUndefined(maxValue) && nextParsedValue > maxValue))+ ) {+ return;+ }++ onChange(nextValue, 'input');+ };++ return (+ <StyledCounterContainer $showButtons={showButtons}>+ {showButtons && (+ <IconButton+ size="small"+ Icon={IconMinus}+ variant="secondary"+ onClick={handleDecrementCounter}+ disabled={disabled}+ ariaLabel="Decrease"+ />+ )}+ <StyledTextInputContainer>+ <StyledSettingsTextInput+ id={inputId}+ type="text"+ inputMode="decimal"+ autoComplete="off"+ value={value}+ disabled={disabled}+ aria-describedby={errorMessageId}+ aria-invalid={isInvalid}+ onChange={(event) => handleTextInputChange(event.target.value)}+ onBlur={onBlur}+ />+ </StyledTextInputContainer>+ {showButtons && (+ <IconButton+ size="small"+ Icon={IconPlus}+ variant="secondary"+ onClick={handleIncrementCounter}+ disabled={disabled}+ ariaLabel="Increase"+ />+ )}+ </StyledCounterContainer>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentCounter.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentCounter.tsxnew file mode 100644index 00000000000..213982959a1--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentCounter.tsx@@ -0,0 +1,87 @@+import { isNonEmptyString } from '@sniptt/guards';+import { type IconComponent } from 'twenty-ui/icon';+import { OverflowingTextWithTooltip } from 'twenty-ui/surfaces';++import { Separator } from 'src/front-components/components/Separator';+import {+ StyledSettingsCardContent,+ StyledSettingsCardDescription,+ StyledSettingsCardIcon,+ StyledSettingsCardTextContainer,+ StyledSettingsCardTitle,+} from 'src/front-components/components/SettingsCardContentBase';+import { SettingsCounter } from 'src/front-components/components/SettingsCounter';+import { SettingsOptionIconCustomizer } from 'src/front-components/components/SettingsOptionIconCustomizer';+import { StyledSettingsError } from 'src/front-components/components/StyledSettingsError';++type SettingsOptionCardContentCounterProps = {+ Icon?: IconComponent;+ title: React.ReactNode;+ description?: string;+ divider?: boolean;+ disabled?: boolean;+ errorMessage?: string;+ inputId?: string;+ value: string;+ onChange: (value: string, changeType: 'input' | 'button') => void;+ onBlur?: () => void;+ minValue?: number;+ maxValue?: number;+};++export const SettingsOptionCardContentCounter = ({+ Icon,+ title,+ description,+ divider,+ disabled = false,+ errorMessage,+ inputId,+ value,+ onChange,+ onBlur,+ minValue,+ maxValue,+}: SettingsOptionCardContentCounterProps) => {+ const hasError = isNonEmptyString(errorMessage);+ const errorMessageId = hasError && inputId ? `${inputId}-error` : undefined;++ return (+ <>+ <StyledSettingsCardContent>+ {Icon && (+ <StyledSettingsCardIcon>+ <SettingsOptionIconCustomizer Icon={Icon} />+ </StyledSettingsCardIcon>+ )}+ <StyledSettingsCardTextContainer>+ <StyledSettingsCardTitle>+ <label htmlFor={inputId}>{title}</label>+ </StyledSettingsCardTitle>+ {description && (+ <StyledSettingsCardDescription>+ <OverflowingTextWithTooltip text={description} />+ </StyledSettingsCardDescription>+ )}+ {hasError && (+ <StyledSettingsError id={errorMessageId} role="alert">+ {errorMessage}+ </StyledSettingsError>+ )}+ </StyledSettingsCardTextContainer>+ <SettingsCounter+ inputId={inputId}+ value={value}+ onChange={onChange}+ onBlur={onBlur}+ minValue={minValue}+ maxValue={maxValue}+ disabled={disabled}+ errorMessageId={errorMessageId}+ isInvalid={hasError}+ />+ </StyledSettingsCardContent>+ {divider && <Separator />}+ </>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentSelect.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentSelect.tsxnew file mode 100644index 00000000000..8f12da0a1d3--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentSelect.tsx@@ -0,0 +1,59 @@+import styled from '@emotion/styled';+import { type IconComponent } from 'twenty-ui/icon';+import { OverflowingTextWithTooltip } from 'twenty-ui/surfaces';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { Separator } from 'src/front-components/components/Separator';+import {+ StyledSettingsCardContent,+ StyledSettingsCardDescription,+ StyledSettingsCardIcon,+ StyledSettingsCardTextContainer,+ StyledSettingsCardTitle,+} from 'src/front-components/components/SettingsCardContentBase';+import { SettingsOptionIconCustomizer } from 'src/front-components/components/SettingsOptionIconCustomizer';++const StyledSelectContainer = styled.div`+ flex-shrink: 0;+ justify-content: flex-end;+ margin-left: auto;+ max-width: ${() => themeCssVariables.spacing[30]};+`;++type SettingsOptionCardContentSelectProps = {+ Icon?: IconComponent;+ title: React.ReactNode;+ description?: string;+ divider?: boolean;+ isDimmed?: boolean;+ children?: React.ReactNode;+};++export const SettingsOptionCardContentSelect = ({+ Icon,+ title,+ description,+ divider,+ isDimmed = false,+ children,+}: SettingsOptionCardContentSelectProps) => (+ <>+ <StyledSettingsCardContent $isDimmed={isDimmed}>+ {Icon && (+ <StyledSettingsCardIcon>+ <SettingsOptionIconCustomizer Icon={Icon} />+ </StyledSettingsCardIcon>+ )}+ <StyledSettingsCardTextContainer>+ <StyledSettingsCardTitle>{title}</StyledSettingsCardTitle>+ {description && (+ <StyledSettingsCardDescription>+ <OverflowingTextWithTooltip text={description} />+ </StyledSettingsCardDescription>+ )}+ </StyledSettingsCardTextContainer>+ <StyledSelectContainer>{children}</StyledSelectContainer>+ </StyledSettingsCardContent>+ {divider && <Separator />}+ </>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentToggle.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentToggle.tsxnew file mode 100644index 00000000000..d4cae9a1c39--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionCardContentToggle.tsx@@ -0,0 +1,100 @@+import styled from '@emotion/styled';+import { useId } from 'react';+import { type IconComponent } from 'twenty-ui/icon';+import { OverflowingTextWithTooltip } from 'twenty-ui/surfaces';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { Separator } from 'src/front-components/components/Separator';+import {+ StyledSettingsCardDescription,+ StyledSettingsCardIcon,+ StyledSettingsCardTextContainer,+ StyledSettingsCardTitle,+} from 'src/front-components/components/SettingsCardContentBase';+import { SettingsOptionIconCustomizer } from 'src/front-components/components/SettingsOptionIconCustomizer';+import { Toggle } from 'src/front-components/components/Toggle';++const StyledSettingsCardToggleContent = styled.div<{ $disabled?: boolean }>`+ align-items: center;+ background-color: ${() => themeCssVariables.background.secondary};+ cursor: ${({ $disabled }) => ($disabled ? 'default' : 'pointer')};+ display: flex;+ gap: ${() => themeCssVariables.spacing[3]};+ padding: ${() => themeCssVariables.spacing[4]};+ pointer-events: ${({ $disabled }) => ($disabled ? 'none' : 'auto')};+ position: relative;++ &:hover {+ background: ${() => themeCssVariables.background.transparent.lighter};+ }+`;++const StyledSettingsCardToggleButtonContainer = styled.span`+ align-items: center;+ display: flex;+ flex-shrink: 0;+ margin-left: auto;+`;++const StyledSettingsCardToggleCover = styled.span`+ cursor: pointer;+ inset: 0;+ position: absolute;+`;++type SettingsOptionCardContentToggleProps = {+ Icon?: IconComponent;+ title: React.ReactNode;+ description?: string;+ divider?: boolean;+ disabled?: boolean;+ checked: boolean;+ onChange: (checked: boolean) => void;+};++export const SettingsOptionCardContentToggle = ({+ Icon,+ title,+ description,+ divider,+ disabled = false,+ checked,+ onChange,+}: SettingsOptionCardContentToggleProps) => {+ const toggleId = useId();++ return (+ <>+ <StyledSettingsCardToggleContent $disabled={disabled}>+ {Icon && (+ <StyledSettingsCardIcon>+ <SettingsOptionIconCustomizer Icon={Icon} />+ </StyledSettingsCardIcon>+ )}+ <StyledSettingsCardTextContainer>+ <StyledSettingsCardTitle>+ <label htmlFor={toggleId}>+ {title}+ <StyledSettingsCardToggleCover />+ </label>+ </StyledSettingsCardTitle>+ {description && (+ <StyledSettingsCardDescription>+ <OverflowingTextWithTooltip text={description} />+ </StyledSettingsCardDescription>+ )}+ </StyledSettingsCardTextContainer>+ <StyledSettingsCardToggleButtonContainer>+ <Toggle+ id={toggleId}+ checked={checked}+ disabled={disabled}+ toggleSize="small"+ onChange={onChange}+ />+ </StyledSettingsCardToggleButtonContainer>+ </StyledSettingsCardToggleContent>+ {divider && <Separator />}+ </>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionIconCustomizer.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionIconCustomizer.tsxnew file mode 100644index 00000000000..a1ba17b9101--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsOptionIconCustomizer.tsx@@ -0,0 +1,33 @@+import styled from '@emotion/styled';+import { type IconComponent } from 'twenty-ui/icon';+import { ICON } from 'twenty-ui/theme';+import { themeCssVariables } from 'twenty-ui/theme-constants';++// twenty-front reads these off ThemeContext, but a front component has no+// ThemeProvider: the context default resolves every value to a var() string,+// which an SVG size attribute cannot use. Sizes come from the numeric ICON+// constants and the colour is inherited through currentColor instead.+const StyledIconCustomizer = styled.div<{ $zoom: number; $rotate: number }>`+ align-items: center;+ color: ${() => themeCssVariables.IllustrationIcon.color.gray};+ display: inline-flex;+ justify-content: center;+ pointer-events: none;+ transform: ${({ $zoom, $rotate }) => `scale(${$zoom}) rotate(${$rotate}deg)`};+`;++type SettingsOptionIconCustomizerProps = {+ Icon: IconComponent;+ zoom?: number;+ rotate?: number;+};++export const SettingsOptionIconCustomizer = ({+ Icon,+ zoom = 1,+ rotate = -4,+}: SettingsOptionIconCustomizerProps) => (+ <StyledIconCustomizer $zoom={zoom} $rotate={rotate}>+ <Icon size={ICON.size.lg} stroke={ICON.stroke.md} />+ </StyledIconCustomizer>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectControl.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectControl.tsxnew file mode 100644index 00000000000..2fc01777cc3--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectControl.tsx@@ -0,0 +1,144 @@+import styled from '@emotion/styled';+import { isUndefined } from '@sniptt/guards';+import { type KeyboardEvent, type ReactNode, useRef } from 'react';+import { IconChevronDown } from 'twenty-ui/icon';+import { ICON } from 'twenty-ui/theme';+import { OverflowingTextWithTooltip } from 'twenty-ui/surfaces';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import { type SettingsSelectNavigationKey } from 'src/front-components/utils/get-next-active-option-index.util';++const StyledControlContainer = styled.button<{+ $hasAdornment: boolean;+}>`+ appearance: none;+ align-items: center;+ background-color: ${() => themeCssVariables.background.transparent.light};+ border: 1px solid ${() => themeCssVariables.border.color.medium};+ border-radius: ${() => themeCssVariables.border.radius.md};+ box-sizing: border-box;+ color: ${() => themeCssVariables.font.color.primary};+ cursor: pointer;+ display: grid;+ font: inherit;+ gap: ${() => themeCssVariables.spacing[1]};+ grid-template-columns: ${({ $hasAdornment }) =>+ $hasAdornment ? 'auto 1fr auto' : '1fr auto'};+ height: ${() => themeCssVariables.spacing[6]};+ max-width: 100%;+ padding: 0 ${() => themeCssVariables.spacing[2]};+ text-align: left;++ &:disabled {+ color: ${() => themeCssVariables.font.color.secondary};+ cursor: not-allowed;+ }+`;++const StyledChevronWrapper = styled.div`+ color: ${() => themeCssVariables.font.color.tertiary};+ display: flex;+ pointer-events: none;+`;++type SettingsSelectControlProps = {+ label: string;+ ariaLabel: string;+ listboxId: string;+ activeDescendantId: string | undefined;+ adornment?: ReactNode;+ disabled?: boolean;+ isExpanded: boolean;+ onNavigate: (key: SettingsSelectNavigationKey) => void;+ onSelectActive: () => void;+ onEscape: () => void;+ onClick: () => void;+};++export const SettingsSelectControl = ({+ label,+ ariaLabel,+ listboxId,+ activeDescendantId,+ adornment,+ disabled = false,+ isExpanded,+ onNavigate,+ onSelectActive,+ onEscape,+ onClick,+}: SettingsSelectControlProps) => {+ const shouldIgnoreNextClickRef = useRef(false);++ const handleKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {+ if (event.key === 'Tab' && isExpanded) {+ onEscape();++ return;+ }++ if (event.key === 'Escape' && isExpanded) {+ onEscape();++ return;+ }++ if (!isExpanded && (event.key === 'ArrowDown' || event.key === 'ArrowUp')) {+ event.preventDefault();+ onClick();++ return;+ }++ if (+ isExpanded &&+ (event.key === 'ArrowDown' ||+ event.key === 'ArrowUp' ||+ event.key === 'Home' ||+ event.key === 'End')+ ) {+ event.preventDefault();+ onNavigate(event.key);++ return;+ }++ if (isExpanded && (event.key === 'Enter' || event.key === ' ')) {+ event.preventDefault();+ shouldIgnoreNextClickRef.current = true;+ onSelectActive();+ }+ };++ const handleClick = () => {+ if (shouldIgnoreNextClickRef.current) {+ shouldIgnoreNextClickRef.current = false;++ return;+ }++ onClick();+ };++ return (+ <StyledControlContainer+ type="button"+ role="combobox"+ $hasAdornment={!isUndefined(adornment)}+ disabled={disabled}+ aria-label={`${ariaLabel}: ${label}`}+ aria-expanded={isExpanded}+ aria-haspopup="listbox"+ aria-controls={listboxId}+ aria-activedescendant={isExpanded ? activeDescendantId : undefined}+ onClick={handleClick}+ onKeyDown={handleKeyDown}+ >+ {adornment}+ <OverflowingTextWithTooltip text={label} />+ <StyledChevronWrapper>+ <IconChevronDown size={ICON.size.md} stroke={ICON.stroke.sm} />+ </StyledChevronWrapper>+ </StyledControlContainer>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectMenu.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectMenu.tsxnew file mode 100644index 00000000000..3029ec281a5--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/SettingsSelectMenu.tsx@@ -0,0 +1,65 @@+import styled from '@emotion/styled';+import { type ReactNode } from 'react';+import { themeCssVariables } from 'twenty-ui/theme-constants';++import {+ SETTINGS_SELECT_MENU_BACKDROP_Z_INDEX,+ SETTINGS_SELECT_MENU_GAP_PIXELS,+ SETTINGS_SELECT_MENU_MAX_HEIGHT_PIXELS,+ SETTINGS_SELECT_MENU_WIDTH_PIXELS,+ SETTINGS_SELECT_MENU_Z_INDEX,+} from 'src/front-components/constants/settings-select-menu.constant';++// The sandbox cannot portal into the host document, so the menu opens inline+// below its control, and the backdrop stands in for the outside click the+// host page never forwards to the front component.+const StyledBackdrop = styled.div`+ inset: 0;+ position: fixed;+ z-index: ${SETTINGS_SELECT_MENU_BACKDROP_Z_INDEX};+`;++const StyledMenu = styled.div`+ background-color: ${() => themeCssVariables.background.primary};+ border: 1px solid ${() => themeCssVariables.border.color.medium};+ border-radius: ${() => themeCssVariables.border.radius.md};+ box-shadow: ${() => themeCssVariables.boxShadow.strong};+ box-sizing: border-box;+ display: flex;+ flex-direction: column;+ font-family: ${() => themeCssVariables.font.family};+ font-size: ${() => themeCssVariables.font.size.md};+ max-height: ${SETTINGS_SELECT_MENU_MAX_HEIGHT_PIXELS}px;+ overflow: hidden;+ position: absolute;+ right: 0;+ top: calc(100% + ${SETTINGS_SELECT_MENU_GAP_PIXELS}px);+ width: ${SETTINGS_SELECT_MENU_WIDTH_PIXELS}px;+ z-index: ${SETTINGS_SELECT_MENU_Z_INDEX};+`;++type SettingsSelectMenuProps = {+ isOpen: boolean;+ onClose: () => void;+ children: ReactNode;+};++export const SettingsSelectMenu = ({+ isOpen,+ onClose,+ children,+}: SettingsSelectMenuProps) => (+ <>+ <StyledBackdrop+ aria-hidden={!isOpen}+ style={{ display: isOpen ? 'block' : 'none' }}+ onClick={onClose}+ />+ <StyledMenu+ aria-hidden={!isOpen}+ style={{ display: isOpen ? 'flex' : 'none' }}+ >+ {children}+ </StyledMenu>+ </>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledDimmable.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledDimmable.tsxnew file mode 100644index 00000000000..7761a347216--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledDimmable.tsx@@ -0,0 +1,5 @@+import styled from '@emotion/styled';++export const StyledDimmable = styled.div<{ $dimmed: boolean }>`+ opacity: ${({ $dimmed }) => ($dimmed ? 0.72 : 1)};+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsCard.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsCard.tsxnew file mode 100644index 00000000000..99a22a68a13--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsCard.tsx@@ -0,0 +1,23 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++// Mirrors twenty-ui's Card without its overflow: hidden, which would clip the+// select menus that open inline below their rows. The rows paint their own+// background, so the first and last ones take over the card's corners.+export const StyledSettingsCard = styled.div`+ border: 1px solid ${() => themeCssVariables.border.color.medium};+ border-radius: ${() => themeCssVariables.border.radius.md};+ box-sizing: border-box;+ color: ${() => themeCssVariables.font.color.secondary};+ width: 100%;++ & > :first-child {+ border-top-left-radius: inherit;+ border-top-right-radius: inherit;+ }++ & > :last-child {+ border-bottom-left-radius: inherit;+ border-bottom-right-radius: inherit;+ }+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsError.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsError.tsxnew file mode 100644index 00000000000..ce57512f6c0--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsError.tsx@@ -0,0 +1,9 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++export const StyledSettingsError = styled.div`+ color: ${() => themeCssVariables.font.color.danger};+ font-family: ${() => themeCssVariables.font.family};+ font-size: ${() => themeCssVariables.font.size.xs};+ margin-top: ${() => themeCssVariables.spacing[1]};+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSectionStack.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSectionStack.tsxnew file mode 100644index 00000000000..1106c206fd5--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSectionStack.tsx@@ -0,0 +1,8 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++export const StyledSettingsSectionStack = styled.div`+ display: flex;+ flex-direction: column;+ gap: ${() => themeCssVariables.spacing[4]};+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSelectAnchor.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSelectAnchor.tsxnew file mode 100644index 00000000000..4ea12dedfc6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsSelectAnchor.tsx@@ -0,0 +1,5 @@+import styled from '@emotion/styled';++export const StyledSettingsSelectAnchor = styled.div`+ position: relative;+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextArea.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextArea.tsxnew file mode 100644index 00000000000..773102faac5--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextArea.tsx@@ -0,0 +1,11 @@+import styled from '@emotion/styled';++import { getSettingsControlStyles } from 'src/front-components/utils/get-settings-control-styles.util';++export const StyledSettingsTextArea = styled.textarea`+ display: block;+ line-height: 1.5;+ min-height: 96px;+ resize: vertical;+ ${getSettingsControlStyles}+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextInput.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextInput.tsxnew file mode 100644index 00000000000..77e5812a237--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/StyledSettingsTextInput.tsx@@ -0,0 +1,11 @@+import styled from '@emotion/styled';++import { getSettingsControlStyles } from 'src/front-components/utils/get-settings-control-styles.util';++export const StyledSettingsTextInput = styled.input`+ display: flex;+ flex-grow: 1;+ height: 32px;+ text-overflow: ellipsis;+ ${getSettingsControlStyles}+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/ThemeColorPickerMenu.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/ThemeColorPickerMenu.tsxnew file mode 100644index 00000000000..112a0e87a74--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/ThemeColorPickerMenu.tsx@@ -0,0 +1,60 @@+import styled from '@emotion/styled';+import { DEFAULT_COLOR_LABELS } from 'twenty-ui/navigation';+import { MAIN_COLOR_NAMES, type ThemeColor } from 'twenty-ui/theme';++import { DropdownMenuItemsContainer } from 'src/front-components/components/DropdownMenuItemsContainer';+import { DropdownMenuOption } from 'src/front-components/components/DropdownMenuOption';+import { DropdownMenuSeparator } from 'src/front-components/components/DropdownMenuSeparator';+import { SettingsColorSample } from 'src/front-components/components/SettingsColorSample';++const StyledListbox = styled.div`+ min-height: 0;+ overflow-y: auto;+ width: 100%;+`;++type ThemeColorPickerMenuProps = {+ listboxId: string;+ selectedColor: ThemeColor | undefined;+ isCustomSelected: boolean;+ activeOption: ThemeColor | 'custom';+ getOptionId: (option: ThemeColor | 'custom') => string;+ onSelectColor: (color: ThemeColor) => void;+ onSelectCustom: () => void;+};++export const ThemeColorPickerMenu = ({+ listboxId,+ selectedColor,+ isCustomSelected,+ activeOption,+ getOptionId,+ onSelectColor,+ onSelectCustom,+}: ThemeColorPickerMenuProps) => (+ <StyledListbox id={listboxId} role="listbox" aria-label="Tile background">+ <DropdownMenuItemsContainer>+ {MAIN_COLOR_NAMES.map((colorName) => (+ <DropdownMenuOption+ key={colorName}+ id={getOptionId(colorName)}+ onSelect={() => onSelectColor(colorName)}+ text={DEFAULT_COLOR_LABELS[colorName]}+ selected={colorName === selectedColor}+ isActive={colorName === activeOption}+ LeftComponent={<SettingsColorSample colorName={colorName} />}+ />+ ))}+ </DropdownMenuItemsContainer>+ <DropdownMenuSeparator />+ <DropdownMenuItemsContainer>+ <DropdownMenuOption+ id={getOptionId('custom')}+ text="Custom hex"+ selected={isCustomSelected}+ isActive={activeOption === 'custom'}+ onSelect={onSelectCustom}+ />+ </DropdownMenuItemsContainer>+ </StyledListbox>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TileBackgroundControl.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TileBackgroundControl.tsxnew file mode 100644index 00000000000..939554c23b6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/TileBackgroundControl.tsx@@ -0,0 +1,141 @@+import { isUndefined } from '@sniptt/guards';+import { useState } from 'react';+import { DEFAULT_COLOR_LABELS } from 'twenty-ui/navigation';+import { MAIN_COLOR_NAMES, type ThemeColor } from 'twenty-ui/theme';+import { isDefined } from 'twenty-ui/utilities';++import { SettingsSelectControl } from 'src/front-components/components/SettingsSelectControl';+import { SettingsSelectMenu } from 'src/front-components/components/SettingsSelectMenu';+import { SettingsColorSample } from 'src/front-components/components/SettingsColorSample';+import { StyledSettingsSelectAnchor } from 'src/front-components/components/StyledSettingsSelectAnchor';+import { ThemeColorPickerMenu } from 'src/front-components/components/ThemeColorPickerMenu';+import {+ getNextActiveOptionIndex,+ type SettingsSelectNavigationKey,+} from 'src/front-components/utils/get-next-active-option-index.util';++// The control is capped at 120px, where "Custom hex" ellipsises to "Custom …".+const CUSTOM_CONTROL_LABEL = 'Custom';+const CUSTOM_OPTION_VALUE = 'custom';+const FALLBACK_SWATCH_COLOR_NAME: ThemeColor = 'gray';+const TILE_BACKGROUND_LISTBOX_ID = 'call-recorder-tile-background';++type TileBackgroundOption = ThemeColor | typeof CUSTOM_OPTION_VALUE;++// Built lazily: the SDK manifest extractor loads this module with twenty-ui+// mocked, so module-scope iteration over MAIN_COLOR_NAMES would throw.+const getTileBackgroundOptions = (): TileBackgroundOption[] => [+ ...MAIN_COLOR_NAMES,+ CUSTOM_OPTION_VALUE,+];++const getTileBackgroundOptionId = (option: TileBackgroundOption) =>+ `${TILE_BACKGROUND_LISTBOX_ID}-option-${option}`;++type TileBackgroundControlProps = {+ swatchColor: string;+ selectedColor: ThemeColor | undefined;+ isCustomSelected: boolean;+ disabled: boolean;+ onSelectColor: (color: ThemeColor) => void;+ onSelectCustom: () => void;+};++export const TileBackgroundControl = ({+ swatchColor,+ selectedColor,+ isCustomSelected,+ disabled,+ onSelectColor,+ onSelectCustom,+}: TileBackgroundControlProps) => {+ const [isMenuOpen, setIsMenuOpen] = useState(false);+ const [activeOptionIndex, setActiveOptionIndex] = useState(0);++ const tileBackgroundOptions = getTileBackgroundOptions();++ const label = isUndefined(selectedColor)+ ? CUSTOM_CONTROL_LABEL+ : (DEFAULT_COLOR_LABELS[selectedColor] ?? selectedColor);++ const selectedOption: TileBackgroundOption = isCustomSelected+ ? CUSTOM_OPTION_VALUE+ : (selectedColor ?? FALLBACK_SWATCH_COLOR_NAME);++ const handleMenuToggle = () => {+ if (!isMenuOpen) {+ setActiveOptionIndex(+ Math.max(tileBackgroundOptions.indexOf(selectedOption), 0),+ );+ }++ setIsMenuOpen((isOpen) => !isOpen);+ };+ const handleMenuClose = () => setIsMenuOpen(false);++ const handleNavigate = (key: SettingsSelectNavigationKey) => {+ setActiveOptionIndex((currentIndex) =>+ getNextActiveOptionIndex({+ key,+ currentIndex,+ optionCount: tileBackgroundOptions.length,+ }),+ );+ };++ const handleSelectActive = () => {+ const activeOption = tileBackgroundOptions[activeOptionIndex];++ if (activeOption === CUSTOM_OPTION_VALUE) {+ onSelectCustom();+ } else if (isDefined(activeOption)) {+ onSelectColor(activeOption);+ }++ handleMenuClose();+ };++ return (+ <StyledSettingsSelectAnchor>+ <SettingsSelectControl+ label={label}+ ariaLabel="Tile background"+ disabled={disabled}+ listboxId={TILE_BACKGROUND_LISTBOX_ID}+ activeDescendantId={getTileBackgroundOptionId(+ tileBackgroundOptions[activeOptionIndex] ?? CUSTOM_OPTION_VALUE,+ )}+ isExpanded={isMenuOpen}+ onNavigate={handleNavigate}+ onSelectActive={handleSelectActive}+ onEscape={handleMenuClose}+ adornment={+ <SettingsColorSample+ colorName={selectedColor ?? FALLBACK_SWATCH_COLOR_NAME}+ color={isCustomSelected ? swatchColor : undefined}+ />+ }+ onClick={handleMenuToggle}+ />+ <SettingsSelectMenu isOpen={isMenuOpen} onClose={handleMenuClose}>+ <ThemeColorPickerMenu+ listboxId={TILE_BACKGROUND_LISTBOX_ID}+ selectedColor={selectedColor}+ isCustomSelected={isCustomSelected}+ activeOption={+ tileBackgroundOptions[activeOptionIndex] ?? CUSTOM_OPTION_VALUE+ }+ getOptionId={getTileBackgroundOptionId}+ onSelectColor={(color) => {+ onSelectColor(color);+ handleMenuClose();+ }}+ onSelectCustom={() => {+ onSelectCustom();+ handleMenuClose();+ }}+ />+ </SettingsSelectMenu>+ </StyledSettingsSelectAnchor>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TimingCounterRow.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TimingCounterRow.tsxnew file mode 100644index 00000000000..e81daed5254--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/TimingCounterRow.tsx@@ -0,0 +1,70 @@+import { isUndefined } from '@sniptt/guards';+import { useId, useState } from 'react';+import { type IconComponent } from 'twenty-ui/icon';++import { SettingsOptionCardContentCounter } from 'src/front-components/components/SettingsOptionCardContentCounter';+import { useAutosaveApplicationVariable } from 'src/front-components/hooks/use-autosave-application-variable';+import { getNormalizedNumberValue } from 'src/front-components/utils/get-normalized-number-value.util';++type TimingCounterRowProps = {+ frontComponentId: string;+ variableKey: string;+ title: string;+ description: string;+ Icon: IconComponent;+ divider: boolean;+ persistedValue: string;+};++export const TimingCounterRow = ({+ frontComponentId,+ variableKey,+ title,+ description,+ Icon,+ divider,+ persistedValue,+}: TimingCounterRowProps) => {+ const inputId = useId();+ const [inputValue, setInputValue] = useState(persistedValue);+ const { saveDebounced, saveImmediately } = useAutosaveApplicationVariable({+ frontComponentId,+ variableKey,+ });++ const handleChange = (value: string, changeType: 'input' | 'button') => {+ setInputValue(value);++ const valueToSave = getNormalizedNumberValue(value);++ if (isUndefined(valueToSave)) {+ saveDebounced.cancel();+ return;+ }++ if (changeType === 'button') {+ saveImmediately(valueToSave);+ return;+ }++ saveDebounced(valueToSave);+ };++ return (+ <SettingsOptionCardContentCounter+ Icon={Icon}+ title={title}+ description={description}+ divider={divider}+ inputId={inputId}+ value={inputValue}+ errorMessage={+ isUndefined(getNormalizedNumberValue(inputValue))+ ? 'Invalid number'+ : undefined+ }+ onChange={handleChange}+ onBlur={() => saveDebounced.flush()}+ />+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/Toggle.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/Toggle.tsxnew file mode 100644index 00000000000..c42097fbba3--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/Toggle.tsx@@ -0,0 +1,116 @@+import styled from '@emotion/styled';+import { themeCssVariables } from 'twenty-ui/theme-constants';++// twenty-ui's Toggle is a base-ui Switch whose click handler constructs a+// PointerEvent, which the front component sandbox does not provide. This is+// the same control as a plain button, styled after twenty-ui's Toggle. The+// host theme squircles every corner, so the capsule and thumb opt out.+export type ToggleSize = 'small' | 'medium';++type ToggleDimensions = {+ width: number;+ height: number;+ thumbSize: number;+};++const TOGGLE_DIMENSIONS_BY_SIZE: Record<ToggleSize, ToggleDimensions> = {+ small: { width: 24, height: 16, thumbSize: 12 },+ medium: { width: 32, height: 20, thumbSize: 16 },+};++const THUMB_INSET_PIXELS = 2;++const getCheckedThumbOffsetPixels = ({+ width,+ thumbSize,+}: ToggleDimensions) => width - thumbSize - THUMB_INSET_PIXELS;++const StyledToggle = styled.button<{+ $toggleSize: ToggleSize;+}>`+ align-items: center;+ appearance: none;+ background-color: ${() => themeCssVariables.background.transparent.medium};+ border: none;+ border-radius: ${() => themeCssVariables.border.radius.pill};+ corner-shape: round;+ cursor: pointer;+ display: flex;+ flex-shrink: 0;+ height: ${({ $toggleSize }) => TOGGLE_DIMENSIONS_BY_SIZE[$toggleSize].height}px;+ padding: 0;+ position: relative;+ transition: background-color+ calc(${() => themeCssVariables.animation.duration.normal} * 1s) ease;+ width: ${({ $toggleSize }) => TOGGLE_DIMENSIONS_BY_SIZE[$toggleSize].width}px;++ &[data-checked='true'] {+ background-color: ${() => themeCssVariables.color.blue};+ }++ &:disabled {+ cursor: default;+ opacity: 0.5;+ }+`;++const StyledThumb = styled.span<{+ $toggleSize: ToggleSize;+}>`+ background-color: ${() => themeCssVariables.background.primary};+ border-radius: 50%;+ corner-shape: round;+ display: block;+ height: ${({ $toggleSize }) =>+ TOGGLE_DIMENSIONS_BY_SIZE[$toggleSize].thumbSize}px;+ left: 0;+ position: absolute;+ top: 50%;+ transform: translate(${THUMB_INSET_PIXELS}px, -50%);+ transition: transform+ calc(${() => themeCssVariables.animation.duration.normal} * 1s) ease;+ width: ${({ $toggleSize }) =>+ TOGGLE_DIMENSIONS_BY_SIZE[$toggleSize].thumbSize}px;++ &[data-checked='true'] {+ transform: translate(+ ${({ $toggleSize }) =>+ getCheckedThumbOffsetPixels(+ TOGGLE_DIMENSIONS_BY_SIZE[$toggleSize],+ )}px,+ -50%+ );+ }+`;++type ToggleProps = {+ id?: string;+ checked: boolean;+ disabled?: boolean;+ toggleSize?: ToggleSize;+ onChange: (checked: boolean) => void;+};++export const Toggle = ({+ id,+ checked,+ disabled = false,+ toggleSize = 'medium',+ onChange,+}: ToggleProps) => (+ <StyledToggle+ type="button"+ role="switch"+ id={id}+ aria-checked={checked ? 'true' : 'false'}+ data-checked={checked ? 'true' : 'false'}+ disabled={disabled}+ $toggleSize={toggleSize}+ onClick={() => onChange(!checked)}+ >+ <StyledThumb+ data-checked={checked ? 'true' : 'false'}+ $toggleSize={toggleSize}+ />+ </StyledToggle>+);diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptProviderControl.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptProviderControl.tsxnew file mode 100644index 00000000000..80202c157e4--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptProviderControl.tsx@@ -0,0 +1,120 @@+import styled from '@emotion/styled';+import { useState } from 'react';+import { isDefined } from 'twenty-ui/utilities';++import { DropdownMenuItemsContainer } from 'src/front-components/components/DropdownMenuItemsContainer';+import { DropdownMenuOption } from 'src/front-components/components/DropdownMenuOption';+import { SettingsSelectControl } from 'src/front-components/components/SettingsSelectControl';+import { SettingsSelectMenu } from 'src/front-components/components/SettingsSelectMenu';+import { StyledSettingsSelectAnchor } from 'src/front-components/components/StyledSettingsSelectAnchor';+import { EMPTY_OPTION_LABEL } from 'src/front-components/constants/empty-option-label.constant';+import {+ getNextActiveOptionIndex,+ type SettingsSelectNavigationKey,+} from 'src/front-components/utils/get-next-active-option-index.util';++const StyledListbox = styled.div`+ display: flex;+ flex-direction: column;+ min-height: 0;+ width: 100%;+`;++const TRANSCRIPT_PROVIDER_LISTBOX_ID = 'call-recorder-transcript-provider';++const getTranscriptProviderOptionId = (index: number) =>+ `${TRANSCRIPT_PROVIDER_LISTBOX_ID}-option-${index}`;++type TranscriptProviderControlProps = {+ value: string;+ options: { label: string; value: string }[];+ onChange: (value: string) => void;+};++export const TranscriptProviderControl = ({+ value,+ options,+ onChange,+}: TranscriptProviderControlProps) => {+ const [isMenuOpen, setIsMenuOpen] = useState(false);+ const [activeOptionIndex, setActiveOptionIndex] = useState(0);++ const selectedOption = options.find((option) => option.value === value);+ const selectableOptions = [+ { label: EMPTY_OPTION_LABEL, value: '' },+ ...options,+ ];+ const selectedOptionIndex = Math.max(+ selectableOptions.findIndex(+ (selectableOption) => selectableOption.value === value,+ ),+ 0,+ );++ const handleMenuToggle = () => {+ if (!isMenuOpen) {+ setActiveOptionIndex(selectedOptionIndex);+ }++ setIsMenuOpen((isOpen) => !isOpen);+ };+ const handleMenuClose = () => setIsMenuOpen(false);++ const handleNavigate = (key: SettingsSelectNavigationKey) => {+ setActiveOptionIndex((currentIndex) =>+ getNextActiveOptionIndex({+ key,+ currentIndex,+ optionCount: selectableOptions.length,+ }),+ );+ };++ const handleSelectActive = () => {+ const activeOption = selectableOptions[activeOptionIndex];++ if (isDefined(activeOption)) {+ onChange(activeOption.value);+ handleMenuClose();+ }+ };++ return (+ <StyledSettingsSelectAnchor>+ <SettingsSelectControl+ label={selectedOption?.label ?? EMPTY_OPTION_LABEL}+ ariaLabel="Transcript provider"+ listboxId={TRANSCRIPT_PROVIDER_LISTBOX_ID}+ activeDescendantId={getTranscriptProviderOptionId(activeOptionIndex)}+ isExpanded={isMenuOpen}+ onNavigate={handleNavigate}+ onSelectActive={handleSelectActive}+ onEscape={handleMenuClose}+ onClick={handleMenuToggle}+ />+ <SettingsSelectMenu isOpen={isMenuOpen} onClose={handleMenuClose}>+ <StyledListbox+ id={TRANSCRIPT_PROVIDER_LISTBOX_ID}+ role="listbox"+ aria-label="Transcript provider"+ >+ <DropdownMenuItemsContainer>+ {selectableOptions.map((option, index) => (+ <DropdownMenuOption+ key={option.value}+ id={getTranscriptProviderOptionId(index)}+ text={option.label}+ selected={option.value === value}+ isActive={index === activeOptionIndex}+ onSelect={() => {+ onChange(option.value);+ handleMenuClose();+ }}+ />+ ))}+ </DropdownMenuItemsContainer>+ </StyledListbox>+ </SettingsSelectMenu>+ </StyledSettingsSelectAnchor>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptionSection.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptionSection.tsxnew file mode 100644index 00000000000..56ca633d7cd--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/components/TranscriptionSection.tsx@@ -0,0 +1,133 @@+import { useId, useState } from 'react';+import { Section } from 'twenty-ui/layout';+import { H2Title } from 'twenty-ui/typography';++import { CALL_RECORDER_TRANSCRIPT_PROVIDER_OPTIONS } from 'src/constants/call-recorder-transcript-provider-options';+import { LabelledSettingsField } from 'src/front-components/components/LabelledSettingsField';+import { SettingsOptionCardContentSelect } from 'src/front-components/components/SettingsOptionCardContentSelect';+import { SettingsOptionCardContentToggle } from 'src/front-components/components/SettingsOptionCardContentToggle';+import { StyledDimmable } from 'src/front-components/components/StyledDimmable';+import { StyledSettingsCard } from 'src/front-components/components/StyledSettingsCard';+import { StyledSettingsSectionStack } from 'src/front-components/components/StyledSettingsSectionStack';+import { StyledSettingsTextArea } from 'src/front-components/components/StyledSettingsTextArea';+import { TranscriptProviderControl } from 'src/front-components/components/TranscriptProviderControl';+import {+ CALL_RECORDER_SUMMARY_ENABLED_ROW,+ CALL_RECORDER_SUMMARY_PROMPT_FIELD,+ CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW,+} from 'src/front-components/constants/call-recorder-settings-layout.constant';+import { useAutosaveApplicationVariable } from 'src/front-components/hooks/use-autosave-application-variable';+import { getApplicationVariableValue } from 'src/front-components/utils/get-application-variable-value.util';+import { serializeRichTextMarkdown } from 'src/front-components/utils/serialize-rich-text-markdown.util';+import { extractRichTextMarkdown } from 'src/logic-functions/utils/extract-rich-text-markdown.util';++type TranscriptionSectionProps = {+ frontComponentId: string;+};++export const TranscriptionSection = ({+ frontComponentId,+}: TranscriptionSectionProps) => {+ const inputId = useId();+ const [providerValue, setProviderValue] = useState(() =>+ getApplicationVariableValue(+ CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.variableKey,+ ),+ );+ const [isSummaryEnabled, setIsSummaryEnabled] = useState(+ () =>+ getApplicationVariableValue(+ CALL_RECORDER_SUMMARY_ENABLED_ROW.variableKey,+ ) === 'true',+ );+ const [promptMarkdown, setPromptMarkdown] = useState(+ () =>+ extractRichTextMarkdown(+ getApplicationVariableValue(+ CALL_RECORDER_SUMMARY_PROMPT_FIELD.variableKey,+ ),+ ) ?? '',+ );++ const { saveImmediately: saveProviderImmediately } =+ useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.variableKey,+ });+ const { saveImmediately: saveSummaryEnabledImmediately } =+ useAutosaveApplicationVariable({+ frontComponentId,+ variableKey: CALL_RECORDER_SUMMARY_ENABLED_ROW.variableKey,+ });+ const { saveDebounced: savePromptDebounced } = useAutosaveApplicationVariable(+ {+ frontComponentId,+ variableKey: CALL_RECORDER_SUMMARY_PROMPT_FIELD.variableKey,+ },+ );++ const handleProviderChange = (value: string) => {+ setProviderValue(value);+ saveProviderImmediately(value);+ };++ const handleSummaryEnabledChange = (checked: boolean) => {+ const value = checked ? 'true' : 'false';++ setIsSummaryEnabled(checked);+ saveSummaryEnabledImmediately(value);+ };++ const handlePromptChange = (value: string) => {+ setPromptMarkdown(value);+ savePromptDebounced(serializeRichTextMarkdown(value));+ };++ return (+ <Section>+ <H2Title+ title="Transcription"+ description="What happens to a recording once the call ends."+ />+ <StyledSettingsSectionStack>+ <StyledSettingsCard>+ <SettingsOptionCardContentSelect+ Icon={CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.Icon}+ title={CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.title}+ description={CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.description}+ divider+ >+ <TranscriptProviderControl+ value={providerValue}+ options={CALL_RECORDER_TRANSCRIPT_PROVIDER_OPTIONS}+ onChange={handleProviderChange}+ />+ </SettingsOptionCardContentSelect>+ <SettingsOptionCardContentToggle+ Icon={CALL_RECORDER_SUMMARY_ENABLED_ROW.Icon}+ title={CALL_RECORDER_SUMMARY_ENABLED_ROW.title}+ description={CALL_RECORDER_SUMMARY_ENABLED_ROW.description}+ checked={isSummaryEnabled}+ onChange={handleSummaryEnabledChange}+ />+ </StyledSettingsCard>+ <StyledDimmable $dimmed={!isSummaryEnabled}>+ <LabelledSettingsField+ label={CALL_RECORDER_SUMMARY_PROMPT_FIELD.label}+ inputId={inputId}+ hint={CALL_RECORDER_SUMMARY_PROMPT_FIELD.hint}+ >+ <StyledSettingsTextArea+ id={inputId}+ placeholder="Value"+ disabled={!isSummaryEnabled}+ value={promptMarkdown}+ onChange={(event) => handlePromptChange(event.target.value)}+ onBlur={() => savePromptDebounced.flush()}+ />+ </LabelledSettingsField>+ </StyledDimmable>+ </StyledSettingsSectionStack>+ </Section>+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/constants/application-variable-save-debounce.constant.ts b/packages/twenty-apps/public/call-recorder/src/front-components/constants/application-variable-save-debounce.constant.tsnew file mode 100644index 00000000000..92a9f123047--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/constants/application-variable-save-debounce.constant.ts@@ -0,0 +1 @@+export const APPLICATION_VARIABLE_SAVE_DEBOUNCE_MILLISECONDS = 250;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/constants/call-recorder-settings-layout.constant.ts b/packages/twenty-apps/public/call-recorder/src/front-components/constants/call-recorder-settings-layout.constant.tsnew file mode 100644index 00000000000..bb03fe148df--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/constants/call-recorder-settings-layout.constant.ts@@ -0,0 +1,129 @@+import {+ IconClockPlay,+ IconColorSwatch,+ IconDoorEnter,+ IconHourglassHigh,+ IconLanguage,+ IconMessage,+ IconPhoto,+ IconPlayerStop,+ IconSparkles,+ type IconComponent,+} from 'twenty-ui/icon';++import { CALL_RECORDER_ADDITIONAL_SUMMARY_PROMPT_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-additional-summary-prompt-env-var-name';+import { CALL_RECORDER_BOT_IMAGE_BACKGROUND_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-bot-image-background-env-var-name';+import { CALL_RECORDER_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-everyone-left-timeout-seconds-env-var-name';+import { CALL_RECORDER_JOIN_EARLY_MINUTES_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-join-early-minutes-env-var-name';+import { CALL_RECORDER_NAME_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-name-env-var-name';+import { CALL_RECORDER_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-noone-joined-timeout-seconds-env-var-name';+import { CALL_RECORDER_RECORDING_NOTICE_ENABLED_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-recording-notice-enabled-env-var-name';+import { CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH } from 'src/logic-functions/constants/call-recorder-recording-notice-max-length';+import { CALL_RECORDER_RECORDING_NOTICE_MESSAGE_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-recording-notice-message-env-var-name';+import { CALL_RECORDER_SUMMARY_ENABLED_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-summary-enabled-env-var-name';+import { CALL_RECORDER_TRANSCRIPT_PROVIDER_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-transcript-provider-env-var-name';+import { CALL_RECORDER_USE_WORKSPACE_LOGO_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-use-workspace-logo-env-var-name';+import { CALL_RECORDER_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-waiting-room-timeout-seconds-env-var-name';++export type CallRecorderCounterRow = {+ variableKey: string;+ title: string;+ description: string;+ Icon: IconComponent;+};++export const CALL_RECORDER_RECORDING_NOTICE_ROW = {+ variableKey: CALL_RECORDER_RECORDING_NOTICE_ENABLED_ENV_VAR_NAME,+ title: 'Send recording notice',+ description:+ 'Post a notice in the meeting chat when the recorder joins. Zoom, Google Meet and Microsoft Teams only.',+ Icon: IconMessage,+};++export const CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD = {+ variableKey: CALL_RECORDER_RECORDING_NOTICE_MESSAGE_ENV_VAR_NAME,+ label: 'Recording notice message',+ hint: `Truncated to ${CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH} characters for Google Meet.`,+};++export const CALL_RECORDER_TIMING_ROWS: CallRecorderCounterRow[] = [+ {+ variableKey: CALL_RECORDER_JOIN_EARLY_MINUTES_ENV_VAR_NAME,+ title: 'Join before start',+ description:+ 'Minutes before the scheduled start time. Set 0 to join on time.',+ Icon: IconClockPlay,+ },+ {+ variableKey: CALL_RECORDER_WAITING_ROOM_TIMEOUT_SECONDS_ENV_VAR_NAME,+ title: 'Leave the lobby after',+ description: 'Seconds the recorder waits to be admitted before giving up.',+ Icon: IconDoorEnter,+ },+ {+ variableKey: CALL_RECORDER_NOONE_JOINED_TIMEOUT_SECONDS_ENV_VAR_NAME,+ title: 'Leave an empty call after',+ description: 'Seconds to wait when nobody else ever joins the meeting.',+ Icon: IconHourglassHigh,+ },+ {+ variableKey: CALL_RECORDER_EVERYONE_LEFT_TIMEOUT_SECONDS_ENV_VAR_NAME,+ title: 'Keep recording after everyone leaves',+ description: 'Seconds of grace before the recording is ended.',+ Icon: IconPlayerStop,+ },+];++export const CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW = {+ variableKey: CALL_RECORDER_TRANSCRIPT_PROVIDER_ENV_VAR_NAME,+ title: 'Transcript provider',+ description: 'Speech-to-text service used once the call ends.',+ Icon: IconLanguage,+};++export const CALL_RECORDER_SUMMARY_ENABLED_ROW = {+ variableKey: CALL_RECORDER_SUMMARY_ENABLED_ENV_VAR_NAME,+ title: 'AI summaries',+ description: 'Generate a summary for every recording. Uses AI credits.',+ Icon: IconSparkles,+};++export const CALL_RECORDER_USE_WORKSPACE_LOGO_ROW = {+ variableKey: CALL_RECORDER_USE_WORKSPACE_LOGO_ENV_VAR_NAME,+ title: 'Show workspace logo',+ description: 'Display your logo on the recorder camera tile.',+ Icon: IconPhoto,+};++export const CALL_RECORDER_TILE_BACKGROUND_ROW = {+ variableKey: CALL_RECORDER_BOT_IMAGE_BACKGROUND_ENV_VAR_NAME,+ title: 'Tile background',+ description: 'Colour drawn behind the logo on the camera tile.',+ Icon: IconColorSwatch,+};++export const CALL_RECORDER_NAME_FIELD = {+ variableKey: CALL_RECORDER_NAME_ENV_VAR_NAME,+ label: 'Recorder name',+ hint: 'Shown to everyone else in the meeting when the recorder joins.',+};++export const CALL_RECORDER_SUMMARY_PROMPT_FIELD = {+ variableKey: CALL_RECORDER_ADDITIONAL_SUMMARY_PROMPT_ENV_VAR_NAME,+ label: 'Extra summary instructions',+ hint: 'Appended to the built-in prompt. Leave empty to use it alone.',+};++// Keep this list aligned with the app config so every application variable is+// intentionally placed in the synchronous settings UI.+export const CALL_RECORDER_MAPPED_VARIABLE_KEYS: string[] = [+ CALL_RECORDER_NAME_FIELD.variableKey,+ CALL_RECORDER_RECORDING_NOTICE_ROW.variableKey,+ CALL_RECORDER_RECORDING_NOTICE_MESSAGE_FIELD.variableKey,+ ...CALL_RECORDER_TIMING_ROWS.map((row) => row.variableKey),+ CALL_RECORDER_TRANSCRIPT_PROVIDER_ROW.variableKey,+ CALL_RECORDER_SUMMARY_ENABLED_ROW.variableKey,+ CALL_RECORDER_SUMMARY_PROMPT_FIELD.variableKey,+ CALL_RECORDER_USE_WORKSPACE_LOGO_ROW.variableKey,+ CALL_RECORDER_TILE_BACKGROUND_ROW.variableKey,+];diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/constants/empty-option-label.constant.ts b/packages/twenty-apps/public/call-recorder/src/front-components/constants/empty-option-label.constant.tsnew file mode 100644index 00000000000..c3c332caf7f--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/constants/empty-option-label.constant.ts@@ -0,0 +1 @@+export const EMPTY_OPTION_LABEL = 'Select a value';diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/constants/settings-select-menu.constant.ts b/packages/twenty-apps/public/call-recorder/src/front-components/constants/settings-select-menu.constant.tsnew file mode 100644index 00000000000..655e0615edb--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/constants/settings-select-menu.constant.ts@@ -0,0 +1,9 @@+export const SETTINGS_SELECT_MENU_GAP_PIXELS = 4;++export const SETTINGS_SELECT_MENU_MAX_HEIGHT_PIXELS = 320;++export const SETTINGS_SELECT_MENU_WIDTH_PIXELS = 200;++export const SETTINGS_SELECT_MENU_BACKDROP_Z_INDEX = 2000;++export const SETTINGS_SELECT_MENU_Z_INDEX = 2001;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/constants/theme-color-hex.constant.ts b/packages/twenty-apps/public/call-recorder/src/front-components/constants/theme-color-hex.constant.tsnew file mode 100644index 00000000000..194910f5c6f--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/constants/theme-color-hex.constant.ts@@ -0,0 +1,33 @@+import { type ThemeColor } from 'twenty-ui/theme';++// twenty-ui's MAIN_COLORS_LIGHT holds display-p3 strings, which the hex+// validator in get-bot-image-background rejects — it would silently fall back+// to the default background. Named colours are stored as the sRGB equivalent+// of the same Radix step instead.+export const THEME_COLOR_HEX: Record<ThemeColor, string> = {+ red: '#e5484d',+ ruby: '#e54666',+ crimson: '#e93d82',+ tomato: '#e54d2e',+ orange: '#f76b15',+ amber: '#ffc53d',+ yellow: '#ffe629',+ lime: '#bdee63',+ grass: '#46a758',+ green: '#30a46c',+ jade: '#29a383',+ mint: '#86ead4',+ turquoise: '#12a594',+ cyan: '#00a2c7',+ sky: '#7ce2fe',+ blue: '#3e63dd',+ iris: '#5b5bd6',+ violet: '#6e56cf',+ purple: '#8e4ec6',+ plum: '#ab4aba',+ pink: '#d6409f',+ bronze: '#a18072',+ gold: '#978365',+ brown: '#ad7f58',+ gray: '#999999',+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-autosave-application-variable.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-autosave-application-variable.tsnew file mode 100644index 00000000000..571c50e2bc7--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-autosave-application-variable.ts@@ -0,0 +1,63 @@+import { isUndefined } from '@sniptt/guards';+import { useCallback, useRef } from 'react';+import { useDebouncedCallback } from 'use-debounce';++import { APPLICATION_VARIABLE_SAVE_DEBOUNCE_MILLISECONDS } from 'src/front-components/constants/application-variable-save-debounce.constant';+import { useSaveApplicationVariable } from 'src/front-components/hooks/use-save-application-variable';+import { createApplicationVariableSaveQueue } from 'src/front-components/utils/create-application-variable-save-queue.util';++type UseAutosaveApplicationVariableParams = {+ frontComponentId: string;+ variableKey: string;+ onSaveSuccess?: (value: string) => void;+};++export const useAutosaveApplicationVariable = ({+ frontComponentId,+ variableKey,+ onSaveSuccess,+}: UseAutosaveApplicationVariableParams) => {+ const { saveApplicationVariable } =+ useSaveApplicationVariable(frontComponentId);+ const saveApplicationVariableRef = useRef(saveApplicationVariable);+ const onSaveSuccessRef = useRef(onSaveSuccess);+ const variableKeyRef = useRef(variableKey);++ saveApplicationVariableRef.current = saveApplicationVariable;+ onSaveSuccessRef.current = onSaveSuccess;+ variableKeyRef.current = variableKey;++ const saveQueueRef = useRef<+ ReturnType<typeof createApplicationVariableSaveQueue> | undefined+ >(undefined);++ if (isUndefined(saveQueueRef.current)) {+ saveQueueRef.current = createApplicationVariableSaveQueue({+ saveValue: async (value) => {+ const isSaved = await saveApplicationVariableRef.current({+ variableKey: variableKeyRef.current,+ value,+ });++ if (isSaved) {+ onSaveSuccessRef.current?.(value);+ }+ },+ });+ }++ const saveDebounced = useDebouncedCallback(+ saveQueueRef.current.enqueueSave,+ APPLICATION_VARIABLE_SAVE_DEBOUNCE_MILLISECONDS,+ );++ const saveImmediately = useCallback(+ (value: string) => {+ saveDebounced.cancel();+ saveQueueRef.current?.enqueueSave(value);+ },+ [saveDebounced],+ );++ return { saveDebounced, saveImmediately };+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-save-application-variable.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-save-application-variable.tsnew file mode 100644index 00000000000..0904e3399cd--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-save-application-variable.ts@@ -0,0 +1,31 @@+import { enqueueSnackbar } from 'twenty-sdk/front-component';++import { useUpdateApplicationVariable } from 'src/front-components/hooks/use-update-application-variable';++type SaveApplicationVariableParams = {+ variableKey: string;+ value: string;+};++export const useSaveApplicationVariable = (frontComponentId: string) => {+ const { updateApplicationVariable } =+ useUpdateApplicationVariable(frontComponentId);++ const saveApplicationVariable = async ({+ variableKey,+ value,+ }: SaveApplicationVariableParams) => {+ const isUpdated = await updateApplicationVariable({ variableKey, value });++ if (!isUpdated) {+ enqueueSnackbar({+ message: `Could not save ${variableKey}.`,+ variant: 'error',+ });+ }++ return isUpdated;+ };++ return { saveApplicationVariable };+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-update-application-variable.ts b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-update-application-variable.tsnew file mode 100644index 00000000000..77661ca4b78--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/hooks/use-update-application-variable.ts@@ -0,0 +1,41 @@+import { MetadataApiClient } from 'twenty-client-sdk/metadata';++import { resolveCallRecorderApplicationId } from 'src/front-components/utils/resolve-call-recorder-application-id.util';++type UpdateApplicationVariableParams = {+ variableKey: string;+ value: string;+};++type UpdateApplicationVariableState = {+ updateApplicationVariable: (+ params: UpdateApplicationVariableParams,+ ) => Promise<boolean>;+};++export const useUpdateApplicationVariable = (+ frontComponentId: string,+): UpdateApplicationVariableState => {+ const updateApplicationVariable = async ({+ variableKey,+ value,+ }: UpdateApplicationVariableParams): Promise<boolean> => {+ try {+ const applicationId =+ await resolveCallRecorderApplicationId(frontComponentId);+ const client = new MetadataApiClient();++ await client.mutation({+ updateOneApplicationVariable: {+ __args: { key: variableKey, value, applicationId },+ },+ });++ return true;+ } catch {+ return false;+ }+ };++ return { updateApplicationVariable };+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/settings.front-component.tsx b/packages/twenty-apps/public/call-recorder/src/front-components/settings.front-component.tsxnew file mode 100644index 00000000000..31bc3adefd0--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/settings.front-component.tsx@@ -0,0 +1,12 @@+import { defineSettingsFrontComponent } from 'twenty-sdk/define';++import { CALL_RECORDER_SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/call-recorder-settings-front-component-universal-identifier';+import { CallRecorderSettings } from 'src/front-components/components/CallRecorderSettings';++export default defineSettingsFrontComponent({+ universalIdentifier:+ CALL_RECORDER_SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,+ name: 'call-recorder-settings',+ description: 'Settings panel for the call recorder application variables.',+ component: CallRecorderSettings,+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/create-application-variable-save-queue.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/create-application-variable-save-queue.test.tsnew file mode 100644index 00000000000..ccdf46bf319--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/create-application-variable-save-queue.test.ts@@ -0,0 +1,41 @@+import { describe, expect, it, vi } from 'vitest';++import { createApplicationVariableSaveQueue } from 'src/front-components/utils/create-application-variable-save-queue.util';++const createDeferredPromise = () => {+ let resolvePromise: () => void = () => {};+ const promise = new Promise<void>((resolve) => {+ resolvePromise = resolve;+ });++ return { promise, resolvePromise };+};++describe('createApplicationVariableSaveQueue', () => {+ it('persists one value at a time and coalesces queued values to the latest', async () => {+ const firstSave = createDeferredPromise();+ const latestSave = createDeferredPromise();+ const saveValue = vi+ .fn<(value: string) => Promise<void>>()+ .mockReturnValueOnce(firstSave.promise)+ .mockReturnValueOnce(latestSave.promise);+ const { enqueueSave } = createApplicationVariableSaveQueue({ saveValue });++ enqueueSave('first');+ enqueueSave('second');+ enqueueSave('latest');++ expect(saveValue).toHaveBeenCalledTimes(1);+ expect(saveValue).toHaveBeenNthCalledWith(1, 'first');++ firstSave.resolvePromise();+ await firstSave.promise;+ await Promise.resolve();++ expect(saveValue).toHaveBeenCalledTimes(2);+ expect(saveValue).toHaveBeenNthCalledWith(2, 'latest');++ latestSave.resolvePromise();+ await latestSave.promise;+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-application-variable-value.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-application-variable-value.test.tsnew file mode 100644index 00000000000..ae03f7ed174--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-application-variable-value.test.ts@@ -0,0 +1,26 @@+import { afterEach, describe, expect, it, vi } from 'vitest';++import { getApplicationVariableValue } from 'src/front-components/utils/get-application-variable-value.util';++describe('getApplicationVariableValue', () => {+ afterEach(() => {+ vi.unstubAllEnvs();+ });++ it('reads the value injected into the front component synchronously', () => {+ vi.stubEnv(+ 'applicationVariables',+ JSON.stringify({ RECORDER_NAME: 'Meeting assistant' }),+ );++ expect(getApplicationVariableValue('RECORDER_NAME')).toBe(+ 'Meeting assistant',+ );+ });++ it('returns an empty value when the variable is not configured', () => {+ vi.stubEnv('applicationVariables', '{}');++ expect(getApplicationVariableValue('RECORDER_NAME')).toBe('');+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-next-active-option-index.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-next-active-option-index.test.tsnew file mode 100644index 00000000000..30ee87db0c3--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-next-active-option-index.test.ts@@ -0,0 +1,35 @@+import { describe, expect, it } from 'vitest';++import { getNextActiveOptionIndex } from 'src/front-components/utils/get-next-active-option-index.util';++describe('getNextActiveOptionIndex', () => {+ it.each([+ { key: 'ArrowDown' as const, currentIndex: 1, expectedIndex: 2 },+ { key: 'ArrowDown' as const, currentIndex: 3, expectedIndex: 0 },+ { key: 'ArrowUp' as const, currentIndex: 2, expectedIndex: 1 },+ { key: 'ArrowUp' as const, currentIndex: 0, expectedIndex: 3 },+ { key: 'Home' as const, currentIndex: 2, expectedIndex: 0 },+ { key: 'End' as const, currentIndex: 1, expectedIndex: 3 },+ ])(+ 'returns $expectedIndex for $key from $currentIndex',+ ({ key, currentIndex, expectedIndex }) => {+ expect(+ getNextActiveOptionIndex({+ key,+ currentIndex,+ optionCount: 4,+ }),+ ).toBe(expectedIndex);+ },+ );++ it('returns zero when there are no options', () => {+ expect(+ getNextActiveOptionIndex({+ key: 'ArrowDown',+ currentIndex: 0,+ optionCount: 0,+ }),+ ).toBe(0);+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-hex-value.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-hex-value.test.tsnew file mode 100644index 00000000000..d3edee4c08f--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-hex-value.test.ts@@ -0,0 +1,21 @@+import { describe, expect, it } from 'vitest';++import { getNormalizedHexValue } from 'src/front-components/utils/get-normalized-hex-value.util';++describe('getNormalizedHexValue', () => {+ it('normalizes valid hex values', () => {+ expect(getNormalizedHexValue('#1D1D1D')).toBe('#1d1d1d');+ expect(getNormalizedHexValue(' #abc ')).toBe('#aabbcc');+ });++ it('keeps an empty value so the variable can be cleared', () => {+ expect(getNormalizedHexValue('')).toBe('');+ expect(getNormalizedHexValue(' ')).toBe('');+ });++ it('returns undefined for values that are not hex colours', () => {+ expect(getNormalizedHexValue('#12')).toBeUndefined();+ expect(getNormalizedHexValue('1d1d1d')).toBeUndefined();+ expect(getNormalizedHexValue('red')).toBeUndefined();+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-number-value.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-number-value.test.tsnew file mode 100644index 00000000000..89abf9f7df6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-normalized-number-value.test.ts@@ -0,0 +1,22 @@+import { describe, expect, it } from 'vitest';++import { getNormalizedNumberValue } from 'src/front-components/utils/get-normalized-number-value.util';++describe('getNormalizedNumberValue', () => {+ it('normalizes numeric values', () => {+ expect(getNormalizedNumberValue('0')).toBe('0');+ expect(getNormalizedNumberValue(' 7 ')).toBe('7');+ expect(getNormalizedNumberValue('-1.50')).toBe('-1.5');+ });++ it('keeps an empty value so a variable can be cleared', () => {+ expect(getNormalizedNumberValue('')).toBe('');+ expect(getNormalizedNumberValue(' ')).toBe('');+ });++ it('returns undefined for values that are not numbers', () => {+ expect(getNormalizedNumberValue('abc')).toBeUndefined();+ expect(getNormalizedNumberValue('12abc')).toBeUndefined();+ expect(getNormalizedNumberValue('Infinity')).toBeUndefined();+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-theme-color-from-hex.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-theme-color-from-hex.test.tsnew file mode 100644index 00000000000..520d11a4dac--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/get-theme-color-from-hex.test.ts@@ -0,0 +1,23 @@+import { describe, expect, it } from 'vitest';++import { THEME_COLOR_HEX } from 'src/front-components/constants/theme-color-hex.constant';+import { getThemeColorFromHex } from 'src/front-components/utils/get-theme-color-from-hex.util';++describe('getThemeColorFromHex', () => {+ it('maps a stored hex back to its theme colour name', () => {+ expect(getThemeColorFromHex('#3E63DD')).toBe('blue');+ expect(getThemeColorFromHex('#e5484d')).toBe('red');+ });++ it('returns undefined for a colour outside the palette', () => {+ expect(getThemeColorFromHex('#1d1d1d')).toBeUndefined();+ });++ it('stores every palette colour as a hex the bot image validator accepts', () => {+ const hexPattern = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;++ for (const hex of Object.values(THEME_COLOR_HEX)) {+ expect(hex).toMatch(hexPattern);+ }+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/normalize-hex-color.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/normalize-hex-color.test.tsnew file mode 100644index 00000000000..37dddd01ea4--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/normalize-hex-color.test.ts@@ -0,0 +1,21 @@+import { describe, expect, it } from 'vitest';++import { normalizeHexColor } from 'src/front-components/utils/normalize-hex-color.util';++describe('normalizeHexColor', () => {+ it('expands short hex values', () => {+ expect(normalizeHexColor('#ABC')).toBe('#aabbcc');+ });++ it('lowercases long hex values', () => {+ expect(normalizeHexColor(' #1D1D1D ')).toBe('#1d1d1d');+ });++ it('rejects anything that is not a hex colour', () => {+ expect(+ normalizeHexColor('color(display-p3 0.83 0.329 0.324)'),+ ).toBeUndefined();+ expect(normalizeHexColor('red')).toBeUndefined();+ expect(normalizeHexColor('')).toBeUndefined();+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/resolve-call-recorder-application-id.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/resolve-call-recorder-application-id.test.tsnew file mode 100644index 00000000000..f51742add86--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/resolve-call-recorder-application-id.test.ts@@ -0,0 +1,51 @@+import { beforeEach, describe, expect, it, vi } from 'vitest';++const { metadataQuery } = vi.hoisted(() => ({+ metadataQuery: vi.fn(),+}));++vi.mock('twenty-client-sdk/metadata', () => ({+ MetadataApiClient: class {+ query = metadataQuery;+ },+}));++import { resolveCallRecorderApplicationId } from 'src/front-components/utils/resolve-call-recorder-application-id.util';++describe('resolveCallRecorderApplicationId', () => {+ beforeEach(() => {+ metadataQuery.mockReset();+ });++ it('shares one application lookup across concurrent saves', async () => {+ metadataQuery.mockResolvedValue({+ frontComponent: { applicationId: 'application-id' },+ });++ const firstResolution =+ resolveCallRecorderApplicationId('front-component-id');+ const secondResolution =+ resolveCallRecorderApplicationId('front-component-id');++ await expect(firstResolution).resolves.toBe('application-id');+ await expect(secondResolution).resolves.toBe('application-id');+ expect(metadataQuery).toHaveBeenCalledOnce();+ });++ it('retries the lookup after a failed resolution', async () => {+ metadataQuery+ .mockResolvedValueOnce({ frontComponent: null })+ .mockResolvedValueOnce({+ frontComponent: { applicationId: 'application-id' },+ });++ await expect(+ resolveCallRecorderApplicationId('retry-front-component-id'),+ ).rejects.toThrow('Could not resolve the call recorder application.');+ await expect(+ resolveCallRecorderApplicationId('retry-front-component-id'),+ ).resolves.toBe('application-id');++ expect(metadataQuery).toHaveBeenCalledTimes(2);+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/serialize-rich-text-markdown.test.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/serialize-rich-text-markdown.test.tsnew file mode 100644index 00000000000..51ebd5926b4--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/__tests__/serialize-rich-text-markdown.test.ts@@ -0,0 +1,24 @@+import { describe, expect, it } from 'vitest';++import { extractRichTextMarkdown } from 'src/logic-functions/utils/extract-rich-text-markdown.util';+import { serializeRichTextMarkdown } from 'src/front-components/utils/serialize-rich-text-markdown.util';++describe('serializeRichTextMarkdown', () => {+ it('wraps markdown into the stored rich text shape', () => {+ expect(serializeRichTextMarkdown('Write terse notes.')).toBe(+ '{"blocknote":null,"markdown":"Write terse notes."}',+ );+ });++ it('serializes an empty prompt using the stored rich text shape', () => {+ expect(serializeRichTextMarkdown('')).toBe(+ '{"blocknote":null,"markdown":null}',+ );+ });++ it('round-trips through the reader used by the summary prompt', () => {+ expect(+ extractRichTextMarkdown(serializeRichTextMarkdown('Focus on decisions.')),+ ).toBe('Focus on decisions.');+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/create-application-variable-save-queue.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/create-application-variable-save-queue.util.tsnew file mode 100644index 00000000000..8918ce49af1--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/create-application-variable-save-queue.util.ts@@ -0,0 +1,44 @@+import { isUndefined } from '@sniptt/guards';++type CreateApplicationVariableSaveQueueParams = {+ saveValue: (value: string) => Promise<void>;+};++export const createApplicationVariableSaveQueue = ({+ saveValue,+}: CreateApplicationVariableSaveQueueParams) => {+ let queuedValue: string | undefined;+ let isSaving = false;++ const persistQueuedValues = async () => {+ if (isSaving) {+ return;+ }++ isSaving = true;++ try {+ while (!isUndefined(queuedValue)) {+ const valueToSave = queuedValue;++ queuedValue = undefined;++ await saveValue(valueToSave);+ }+ } finally {+ isSaving = false;++ if (!isUndefined(queuedValue)) {+ void persistQueuedValues();+ }+ }+ };++ const enqueueSave = (value: string) => {+ queuedValue = value;++ void persistQueuedValues();+ };++ return { enqueueSave };+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-application-variable-value.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-application-variable-value.util.tsnew file mode 100644index 00000000000..0bc7c96c680--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-application-variable-value.util.ts@@ -0,0 +1,4 @@+import { getApplicationVariable } from 'twenty-sdk/front-component';++export const getApplicationVariableValue = (variableKey: string): string =>+ getApplicationVariable(variableKey) ?? '';diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-next-active-option-index.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-next-active-option-index.util.tsnew file mode 100644index 00000000000..0d811faa87b--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-next-active-option-index.util.ts@@ -0,0 +1,33 @@+export type SettingsSelectNavigationKey =+ | 'ArrowDown'+ | 'ArrowUp'+ | 'Home'+ | 'End';++export const getNextActiveOptionIndex = ({+ key,+ currentIndex,+ optionCount,+}: {+ key: SettingsSelectNavigationKey;+ currentIndex: number;+ optionCount: number;+}): number => {+ if (optionCount <= 0) {+ return 0;+ }++ if (key === 'ArrowDown') {+ return (currentIndex + 1) % optionCount;+ }++ if (key === 'ArrowUp') {+ return (currentIndex - 1 + optionCount) % optionCount;+ }++ if (key === 'Home') {+ return 0;+ }++ return optionCount - 1;+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-hex-value.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-hex-value.util.tsnew file mode 100644index 00000000000..694b4a3a0c5--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-hex-value.util.ts@@ -0,0 +1,9 @@+import { normalizeHexColor } from 'src/front-components/utils/normalize-hex-color.util';++export const getNormalizedHexValue = (value: string): string | undefined => {+ if (value.trim() === '') {+ return '';+ }++ return normalizeHexColor(value);+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-number-value.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-number-value.util.tsnew file mode 100644index 00000000000..bbedef1bdb9--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-normalized-number-value.util.ts@@ -0,0 +1,15 @@+// Returns undefined when the draft cannot be stored, so a half-typed number is+// kept on screen instead of being persisted as a broken value.+export const getNormalizedNumberValue = (+ value: string,+): string | undefined => {+ const trimmedValue = value.trim();++ if (trimmedValue === '') {+ return '';+ }++ const parsedValue = Number(trimmedValue);++ return Number.isFinite(parsedValue) ? String(parsedValue) : undefined;+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-settings-control-styles.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-settings-control-styles.util.tsnew file mode 100644index 00000000000..7efdcb89ee6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-settings-control-styles.util.ts@@ -0,0 +1,37 @@+import { themeCssVariables } from 'twenty-ui/theme-constants';++// Mirrors the settings inputs twenty-front renders for application variables,+// which cannot be imported here: twenty-ui ships no text, select or textarea+// input, and front components cannot reach into twenty-front internals.+export const getSettingsControlStyles = () => `+ background-color: ${themeCssVariables.background.transparent.light};+ border: 1px solid ${themeCssVariables.border.color.medium};+ border-radius: ${themeCssVariables.border.radius.md};+ box-sizing: border-box;+ color: ${themeCssVariables.font.color.primary};+ font-family: ${themeCssVariables.font.family};+ font-size: ${themeCssVariables.font.size.md};+ font-weight: ${themeCssVariables.font.weight.regular};+ outline: none;+ padding: ${themeCssVariables.spacing[2]};+ width: 100%;++ &::placeholder,+ &::-webkit-input-placeholder {+ color: ${themeCssVariables.font.color.tertiary};+ font-family: ${themeCssVariables.font.family};+ font-weight: ${themeCssVariables.font.weight.medium};+ }++ &:disabled {+ color: ${themeCssVariables.font.color.secondary};+ }++ &[readonly] {+ pointer-events: none;+ }++ &:focus {+ border-color: ${themeCssVariables.color.blue};+ }+`;diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-theme-color-from-hex.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-theme-color-from-hex.util.tsnew file mode 100644index 00000000000..5a03a1f1bdd--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/get-theme-color-from-hex.util.ts@@ -0,0 +1,17 @@+import { isUndefined } from '@sniptt/guards';+import { MAIN_COLOR_NAMES, type ThemeColor } from 'twenty-ui/theme';++import { THEME_COLOR_HEX } from 'src/front-components/constants/theme-color-hex.constant';+import { normalizeHexColor } from 'src/front-components/utils/normalize-hex-color.util';++export const getThemeColorFromHex = (value: string): ThemeColor | undefined => {+ const normalizedValue = normalizeHexColor(value);++ if (isUndefined(normalizedValue)) {+ return undefined;+ }++ return MAIN_COLOR_NAMES.find(+ (colorName) => THEME_COLOR_HEX[colorName] === normalizedValue,+ );+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/normalize-hex-color.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/normalize-hex-color.util.tsnew file mode 100644index 00000000000..4788647b990--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/normalize-hex-color.util.ts@@ -0,0 +1,16 @@+const SHORT_HEX_PATTERN = /^#[0-9a-f]{3}$/;+const LONG_HEX_PATTERN = /^#[0-9a-f]{6}$/;++export const normalizeHexColor = (value: string): string | undefined => {+ const normalizedValue = value.trim().toLowerCase();++ if (SHORT_HEX_PATTERN.test(normalizedValue)) {+ return `#${normalizedValue+ .slice(1)+ .split('')+ .map((character) => `${character}${character}`)+ .join('')}`;+ }++ return LONG_HEX_PATTERN.test(normalizedValue) ? normalizedValue : undefined;+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/resolve-call-recorder-application-id.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/resolve-call-recorder-application-id.util.tsnew file mode 100644index 00000000000..176a5621457--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/resolve-call-recorder-application-id.util.ts@@ -0,0 +1,54 @@+import { isNonEmptyString, isUndefined } from '@sniptt/guards';+import { MetadataApiClient } from 'twenty-client-sdk/metadata';++const applicationIdPromiseByFrontComponentId = new Map<+ string,+ Promise<string>+>();++const fetchCallRecorderApplicationId = async (frontComponentId: string) => {+ const client = new MetadataApiClient();+ const frontComponentResult = await client.query({+ frontComponent: {+ __args: { id: frontComponentId },+ applicationId: true,+ },+ });+ const applicationId = frontComponentResult.frontComponent?.applicationId;++ if (!isNonEmptyString(applicationId)) {+ throw new Error('Could not resolve the call recorder application.');+ }++ return applicationId;+};++export const resolveCallRecorderApplicationId = (+ frontComponentId: string,+): Promise<string> => {+ const existingApplicationIdPromise =+ applicationIdPromiseByFrontComponentId.get(frontComponentId);++ if (isUndefined(existingApplicationIdPromise)) {+ const applicationIdPromise =+ fetchCallRecorderApplicationId(frontComponentId);++ applicationIdPromiseByFrontComponentId.set(+ frontComponentId,+ applicationIdPromise,+ );++ void applicationIdPromise.catch(() => {+ if (+ applicationIdPromiseByFrontComponentId.get(frontComponentId) ===+ applicationIdPromise+ ) {+ applicationIdPromiseByFrontComponentId.delete(frontComponentId);+ }+ });++ return applicationIdPromise;+ }++ return existingApplicationIdPromise;+};diff --git a/packages/twenty-apps/public/call-recorder/src/front-components/utils/serialize-rich-text-markdown.util.ts b/packages/twenty-apps/public/call-recorder/src/front-components/utils/serialize-rich-text-markdown.util.tsnew file mode 100644index 00000000000..0d81ad22a8d--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/front-components/utils/serialize-rich-text-markdown.util.ts@@ -0,0 +1,8 @@+// The settings tab stores RICH_TEXT variables as the blocknote/markdown pair+// produced by Twenty's rich text editor, so plain markdown has to be wrapped+// back into that shape to stay readable by both editors.+export const serializeRichTextMarkdown = (markdown: string): string =>+ JSON.stringify({+ blocknote: null,+ markdown: markdown === '' ? null : markdown,+ });diff --git a/packages/twenty-apps/public/call-recorder/src/logic-functions/recall-api/get-recall-bot-chat-config.util.ts b/packages/twenty-apps/public/call-recorder/src/logic-functions/recall-api/get-recall-bot-chat-config.util.tsindex 1a4ced85b4e..7a632e7af89 100644--- a/packages/twenty-apps/public/call-recorder/src/logic-functions/recall-api/get-recall-bot-chat-config.util.ts+++ b/packages/twenty-apps/public/call-recorder/src/logic-functions/recall-api/get-recall-bot-chat-config.util.ts@@ -1,11 +1,11 @@import { CALL_RECORDER_RECORDING_NOTICE_ENABLED_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-recording-notice-enabled-env-var-name';-import { CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH } from 'src/logic-functions/constants/call-recorder-recording-notice-max-length';import { CALL_RECORDER_RECORDING_NOTICE_MESSAGE_ENV_VAR_NAME } from 'src/logic-functions/constants/call-recorder-recording-notice-message-env-var-name';import { DEFAULT_CALL_RECORDER_RECORDING_NOTICE_ENABLED } from 'src/logic-functions/constants/default-call-recorder-recording-notice-enabled';import { DEFAULT_CALL_RECORDER_RECORDING_NOTICE_MESSAGE } from 'src/logic-functions/constants/default-call-recorder-recording-notice-message';import { getApplicationVariableValue } from 'src/logic-functions/utils/get-application-variable-value.util';import { getBooleanApplicationVariableValue } from 'src/logic-functions/utils/get-boolean-application-variable-value.util';import { isNonEmptyString } from 'src/logic-functions/utils/is-non-empty-string.util';+import { truncateRecordingNoticeMessage } from 'src/logic-functions/utils/truncate-recording-notice-message.util';type RecallBotChatConfig = {on_bot_join: {@@ -14,10 +14,6 @@ type RecallBotChatConfig = {};};-const recordingNoticeGraphemeSegmenter = new Intl.Segmenter(undefined, {- granularity: 'grapheme',-});-export const getRecallBotChatConfig = (): RecallBotChatConfig | undefined => {if (!isRecordingNoticeEnabled()) {return undefined;@@ -50,24 +46,3 @@ const getRecordingNoticeMessage = (): string => {return truncateRecordingNoticeMessage(message);};--const truncateRecordingNoticeMessage = (message: string): string => {- let truncatedMessage = '';- let unicodeCodePointCount = 0;-- for (const { segment } of recordingNoticeGraphemeSegmenter.segment(message)) {- const segmentUnicodeCodePointCount = Array.from(segment).length;-- if (- unicodeCodePointCount + segmentUnicodeCodePointCount >- CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH- ) {- break;- }-- truncatedMessage += segment;- unicodeCodePointCount += segmentUnicodeCodePointCount;- }-- return truncatedMessage;-};diff --git a/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/__tests__/truncate-recording-notice-message.test.ts b/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/__tests__/truncate-recording-notice-message.test.tsnew file mode 100644index 00000000000..fda129e40c9--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/__tests__/truncate-recording-notice-message.test.ts@@ -0,0 +1,18 @@+import { describe, expect, it } from 'vitest';++import { CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH } from 'src/logic-functions/constants/call-recorder-recording-notice-max-length';+import { truncateRecordingNoticeMessage } from 'src/logic-functions/utils/truncate-recording-notice-message.util';++describe('truncateRecordingNoticeMessage', () => {+ it('allows astral Unicode characters up to the code-point limit', () => {+ const message = '😀'.repeat(CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH);++ expect(truncateRecordingNoticeMessage(message)).toBe(message);+ });++ it('does not split a grapheme cluster at the code-point limit', () => {+ const prefix = 'a'.repeat(CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH - 1);++ expect(truncateRecordingNoticeMessage(`${prefix}🇫🇷extra`)).toBe(prefix);+ });+});diff --git a/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/truncate-recording-notice-message.util.ts b/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/truncate-recording-notice-message.util.tsnew file mode 100644index 00000000000..d7686e960a6--- /dev/null+++ b/packages/twenty-apps/public/call-recorder/src/logic-functions/utils/truncate-recording-notice-message.util.ts@@ -0,0 +1,26 @@+import { CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH } from 'src/logic-functions/constants/call-recorder-recording-notice-max-length';++const recordingNoticeGraphemeSegmenter = new Intl.Segmenter(undefined, {+ granularity: 'grapheme',+});++export const truncateRecordingNoticeMessage = (message: string): string => {+ let truncatedMessage = '';+ let unicodeCodePointCount = 0;++ for (const { segment } of recordingNoticeGraphemeSegmenter.segment(message)) {+ const segmentUnicodeCodePointCount = Array.from(segment).length;++ if (+ unicodeCodePointCount + segmentUnicodeCodePointCount >+ CALL_RECORDER_RECORDING_NOTICE_MAX_LENGTH+ ) {+ break;+ }++ truncatedMessage += segment;+ unicodeCodePointCount += segmentUnicodeCodePointCount;+ }++ return truncatedMessage;+};diff --git a/packages/twenty-apps/public/call-recorder/tsconfig.spec.json b/packages/twenty-apps/public/call-recorder/tsconfig.spec.jsonindex ea69a6c0105..b780a60a65e 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": ["src/**/*.ts", "src/**/*.tsx"],+ "include": ["css.d.ts", "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.lockindex 3781f12d914..e1ac65fbda5 100644--- a/packages/twenty-apps/public/call-recorder/yarn.lock+++ b/packages/twenty-apps/public/call-recorder/yarn.lock@@ -15,6 +15,160 @@ __metadata:languageName: nodelinkType: 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.8":+ version: 7.29.8+ resolution: "@babel/generator@npm:7.29.8"+ dependencies:+ "@babel/parser": "npm:^7.29.8"+ "@babel/types": "npm:^7.29.8"+ "@jridgewell/gen-mapping": "npm:^0.3.12"+ "@jridgewell/trace-mapping": "npm:^0.3.28"+ jsesc: "npm:^3.0.2"+ checksum: 10c0/7b896696314a659652393b76d78276e236acd0f7fae40a9a1af7f01c76aeafc630dd0966aad6f9386d35d7c674a8e6e2d8e217c44d25fb11460e68afa9ba8441+ 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, @babel/parser@npm:^7.29.8":+ version: 7.29.8+ resolution: "@babel/parser@npm:7.29.8"+ dependencies:+ "@babel/types": "npm:^7.29.8"+ bin:+ parser: ./bin/babel-parser.js+ checksum: 10c0/acc890c5e6a6dd40863a47b50bac111d7185ee6fbbe163ebe11d5214854ca2adb901462ad4d718a65090ef84bd2230e9e8ab45a2e0caccc685f1f57ab0bb1e28+ 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.8+ resolution: "@babel/traverse@npm:7.29.8"+ dependencies:+ "@babel/code-frame": "npm:^7.29.7"+ "@babel/generator": "npm:^7.29.8"+ "@babel/helper-globals": "npm:^7.29.7"+ "@babel/parser": "npm:^7.29.8"+ "@babel/template": "npm:^7.29.7"+ "@babel/types": "npm:^7.29.8"+ debug: "npm:^4.3.1"+ checksum: 10c0/87a28989c434add26d787776ac6d30f749b89cb030f2a605c89f671a516a6fa165ac0476f07e2b69feed70128b2734cae1cbbf41dfe95ccf22081bd8f8b91923+ languageName: node+ linkType: hard++"@babel/types@npm:^7.29.7, @babel/types@npm:^7.29.8":+ version: 7.29.8+ resolution: "@babel/types@npm:7.29.8"+ dependencies:+ "@babel/helper-string-parser": "npm:^7.29.7"+ "@babel/helper-validator-identifier": "npm:^7.29.7"+ checksum: 10c0/be7c279f0abf2a086c633e21b49c7ca80275d05283cc5a268b67a708c9914bd0c944f1422b3eb3cb37682a2af5d560abf520ccf9b01b53ecbfe6b71fbc3fdde6+ languageName: node+ linkType: hard++"@base-ui/react@npm:^1.5.0":+ version: 1.7.0+ resolution: "@base-ui/react@npm:1.7.0"+ dependencies:+ "@babel/runtime": "npm:^7.29.2"+ "@base-ui/utils": "npm:0.3.2"+ "@floating-ui/react-dom": "npm:^2.1.9"+ "@floating-ui/utils": "npm:^0.2.12"+ 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/05bc69f68431ff30a5fac98d8e75c77af7c27749d10aeac10ab7f26843a0a8b49ca5cff32654aad1a107cb7f44aeb1705c15138c9c7f7ddc19d6321fbb263e4d+ languageName: node+ linkType: hard++"@base-ui/utils@npm:0.3.2":+ version: 0.3.2+ resolution: "@base-ui/utils@npm:0.3.2"+ dependencies:+ "@babel/runtime": "npm:^7.29.2"+ "@floating-ui/utils": "npm:^0.2.12"+ 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/b523339f350679915550605e59754b5db9806a41a3b390d6f6adad29fedc0caf084c8ad1bad6bb62a463360593382defb7d3ea941a94404ed9db0142fdae5800+ languageName: node+ linkType: hard+"@emnapi/core@npm:1.10.0":version: 1.10.0resolution: "@emnapi/core@npm:1.10.0"@@ -52,6 +206,152 @@ __metadata:languageName: nodelinkType: 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.1resolution: "@esbuild/aix-ppc64@npm:0.28.1"@@ -234,6 +534,44 @@ __metadata:languageName: nodelinkType: hard+"@floating-ui/core@npm:^1.8.0":+ version: 1.8.0+ resolution: "@floating-ui/core@npm:1.8.0"+ dependencies:+ "@floating-ui/utils": "npm:^0.2.12"+ checksum: 10c0/cece958f6fab0f8cd7740cd57988c4f8bc5356dca39dd4c093433d44c91952c3a02c7a54d93d7ed6c078b6544d531a29f66621d2839c8bfbb4467dca6aed7df0+ languageName: node+ linkType: hard++"@floating-ui/dom@npm:^1.8.0":+ version: 1.8.0+ resolution: "@floating-ui/dom@npm:1.8.0"+ dependencies:+ "@floating-ui/core": "npm:^1.8.0"+ "@floating-ui/utils": "npm:^0.2.12"+ checksum: 10c0/c32b2de7a596b69cfffa909c7028825e14f6319be1b45da529f8943c89fe16b75a49c214e800c87ded3f172353d3b99163d50072f11410488e756961b7b629cc+ languageName: node+ linkType: hard++"@floating-ui/react-dom@npm:^2.1.9":+ version: 2.1.9+ resolution: "@floating-ui/react-dom@npm:2.1.9"+ dependencies:+ "@floating-ui/dom": "npm:^1.8.0"+ peerDependencies:+ react: ">=16.8.0"+ react-dom: ">=16.8.0"+ checksum: 10c0/9fa9851069738cb9591a1ab2da16e257f193eae5fd2d6d48ad0b1e73f3c049929b6805c5ad43d4af3c1da63c60b215b0ee4651a1fe5caeb80e66d9d423744348+ languageName: node+ linkType: hard++"@floating-ui/utils@npm:^0.2.12":+ version: 0.2.12+ resolution: "@floating-ui/utils@npm:0.2.12"+ checksum: 10c0/bb910b90d56991a62011afaf5f8e0c4b7fb6dab69403f4dd17fbd6eb25560b28d533dff9791f270b4f459852e9006a1077b5d73cbedb5e34d9424afc6a828314+ languageName: node+ linkType: hard+"@genql/runtime@npm:^2.10.0":version: 2.10.0resolution: "@genql/runtime@npm:2.10.0"@@ -749,6 +1087,30 @@ __metadata:languageName: nodelinkType: 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":+ version: 1.6.0+ resolution: "@jridgewell/sourcemap-codec@npm:1.6.0"+ checksum: 10c0/b5be700e45a775f218589c3466c4ffea630582b4988657652da464e5ab8a7d18bf928ee4fd2363fb346ede4bea9c6ff0bae05a538358c4565ece6199531b5f72+ languageName: node+ linkType: hard+"@jridgewell/sourcemap-codec@npm:^1.5.5":version: 1.5.5resolution: "@jridgewell/sourcemap-codec@npm:1.5.5"@@ -756,6 +1118,38 @@ __metadata:languageName: nodelinkType: 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.5resolution: "@napi-rs/wasm-runtime@npm:1.1.5"@@ -831,6 +1225,20 @@ __metadata:languageName: nodelinkType: 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.3resolution: "@rolldown/binding-android-arm64@npm:1.0.3"@@ -961,10 +1369,30 @@ __metadata:languageName: nodelinkType: hard+"@tabler/icons-react@npm:^3.31.0":+ version: 3.46.0+ resolution: "@tabler/icons-react@npm:3.46.0"+ dependencies:+ "@tabler/icons": "npm:3.46.0"+ peerDependencies:+ react: ">= 16"+ checksum: 10c0/8fab7d3a9ec6b62724a1628b8bad68a7b503979e4418f97d057c442adc5257b227a08185a884d452d171983648e36fa92cd7bfe9457f693e9b67bbf4ecf8ec24+ languageName: node+ linkType: hard++"@tabler/icons@npm:3.46.0":+ version: 3.46.0+ resolution: "@tabler/icons@npm:3.46.0"+ checksum: 10c0/c9671449c2f53fa7e329c487162f89a28417cdd5ce96cfa290fe21388724da303dd2297af3b39a88a74b02c36ce55598bc3cf6537dbddf548881da2c05f35f5e+ languageName: node+ linkType: hard+"@twentyhq/call-recorder@workspace:.":version: 0.0.0-use.localresolution: "@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"@@ -975,7 +1403,9 @@ __metadata:sharp: "npm:^0.35.3"twenty-client-sdk: "npm:2.37.0"twenty-sdk: "npm:2.37.0"+ twenty-ui: "npm:^1.0.0-alpha.1"typescript: "npm:^5.9.3"+ use-debounce: "npm:^10.0.0"vite-tsconfig-paths: "npm:^4.2.1"vitest: "npm:^4.1.9"languageName: unknown@@ -1032,6 +1462,13 @@ __metadata:languageName: nodelinkType: 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.1resolution: "@types/qs@npm:6.15.1"@@ -1313,6 +1750,17 @@ __metadata:languageName: nodelinkType: 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.2resolution: "backo2@npm:1.0.2"@@ -1330,6 +1778,13 @@ __metadata:languageName: nodelinkType: 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.2resolution: "chai@npm:6.2.2"@@ -1400,6 +1855,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "code-excerpt@npm:4.0.0"@@ -1425,6 +1887,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "convert-source-map@npm:2.0.0"@@ -1439,14 +1908,34 @@ __metadata:languageName: nodelinkType: hard-"csstype@npm:^3.2.2":+"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":version: 3.2.3resolution: "csstype@npm:3.2.3"checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3celanguageName: nodelinkType: hard-"debug@npm:4, debug@npm:^4.1.1":+"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1":version: 4.4.3resolution: "debug@npm:4.4.3"dependencies:@@ -1504,6 +1993,15 @@ __metadata:languageName: nodelinkType: 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.1resolution: "es-define-property@npm:1.0.1"@@ -1656,6 +2154,13 @@ __metadata:languageName: nodelinkType: 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.3resolution: "estree-walker@npm:3.0.3"@@ -1723,6 +2228,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "follow-redirects@npm:1.16.0"@@ -1877,7 +2389,7 @@ __metadata:languageName: nodelinkType: hard-"hasown@npm:^2.0.2, hasown@npm:^2.0.4":+"hasown@npm:^2.0.2, hasown@npm:^2.0.3, hasown@npm:^2.0.4":version: 2.0.4resolution: "hasown@npm:2.0.4"dependencies:@@ -1886,6 +2398,15 @@ __metadata:languageName: nodelinkType: 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.1resolution: "https-proxy-agent@npm:5.0.1"@@ -1896,6 +2417,13 @@ __metadata:languageName: nodelinkType: 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.2resolution: "iconv-lite@npm:0.7.2"@@ -1905,6 +2433,16 @@ __metadata:languageName: nodelinkType: 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.0resolution: "indent-string@npm:5.0.0"@@ -1973,6 +2511,22 @@ __metadata:languageName: nodelinkType: 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.0resolution: "is-fullwidth-code-point@npm:5.1.0"@@ -2015,6 +2569,29 @@ __metadata:languageName: nodelinkType: 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.1resolution: "jsonc-parser@npm:3.3.1"@@ -2142,6 +2719,13 @@ __metadata:languageName: nodelinkType: 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.1resolution: "lodash@npm:4.18.1"@@ -2149,6 +2733,17 @@ __metadata:languageName: nodelinkType: 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.21resolution: "magic-string@npm:0.30.21"@@ -2158,6 +2753,15 @@ __metadata:languageName: nodelinkType: 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.0resolution: "math-intrinsics@npm:1.1.0"@@ -2272,6 +2876,13 @@ __metadata:languageName: nodelinkType: 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.3resolution: "obug@npm:2.1.3"@@ -2324,6 +2935,27 @@ __metadata:languageName: nodelinkType: 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.0resolution: "patch-console@npm:2.0.0"@@ -2331,6 +2963,20 @@ __metadata:languageName: nodelinkType: 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.3resolution: "pathe@npm:2.0.3"@@ -2386,6 +3032,17 @@ __metadata:languageName: nodelinkType: 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.0resolution: "proxy-from-env@npm:2.1.0"@@ -2404,6 +3061,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "react-reconciler@npm:0.33.0"@@ -2415,6 +3079,44 @@ __metadata:languageName: nodelinkType: 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.7resolution: "react@npm:19.2.7"@@ -2429,6 +3131,48 @@ __metadata:languageName: nodelinkType: hard+"reselect@npm:^5.2.0":+ version: 5.3.0+ resolution: "reselect@npm:5.3.0"+ checksum: 10c0/c79728e4f315152bfb2d82456d35075b705392d9e72c485d7d9b1061bd80af628416216d80f02a42f24dbb24d738aec7fec45806930aaa1d17c32e9875fa1bd6+ 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.0resolution: "restore-cursor@npm:4.0.0"@@ -2545,6 +3289,13 @@ __metadata:languageName: nodelinkType: 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.3resolution: "sharp@npm:0.35.3"@@ -2673,6 +3424,13 @@ __metadata:languageName: nodelinkType: 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.6resolution: "stack-utils@npm:2.0.6"@@ -2689,6 +3447,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "std-env@npm:4.1.0"@@ -2726,6 +3491,13 @@ __metadata:languageName: nodelinkType: 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.19resolution: "subscriptions-transport-ws@npm:0.9.19"@@ -2741,6 +3513,13 @@ __metadata:languageName: nodelinkType: 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.0resolution: "symbol-observable@npm:1.2.0"@@ -2884,6 +3663,35 @@ __metadata:languageName: nodelinkType: 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.0resolution: "type-fest@npm:5.7.0"@@ -2941,6 +3749,24 @@ __metadata:languageName: nodelinkType: hard+"use-debounce@npm:^10.0.0":+ version: 10.1.1+ resolution: "use-debounce@npm:10.1.1"+ peerDependencies:+ react: "*"+ checksum: 10c0/0d1b2ff16447651c92ef444be3b7e29608e229c169a90e7cbd1ef13775475734b0910eaf01f2f64dc9f2b1d5dd8cf03042c5a09e230c9bb2ee148a18b5bba074+ 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.0resolution: "utility-types@npm:3.11.0"@@ -3204,6 +4030,13 @@ __metadata:languageName: nodelinkType: 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.1resolution: "yoga-layout@npm:3.2.1"@@ -3227,3 +4060,10 @@ __metadata:checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8languageName: nodelinkType: hard++"zod@npm:^4.1.11":+ version: 4.5.2+ resolution: "zod@npm:4.5.2"+ checksum: 10c0/e54a27401dc7993f96232b5a4e889017bb6a00d8d23a2258f40704076243ed9659d09ea3ae074538fb548e960c4d6380301f879fca6bd31547b7b69745abf0f5+ languageName: node+ linkType: hard