Skip to content

The open alternative to Salesforce, designed for AI.

feat(teams): add feature settings foundation (#26345)

nitin2f55d9b1c6c3
diff --git a/packages/twenty-apps/public/teams/.gitignore b/packages/twenty-apps/public/teams/.gitignore
index 9fc1d5c3242..dcc8d6c69d4 100644
--- a/packages/twenty-apps/public/teams/.gitignore
+++ b/packages/twenty-apps/public/teams/.gitignore
@@ -41,3 +41,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
*.d.ts
+!css.d.ts
diff --git a/packages/twenty-apps/public/teams/README.md b/packages/twenty-apps/public/teams/README.md
index bd44bdb776b..6020aab63bb 100644
--- a/packages/twenty-apps/public/teams/README.md
+++ b/packages/twenty-apps/public/teams/README.md
@@ -1,25 +1,68 @@
# Microsoft Teams for Twenty
-Package scaffold for the Microsoft Teams app, alongside the Slack app that
-shipped as 1.0.0.
+Microsoft Teams chat and transcript features in one application.
## Status
-Scaffolding only. The package declares its application manifest, a default role
-with no CRM data access, and the universal identifiers reserved for the entities
-the app will declare. There are no logic functions, objects or workflow tools
-yet, so installing it adds nothing to a workspace.
+The application provides a settings page and the Bot Connector helpers. Chat
+handlers and transcript imports are still under development. Both features are
+unavailable in this version and their workspace settings default to off. The
+default application role has no CRM data access.
+
+## Features, settings, and feature flags
+
+- **Features** are the product areas: chat and transcripts. Their code, settings
+ components, identifiers, and tests live in `src/features/chat` and
+ `src/features/transcripts` respectively.
+- **Settings** are workspace choices. `TEAMS_CHAT_ENABLED` and
+ `TEAMS_TRANSCRIPTS_ENABLED` are Boolean application variables managed through
+ **Settings → Applications → Microsoft Teams → Settings**. Updates use the
+ metadata API, which requires permission to manage applications.
+- **Feature flags** are developer-controlled release decisions, defined in
+ `src/constants/feature-flags.ts`. They follow the server's
+ `IS_…_ENABLED` naming and are bundled with the app. Changing them requires a
+ new build and deployment; a workspace setting cannot override them.
+
+`IS_CHAT_ASSISTANT_ENABLED` controls availability of chat in this scaffold, and
+`IS_TRANSCRIPT_IMPORT_ENABLED` controls transcript imports. Both start as
+`false`. A disabled feature is shown as unavailable in settings, retaining any
+saved workspace preference.
+
+The frontend and future handlers share
+`isFeatureEnabled({ isAvailable, settingValue })`. Pass the feature's development
+flag as `isAvailable`; the serialized workspace setting must also be `'true'`.
+In a logic function, use `process.env[CHAT_ENABLED_APPLICATION_VARIABLE_KEY]` or
+`process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY]` as `settingValue`.
+The settings page initializes from `getApplicationVariable` and updates its
+local value after a successful save. Changes made by another client require a
+page refresh. Live updates need shared host/SDK support for application-variable
+change events.
+
+New routes, connection hooks that start work, workflow actions, schedulers, and
+queued workers must check feature availability before starting work and then
+validate that feature's credentials. Keep disconnect, uninstall, and cleanup
+paths available even when a feature is disabled. When a setting starts managing
+external resources, add its enable/disable reconciliation alongside that
+feature's handlers. The shared settings component composes each feature's
+section; the app's single uninstall hook will compose their cleanup.
+
+Feature flags do not exclude SDK definitions from the manifest or make broken
+code buildable. Disabled features must still pass typecheck and build. This
+foundation does not yet move the separate Teams Transcripts OAuth provider.
## Server variables
The bot's identity is an Entra app registration behind an Azure Bot resource.
-An admin fills these in under **Settings → Applications → Microsoft Teams**.
+An admin configures these on the Teams application registration under
+**Settings → Applications**. They are optional at registration so marketplace
+listing does not depend on an Azure Bot being provisioned. Chat requires all
+three credentials before bot operations can run.
-| Variable | Secret | Where it comes from |
-|---|---|---|
-| `TEAMS_BOT_APP_ID` | no | Application (client) ID of the Entra app registration. Public in the Bot Framework protocol, and the expected audience when verifying inbound activities. |
-| `TEAMS_BOT_APP_PASSWORD` | yes | Client secret of that app registration. Used to mint Bot Connector tokens. |
-| `TEAMS_BOT_TENANT_ID` | no | Directory (tenant) ID that owns the Azure Bot. Microsoft stopped issuing multi-tenant bots after 2025-07-31, so token minting is tenant-scoped rather than going through the shared `botframework.com` authority. |
+| Variable | Secret | Where it comes from |
+| ------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `TEAMS_BOT_APP_ID` | no | Application (client) ID of the Entra app registration. Public in the Bot Framework protocol, and the expected audience when verifying inbound activities. |
+| `TEAMS_BOT_APP_PASSWORD` | yes | Client secret of that app registration. Used to mint Bot Connector tokens. |
+| `TEAMS_BOT_TENANT_ID` | no | Directory (tenant) ID that owns the Azure Bot. Microsoft stopped issuing multi-tenant bots after 2025-07-31, so token minting is tenant-scoped rather than going through the shared `botframework.com` authority. |
## Development
@@ -30,5 +73,6 @@ from this directory.
yarn install
yarn lint
yarn typecheck
+yarn test:unit
yarn twenty dev:build
```
diff --git a/packages/twenty-apps/public/teams/css.d.ts b/packages/twenty-apps/public/teams/css.d.ts
new file mode 100644
index 00000000000..35306c6fc9a
--- /dev/null
+++ b/packages/twenty-apps/public/teams/css.d.ts
@@ -0,0 +1 @@
+declare module '*.css';
diff --git a/packages/twenty-apps/public/teams/package.json b/packages/twenty-apps/public/teams/package.json
index 43771bfcda0..6ce434af11c 100644
--- a/packages/twenty-apps/public/teams/package.json
+++ b/packages/twenty-apps/public/teams/package.json
@@ -28,13 +28,25 @@
"test:watch": "vitest --config vitest.unit.config.ts"
},
"dependencies": {
+ "@sniptt/guards": "^0.2.0",
"jose": "^6.2.12"
},
"devDependencies": {
+ "@emotion/react": "^11.14.0",
+ "@emotion/styled": "^11.14.0",
+ "@testing-library/dom": "^10.4.1",
+ "@testing-library/react": "^16.3.0",
+ "@testing-library/user-event": "^14.6.1",
"@types/node": "^24.7.2",
+ "@types/react": "^19.0.0",
"@typescript/native-preview": "^7.0.0-dev.20260116.1",
+ "jsdom": "^26.1.0",
"oxlint": "^0.16.0",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "twenty-client-sdk": "^2.41.0",
"twenty-sdk": "^2.41.0",
+ "twenty-ui": "^1.0.0-alpha.1",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^4.0.0"
diff --git a/packages/twenty-apps/public/teams/src/application.config.ts b/packages/twenty-apps/public/teams/src/application.config.ts
index 34298505bd7..0385b23f78d 100644
--- a/packages/twenty-apps/public/teams/src/application.config.ts
+++ b/packages/twenty-apps/public/teams/src/application.config.ts
@@ -1,6 +1,10 @@
-import { defineApplication } from 'twenty-sdk/define';
+import { defineApplication, FieldType } from 'twenty-sdk/define';
import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';
+import { CHAT_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/features/chat/constants/universal-identifiers';
+import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';
+import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';
export default defineApplication({
universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
@@ -15,24 +19,49 @@ export default defineApplication({
termsUrl: 'https://www.twenty.com/terms',
emailSupport: '[email protected]',
issueReportUrl: 'https://github.com/twentyhq/twenty/issues',
+ applicationVariables: {
+ [CHAT_ENABLED_APPLICATION_VARIABLE_KEY]: {
+ universalIdentifier:
+ CHAT_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER,
+ label: 'Enable chat',
+ description:
+ 'Use the Teams assistant and messaging workflows in this workspace.',
+ type: FieldType.BOOLEAN,
+ isSecret: false,
+ value: false,
+ },
+ [TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY]: {
+ universalIdentifier:
+ TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER,
+ label: 'Enable transcripts',
+ description:
+ 'Import Microsoft Teams meeting transcripts into this workspace.',
+ type: FieldType.BOOLEAN,
+ isSecret: false,
+ value: false,
+ },
+ },
serverVariables: {
TEAMS_BOT_APP_ID: {
description:
'Application (client) ID of the Entra app registration backing the Azure Bot. Public in the Bot Framework protocol and used as the expected audience when verifying inbound activities.',
isSecret: false,
- isRequired: true,
+ // Optional for marketplace listing until the Azure Bot is provisioned.
+ isRequired: false,
},
TEAMS_BOT_APP_PASSWORD: {
description:
'Client secret of that Entra app registration. Stored encrypted and never exposed in API responses. Used to mint Bot Connector tokens.',
isSecret: true,
- isRequired: true,
+ // Optional for marketplace listing until the Azure Bot is provisioned.
+ isRequired: false,
},
TEAMS_BOT_TENANT_ID: {
description:
'Directory (tenant) ID that owns the Azure Bot. Microsoft stopped issuing multi-tenant bots after 2025-07-31, so the token endpoint is tenant-scoped rather than the shared botframework.com authority.',
isSecret: false,
- isRequired: true,
+ // Optional for marketplace listing until the Azure Bot is provisioned.
+ isRequired: false,
},
},
});
diff --git a/packages/twenty-apps/public/teams/src/constants/feature-flags.ts b/packages/twenty-apps/public/teams/src/constants/feature-flags.ts
new file mode 100644
index 00000000000..87bab360b5e
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/constants/feature-flags.ts
@@ -0,0 +1,4 @@
+export const FEATURE_FLAGS = {
+ IS_CHAT_ASSISTANT_ENABLED: false,
+ IS_TRANSCRIPT_IMPORT_ENABLED: false,
+} as const;
diff --git a/packages/twenty-apps/public/teams/src/constants/universal-identifiers.ts b/packages/twenty-apps/public/teams/src/constants/universal-identifiers.ts
index a9a3e14c427..deff8ae026f 100644
--- a/packages/twenty-apps/public/teams/src/constants/universal-identifiers.ts
+++ b/packages/twenty-apps/public/teams/src/constants/universal-identifiers.ts
@@ -4,44 +4,5 @@ export const APPLICATION_UNIVERSAL_IDENTIFIER =
export const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER =
'0812c4a5-3fe7-488f-a517-c2a5ae5e04f1';
-export const TEAMS_BOT_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER =
- 'a46388a0-8f12-4435-95d8-423117435e05';
-
-export const TEAMS_ACTIVITIES_ROUTE_UNIVERSAL_IDENTIFIER =
- 'c78db1b1-a0ec-4183-9edd-63299ab5a477';
-
-export const TEAMS_ACTIVITIES_ENQUEUE_UNIVERSAL_IDENTIFIER =
- '75b68473-3dc0-483b-82ca-ed943218ddd5';
-
-export const TEAMS_ASSISTANT_AGENT_UNIVERSAL_IDENTIFIER =
- 'b14f0c9d-d283-4969-8cca-1da280fc9937';
-
-export const TEAMS_ASSISTANT_ROLE_UNIVERSAL_IDENTIFIER =
- 'f8b953df-832a-48d8-81ca-2100fdecc9f1';
-
-export const TEAMS_ASSISTANT_WORKER_UNIVERSAL_IDENTIFIER =
- 'cd3f1e58-d315-4e10-9a50-780b300d3977';
-
-export const TEAMS_REGISTER_CONNECTION_UNIVERSAL_IDENTIFIER =
- '06c3e7ae-c2b6-428d-9c2b-d8b5b809be53';
-
-export const TEAMS_TENANT_RELEASE_UNIVERSAL_IDENTIFIER =
- '27319fbd-1ca6-4f65-ba27-b7a164a1eb79';
-
-export const TEAMS_SEND_MESSAGE_UNIVERSAL_IDENTIFIER =
- 'a1116aa8-c444-4988-9b57-9791ea29aca8';
-
-export const TEAMS_UPDATE_MESSAGE_UNIVERSAL_IDENTIFIER =
- 'b63b491d-7481-4cf7-b62e-15b7b51874f7';
-
-export const TEAMS_DELETE_MESSAGE_UNIVERSAL_IDENTIFIER =
- 'aaf8161e-caa4-4034-9f3f-11cd60c0889f';
-
-export const TEAMS_LIST_CHANNELS_UNIVERSAL_IDENTIFIER =
- 'cd0cdc22-3672-41d9-a40f-7de5f91099e0';
-
-export const TEAMS_ASSISTANT_REQUEST_OBJECT_UNIVERSAL_IDENTIFIER =
- 'd8668915-3683-4c44-a2d6-d6b23a9a8d2c';
-
-export const TEAMS_USER_LINK_OBJECT_UNIVERSAL_IDENTIFIER =
- '2ea0b632-8492-4a81-abbc-850f7f403bb8';
+export const SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER =
+ '2e97c12f-0f64-40aa-99ca-39b8a0a98e86';
diff --git a/packages/twenty-apps/public/teams/src/__tests__/constants/teams-test-bot-credentials.constant.ts b/packages/twenty-apps/public/teams/src/features/chat/__tests__/constants/teams-test-bot-credentials.constant.ts
similarity index 64%
rename from packages/twenty-apps/public/teams/src/__tests__/constants/teams-test-bot-credentials.constant.ts
rename to packages/twenty-apps/public/teams/src/features/chat/__tests__/constants/teams-test-bot-credentials.constant.ts
index a3d4ed33e83..a0cc6d2bd90 100644
--- a/packages/twenty-apps/public/teams/src/__tests__/constants/teams-test-bot-credentials.constant.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/__tests__/constants/teams-test-bot-credentials.constant.ts
@@ -1,4 +1,4 @@
-import { type TeamsBotCredentials } from 'src/logic-functions/types/teams-bot-credentials.type';
+import { type TeamsBotCredentials } from 'src/features/chat/logic-functions/types/teams-bot-credentials.type';
export const TEAMS_TEST_BOT_CREDENTIALS: TeamsBotCredentials = {
appId: 'bbbbbbbb-1111-2222-3333-444444444444',
diff --git a/packages/twenty-apps/public/teams/src/features/chat/constants/chat-enabled-application-variable-key.ts b/packages/twenty-apps/public/teams/src/features/chat/constants/chat-enabled-application-variable-key.ts
new file mode 100644
index 00000000000..c38d5d3010b
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/chat/constants/chat-enabled-application-variable-key.ts
@@ -0,0 +1 @@
+export const CHAT_ENABLED_APPLICATION_VARIABLE_KEY = 'TEAMS_CHAT_ENABLED';
diff --git a/packages/twenty-apps/public/teams/src/features/chat/constants/universal-identifiers.ts b/packages/twenty-apps/public/teams/src/features/chat/constants/universal-identifiers.ts
new file mode 100644
index 00000000000..503cb2a1a4b
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/chat/constants/universal-identifiers.ts
@@ -0,0 +1,44 @@
+export const CHAT_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER =
+ '7ec8bffe-ea89-4874-80f5-21633d952694';
+
+export const TEAMS_BOT_CONNECTION_PROVIDER_UNIVERSAL_IDENTIFIER =
+ 'a46388a0-8f12-4435-95d8-423117435e05';
+
+export const TEAMS_ACTIVITIES_ROUTE_UNIVERSAL_IDENTIFIER =
+ 'c78db1b1-a0ec-4183-9edd-63299ab5a477';
+
+export const TEAMS_ACTIVITIES_ENQUEUE_UNIVERSAL_IDENTIFIER =
+ '75b68473-3dc0-483b-82ca-ed943218ddd5';
+
+export const TEAMS_ASSISTANT_AGENT_UNIVERSAL_IDENTIFIER =
+ 'b14f0c9d-d283-4969-8cca-1da280fc9937';
+
+export const TEAMS_ASSISTANT_ROLE_UNIVERSAL_IDENTIFIER =
+ 'f8b953df-832a-48d8-81ca-2100fdecc9f1';
+
+export const TEAMS_ASSISTANT_WORKER_UNIVERSAL_IDENTIFIER =
+ 'cd3f1e58-d315-4e10-9a50-780b300d3977';
+
+export const TEAMS_REGISTER_CONNECTION_UNIVERSAL_IDENTIFIER =
+ '06c3e7ae-c2b6-428d-9c2b-d8b5b809be53';
+
+export const TEAMS_TENANT_RELEASE_UNIVERSAL_IDENTIFIER =
+ '27319fbd-1ca6-4f65-ba27-b7a164a1eb79';
+
+export const TEAMS_SEND_MESSAGE_UNIVERSAL_IDENTIFIER =
+ 'a1116aa8-c444-4988-9b57-9791ea29aca8';
+
+export const TEAMS_UPDATE_MESSAGE_UNIVERSAL_IDENTIFIER =
+ 'b63b491d-7481-4cf7-b62e-15b7b51874f7';
+
+export const TEAMS_DELETE_MESSAGE_UNIVERSAL_IDENTIFIER =
+ 'aaf8161e-caa4-4034-9f3f-11cd60c0889f';
+
+export const TEAMS_LIST_CHANNELS_UNIVERSAL_IDENTIFIER =
+ 'cd0cdc22-3672-41d9-a40f-7de5f91099e0';
+
+export const TEAMS_ASSISTANT_REQUEST_OBJECT_UNIVERSAL_IDENTIFIER =
+ 'd8668915-3683-4c44-a2d6-d6b23a9a8d2c';
+
+export const TEAMS_USER_LINK_OBJECT_UNIVERSAL_IDENTIFIER =
+ '2ea0b632-8492-4a81-abbc-850f7f403bb8';
diff --git a/packages/twenty-apps/public/teams/src/features/chat/front-components/ChatSettings.tsx b/packages/twenty-apps/public/teams/src/features/chat/front-components/ChatSettings.tsx
new file mode 100644
index 00000000000..468bb79d355
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/chat/front-components/ChatSettings.tsx
@@ -0,0 +1,38 @@
+import { useTranslate } from 'twenty-sdk/front-component';
+
+import { FEATURE_FLAGS } from 'src/constants/feature-flags';
+import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';
+import { FeatureSettingsSection } from 'src/front-components/components/FeatureSettingsSection';
+import { useFeatureSetting } from 'src/front-components/hooks/use-feature-setting';
+import { isFeatureEnabled } from 'src/utils/is-feature-enabled';
+
+export const ChatSettings = () => {
+ const { t } = useTranslate();
+ const { settingValue, isSaving, hasSaveError, updateSetting } =
+ useFeatureSetting({
+ variableKey: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,
+ });
+
+ const handleChange = (isEnabled: boolean) => {
+ void updateSetting(isEnabled);
+ };
+
+ return (
+ <FeatureSettingsSection
+ title={t('Chat')}
+ label={t('Enable chat')}
+ description={t(
+ 'Use the Teams assistant and messaging workflows in this workspace.',
+ )}
+ isAvailable={FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED}
+ isEnabled={isFeatureEnabled({
+ isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,
+ settingValue,
+ })}
+ isSaving={isSaving}
+ hasSaveError={hasSaveError}
+ onChange={handleChange}
+ />
+ );
+};
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-bot-connector-issuer.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-bot-connector-issuer.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-bot-connector-issuer.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-bot-connector-issuer.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-bot-openid-keys-url.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-bot-openid-keys-url.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-bot-openid-keys-url.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-bot-openid-keys-url.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-service-url-host-suffixes.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-service-url-host-suffixes.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-service-url-host-suffixes.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-service-url-host-suffixes.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-service-url-hosts.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-service-url-hosts.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-service-url-hosts.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-service-url-hosts.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-kv-key-prefix.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-kv-key-prefix.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-kv-key-prefix.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-kv-key-prefix.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-refresh-margin-ms.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-refresh-margin-ms.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-refresh-margin-ms.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-refresh-margin-ms.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-scope.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-scope.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-connector-token-scope.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-connector-token-scope.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/constants/teams-jwt-clock-tolerance-seconds.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-jwt-clock-tolerance-seconds.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/constants/teams-jwt-clock-tolerance-seconds.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/constants/teams-jwt-clock-tolerance-seconds.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-activity-attachment.type.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-activity-attachment.type.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/types/teams-activity-attachment.type.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-activity-attachment.type.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-activity.type.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-activity.type.ts
similarity index 51%
rename from packages/twenty-apps/public/teams/src/logic-functions/types/teams-activity.type.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-activity.type.ts
index 9ed9aa830c3..588f0ce4ed8 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-activity.type.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-activity.type.ts
@@ -1,4 +1,4 @@
-import { type TeamsActivityAttachment } from 'src/logic-functions/types/teams-activity-attachment.type';
+import { type TeamsActivityAttachment } from 'src/features/chat/logic-functions/types/teams-activity-attachment.type';
export type TeamsActivity = {
type: 'message' | 'typing';
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-bot-credentials.type.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-bot-credentials.type.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/types/teams-bot-credentials.type.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-bot-credentials.type.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-connector-token.type.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-connector-token.type.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/types/teams-connector-token.type.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-connector-token.type.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-conversation-member.type.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-conversation-member.type.ts
similarity index 56%
rename from packages/twenty-apps/public/teams/src/logic-functions/types/teams-conversation-member.type.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-conversation-member.type.ts
index 68f32b87ca8..630a8fae4e2 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/types/teams-conversation-member.type.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/types/teams-conversation-member.type.ts
@@ -1,5 +1,3 @@
-// TODO(@abdulrahmancodes): settle against a live tenant whether a bot can read
-// email and userPrincipalName from this payload or has to go through Graph.
export type TeamsConversationMember = {
id: string;
objectId?: string;
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/get-teams-connector-token.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/get-teams-connector-token.test.ts
similarity index 79%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/get-teams-connector-token.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/get-teams-connector-token.test.ts
index a9983088fba..e356c08698c 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/get-teams-connector-token.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/get-teams-connector-token.test.ts
@@ -1,8 +1,8 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import { buildTeamsConnectorTokenKvKey } from 'src/logic-functions/utils/build-teams-connector-token-kv-key';
-import { getTeamsConnectorToken } from 'src/logic-functions/utils/get-teams-connector-token';
-import { TEAMS_TEST_BOT_CREDENTIALS } from 'src/__tests__/constants/teams-test-bot-credentials.constant';
+import { buildTeamsConnectorTokenKvKey } from 'src/features/chat/logic-functions/utils/build-teams-connector-token-kv-key';
+import { getTeamsConnectorToken } from 'src/features/chat/logic-functions/utils/get-teams-connector-token';
+import { TEAMS_TEST_BOT_CREDENTIALS } from 'src/features/chat/__tests__/constants/teams-test-bot-credentials.constant';
const { kvGetMock, kvSetMock, mintMock } = vi.hoisted(() => ({
kvGetMock: vi.fn(),
@@ -14,9 +14,12 @@ vi.mock('twenty-sdk/logic-function', () => ({
kv: { get: kvGetMock, set: kvSetMock },
}));
-vi.mock('src/logic-functions/utils/mint-teams-connector-token', () => ({
- mintTeamsConnectorToken: mintMock,
-}));
+vi.mock(
+ 'src/features/chat/logic-functions/utils/mint-teams-connector-token',
+ () => ({
+ mintTeamsConnectorToken: mintMock,
+ }),
+);
describe('getTeamsConnectorToken', () => {
beforeEach(() => {
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts
similarity index 92%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts
index 7598e6b853f..f72eb141634 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/is-teams-connector-service-url.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
-import { isTeamsConnectorServiceUrl } from 'src/logic-functions/utils/is-teams-connector-service-url';
+import { isTeamsConnectorServiceUrl } from 'src/features/chat/logic-functions/utils/is-teams-connector-service-url';
describe('isTeamsConnectorServiceUrl', () => {
it('should accept the regional Bot Connector host', () => {
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts
similarity index 91%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts
index 59faeb86f09..5285784941d 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/mint-teams-connector-token.test.ts
@@ -1,7 +1,7 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import { mintTeamsConnectorToken } from 'src/logic-functions/utils/mint-teams-connector-token';
-import { TEAMS_TEST_BOT_CREDENTIALS } from 'src/__tests__/constants/teams-test-bot-credentials.constant';
+import { mintTeamsConnectorToken } from 'src/features/chat/logic-functions/utils/mint-teams-connector-token';
+import { TEAMS_TEST_BOT_CREDENTIALS } from 'src/features/chat/__tests__/constants/teams-test-bot-credentials.constant';
const fetchMock = vi.fn();
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts
similarity index 87%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts
index fb2375282bc..bbeb40042a2 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/parse-teams-connector-response-or-throw.test.ts
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
-import { parseTeamsConnectorResponseOrThrow } from 'src/logic-functions/utils/parse-teams-connector-response-or-throw';
+import { parseTeamsConnectorResponseOrThrow } from 'src/features/chat/logic-functions/utils/parse-teams-connector-response-or-throw';
describe('parseTeamsConnectorResponseOrThrow', () => {
it('should parse a JSON payload', () => {
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/request-teams-connector.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/request-teams-connector.test.ts
similarity index 96%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/request-teams-connector.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/request-teams-connector.test.ts
index 2da6c7a5ad5..681c882315f 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/request-teams-connector.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/request-teams-connector.test.ts
@@ -1,6 +1,6 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import { requestTeamsConnector } from 'src/logic-functions/utils/request-teams-connector';
+import { requestTeamsConnector } from 'src/features/chat/logic-functions/utils/request-teams-connector';
const SERVICE_URL = 'https://smba.trafficmanager.net/amer/';
const ACCESS_TOKEN = 'connector-access-token';
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts
similarity index 95%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts
index bbfc7003c4a..a82b94454ee 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/verify-teams-activity-token.test.ts
@@ -1,8 +1,8 @@
import { SignJWT, generateKeyPair } from 'jose';
import { beforeAll, describe, expect, it } from 'vitest';
-import { TEAMS_BOT_CONNECTOR_ISSUER } from 'src/logic-functions/constants/teams-bot-connector-issuer';
-import { verifyTeamsActivityTokenOrThrow } from 'src/logic-functions/utils/verify-teams-activity-token';
+import { TEAMS_BOT_CONNECTOR_ISSUER } from 'src/features/chat/logic-functions/constants/teams-bot-connector-issuer';
+import { verifyTeamsActivityTokenOrThrow } from 'src/features/chat/logic-functions/utils/verify-teams-activity-token';
const BOT_APP_ID = 'bbbbbbbb-1111-2222-3333-444444444444';
const SERVICE_URL = 'https://smba.trafficmanager.net/amer/';
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/build-teams-activity-path.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/build-teams-activity-path.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/build-teams-activity-path.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/build-teams-activity-path.ts
diff --git a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/build-teams-connector-token-kv-key.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/build-teams-connector-token-kv-key.ts
new file mode 100644
index 00000000000..d6b3da541a0
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/build-teams-connector-token-kv-key.ts
@@ -0,0 +1,4 @@
+import { TEAMS_CONNECTOR_TOKEN_KV_KEY_PREFIX } from 'src/features/chat/logic-functions/constants/teams-connector-token-kv-key-prefix';
+
+export const buildTeamsConnectorTokenKvKey = (appId: string): string =>
+ `${TEAMS_CONNECTOR_TOKEN_KV_KEY_PREFIX}:${appId}`;
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/delete-teams-activity.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/delete-teams-activity.ts
similarity index 64%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/delete-teams-activity.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/delete-teams-activity.ts
index 40ffcf84827..c0e851b0c33 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/delete-teams-activity.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/delete-teams-activity.ts
@@ -1,5 +1,5 @@
-import { buildTeamsActivityPath } from 'src/logic-functions/utils/build-teams-activity-path';
-import { requestTeamsConnector } from 'src/logic-functions/utils/request-teams-connector';
+import { buildTeamsActivityPath } from 'src/features/chat/logic-functions/utils/build-teams-activity-path';
+import { requestTeamsConnector } from 'src/features/chat/logic-functions/utils/request-teams-connector';
export const deleteTeamsActivity = async ({
serviceUrl,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-bot-credentials.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-bot-credentials.ts
similarity index 89%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-bot-credentials.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-bot-credentials.ts
index 0a8e4d3edde..0579b892320 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-bot-credentials.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-bot-credentials.ts
@@ -1,6 +1,6 @@
import { isNonEmptyString } from '@sniptt/guards';
-import { type TeamsBotCredentials } from 'src/logic-functions/types/teams-bot-credentials.type';
+import { type TeamsBotCredentials } from 'src/features/chat/logic-functions/types/teams-bot-credentials.type';
const MISSING_CREDENTIALS_ERROR =
'Microsoft Teams is not configured. Set TEAMS_BOT_APP_ID, TEAMS_BOT_APP_PASSWORD and TEAMS_BOT_TENANT_ID on the Teams application registration in Twenty (Settings > Applications, admin only), using the Entra app registration behind your Azure Bot.';
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-connector-token.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-connector-token.ts
similarity index 55%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-connector-token.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-connector-token.ts
index ee397cbfa19..23564269a4c 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-connector-token.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-connector-token.ts
@@ -1,11 +1,11 @@
import { kv } from 'twenty-sdk/logic-function';
import { isDefined } from 'twenty-sdk/utils';
-import { TEAMS_CONNECTOR_TOKEN_REFRESH_MARGIN_MS } from 'src/logic-functions/constants/teams-connector-token-refresh-margin-ms';
-import { type TeamsBotCredentials } from 'src/logic-functions/types/teams-bot-credentials.type';
-import { type TeamsConnectorToken } from 'src/logic-functions/types/teams-connector-token.type';
-import { buildTeamsConnectorTokenKvKey } from 'src/logic-functions/utils/build-teams-connector-token-kv-key';
-import { mintTeamsConnectorToken } from 'src/logic-functions/utils/mint-teams-connector-token';
+import { TEAMS_CONNECTOR_TOKEN_REFRESH_MARGIN_MS } from 'src/features/chat/logic-functions/constants/teams-connector-token-refresh-margin-ms';
+import { type TeamsBotCredentials } from 'src/features/chat/logic-functions/types/teams-bot-credentials.type';
+import { type TeamsConnectorToken } from 'src/features/chat/logic-functions/types/teams-connector-token.type';
+import { buildTeamsConnectorTokenKvKey } from 'src/features/chat/logic-functions/utils/build-teams-connector-token-kv-key';
+import { mintTeamsConnectorToken } from 'src/features/chat/logic-functions/utils/mint-teams-connector-token';
const isTokenUsable = (
token: TeamsConnectorToken | null,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-conversation-member.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-conversation-member.ts
similarity index 66%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-conversation-member.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-conversation-member.ts
index 2eea7c72407..ce674cc4622 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/get-teams-conversation-member.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/get-teams-conversation-member.ts
@@ -1,5 +1,5 @@
-import { type TeamsConversationMember } from 'src/logic-functions/types/teams-conversation-member.type';
-import { requestTeamsConnectorJson } from 'src/logic-functions/utils/request-teams-connector-json';
+import { type TeamsConversationMember } from 'src/features/chat/logic-functions/types/teams-conversation-member.type';
+import { requestTeamsConnectorJson } from 'src/features/chat/logic-functions/utils/request-teams-connector-json';
export const getTeamsConversationMember = async ({
serviceUrl,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/is-teams-connector-service-url.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/is-teams-connector-service-url.ts
similarity index 60%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/is-teams-connector-service-url.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/is-teams-connector-service-url.ts
index bb40122cf7b..c32674526e3 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/is-teams-connector-service-url.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/is-teams-connector-service-url.ts
@@ -1,5 +1,5 @@
-import { TEAMS_CONNECTOR_SERVICE_URL_HOST_SUFFIXES } from 'src/logic-functions/constants/teams-connector-service-url-host-suffixes';
-import { TEAMS_CONNECTOR_SERVICE_URL_HOSTS } from 'src/logic-functions/constants/teams-connector-service-url-hosts';
+import { TEAMS_CONNECTOR_SERVICE_URL_HOST_SUFFIXES } from 'src/features/chat/logic-functions/constants/teams-connector-service-url-host-suffixes';
+import { TEAMS_CONNECTOR_SERVICE_URL_HOSTS } from 'src/features/chat/logic-functions/constants/teams-connector-service-url-hosts';
export const isTeamsConnectorServiceUrl = (serviceUrl: string): boolean => {
try {
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/mint-teams-connector-token.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/mint-teams-connector-token.ts
similarity index 79%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/mint-teams-connector-token.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/mint-teams-connector-token.ts
index 6172555d6a4..78080bd8b7d 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/mint-teams-connector-token.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/mint-teams-connector-token.ts
@@ -1,8 +1,8 @@
import { isNonEmptyString, isPositiveInteger } from '@sniptt/guards';
-import { TEAMS_CONNECTOR_TOKEN_SCOPE } from 'src/logic-functions/constants/teams-connector-token-scope';
-import { type TeamsBotCredentials } from 'src/logic-functions/types/teams-bot-credentials.type';
-import { type TeamsConnectorToken } from 'src/logic-functions/types/teams-connector-token.type';
+import { TEAMS_CONNECTOR_TOKEN_SCOPE } from 'src/features/chat/logic-functions/constants/teams-connector-token-scope';
+import { type TeamsBotCredentials } from 'src/features/chat/logic-functions/types/teams-bot-credentials.type';
+import { type TeamsConnectorToken } from 'src/features/chat/logic-functions/types/teams-connector-token.type';
type TeamsConnectorTokenResponse = {
access_token?: string;
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/normalize-teams-service-url.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/normalize-teams-service-url.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/normalize-teams-service-url.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/normalize-teams-service-url.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/parse-teams-connector-response-or-throw.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/parse-teams-connector-response-or-throw.ts
similarity index 100%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/parse-teams-connector-response-or-throw.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/parse-teams-connector-response-or-throw.ts
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector-json.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector-json.ts
similarity index 60%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector-json.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector-json.ts
index 077a9e03fcb..5456617a12c 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector-json.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector-json.ts
@@ -1,5 +1,5 @@
-import { parseTeamsConnectorResponseOrThrow } from 'src/logic-functions/utils/parse-teams-connector-response-or-throw';
-import { requestTeamsConnector } from 'src/logic-functions/utils/request-teams-connector';
+import { parseTeamsConnectorResponseOrThrow } from 'src/features/chat/logic-functions/utils/parse-teams-connector-response-or-throw';
+import { requestTeamsConnector } from 'src/features/chat/logic-functions/utils/request-teams-connector';
type TeamsConnectorRequest = Parameters<typeof requestTeamsConnector>[0];
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector.ts
similarity index 78%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector.ts
index 9323f171e0b..5ddf3434727 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/request-teams-connector.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/request-teams-connector.ts
@@ -1,9 +1,9 @@
import { isNonEmptyString } from '@sniptt/guards';
import { isDefined } from 'twenty-sdk/utils';
-import { type TeamsActivity } from 'src/logic-functions/types/teams-activity.type';
-import { isTeamsConnectorServiceUrl } from 'src/logic-functions/utils/is-teams-connector-service-url';
-import { normalizeTeamsServiceUrl } from 'src/logic-functions/utils/normalize-teams-service-url';
+import { type TeamsActivity } from 'src/features/chat/logic-functions/types/teams-activity.type';
+import { isTeamsConnectorServiceUrl } from 'src/features/chat/logic-functions/utils/is-teams-connector-service-url';
+import { normalizeTeamsServiceUrl } from 'src/features/chat/logic-functions/utils/normalize-teams-service-url';
export const requestTeamsConnector = async ({
serviceUrl,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/send-teams-activity.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/send-teams-activity.ts
similarity index 56%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/send-teams-activity.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/send-teams-activity.ts
index a2188bc696b..43b4644c714 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/send-teams-activity.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/send-teams-activity.ts
@@ -1,6 +1,6 @@
-import { type TeamsActivity } from 'src/logic-functions/types/teams-activity.type';
-import { buildTeamsActivityPath } from 'src/logic-functions/utils/build-teams-activity-path';
-import { requestTeamsConnectorJson } from 'src/logic-functions/utils/request-teams-connector-json';
+import { type TeamsActivity } from 'src/features/chat/logic-functions/types/teams-activity.type';
+import { buildTeamsActivityPath } from 'src/features/chat/logic-functions/utils/build-teams-activity-path';
+import { requestTeamsConnectorJson } from 'src/features/chat/logic-functions/utils/request-teams-connector-json';
export const sendTeamsActivity = async ({
serviceUrl,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/update-teams-activity.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/update-teams-activity.ts
similarity index 59%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/update-teams-activity.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/update-teams-activity.ts
index caf970696d9..ca783e2b078 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/update-teams-activity.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/update-teams-activity.ts
@@ -1,6 +1,6 @@
-import { type TeamsActivity } from 'src/logic-functions/types/teams-activity.type';
-import { buildTeamsActivityPath } from 'src/logic-functions/utils/build-teams-activity-path';
-import { requestTeamsConnectorJson } from 'src/logic-functions/utils/request-teams-connector-json';
+import { type TeamsActivity } from 'src/features/chat/logic-functions/types/teams-activity.type';
+import { buildTeamsActivityPath } from 'src/features/chat/logic-functions/utils/build-teams-activity-path';
+import { requestTeamsConnectorJson } from 'src/features/chat/logic-functions/utils/request-teams-connector-json';
export const updateTeamsActivity = async ({
serviceUrl,
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/verify-teams-activity-token.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/verify-teams-activity-token.ts
similarity index 80%
rename from packages/twenty-apps/public/teams/src/logic-functions/utils/verify-teams-activity-token.ts
rename to packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/verify-teams-activity-token.ts
index 55c3e7d0d68..7facf7b912e 100644
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/verify-teams-activity-token.ts
+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/verify-teams-activity-token.ts
@@ -2,10 +2,10 @@ import { isNonEmptyString } from '@sniptt/guards';
import { createRemoteJWKSet, jwtVerify } from 'jose';
import { isDefined } from 'twenty-sdk/utils';
-import { TEAMS_BOT_CONNECTOR_ISSUER } from 'src/logic-functions/constants/teams-bot-connector-issuer';
-import { TEAMS_BOT_OPENID_KEYS_URL } from 'src/logic-functions/constants/teams-bot-openid-keys-url';
-import { TEAMS_JWT_CLOCK_TOLERANCE_SECONDS } from 'src/logic-functions/constants/teams-jwt-clock-tolerance-seconds';
-import { normalizeTeamsServiceUrl } from 'src/logic-functions/utils/normalize-teams-service-url';
+import { TEAMS_BOT_CONNECTOR_ISSUER } from 'src/features/chat/logic-functions/constants/teams-bot-connector-issuer';
+import { TEAMS_BOT_OPENID_KEYS_URL } from 'src/features/chat/logic-functions/constants/teams-bot-openid-keys-url';
+import { TEAMS_JWT_CLOCK_TOLERANCE_SECONDS } from 'src/features/chat/logic-functions/constants/teams-jwt-clock-tolerance-seconds';
+import { normalizeTeamsServiceUrl } from 'src/features/chat/logic-functions/utils/normalize-teams-service-url';
const botConnectorKeySet = createRemoteJWKSet(
new URL(TEAMS_BOT_OPENID_KEYS_URL),
diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/constants/transcripts-enabled-application-variable-key.ts b/packages/twenty-apps/public/teams/src/features/transcripts/constants/transcripts-enabled-application-variable-key.ts
new file mode 100644
index 00000000000..5136d4829e6
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/transcripts/constants/transcripts-enabled-application-variable-key.ts
@@ -0,0 +1,2 @@
+export const TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY =
+ 'TEAMS_TRANSCRIPTS_ENABLED';
diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/constants/universal-identifiers.ts b/packages/twenty-apps/public/teams/src/features/transcripts/constants/universal-identifiers.ts
new file mode 100644
index 00000000000..da21bdeb040
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/transcripts/constants/universal-identifiers.ts
@@ -0,0 +1,2 @@
+export const TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIER =
+ '1a2f8896-c849-4f71-a033-ada9b1d6d2b8';
diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/front-components/TranscriptSettings.tsx b/packages/twenty-apps/public/teams/src/features/transcripts/front-components/TranscriptSettings.tsx
new file mode 100644
index 00000000000..5b67cd6274e
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/features/transcripts/front-components/TranscriptSettings.tsx
@@ -0,0 +1,38 @@
+import { useTranslate } from 'twenty-sdk/front-component';
+
+import { FEATURE_FLAGS } from 'src/constants/feature-flags';
+import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';
+import { FeatureSettingsSection } from 'src/front-components/components/FeatureSettingsSection';
+import { useFeatureSetting } from 'src/front-components/hooks/use-feature-setting';
+import { isFeatureEnabled } from 'src/utils/is-feature-enabled';
+
+export const TranscriptSettings = () => {
+ const { t } = useTranslate();
+ const { settingValue, isSaving, hasSaveError, updateSetting } =
+ useFeatureSetting({
+ variableKey: TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY,
+ isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,
+ });
+
+ const handleChange = (isEnabled: boolean) => {
+ void updateSetting(isEnabled);
+ };
+
+ return (
+ <FeatureSettingsSection
+ title={t('Transcripts')}
+ label={t('Enable transcripts')}
+ description={t(
+ 'Import Microsoft Teams meeting transcripts into this workspace.',
+ )}
+ isAvailable={FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED}
+ isEnabled={isFeatureEnabled({
+ isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,
+ settingValue,
+ })}
+ isSaving={isSaving}
+ hasSaveError={hasSaveError}
+ onChange={handleChange}
+ />
+ );
+};
diff --git a/packages/twenty-apps/public/teams/src/front-components/components/FeatureSettingsSection.tsx b/packages/twenty-apps/public/teams/src/front-components/components/FeatureSettingsSection.tsx
new file mode 100644
index 00000000000..43341e9b8c7
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/components/FeatureSettingsSection.tsx
@@ -0,0 +1,124 @@
+import styled from '@emotion/styled';
+import { useId } from 'react';
+import { useTranslate } from 'twenty-sdk/front-component';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+
+const StyledSection = styled.section`
+ color: ${() => themeCssVariables.font.color.primary};
+ font-family: ${() => themeCssVariables.font.family};
+`;
+
+const StyledTitle = styled.h2`
+ font-size: ${() => themeCssVariables.font.size.lg};
+ font-weight: ${() => themeCssVariables.font.weight.medium};
+ margin: 0 0 ${() => themeCssVariables.spacing[2]};
+`;
+
+const StyledDescription = styled.p`
+ color: ${() => themeCssVariables.font.color.secondary};
+ font-size: ${() => themeCssVariables.font.size.md};
+ line-height: ${() => themeCssVariables.text.lineHeight.lg};
+ margin: 0 0 ${() => themeCssVariables.spacing[3]};
+`;
+
+const StyledControl = styled.div`
+ align-items: center;
+ background: ${() => themeCssVariables.background.secondary};
+ border: 1px solid ${() => themeCssVariables.border.color.medium};
+ border-radius: ${() => themeCssVariables.border.radius.md};
+ display: flex;
+ font-size: ${() => themeCssVariables.font.size.md};
+ gap: ${() => themeCssVariables.spacing[4]};
+ justify-content: space-between;
+ padding: ${() => themeCssVariables.spacing[4]};
+`;
+
+// The sandbox lacks PointerEvent, which base-ui's switch requires.
+const StyledSwitch = styled.button`
+ background: ${() => themeCssVariables.background.transparent.medium};
+ border: 0;
+ border-radius: ${() => themeCssVariables.border.radius.pill};
+ corner-shape: round;
+ cursor: pointer;
+ flex-shrink: 0;
+ height: ${() => themeCssVariables.spacing[5]};
+ padding: ${() => themeCssVariables.spacing[0.5]};
+ width: ${() => themeCssVariables.spacing[8]};
+
+ &[aria-checked='true'] {
+ background: ${() => themeCssVariables.color.blue};
+ }
+
+ &:disabled {
+ cursor: default;
+ opacity: 0.5;
+ }
+
+ &::after {
+ background: ${() => themeCssVariables.background.primary};
+ border-radius: 50%;
+ corner-shape: round;
+ content: '';
+ display: block;
+ height: ${() => themeCssVariables.spacing[4]};
+ width: ${() => themeCssVariables.spacing[4]};
+ }
+
+ &[aria-checked='true']::after {
+ transform: translateX(${() => themeCssVariables.spacing[3]});
+ }
+`;
+
+type FeatureSettingsSectionProps = {
+ title: string;
+ label: string;
+ description: string;
+ isAvailable: boolean;
+ isEnabled: boolean;
+ isSaving: boolean;
+ hasSaveError: boolean;
+ onChange: (isEnabled: boolean) => void;
+};
+
+export const FeatureSettingsSection = ({
+ title,
+ label,
+ description,
+ isAvailable,
+ isEnabled,
+ isSaving,
+ hasSaveError,
+ onChange,
+}: FeatureSettingsSectionProps) => {
+ const { t } = useTranslate();
+ const controlId = useId();
+ const titleId = useId();
+ const availabilityId = useId();
+
+ return (
+ <StyledSection aria-labelledby={titleId}>
+ <StyledTitle id={titleId}>{title}</StyledTitle>
+ <StyledDescription>{description}</StyledDescription>
+ <StyledControl>
+ <label htmlFor={controlId}>{label}</label>
+ <StyledSwitch
+ id={controlId}
+ type="button"
+ role="switch"
+ aria-checked={isEnabled}
+ aria-describedby={!isAvailable ? availabilityId : undefined}
+ disabled={!isAvailable || isSaving}
+ onClick={() => onChange(!isEnabled)}
+ />
+ </StyledControl>
+ {!isAvailable && (
+ <p id={availabilityId}>{t('Not available in this version yet.')}</p>
+ )}
+ {hasSaveError && (
+ <p role="alert">
+ {t('Could not save this setting. Please try again.')}
+ </p>
+ )}
+ </StyledSection>
+ );
+};
diff --git a/packages/twenty-apps/public/teams/src/front-components/components/TeamsSettings.tsx b/packages/twenty-apps/public/teams/src/front-components/components/TeamsSettings.tsx
new file mode 100644
index 00000000000..e13d6cb3c9f
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/components/TeamsSettings.tsx
@@ -0,0 +1,23 @@
+import 'twenty-ui/style.css';
+import 'twenty-ui/theme-dark.css';
+import 'twenty-ui/theme-light.css';
+
+import styled from '@emotion/styled';
+import { themeCssVariables } from 'twenty-ui/theme-constants';
+
+import { ChatSettings } from 'src/features/chat/front-components/ChatSettings';
+import { TranscriptSettings } from 'src/features/transcripts/front-components/TranscriptSettings';
+
+const StyledContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: ${() => themeCssVariables.spacing[6]};
+ width: 100%;
+`;
+
+export const TeamsSettings = () => (
+ <StyledContainer>
+ <ChatSettings />
+ <TranscriptSettings />
+ </StyledContainer>
+);
diff --git a/packages/twenty-apps/public/teams/src/front-components/components/__tests__/TeamsSettings.test.tsx b/packages/twenty-apps/public/teams/src/front-components/components/__tests__/TeamsSettings.test.tsx
new file mode 100644
index 00000000000..84c6a0a7e98
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/components/__tests__/TeamsSettings.test.tsx
@@ -0,0 +1,307 @@
+// @vitest-environment jsdom
+
+import { act, cleanup, render, screen, waitFor } from '@testing-library/react';
+import userEvent from '@testing-library/user-event';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';
+import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';
+import { TeamsSettings } from 'src/front-components/components/TeamsSettings';
+
+const { featureFlags, variables, queryMock, mutationMock } = vi.hoisted(() => {
+ const variables: Record<string, string | undefined> = {};
+
+ return {
+ featureFlags: {
+ IS_CHAT_ASSISTANT_ENABLED: false,
+ IS_TRANSCRIPT_IMPORT_ENABLED: false,
+ },
+ variables,
+ queryMock: vi.fn(),
+ mutationMock: vi.fn(),
+ };
+});
+
+const APPLICATION_QUERY = {
+ findOneApplication: {
+ __args: { universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER },
+ id: true,
+ },
+};
+
+vi.mock('src/constants/feature-flags', () => ({
+ FEATURE_FLAGS: featureFlags,
+}));
+
+vi.mock('twenty-sdk/front-component', () => ({
+ getApplicationVariable: (key: string) => variables[key],
+ useTranslate: () => ({ t: (message: string) => message }),
+}));
+
+vi.mock('twenty-client-sdk/metadata', () => ({
+ MetadataApiClient: class {
+ query = queryMock;
+ mutation = mutationMock;
+ },
+}));
+
+describe('TeamsSettings', () => {
+ beforeEach(() => {
+ vi.resetAllMocks();
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = false;
+ featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = false;
+ variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'false';
+ variables[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY] = 'false';
+ queryMock.mockResolvedValue({
+ findOneApplication: { id: 'teams-application' },
+ });
+ mutationMock.mockResolvedValue({ updateOneApplicationVariable: true });
+ });
+
+ afterEach(cleanup);
+
+ it('keeps unfinished features inactive even when workspace settings are enabled', async () => {
+ variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';
+ variables[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';
+ const user = userEvent.setup();
+
+ render(<TeamsSettings />);
+
+ for (const label of ['Enable chat', 'Enable transcripts']) {
+ const control = screen.getByRole('switch', { name: label });
+
+ expect(control.getAttribute('aria-checked')).toBe('false');
+ expect(control.hasAttribute('disabled')).toBe(true);
+ await user.click(control);
+ }
+
+ expect(
+ screen.getAllByText('Not available in this version yet.'),
+ ).toHaveLength(2);
+ expect(queryMock).not.toHaveBeenCalled();
+ expect(mutationMock).not.toHaveBeenCalled();
+ });
+
+ it.each([
+ [false, false],
+ [true, false],
+ [false, true],
+ [true, true],
+ ])(
+ 'supports independent chat (%s) and transcript (%s) releases',
+ (isChatAvailable, isTranscriptsAvailable) => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = isChatAvailable;
+ featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = isTranscriptsAvailable;
+ variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';
+ variables[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';
+
+ render(<TeamsSettings />);
+
+ const chat = screen.getByRole('switch', { name: 'Enable chat' });
+ const transcripts = screen.getByRole('switch', {
+ name: 'Enable transcripts',
+ });
+
+ expect(chat.hasAttribute('disabled')).toBe(!isChatAvailable);
+ expect(transcripts.hasAttribute('disabled')).toBe(
+ !isTranscriptsAvailable,
+ );
+ expect(chat.getAttribute('aria-checked')).toBe(String(isChatAvailable));
+ expect(transcripts.getAttribute('aria-checked')).toBe(
+ String(isTranscriptsAvailable),
+ );
+ expect(queryMock).not.toHaveBeenCalled();
+ expect(mutationMock).not.toHaveBeenCalled();
+ },
+ );
+
+ it.each([undefined, '', 'false', 'TRUE'])(
+ 'keeps available features off for workspace value %s',
+ (value) => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;
+ featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = true;
+ variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = value;
+ variables[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY] = value;
+
+ render(<TeamsSettings />);
+
+ for (const control of screen.getAllByRole('switch')) {
+ expect(control.hasAttribute('disabled')).toBe(false);
+ expect(control.getAttribute('aria-checked')).toBe('false');
+ }
+ expect(queryMock).not.toHaveBeenCalled();
+ expect(mutationMock).not.toHaveBeenCalled();
+ },
+ );
+
+ it('saves the selected feature without changing the other preference', async () => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;
+ featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = true;
+ const user = userEvent.setup();
+
+ render(<TeamsSettings />);
+
+ const chat = screen.getByRole('switch', { name: 'Enable chat' });
+ const transcripts = screen.getByRole('switch', {
+ name: 'Enable transcripts',
+ });
+ expect(queryMock).not.toHaveBeenCalled();
+ expect(mutationMock).not.toHaveBeenCalled();
+
+ await user.click(chat);
+
+ await waitFor(() => expect(chat.getAttribute('aria-checked')).toBe('true'));
+ expect(transcripts.getAttribute('aria-checked')).toBe('false');
+ expect(queryMock.mock.calls).toEqual([[APPLICATION_QUERY]]);
+ expect(mutationMock).toHaveBeenCalledTimes(1);
+ expect(mutationMock).toHaveBeenNthCalledWith(1, {
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'true',
+ },
+ },
+ });
+
+ await user.click(transcripts);
+ await waitFor(() =>
+ expect(transcripts.getAttribute('aria-checked')).toBe('true'),
+ );
+ expect(chat.getAttribute('aria-checked')).toBe('true');
+ expect(queryMock.mock.calls).toEqual([
+ [APPLICATION_QUERY],
+ [APPLICATION_QUERY],
+ ]);
+ expect(mutationMock).toHaveBeenCalledTimes(2);
+ expect(mutationMock).toHaveBeenNthCalledWith(2, {
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'true',
+ },
+ },
+ });
+
+ await user.click(chat);
+ await waitFor(() =>
+ expect(chat.getAttribute('aria-checked')).toBe('false'),
+ );
+ expect(transcripts.getAttribute('aria-checked')).toBe('true');
+ expect(queryMock.mock.calls).toEqual([
+ [APPLICATION_QUERY],
+ [APPLICATION_QUERY],
+ [APPLICATION_QUERY],
+ ]);
+ expect(mutationMock).toHaveBeenCalledTimes(3);
+ expect(mutationMock).toHaveBeenNthCalledWith(3, {
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'false',
+ },
+ },
+ });
+ });
+
+ it('keeps the saved preference after a failed update and allows retry', async () => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;
+ mutationMock.mockRejectedValueOnce(new Error('Not allowed'));
+ const user = userEvent.setup();
+
+ render(<TeamsSettings />);
+
+ const chat = screen.getByRole('switch', { name: 'Enable chat' });
+ await user.click(chat);
+
+ expect(await screen.findByRole('alert')).toHaveProperty(
+ 'textContent',
+ 'Could not save this setting. Please try again.',
+ );
+ expect(chat.getAttribute('aria-checked')).toBe('false');
+ expect(queryMock.mock.calls).toEqual([[APPLICATION_QUERY]]);
+ expect(mutationMock).toHaveBeenCalledTimes(1);
+ expect(mutationMock).toHaveBeenNthCalledWith(1, {
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'true',
+ },
+ },
+ });
+
+ await user.click(chat);
+ await waitFor(() => expect(chat.getAttribute('aria-checked')).toBe('true'));
+ expect(screen.queryByRole('alert')).toBeNull();
+ expect(queryMock.mock.calls).toEqual([
+ [APPLICATION_QUERY],
+ [APPLICATION_QUERY],
+ ]);
+ expect(mutationMock).toHaveBeenCalledTimes(2);
+ expect(mutationMock).toHaveBeenNthCalledWith(2, {
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'true',
+ },
+ },
+ });
+ });
+
+ it('does not write settings if the Teams application cannot be found', async () => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;
+ const user = userEvent.setup();
+
+ render(<TeamsSettings />);
+ const chat = screen.getByRole('switch', { name: 'Enable chat' });
+ queryMock.mockResolvedValueOnce({ findOneApplication: null });
+ await user.click(chat);
+
+ await screen.findByRole('alert');
+ expect(queryMock.mock.calls).toEqual([[APPLICATION_QUERY]]);
+ expect(mutationMock).not.toHaveBeenCalled();
+ });
+
+ it('disables the selected setting while saving and prevents duplicate writes', async () => {
+ featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;
+ const user = userEvent.setup();
+ let resolveSave: ((response: unknown) => void) | undefined;
+ const pendingSave = new Promise((resolve) => {
+ resolveSave = resolve;
+ });
+ mutationMock.mockReturnValueOnce(pendingSave);
+
+ render(<TeamsSettings />);
+ const chat = screen.getByRole('switch', { name: 'Enable chat' });
+ await user.click(chat);
+
+ expect(chat.hasAttribute('disabled')).toBe(true);
+ expect(chat.getAttribute('aria-checked')).toBe('false');
+ await user.click(chat);
+
+ expect(queryMock.mock.calls).toEqual([[APPLICATION_QUERY]]);
+ expect(mutationMock).toHaveBeenCalledTimes(1);
+ expect(mutationMock).toHaveBeenCalledWith({
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId: 'teams-application',
+ key: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,
+ value: 'true',
+ },
+ },
+ });
+
+ await act(async () => {
+ resolveSave?.({ updateOneApplicationVariable: true });
+ });
+ expect(chat.getAttribute('aria-checked')).toBe('true');
+ expect(chat.hasAttribute('disabled')).toBe(false);
+ expect(queryMock.mock.calls).toEqual([[APPLICATION_QUERY]]);
+ expect(mutationMock).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/packages/twenty-apps/public/teams/src/front-components/hooks/use-feature-setting.ts b/packages/twenty-apps/public/teams/src/front-components/hooks/use-feature-setting.ts
new file mode 100644
index 00000000000..61e9a9bd736
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/hooks/use-feature-setting.ts
@@ -0,0 +1,40 @@
+import { useState } from 'react';
+import { getApplicationVariable } from 'twenty-sdk/front-component';
+
+import { saveFeatureSettingOrThrow } from 'src/front-components/utils/save-feature-setting-or-throw';
+
+type UseFeatureSettingParams = {
+ variableKey: string;
+ isAvailable: boolean;
+};
+
+export const useFeatureSetting = ({
+ variableKey,
+ isAvailable,
+}: UseFeatureSettingParams) => {
+ const [settingValue, setSettingValue] = useState(() =>
+ getApplicationVariable(variableKey),
+ );
+ const [isSaving, setIsSaving] = useState(false);
+ const [hasSaveError, setHasSaveError] = useState(false);
+
+ const updateSetting = async (isEnabled: boolean) => {
+ if (!isAvailable || isSaving) {
+ return;
+ }
+
+ setIsSaving(true);
+ setHasSaveError(false);
+
+ try {
+ await saveFeatureSettingOrThrow({ variableKey, isEnabled });
+ setSettingValue(String(isEnabled));
+ } catch {
+ setHasSaveError(true);
+ } finally {
+ setIsSaving(false);
+ }
+ };
+
+ return { settingValue, isSaving, hasSaveError, updateSetting };
+};
diff --git a/packages/twenty-apps/public/teams/src/front-components/settings.front-component.tsx b/packages/twenty-apps/public/teams/src/front-components/settings.front-component.tsx
new file mode 100644
index 00000000000..6a1acd3789a
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/settings.front-component.tsx
@@ -0,0 +1,11 @@
+import { defineSettingsFrontComponent } from 'twenty-sdk/define';
+
+import { SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+import { TeamsSettings } from 'src/front-components/components/TeamsSettings';
+
+export default defineSettingsFrontComponent({
+ universalIdentifier: SETTINGS_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ name: 'teams-settings',
+ description: 'Configure chat and transcripts for this workspace.',
+ component: TeamsSettings,
+});
diff --git a/packages/twenty-apps/public/teams/src/front-components/utils/save-feature-setting-or-throw.ts b/packages/twenty-apps/public/teams/src/front-components/utils/save-feature-setting-or-throw.ts
new file mode 100644
index 00000000000..6f53a0c5d07
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/front-components/utils/save-feature-setting-or-throw.ts
@@ -0,0 +1,41 @@
+import { isNonEmptyString } from '@sniptt/guards';
+import { MetadataApiClient } from 'twenty-client-sdk/metadata';
+
+import { APPLICATION_UNIVERSAL_IDENTIFIER } from 'src/constants/universal-identifiers';
+
+type SaveFeatureSettingOrThrowParams = {
+ variableKey: string;
+ isEnabled: boolean;
+};
+
+export const saveFeatureSettingOrThrow = async ({
+ variableKey,
+ isEnabled,
+}: SaveFeatureSettingOrThrowParams): Promise<void> => {
+ const client = new MetadataApiClient();
+ const result = await client.query({
+ findOneApplication: {
+ __args: { universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER },
+ id: true,
+ },
+ });
+ const applicationId = result.findOneApplication?.id;
+
+ if (!isNonEmptyString(applicationId)) {
+ throw new Error('Could not find the Teams application.');
+ }
+
+ const response = await client.mutation({
+ updateOneApplicationVariable: {
+ __args: {
+ applicationId,
+ key: variableKey,
+ value: String(isEnabled),
+ },
+ },
+ });
+
+ if (!response.updateOneApplicationVariable) {
+ throw new Error('Could not save the Teams setting.');
+ }
+};
diff --git a/packages/twenty-apps/public/teams/src/logic-functions/utils/build-teams-connector-token-kv-key.ts b/packages/twenty-apps/public/teams/src/logic-functions/utils/build-teams-connector-token-kv-key.ts
deleted file mode 100644
index d9c3d96918b..00000000000
--- a/packages/twenty-apps/public/teams/src/logic-functions/utils/build-teams-connector-token-kv-key.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { TEAMS_CONNECTOR_TOKEN_KV_KEY_PREFIX } from 'src/logic-functions/constants/teams-connector-token-kv-key-prefix';
-
-export const buildTeamsConnectorTokenKvKey = (appId: string): string =>
- `${TEAMS_CONNECTOR_TOKEN_KV_KEY_PREFIX}:${appId}`;
diff --git a/packages/twenty-apps/public/teams/src/utils/is-feature-enabled.ts b/packages/twenty-apps/public/teams/src/utils/is-feature-enabled.ts
new file mode 100644
index 00000000000..d4c7bdee80a
--- /dev/null
+++ b/packages/twenty-apps/public/teams/src/utils/is-feature-enabled.ts
@@ -0,0 +1,9 @@
+type IsFeatureEnabledParams = {
+ isAvailable: boolean;
+ settingValue: string | undefined;
+};
+
+export const isFeatureEnabled = ({
+ isAvailable,
+ settingValue,
+}: IsFeatureEnabledParams): boolean => isAvailable && settingValue === 'true';
diff --git a/packages/twenty-apps/public/teams/tsconfig.json b/packages/twenty-apps/public/teams/tsconfig.json
index 5063445b1ea..68ccade0fa7 100644
--- a/packages/twenty-apps/public/teams/tsconfig.json
+++ b/packages/twenty-apps/public/teams/tsconfig.json
@@ -31,6 +31,7 @@
"node_modules",
"dist",
"**/*.test.ts",
+ "**/*.test.tsx",
"**/*.spec.ts",
"**/*.integration-test.ts"
],
diff --git a/packages/twenty-apps/public/teams/tsconfig.spec.json b/packages/twenty-apps/public/teams/tsconfig.spec.json
index f52b50e11cf..5ccc5821397 100644
--- a/packages/twenty-apps/public/teams/tsconfig.spec.json
+++ b/packages/twenty-apps/public/teams/tsconfig.spec.json
@@ -4,6 +4,6 @@
"composite": true,
"types": ["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/teams/vitest.unit.config.ts b/packages/twenty-apps/public/teams/vitest.unit.config.ts
index e0d140015bb..b1645e849c1 100644
--- a/packages/twenty-apps/public/teams/vitest.unit.config.ts
+++ b/packages/twenty-apps/public/teams/vitest.unit.config.ts
@@ -9,6 +9,6 @@ export default defineConfig({
}),
],
test: {
- include: ['src/**/*.test.ts'],
+ include: ['src/**/*.test.{ts,tsx}'],
},
});
diff --git a/packages/twenty-apps/public/teams/yarn.lock b/packages/twenty-apps/public/teams/yarn.lock
index d4453d69a1b..742fb7c2928 100644
--- a/packages/twenty-apps/public/teams/yarn.lock
+++ b/packages/twenty-apps/public/teams/yarn.lock
@@ -15,6 +15,219 @@ __metadata:
languageName: node
linkType: hard
+"@asamuzakjp/css-color@npm:^3.2.0":
+ version: 3.2.0
+ resolution: "@asamuzakjp/css-color@npm:3.2.0"
+ dependencies:
+ "@csstools/css-calc": "npm:^2.1.3"
+ "@csstools/css-color-parser": "npm:^3.0.9"
+ "@csstools/css-parser-algorithms": "npm:^3.0.4"
+ "@csstools/css-tokenizer": "npm:^3.0.3"
+ lru-cache: "npm:^10.4.3"
+ checksum: 10c0/a4bf1c831751b1fae46b437e37e8a38c0b5bd58d23230157ae210bd1e905fe509b89b7c243e63d1522d852668a6292ed730a160e21342772b4e5b7b8ea14c092
+ languageName: node
+ linkType: hard
+
+"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @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.9
+ resolution: "@babel/parser@npm:7.29.9"
+ dependencies:
+ "@babel/types": "npm:^7.29.8"
+ bin:
+ parser: ./bin/babel-parser.js
+ checksum: 10c0/171b16eb4527cdbbb72cb98710f91acb22356e2c40196ba3b7a1b84efa8c55d0b0992f399c8c675c3e17f67fd133676c5c4118e5f20db243f427c8b29b0c3f40
+ languageName: node
+ linkType: hard
+
+"@babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.29.7":
+ 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.8.0":
+ version: 1.8.0
+ resolution: "@base-ui/react@npm:1.8.0"
+ dependencies:
+ "@babel/runtime": "npm:^7.29.7"
+ "@base-ui/utils": "npm:0.4.0"
+ "@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/bf3faa8891fe6c9695a07b30caa3349f9ffc067f0efd381bb6ed12d68400a2d273ab0f764dd07c5cc6b25f5bc6df6a5688e0164d4e2500ad07efaec8bdd88896
+ languageName: node
+ linkType: hard
+
+"@base-ui/utils@npm:0.4.0":
+ version: 0.4.0
+ resolution: "@base-ui/utils@npm:0.4.0"
+ dependencies:
+ "@babel/runtime": "npm:^7.29.7"
+ "@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/dd32220d13d42ed2cf0d0ae18e02bf9ece5c54d6a26e49c9449514d66d38b1fee51c875f7d9d21484a326b7a8a2c33c95be620e8a5976b7b6f3bfa27572b6baf
+ languageName: node
+ linkType: hard
+
+"@csstools/color-helpers@npm:^5.1.0":
+ version: 5.1.0
+ resolution: "@csstools/color-helpers@npm:5.1.0"
+ checksum: 10c0/b7f99d2e455cf1c9b41a67a5327d5d02888cd5c8802a68b1887dffef537d9d4bc66b3c10c1e62b40bbed638b6c1d60b85a232f904ed7b39809c4029cb36567db
+ languageName: node
+ linkType: hard
+
+"@csstools/css-calc@npm:^2.1.3, @csstools/css-calc@npm:^2.1.4":
+ version: 2.1.4
+ resolution: "@csstools/css-calc@npm:2.1.4"
+ peerDependencies:
+ "@csstools/css-parser-algorithms": ^3.0.5
+ "@csstools/css-tokenizer": ^3.0.4
+ checksum: 10c0/42ce5793e55ec4d772083808a11e9fb2dfe36db3ec168713069a276b4c3882205b3507c4680224c28a5d35fe0bc2d308c77f8f2c39c7c09aad8747708eb8ddd8
+ languageName: node
+ linkType: hard
+
+"@csstools/css-color-parser@npm:^3.0.9":
+ version: 3.1.0
+ resolution: "@csstools/css-color-parser@npm:3.1.0"
+ dependencies:
+ "@csstools/color-helpers": "npm:^5.1.0"
+ "@csstools/css-calc": "npm:^2.1.4"
+ peerDependencies:
+ "@csstools/css-parser-algorithms": ^3.0.5
+ "@csstools/css-tokenizer": ^3.0.4
+ checksum: 10c0/0e0c670ad54ec8ec4d9b07568b80defd83b9482191f5e8ca84ab546b7be6db5d7cc2ba7ac9fae54488b129a4be235d6183d3aab4416fec5e89351f73af4222c5
+ languageName: node
+ linkType: hard
+
+"@csstools/css-parser-algorithms@npm:^3.0.4":
+ version: 3.0.5
+ resolution: "@csstools/css-parser-algorithms@npm:3.0.5"
+ peerDependencies:
+ "@csstools/css-tokenizer": ^3.0.4
+ checksum: 10c0/d9a1c888bd43849ae3437ca39251d5c95d2c8fd6b5ccdb7c45491dfd2c1cbdc3075645e80901d120e4d2c1993db9a5b2d83793b779dbbabcfb132adb142eb7f7
+ languageName: node
+ linkType: hard
+
+"@csstools/css-tokenizer@npm:^3.0.3":
+ version: 3.0.4
+ resolution: "@csstools/css-tokenizer@npm:3.0.4"
+ checksum: 10c0/3b589f8e9942075a642213b389bab75a2d50d05d203727fcdac6827648a5572674caff07907eff3f9a2389d86a4ee47308fafe4f8588f4a77b7167c588d2559f
+ languageName: node
+ linkType: hard
+
"@emnapi/runtime@npm:^1.11.3":
version: 1.11.3
resolution: "@emnapi/runtime@npm:1.11.3"
@@ -24,6 +237,152 @@ __metadata:
languageName: node
linkType: hard
+"@emotion/babel-plugin@npm:^11.13.5":
+ version: 11.13.5
+ resolution: "@emotion/babel-plugin@npm:11.13.5"
+ dependencies:
+ "@babel/helper-module-imports": "npm:^7.16.7"
+ "@babel/runtime": "npm:^7.18.3"
+ "@emotion/hash": "npm:^0.9.2"
+ "@emotion/memoize": "npm:^0.9.0"
+ "@emotion/serialize": "npm:^1.3.3"
+ babel-plugin-macros: "npm:^3.1.0"
+ convert-source-map: "npm:^1.5.0"
+ escape-string-regexp: "npm:^4.0.0"
+ find-root: "npm:^1.1.0"
+ source-map: "npm:^0.5.7"
+ stylis: "npm:4.2.0"
+ checksum: 10c0/8ccbfec7defd0e513cb8a1568fa179eac1e20c35fda18aed767f6c59ea7314363ebf2de3e9d2df66c8ad78928dc3dceeded84e6fa8059087cae5c280090aeeeb
+ languageName: node
+ linkType: hard
+
+"@emotion/cache@npm:^11.14.0":
+ version: 11.14.0
+ resolution: "@emotion/cache@npm:11.14.0"
+ dependencies:
+ "@emotion/memoize": "npm:^0.9.0"
+ "@emotion/sheet": "npm:^1.4.0"
+ "@emotion/utils": "npm:^1.4.2"
+ "@emotion/weak-memoize": "npm:^0.4.0"
+ stylis: "npm:4.2.0"
+ checksum: 10c0/3fa3e7a431ab6f8a47c67132a00ac8358f428c1b6c8421d4b20de9df7c18e95eec04a5a6ff5a68908f98d3280044f247b4965ac63df8302d2c94dba718769724
+ languageName: node
+ linkType: hard
+
+"@emotion/hash@npm:^0.9.2":
+ version: 0.9.2
+ resolution: "@emotion/hash@npm:0.9.2"
+ checksum: 10c0/0dc254561a3cc0a06a10bbce7f6a997883fd240c8c1928b93713f803a2e9153a257a488537012efe89dbe1246f2abfe2add62cdb3471a13d67137fcb808e81c2
+ languageName: node
+ linkType: hard
+
+"@emotion/is-prop-valid@npm:^1.3.0":
+ version: 1.4.0
+ resolution: "@emotion/is-prop-valid@npm:1.4.0"
+ dependencies:
+ "@emotion/memoize": "npm:^0.9.0"
+ checksum: 10c0/5f857814ec7d8c7e727727346dfb001af6b1fb31d621a3ce9c3edf944a484d8b0d619546c30899ae3ade2f317c76390ba4394449728e9bf628312defc2c41ac3
+ languageName: node
+ linkType: hard
+
+"@emotion/memoize@npm:^0.9.0":
+ version: 0.9.0
+ resolution: "@emotion/memoize@npm:0.9.0"
+ checksum: 10c0/13f474a9201c7f88b543e6ea42f55c04fb2fdc05e6c5a3108aced2f7e7aa7eda7794c56bba02985a46d8aaa914fcdde238727a98341a96e2aec750d372dadd15
+ languageName: node
+ linkType: hard
+
+"@emotion/react@npm:^11.14.0":
+ version: 11.14.0
+ resolution: "@emotion/react@npm:11.14.0"
+ dependencies:
+ "@babel/runtime": "npm:^7.18.3"
+ "@emotion/babel-plugin": "npm:^11.13.5"
+ "@emotion/cache": "npm:^11.14.0"
+ "@emotion/serialize": "npm:^1.3.3"
+ "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0"
+ "@emotion/utils": "npm:^1.4.2"
+ "@emotion/weak-memoize": "npm:^0.4.0"
+ hoist-non-react-statics: "npm:^3.3.1"
+ peerDependencies:
+ react: ">=16.8.0"
+ peerDependenciesMeta:
+ "@types/react":
+ optional: true
+ checksum: 10c0/d0864f571a9f99ec643420ef31fde09e2006d3943a6aba079980e4d5f6e9f9fecbcc54b8f617fe003c00092ff9d5241179149ffff2810cb05cf72b4620cfc031
+ languageName: node
+ linkType: hard
+
+"@emotion/serialize@npm:^1.3.3":
+ version: 1.3.3
+ resolution: "@emotion/serialize@npm:1.3.3"
+ dependencies:
+ "@emotion/hash": "npm:^0.9.2"
+ "@emotion/memoize": "npm:^0.9.0"
+ "@emotion/unitless": "npm:^0.10.0"
+ "@emotion/utils": "npm:^1.4.2"
+ csstype: "npm:^3.0.2"
+ checksum: 10c0/b28cb7de59de382021de2b26c0c94ebbfb16967a1b969a56fdb6408465a8993df243bfbd66430badaa6800e1834724e84895f5a6a9d97d0d224de3d77852acb4
+ languageName: node
+ linkType: hard
+
+"@emotion/sheet@npm:^1.4.0":
+ version: 1.4.0
+ resolution: "@emotion/sheet@npm:1.4.0"
+ checksum: 10c0/3ca72d1650a07d2fbb7e382761b130b4a887dcd04e6574b2d51ce578791240150d7072a9bcb4161933abbcd1e38b243a6fb4464a7fe991d700c17aa66bb5acc7
+ languageName: node
+ linkType: hard
+
+"@emotion/styled@npm:^11.14.0":
+ version: 11.14.1
+ resolution: "@emotion/styled@npm:11.14.1"
+ dependencies:
+ "@babel/runtime": "npm:^7.18.3"
+ "@emotion/babel-plugin": "npm:^11.13.5"
+ "@emotion/is-prop-valid": "npm:^1.3.0"
+ "@emotion/serialize": "npm:^1.3.3"
+ "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.2.0"
+ "@emotion/utils": "npm:^1.4.2"
+ peerDependencies:
+ "@emotion/react": ^11.0.0-rc.0
+ react: ">=16.8.0"
+ peerDependenciesMeta:
+ "@types/react":
+ optional: true
+ checksum: 10c0/2bbf8451df49c967e41fbcf8111a7f6dafe6757f0cc113f2f6e287206c45ac1d54dc8a95a483b7c0cee8614b8a8d08155bded6453d6721de1f8cc8d5b9216963
+ languageName: node
+ linkType: hard
+
+"@emotion/unitless@npm:^0.10.0":
+ version: 0.10.0
+ resolution: "@emotion/unitless@npm:0.10.0"
+ checksum: 10c0/150943192727b7650eb9a6851a98034ddb58a8b6958b37546080f794696141c3760966ac695ab9af97efe10178690987aee4791f9f0ad1ff76783cdca83c1d49
+ languageName: node
+ linkType: hard
+
+"@emotion/use-insertion-effect-with-fallbacks@npm:^1.2.0":
+ version: 1.2.0
+ resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.2.0"
+ peerDependencies:
+ react: ">=16.8.0"
+ checksum: 10c0/074dbc92b96bdc09209871070076e3b0351b6b47efefa849a7d9c37ab142130767609ca1831da0055988974e3b895c1de7606e4c421fecaa27c3e56a2afd3b08
+ languageName: node
+ linkType: hard
+
+"@emotion/utils@npm:^1.4.2":
+ version: 1.4.2
+ resolution: "@emotion/utils@npm:1.4.2"
+ checksum: 10c0/7d0010bf60a2a8c1a033b6431469de4c80e47aeb8fd856a17c1d1f76bbc3a03161a34aeaa78803566e29681ca551e7bf9994b68e9c5f5c796159923e44f78d9a
+ languageName: node
+ linkType: hard
+
+"@emotion/weak-memoize@npm:^0.4.0":
+ version: 0.4.0
+ resolution: "@emotion/weak-memoize@npm:0.4.0"
+ checksum: 10c0/64376af11f1266042d03b3305c30b7502e6084868e33327e944b539091a472f089db307af69240f7188f8bc6b319276fd7b141a36613f1160d73d12a60f6ca1a
+ languageName: node
+ linkType: hard
+
"@esbuild/aix-ppc64@npm:0.28.2":
version: 0.28.2
resolution: "@esbuild/aix-ppc64@npm:0.28.2"
@@ -206,6 +565,44 @@ __metadata:
languageName: node
linkType: 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.0
resolution: "@genql/runtime@npm:2.10.0"
@@ -721,13 +1118,62 @@ __metadata:
languageName: node
linkType: hard
-"@jridgewell/sourcemap-codec@npm:^1.5.5":
+"@jridgewell/gen-mapping@npm:^0.3.12":
+ version: 0.3.13
+ resolution: "@jridgewell/gen-mapping@npm:0.3.13"
+ dependencies:
+ "@jridgewell/sourcemap-codec": "npm:^1.5.0"
+ "@jridgewell/trace-mapping": "npm:^0.3.24"
+ checksum: 10c0/9a7d65fb13bd9aec1fbab74cda08496839b7e2ceb31f5ab922b323e94d7c481ce0fc4fd7e12e2610915ed8af51178bdc61e168e92a8c8b8303b030b03489b13b
+ languageName: node
+ linkType: hard
+
+"@jridgewell/resolve-uri@npm:^3.1.0":
+ version: 3.1.2
+ resolution: "@jridgewell/resolve-uri@npm:3.1.2"
+ checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e
+ languageName: node
+ linkType: hard
+
+"@jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.5.0, @jridgewell/sourcemap-codec@npm:^1.5.5":
version: 1.6.0
resolution: "@jridgewell/sourcemap-codec@npm:1.6.0"
checksum: 10c0/b5be700e45a775f218589c3466c4ffea630582b4988657652da464e5ab8a7d18bf928ee4fd2363fb346ede4bea9c6ff0bae05a538358c4565ece6199531b5f72
languageName: node
linkType: hard
+"@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.28":
+ version: 0.3.31
+ resolution: "@jridgewell/trace-mapping@npm:0.3.31"
+ dependencies:
+ "@jridgewell/resolve-uri": "npm:^3.1.0"
+ "@jridgewell/sourcemap-codec": "npm:^1.4.14"
+ checksum: 10c0/4b30ec8cd56c5fd9a661f088230af01e0c1a3888d11ffb6b47639700f71225be21d1f7e168048d6d4f9449207b978a235c07c8f15c07705685d16dc06280e9d9
+ languageName: node
+ linkType: hard
+
+"@monaco-editor/loader@npm:^1.5.0":
+ version: 1.7.0
+ resolution: "@monaco-editor/loader@npm:1.7.0"
+ dependencies:
+ state-local: "npm:^1.0.6"
+ checksum: 10c0/1fd3579cb09b669493cf553dfc0723a93483140a44353ce9a739827edfa7b2c6541b254024d15c48176ece749ef666b6d16cce6cf0e4396c7fa1c5a48012d08a
+ languageName: node
+ linkType: hard
+
+"@monaco-editor/react@npm:^4.7.0":
+ version: 4.7.0
+ resolution: "@monaco-editor/react@npm:4.7.0"
+ dependencies:
+ "@monaco-editor/loader": "npm:^1.5.0"
+ peerDependencies:
+ monaco-editor: ">= 0.25.0 < 1"
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ checksum: 10c0/a4e91c6eda1a71f5fd23871bd801de435490ccbc43934d23cba65cefe2be7e9d02c9a57c4ef80fc9fe99e4d4deea51e5db19cb4e0ecf3f51818dda0eb9cdbf12
+ languageName: node
+ linkType: hard
+
"@oxc-project/types@npm:=0.150.0":
version: 0.150.0
resolution: "@oxc-project/types@npm:0.150.0"
@@ -791,6 +1237,13 @@ __metadata:
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-arm-eabi@npm:1.2.9":
version: 1.2.9
resolution: "@rolldown/binding-android-arm-eabi@npm:1.2.9"
@@ -917,21 +1370,103 @@ __metadata:
languageName: node
linkType: hard
+"@tabler/icons-react@npm:^3.31.0":
+ version: 3.47.0
+ resolution: "@tabler/icons-react@npm:3.47.0"
+ dependencies:
+ "@tabler/icons": "npm:3.47.0"
+ peerDependencies:
+ react: ">= 16"
+ checksum: 10c0/815da64aab2d3537345c4512eefe7c83efe281ce6445750b823d09444da741ca8512a77b4d6cadd2be8731dbe5d06dadf81dd58ebb1e8397dedec73459b5e358
+ languageName: node
+ linkType: hard
+
+"@tabler/icons@npm:3.47.0":
+ version: 3.47.0
+ resolution: "@tabler/icons@npm:3.47.0"
+ checksum: 10c0/168be8925522fd04892f722957e4cb7ef134f58e6a78940a01da042f55d2e9b62f333b0c0cf7199decd4df17a8a076188c82f24a8a0e961a19b7e7bf29b61c51
+ languageName: node
+ linkType: hard
+
+"@testing-library/dom@npm:^10.4.1":
+ version: 10.4.2
+ resolution: "@testing-library/dom@npm:10.4.2"
+ dependencies:
+ "@babel/code-frame": "npm:^7.10.4"
+ "@babel/runtime": "npm:^7.12.5"
+ "@types/aria-query": "npm:^5.0.1"
+ aria-query: "npm:5.3.0"
+ dom-accessibility-api: "npm:^0.5.9"
+ lz-string: "npm:^1.5.0"
+ picocolors: "npm:1.1.1"
+ pretty-format: "npm:^27.0.2"
+ checksum: 10c0/22c3aded3a54fc4f1a0c54aa75a881bb65e45f0128f3c5c881f9e571e593c6364c036f71b733dd0856ff2ba0debd59106e206f6764ee771dd8ed7cf82ceaa618
+ languageName: node
+ linkType: hard
+
+"@testing-library/react@npm:^16.3.0":
+ version: 16.3.3
+ resolution: "@testing-library/react@npm:16.3.3"
+ dependencies:
+ "@babel/runtime": "npm:^7.12.5"
+ peerDependencies:
+ "@testing-library/dom": ^10.0.0
+ "@types/react": ^18.0.0 || ^19.0.0
+ "@types/react-dom": ^18.0.0 || ^19.0.0
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ "@types/react":
+ optional: true
+ "@types/react-dom":
+ optional: true
+ checksum: 10c0/87d65cca71a39c93fffa23746a751a7037a4b4e939ea6b234af5188e4bdec96a7568b05000db109b5b76c686899e93a329a594d7e690674e30b35594c87c9e1d
+ languageName: node
+ linkType: hard
+
+"@testing-library/user-event@npm:^14.6.1":
+ version: 14.6.7
+ resolution: "@testing-library/user-event@npm:14.6.7"
+ peerDependencies:
+ "@testing-library/dom": ">=7.21.4"
+ checksum: 10c0/21f5e01bea2699b069947ae06d0b0fbabe0e90d2a2206b8f56a3f46126d09bd85320cba3fd3910c4d18710b1873e6966fb9021668966c615aaa14bf35d7df3ef
+ languageName: node
+ linkType: hard
+
"@twentyhq/teams@workspace:.":
version: 0.0.0-use.local
resolution: "@twentyhq/teams@workspace:."
dependencies:
+ "@emotion/react": "npm:^11.14.0"
+ "@emotion/styled": "npm:^11.14.0"
+ "@sniptt/guards": "npm:^0.2.0"
+ "@testing-library/dom": "npm:^10.4.1"
+ "@testing-library/react": "npm:^16.3.0"
+ "@testing-library/user-event": "npm:^14.6.1"
"@types/node": "npm:^24.7.2"
+ "@types/react": "npm:^19.0.0"
"@typescript/native-preview": "npm:^7.0.0-dev.20260116.1"
jose: "npm:^6.2.12"
+ jsdom: "npm:^26.1.0"
oxlint: "npm:^0.16.0"
+ react: "npm:^19.0.0"
+ react-dom: "npm:^19.0.0"
+ twenty-client-sdk: "npm:^2.41.0"
twenty-sdk: "npm:^2.41.0"
+ twenty-ui: "npm:^1.0.0-alpha.1"
typescript: "npm:^5.9.3"
vite-tsconfig-paths: "npm:^4.2.1"
vitest: "npm:^4.0.0"
languageName: unknown
linkType: soft
+"@types/aria-query@npm:^5.0.1":
+ version: 5.0.4
+ resolution: "@types/aria-query@npm:5.0.4"
+ checksum: 10c0/dc667bc6a3acc7bba2bccf8c23d56cb1f2f4defaa704cfef595437107efaa972d3b3db9ec1d66bc2711bfc35086821edd32c302bffab36f2e79b97f312069f08
+ languageName: node
+ linkType: hard
+
"@types/chai@npm:^5.2.2":
version: 5.2.3
resolution: "@types/chai@npm:5.2.3"
@@ -974,6 +1509,13 @@ __metadata:
languageName: node
linkType: hard
+"@types/parse-json@npm:^4.0.0":
+ version: 4.0.2
+ resolution: "@types/parse-json@npm:4.0.2"
+ checksum: 10c0/b1b863ac34a2c2172fbe0807a1ec4d5cb684e48d422d15ec95980b81475fac4fdb3768a8b13eef39130203a7c04340fc167bae057c7ebcafd7dec9fe6c36aeb1
+ languageName: node
+ linkType: hard
+
"@types/qs@npm:^6.9.0":
version: 6.15.1
resolution: "@types/qs@npm:6.15.1"
@@ -981,6 +1523,15 @@ __metadata:
languageName: node
linkType: hard
+"@types/react@npm:^19.0.0":
+ version: 19.3.0
+ resolution: "@types/react@npm:19.3.0"
+ dependencies:
+ csstype: "npm:^3.2.2"
+ checksum: 10c0/fbcabf303f935ca9f36ed2dcf81751cf84744098c5a683c8a62a0fa7edd31714b48d5c46b12fd0014f7f2dfe4d9ec6de428a850748eec719a70294e51029551b
+ languageName: node
+ linkType: hard
+
"@types/ws@npm:^6.0.1":
version: 6.0.4
resolution: "@types/ws@npm:6.0.4"
@@ -1169,6 +1720,13 @@ __metadata:
languageName: node
linkType: hard
+"agent-base@npm:^7.1.0, agent-base@npm:^7.1.2":
+ version: 7.1.4
+ resolution: "agent-base@npm:7.1.4"
+ checksum: 10c0/c2c9ab7599692d594b6a161559ada307b7a624fa4c7b03e3afdb5a5e31cd0e53269115b620fcab024c5ac6a6f37fa5eb2e004f076ad30f5f7e6b8b671f7b35fe
+ languageName: node
+ linkType: hard
+
"ansi-escapes@npm:^7.3.0":
version: 7.3.0
resolution: "ansi-escapes@npm:7.3.0"
@@ -1178,6 +1736,13 @@ __metadata:
languageName: node
linkType: hard
+"ansi-regex@npm:^5.0.1":
+ version: 5.0.1
+ resolution: "ansi-regex@npm:5.0.1"
+ checksum: 10c0/9a64bb8627b434ba9327b60c027742e5d17ac69277960d041898596271d992d4d52ba7267a63ca10232e29f6107fc8a835f6ce8d719b88c5f8493f8254813737
+ languageName: node
+ linkType: hard
+
"ansi-regex@npm:^6.2.2":
version: 6.3.0
resolution: "ansi-regex@npm:6.3.0"
@@ -1185,6 +1750,13 @@ __metadata:
languageName: node
linkType: hard
+"ansi-styles@npm:^5.0.0":
+ version: 5.2.0
+ resolution: "ansi-styles@npm:5.2.0"
+ checksum: 10c0/9c4ca80eb3c2fb7b33841c210d2f20807f40865d27008d7c3f707b7f95cab7d67462a565e2388ac3285b71cb3d9bb2173de8da37c57692a362885ec34d6e27df
+ languageName: node
+ linkType: hard
+
"ansi-styles@npm:^6.2.1, ansi-styles@npm:^6.2.3":
version: 6.2.3
resolution: "ansi-styles@npm:6.2.3"
@@ -1192,6 +1764,15 @@ __metadata:
languageName: node
linkType: hard
+"aria-query@npm:5.3.0":
+ version: 5.3.0
+ resolution: "aria-query@npm:5.3.0"
+ dependencies:
+ dequal: "npm:^2.0.3"
+ checksum: 10c0/2bff0d4eba5852a9dd578ecf47eaef0e82cc52569b48469b0aac2db5145db0b17b7a58d9e01237706d1e14b7a1b0ac9b78e9c97027ad97679dd8f91b85da1469
+ languageName: node
+ linkType: hard
+
"assertion-error@npm:^2.0.1":
version: 2.0.1
resolution: "assertion-error@npm:2.0.1"
@@ -1246,6 +1827,17 @@ __metadata:
languageName: node
linkType: hard
+"babel-plugin-macros@npm:^3.1.0":
+ version: 3.1.0
+ resolution: "babel-plugin-macros@npm:3.1.0"
+ dependencies:
+ "@babel/runtime": "npm:^7.12.5"
+ cosmiconfig: "npm:^7.0.0"
+ resolve: "npm:^1.19.0"
+ checksum: 10c0/c6dfb15de96f67871d95bd2e8c58b0c81edc08b9b087dc16755e7157f357dc1090a8dc60ebab955e92587a9101f02eba07e730adc253a1e4cf593ca3ebd3839c
+ languageName: node
+ linkType: hard
+
"backo2@npm:^1.0.2":
version: 1.0.2
resolution: "backo2@npm:1.0.2"
@@ -1263,6 +1855,13 @@ __metadata:
languageName: node
linkType: hard
+"callsites@npm:^3.0.0":
+ version: 3.1.0
+ resolution: "callsites@npm:3.1.0"
+ checksum: 10c0/fff92277400eb06c3079f9e74f3af120db9f8ea03bad0e84d9aede54bbe2d44a56cccb5f6cf12211f93f52306df87077ecec5b712794c5a9b5dac6d615a3f301
+ languageName: node
+ linkType: hard
+
"chai@npm:^6.2.2":
version: 6.2.2
resolution: "chai@npm:6.2.2"
@@ -1333,6 +1932,13 @@ __metadata:
languageName: node
linkType: hard
+"clsx@npm:^2.1.1":
+ version: 2.1.1
+ resolution: "clsx@npm:2.1.1"
+ checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
+ languageName: node
+ linkType: hard
+
"code-excerpt@npm:^4.0.0":
version: 4.0.0
resolution: "code-excerpt@npm:4.0.0"
@@ -1358,6 +1964,13 @@ __metadata:
languageName: node
linkType: hard
+"convert-source-map@npm:^1.5.0":
+ version: 1.9.0
+ resolution: "convert-source-map@npm:1.9.0"
+ checksum: 10c0/281da55454bf8126cbc6625385928c43479f2060984180c42f3a86c8b8c12720a24eac260624a7d1e090004028d2dee78602330578ceec1a08e27cb8bb0a8a5b
+ languageName: node
+ linkType: hard
+
"convert-source-map@npm:^2.0.0":
version: 2.0.0
resolution: "convert-source-map@npm:2.0.0"
@@ -1372,18 +1985,72 @@ __metadata:
languageName: node
linkType: hard
-"debug@npm:4, debug@npm:^4.1.1":
- version: 4.4.3
- resolution: "debug@npm:4.4.3"
+"cosmiconfig@npm:^7.0.0":
+ version: 7.1.0
+ resolution: "cosmiconfig@npm:7.1.0"
dependencies:
- ms: "npm:^2.1.3"
- peerDependenciesMeta:
- supports-color:
+ "@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
+
+"cssstyle@npm:^4.2.1":
+ version: 4.6.0
+ resolution: "cssstyle@npm:4.6.0"
+ dependencies:
+ "@asamuzakjp/css-color": "npm:^3.2.0"
+ rrweb-cssom: "npm:^0.8.0"
+ checksum: 10c0/71add1b0ffafa1bedbef6855db6189b9523d3320e015a0bf3fbd504760efb9a81e1f1a225228d5fa892ee58e56d06994ca372e7f4e461cda7c4c9985fe075f65
+ languageName: node
+ linkType: hard
+
+"csstype@npm:^3.0.2, csstype@npm:^3.2.2":
+ version: 3.2.3
+ resolution: "csstype@npm:3.2.3"
+ checksum: 10c0/cd29c51e70fa822f1cecd8641a1445bed7063697469d35633b516e60fe8c1bde04b08f6c5b6022136bb669b64c63d4173af54864510fbb4ee23281801841a3ce
+ languageName: node
+ linkType: hard
+
+"data-urls@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "data-urls@npm:5.0.0"
+ dependencies:
+ whatwg-mimetype: "npm:^4.0.0"
+ whatwg-url: "npm:^14.0.0"
+ checksum: 10c0/1b894d7d41c861f3a4ed2ae9b1c3f0909d4575ada02e36d3d3bc584bdd84278e20709070c79c3b3bff7ac98598cb191eb3e86a89a79ea4ee1ef360e1694f92ad
+ languageName: node
+ linkType: hard
+
+"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.4":
+ version: 4.4.3
+ resolution: "debug@npm:4.4.3"
+ dependencies:
+ ms: "npm:^2.1.3"
+ peerDependenciesMeta:
+ supports-color:
optional: true
checksum: 10c0/d79136ec6c83ecbefd0f6a5593da6a9c91ec4d7ddc4b54c883d6e71ec9accb5f67a1a5e96d00a328196b5b5c86d365e98d8a3a70856aaf16b4e7b1985e67f5a6
languageName: node
linkType: hard
+"decimal.js@npm:^10.5.0":
+ version: 10.6.0
+ resolution: "decimal.js@npm:10.6.0"
+ checksum: 10c0/07d69fbcc54167a340d2d97de95f546f9ff1f69d2b45a02fd7a5292412df3cd9eb7e23065e532a318f5474a2e1bccf8392fdf0443ef467f97f3bf8cb0477e5aa
+ languageName: node
+ linkType: hard
+
"delayed-stream@npm:~1.0.0":
version: 1.0.0
resolution: "delayed-stream@npm:1.0.0"
@@ -1391,6 +2058,13 @@ __metadata:
languageName: node
linkType: hard
+"dequal@npm:^2.0.3":
+ version: 2.0.3
+ resolution: "dequal@npm:2.0.3"
+ checksum: 10c0/f98860cdf58b64991ae10205137c0e97d384c3a4edc7f807603887b7c4b850af1224a33d88012009f150861cbee4fa2d322c4cc04b9313bee312e47f6ecaa888
+ languageName: node
+ linkType: hard
+
"detect-libc@npm:^2.0.3, detect-libc@npm:^2.1.2":
version: 2.1.2
resolution: "detect-libc@npm:2.1.2"
@@ -1398,6 +2072,13 @@ __metadata:
languageName: node
linkType: hard
+"dom-accessibility-api@npm:^0.5.9":
+ version: 0.5.16
+ resolution: "dom-accessibility-api@npm:0.5.16"
+ checksum: 10c0/b2c2eda4fae568977cdac27a9f0c001edf4f95a6a6191dfa611e3721db2478d1badc01db5bb4fa8a848aeee13e442a6c2a4386d65ec65a1436f24715a2f8d053
+ languageName: node
+ linkType: hard
+
"dunder-proto@npm:^1.0.1":
version: 1.0.1
resolution: "dunder-proto@npm:1.0.1"
@@ -1416,6 +2097,13 @@ __metadata:
languageName: node
linkType: hard
+"entities@npm:^6.0.0":
+ version: 6.0.1
+ resolution: "entities@npm:6.0.1"
+ checksum: 10c0/ed836ddac5acb34341094eb495185d527bd70e8632b6c0d59548cbfa23defdbae70b96f9a405c82904efa421230b5b3fd2283752447d737beffd3f3e6ee74414
+ languageName: node
+ linkType: hard
+
"env-paths@npm:^2.2.0":
version: 2.2.1
resolution: "env-paths@npm:2.2.1"
@@ -1430,6 +2118,15 @@ __metadata:
languageName: node
linkType: hard
+"error-ex@npm:^1.3.1":
+ version: 1.3.4
+ resolution: "error-ex@npm:1.3.4"
+ dependencies:
+ is-arrayish: "npm:^0.2.1"
+ checksum: 10c0/b9e34ff4778b8f3b31a8377e1c654456f4c41aeaa3d10a1138c3b7635d8b7b2e03eb2475d46d8ae055c1f180a1063e100bffabf64ea7e7388b37735df5328664
+ languageName: node
+ linkType: hard
+
"es-define-property@npm:^1.0.1":
version: 1.0.1
resolution: "es-define-property@npm:1.0.1"
@@ -1582,6 +2279,13 @@ __metadata:
languageName: node
linkType: hard
+"escape-string-regexp@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "escape-string-regexp@npm:4.0.0"
+ checksum: 10c0/9497d4dd307d845bd7f75180d8188bb17ea8c151c1edbf6b6717c100e104d629dc2dfb687686181b0f4b7d732c7dfdc4d5e7a8ff72de1b0ca283a75bbb3a9cd9
+ languageName: node
+ linkType: hard
+
"estree-walker@npm:^3.0.3":
version: 3.0.3
resolution: "estree-walker@npm:3.0.3"
@@ -1649,6 +2353,13 @@ __metadata:
languageName: node
linkType: hard
+"find-root@npm:^1.1.0":
+ version: 1.1.0
+ resolution: "find-root@npm:1.1.0"
+ checksum: 10c0/1abc7f3bf2f8d78ff26d9e00ce9d0f7b32e5ff6d1da2857bcdf4746134c422282b091c672cde0572cac3840713487e0a7a636af9aa1b74cb11894b447a521efa
+ languageName: node
+ linkType: hard
+
"follow-redirects@npm:^1.16.0":
version: 1.16.0
resolution: "follow-redirects@npm:1.16.0"
@@ -1812,6 +2523,34 @@ __metadata:
languageName: node
linkType: hard
+"hoist-non-react-statics@npm:^3.3.1":
+ version: 3.3.2
+ resolution: "hoist-non-react-statics@npm:3.3.2"
+ dependencies:
+ react-is: "npm:^16.7.0"
+ checksum: 10c0/fe0889169e845d738b59b64badf5e55fa3cf20454f9203d1eb088df322d49d4318df774828e789898dcb280e8a5521bb59b3203385662ca5e9218a6ca5820e74
+ languageName: node
+ linkType: hard
+
+"html-encoding-sniffer@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "html-encoding-sniffer@npm:4.0.0"
+ dependencies:
+ whatwg-encoding: "npm:^3.1.1"
+ checksum: 10c0/523398055dc61ac9b34718a719cb4aa691e4166f29187e211e1607de63dc25ac7af52ca7c9aead0c4b3c0415ffecb17326396e1202e2e86ff4bca4c0ee4c6140
+ languageName: node
+ linkType: hard
+
+"http-proxy-agent@npm:^7.0.2":
+ version: 7.0.2
+ resolution: "http-proxy-agent@npm:7.0.2"
+ dependencies:
+ agent-base: "npm:^7.1.0"
+ debug: "npm:^4.3.4"
+ checksum: 10c0/4207b06a4580fb85dd6dff521f0abf6db517489e70863dca1a0291daa7f2d3d2d6015a57bd702af068ea5cf9f1f6ff72314f5f5b4228d299c0904135d2aef921
+ languageName: node
+ linkType: hard
+
"https-proxy-agent@npm:^5.0.1":
version: 5.0.1
resolution: "https-proxy-agent@npm:5.0.1"
@@ -1822,6 +2561,32 @@ __metadata:
languageName: node
linkType: hard
+"https-proxy-agent@npm:^7.0.6":
+ version: 7.0.6
+ resolution: "https-proxy-agent@npm:7.0.6"
+ dependencies:
+ agent-base: "npm:^7.1.2"
+ debug: "npm:4"
+ checksum: 10c0/f729219bc735edb621fa30e6e84e60ee5d00802b8247aac0d7b79b0bd6d4b3294737a337b93b86a0bd9e68099d031858a39260c976dc14cdbba238ba1f8779ac
+ languageName: node
+ linkType: hard
+
+"hyphenate-style-name@npm:^1.0.0":
+ version: 1.1.0
+ resolution: "hyphenate-style-name@npm:1.1.0"
+ checksum: 10c0/bfe88deac2414a41a0d08811e277c8c098f23993d6a1eb17f14a0f11b54c4d42865a63d3cfe1914668eefb9a188e2de58f38b55a179a238fd1fef606893e194f
+ languageName: node
+ linkType: hard
+
+"iconv-lite@npm:0.6.3":
+ version: 0.6.3
+ resolution: "iconv-lite@npm:0.6.3"
+ dependencies:
+ safer-buffer: "npm:>= 2.1.2 < 3.0.0"
+ checksum: 10c0/98102bc66b33fcf5ac044099d1257ba0b7ad5e3ccd3221f34dd508ab4070edff183276221684e1e0555b145fce0850c9f7d2b60a9fcac50fbb4ea0d6e845a3b1
+ languageName: node
+ linkType: hard
+
"iconv-lite@npm:^0.7.2":
version: 0.7.3
resolution: "iconv-lite@npm:0.7.3"
@@ -1831,6 +2596,16 @@ __metadata:
languageName: node
linkType: hard
+"import-fresh@npm:^3.2.1":
+ version: 3.3.1
+ resolution: "import-fresh@npm:3.3.1"
+ dependencies:
+ parent-module: "npm:^1.0.0"
+ resolve-from: "npm:^4.0.0"
+ checksum: 10c0/bf8cc494872fef783249709385ae883b447e3eb09db0ebd15dcead7d9afe7224dad7bd7591c6b73b0b19b3c0f9640eb8ee884f01cfaf2887ab995b0b36a0cbec
+ languageName: node
+ linkType: hard
+
"indent-string@npm:^5.0.0":
version: 5.0.0
resolution: "indent-string@npm:5.0.0"
@@ -1899,6 +2674,22 @@ __metadata:
languageName: node
linkType: hard
+"is-arrayish@npm:^0.2.1":
+ version: 0.2.1
+ resolution: "is-arrayish@npm:0.2.1"
+ checksum: 10c0/e7fb686a739068bb70f860b39b67afc62acc62e36bb61c5f965768abce1873b379c563e61dd2adad96ebb7edf6651111b385e490cf508378959b0ed4cac4e729
+ languageName: node
+ linkType: hard
+
+"is-core-module@npm:^2.16.1":
+ version: 2.17.0
+ resolution: "is-core-module@npm:2.17.0"
+ dependencies:
+ hasown: "npm:^2.0.4"
+ checksum: 10c0/3dc7c15ea42f846180cd2cdd57af62270e0a8d0ed31c17c85735d554089d39975e2e82e65fc7c8280a3c476ca3d0d09992d0860b4998abb769a277341feb6698
+ languageName: node
+ linkType: hard
+
"is-fullwidth-code-point@npm:^5.0.0, is-fullwidth-code-point@npm:^5.1.0":
version: 5.1.0
resolution: "is-fullwidth-code-point@npm:5.1.0"
@@ -1917,6 +2708,13 @@ __metadata:
languageName: node
linkType: hard
+"is-potential-custom-element-name@npm:^1.0.1":
+ version: 1.0.1
+ resolution: "is-potential-custom-element-name@npm:1.0.1"
+ checksum: 10c0/b73e2f22bc863b0939941d369486d308b43d7aef1f9439705e3582bfccaa4516406865e32c968a35f97a99396dac84e2624e67b0a16b0a15086a785e16ce7db9
+ languageName: node
+ linkType: hard
+
"isexe@npm:^4.0.0":
version: 4.0.0
resolution: "isexe@npm:4.0.0"
@@ -1948,6 +2746,62 @@ __metadata:
languageName: node
linkType: hard
+"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "js-tokens@npm:4.0.0"
+ checksum: 10c0/e248708d377aa058eacf2037b07ded847790e6de892bbad3dac0abba2e759cb9f121b00099a65195616badcb6eca8d14d975cb3e89eb1cfda644756402c8aeed
+ languageName: node
+ linkType: hard
+
+"jsdom@npm:^26.1.0":
+ version: 26.1.0
+ resolution: "jsdom@npm:26.1.0"
+ dependencies:
+ cssstyle: "npm:^4.2.1"
+ data-urls: "npm:^5.0.0"
+ decimal.js: "npm:^10.5.0"
+ html-encoding-sniffer: "npm:^4.0.0"
+ http-proxy-agent: "npm:^7.0.2"
+ https-proxy-agent: "npm:^7.0.6"
+ is-potential-custom-element-name: "npm:^1.0.1"
+ nwsapi: "npm:^2.2.16"
+ parse5: "npm:^7.2.1"
+ rrweb-cssom: "npm:^0.8.0"
+ saxes: "npm:^6.0.0"
+ symbol-tree: "npm:^3.2.4"
+ tough-cookie: "npm:^5.1.1"
+ w3c-xmlserializer: "npm:^5.0.0"
+ webidl-conversions: "npm:^7.0.0"
+ whatwg-encoding: "npm:^3.1.1"
+ whatwg-mimetype: "npm:^4.0.0"
+ whatwg-url: "npm:^14.1.1"
+ ws: "npm:^8.18.0"
+ xml-name-validator: "npm:^5.0.0"
+ peerDependencies:
+ canvas: ^3.0.0
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+ checksum: 10c0/5b14a5bc32ce077a06fb42d1ab95b1191afa5cbbce8859e3b96831c5143becbbcbf0511d4d4934e922d2901443ced2cdc3b734c1cf30b5f73b3e067ce457d0f4
+ languageName: node
+ linkType: hard
+
+"jsesc@npm:^3.0.2":
+ version: 3.1.0
+ resolution: "jsesc@npm:3.1.0"
+ bin:
+ jsesc: bin/jsesc
+ checksum: 10c0/531779df5ec94f47e462da26b4cbf05eb88a83d9f08aac2ba04206508fc598527a153d08bd462bae82fc78b3eaa1a908e1a4a79f886e9238641c4cdefaf118b1
+ languageName: node
+ linkType: hard
+
+"json-parse-even-better-errors@npm:^2.3.0":
+ version: 2.3.1
+ resolution: "json-parse-even-better-errors@npm:2.3.1"
+ checksum: 10c0/140932564c8f0b88455432e0f33c4cb4086b8868e37524e07e723f4eaedb9425bdc2bafd71bd1d9765bd15fd1e2d126972bc83990f55c467168c228c24d665f3
+ languageName: node
+ linkType: hard
+
"jsonc-parser@npm:^3.2.0":
version: 3.3.1
resolution: "jsonc-parser@npm:3.3.1"
@@ -2075,6 +2929,13 @@ __metadata:
languageName: node
linkType: hard
+"lines-and-columns@npm:^1.1.6":
+ version: 1.2.4
+ resolution: "lines-and-columns@npm:1.2.4"
+ checksum: 10c0/3da6ee62d4cd9f03f5dc90b4df2540fb85b352081bee77fe4bbcd12c9000ead7f35e0a38b8d09a9bb99b13223446dd8689ff3c4959807620726d788701a83d2d
+ languageName: node
+ linkType: hard
+
"lodash@npm:^4.17.20, lodash@npm:^4.17.21":
version: 4.18.1
resolution: "lodash@npm:4.18.1"
@@ -2082,6 +2943,33 @@ __metadata:
languageName: node
linkType: hard
+"loose-envify@npm:^1.4.0":
+ version: 1.4.0
+ resolution: "loose-envify@npm:1.4.0"
+ dependencies:
+ js-tokens: "npm:^3.0.0 || ^4.0.0"
+ bin:
+ loose-envify: cli.js
+ checksum: 10c0/655d110220983c1a4b9c0c679a2e8016d4b67f6e9c7b5435ff5979ecdb20d0813f4dec0a08674fcbdd4846a3f07edbb50a36811fd37930b94aaa0d9daceb017e
+ languageName: node
+ linkType: hard
+
+"lru-cache@npm:^10.4.3":
+ version: 10.4.3
+ resolution: "lru-cache@npm:10.4.3"
+ checksum: 10c0/ebd04fbca961e6c1d6c0af3799adcc966a1babe798f685bb84e6599266599cd95d94630b10262f5424539bc4640107e8a33aa28585374abf561d30d16f4b39fb
+ languageName: node
+ linkType: hard
+
+"lz-string@npm:^1.5.0":
+ version: 1.5.0
+ resolution: "lz-string@npm:1.5.0"
+ bin:
+ lz-string: bin/bin.js
+ checksum: 10c0/36128e4de34791838abe979b19927c26e67201ca5acf00880377af7d765b38d1c60847e01c5ec61b1a260c48029084ab3893a3925fd6e48a04011364b089991b
+ languageName: node
+ linkType: hard
+
"magic-string@npm:^0.30.21":
version: 0.30.21
resolution: "magic-string@npm:0.30.21"
@@ -2091,6 +2979,15 @@ __metadata:
languageName: node
linkType: hard
+"matchmediaquery@npm:^0.3.0":
+ version: 0.3.1
+ resolution: "matchmediaquery@npm:0.3.1"
+ dependencies:
+ css-mediaquery: "npm:^0.1.2"
+ checksum: 10c0/19a254e0a1eb639fcc6aa7428a6e2d36cb5646a165579897e771580653e470b43d7f4a224c522700dbf1d8f19fb7c63a9719e0a6017727ade967155a2ae89fea
+ languageName: node
+ linkType: hard
+
"math-intrinsics@npm:^1.1.0":
version: 1.1.0
resolution: "math-intrinsics@npm:1.1.0"
@@ -2205,6 +3102,20 @@ __metadata:
languageName: node
linkType: hard
+"nwsapi@npm:^2.2.16":
+ version: 2.2.28
+ resolution: "nwsapi@npm:2.2.28"
+ checksum: 10c0/8fb5ce37f352d48d64f631e5fe10346ba24010de3671dc4174783504c07912b5d44d0d507fe13ba461a7c8b8173e35f902605228b9a71be18bd3d62ba9e951ed
+ languageName: node
+ linkType: hard
+
+"object-assign@npm:^4.1.1":
+ version: 4.1.1
+ resolution: "object-assign@npm:4.1.1"
+ checksum: 10c0/1f4df9945120325d041ccf7b86f31e8bcc14e73d29171e37a7903050e96b81323784ec59f93f102ec635bcf6fa8034ba3ea0a8c7e69fa202b87ae3b6cec5a414
+ languageName: node
+ linkType: hard
+
"obug@npm:^2.1.1":
version: 2.2.1
resolution: "obug@npm:2.2.1"
@@ -2257,6 +3168,36 @@ __metadata:
languageName: node
linkType: hard
+"parent-module@npm:^1.0.0":
+ version: 1.0.1
+ resolution: "parent-module@npm:1.0.1"
+ dependencies:
+ callsites: "npm:^3.0.0"
+ checksum: 10c0/c63d6e80000d4babd11978e0d3fee386ca7752a02b035fd2435960ffaa7219dc42146f07069fb65e6e8bf1caef89daf9af7535a39bddf354d78bf50d8294f556
+ languageName: node
+ linkType: hard
+
+"parse-json@npm:^5.0.0":
+ version: 5.2.0
+ resolution: "parse-json@npm:5.2.0"
+ dependencies:
+ "@babel/code-frame": "npm:^7.0.0"
+ error-ex: "npm:^1.3.1"
+ json-parse-even-better-errors: "npm:^2.3.0"
+ lines-and-columns: "npm:^1.1.6"
+ checksum: 10c0/77947f2253005be7a12d858aedbafa09c9ae39eb4863adf330f7b416ca4f4a08132e453e08de2db46459256fb66afaac5ee758b44fe6541b7cdaf9d252e59585
+ languageName: node
+ linkType: hard
+
+"parse5@npm:^7.2.1":
+ version: 7.3.0
+ resolution: "parse5@npm:7.3.0"
+ dependencies:
+ entities: "npm:^6.0.0"
+ checksum: 10c0/7fd2e4e247e85241d6f2a464d0085eed599a26d7b0a5233790c49f53473232eb85350e8133344d9b3fd58b89339e7ad7270fe1f89d28abe50674ec97b87f80b5
+ languageName: node
+ linkType: hard
+
"patch-console@npm:^2.0.0":
version: 2.0.0
resolution: "patch-console@npm:2.0.0"
@@ -2264,6 +3205,20 @@ __metadata:
languageName: node
linkType: hard
+"path-parse@npm:^1.0.7":
+ version: 1.0.7
+ resolution: "path-parse@npm:1.0.7"
+ checksum: 10c0/11ce261f9d294cc7a58d6a574b7f1b935842355ec66fba3c3fd79e0f036462eaf07d0aa95bb74ff432f9afef97ce1926c720988c6a7451d8a584930ae7de86e1
+ languageName: node
+ linkType: hard
+
+"path-type@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "path-type@npm:4.0.0"
+ checksum: 10c0/666f6973f332f27581371efaf303fd6c272cc43c2057b37aa99e3643158c7e4b2626549555d88626e99ea9e046f82f32e41bbde5f1508547e9a11b149b52387c
+ languageName: node
+ linkType: hard
+
"pathe@npm:^2.0.3":
version: 2.0.3
resolution: "pathe@npm:2.0.3"
@@ -2271,7 +3226,7 @@ __metadata:
languageName: node
linkType: hard
-"picocolors@npm:^1.1.1":
+"picocolors@npm:1.1.1, picocolors@npm:^1.1.1":
version: 1.1.1
resolution: "picocolors@npm:1.1.1"
checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
@@ -2317,6 +3272,17 @@ __metadata:
languageName: node
linkType: hard
+"pretty-format@npm:^27.0.2":
+ version: 27.5.1
+ resolution: "pretty-format@npm:27.5.1"
+ dependencies:
+ ansi-regex: "npm:^5.0.1"
+ ansi-styles: "npm:^5.0.0"
+ react-is: "npm:^17.0.1"
+ checksum: 10c0/0cbda1031aa30c659e10921fa94e0dd3f903ecbbbe7184a729ad66f2b6e7f17891e8c7d7654c458fa4ccb1a411ffb695b4f17bbcd3fe075fabe181027c4040ed
+ languageName: node
+ linkType: hard
+
"proc-log@npm:^7.0.0":
version: 7.0.0
resolution: "proc-log@npm:7.0.0"
@@ -2324,6 +3290,17 @@ __metadata:
languageName: node
linkType: hard
+"prop-types@npm:^15.6.1":
+ version: 15.8.1
+ resolution: "prop-types@npm:15.8.1"
+ dependencies:
+ loose-envify: "npm:^1.4.0"
+ object-assign: "npm:^4.1.1"
+ react-is: "npm:^16.13.1"
+ checksum: 10c0/59ece7ca2fb9838031d73a48d4becb9a7cc1ed10e610517c7d8f19a1e02fa47f7c27d557d8a5702bec3cfeccddc853579832b43f449e54635803f277b1c78077
+ languageName: node
+ linkType: hard
+
"proxy-from-env@npm:^2.1.0":
version: 2.1.0
resolution: "proxy-from-env@npm:2.1.0"
@@ -2331,7 +3308,14 @@ __metadata:
languageName: node
linkType: hard
-"react-dom@npm:^19.2.0":
+"punycode@npm:^2.3.1":
+ version: 2.3.1
+ resolution: "punycode@npm:2.3.1"
+ checksum: 10c0/14f76a8206bc3464f794fb2e3d3cc665ae416c01893ad7a02b23766eb07159144ee612ad67af5e84fa4479ccfe67678c4feb126b0485651b302babf66f04f9e9
+ languageName: node
+ linkType: hard
+
+"react-dom@npm:^19.0.0, react-dom@npm:^19.2.0":
version: 19.3.0
resolution: "react-dom@npm:19.3.0"
dependencies:
@@ -2342,6 +3326,20 @@ __metadata:
languageName: node
linkType: hard
+"react-is@npm:^16.13.1, react-is@npm:^16.7.0":
+ version: 16.13.1
+ resolution: "react-is@npm:16.13.1"
+ checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1
+ languageName: node
+ linkType: hard
+
+"react-is@npm:^17.0.1":
+ version: 17.0.2
+ resolution: "react-is@npm:17.0.2"
+ checksum: 10c0/2bdb6b93fbb1820b024b496042cce405c57e2f85e777c9aabd55f9b26d145408f9f74f5934676ffdc46f3dcff656d78413a6e43968e7b3f92eea35b3052e9053
+ languageName: node
+ linkType: hard
+
"react-reconciler@npm:^0.33.0":
version: 0.33.0
resolution: "react-reconciler@npm:0.33.0"
@@ -2353,7 +3351,45 @@ __metadata:
languageName: node
linkType: hard
-"react@npm:^19.2.0":
+"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.30.6":
+ 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.3.0
resolution: "react@npm:19.3.0"
checksum: 10c0/dd3099c3c43a7122bc01223bb26b0f8d5ba13cca569af6fb94a005fb54fa73223c9cb203bb226d40cfd49a82cbeef2e36ce84062a3a6d5b9fe8f4437694c7b52
@@ -2367,6 +3403,48 @@ __metadata:
languageName: node
linkType: 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.0
resolution: "restore-cursor@npm:4.0.0"
@@ -2435,6 +3513,13 @@ __metadata:
languageName: node
linkType: hard
+"rrweb-cssom@npm:^0.8.0":
+ version: 0.8.0
+ resolution: "rrweb-cssom@npm:0.8.0"
+ checksum: 10c0/56f2bfd56733adb92c0b56e274c43f864b8dd48784d6fe946ef5ff8d438234015e59ad837fc2ad54714b6421384141c1add4eb569e72054e350d1f8a50b8ac7b
+ languageName: node
+ linkType: hard
+
"run-async@npm:^4.0.6":
version: 4.0.6
resolution: "run-async@npm:4.0.6"
@@ -2449,6 +3534,15 @@ __metadata:
languageName: node
linkType: hard
+"saxes@npm:^6.0.0":
+ version: 6.0.0
+ resolution: "saxes@npm:6.0.0"
+ dependencies:
+ xmlchars: "npm:^2.2.0"
+ checksum: 10c0/3847b839f060ef3476eb8623d099aa502ad658f5c40fd60c105ebce86d244389b0d76fcae30f4d0c728d7705ceb2f7e9b34bb54717b6a7dbedaf5dad2d9a4b74
+ languageName: node
+ linkType: hard
+
"scheduler@npm:^0.27.0":
version: 0.27.0
resolution: "scheduler@npm:0.27.0"
@@ -2481,6 +3575,13 @@ __metadata:
languageName: node
linkType: hard
+"shallow-equal@npm:^1.2.1":
+ version: 1.2.1
+ resolution: "shallow-equal@npm:1.2.1"
+ checksum: 10c0/51e03abadd97c9ebe590547d92db9148446962a3f23a3a0fb1ba2fccab80af881eef0ff1f8ccefd3f066c0bc5a4c8ca53706194813b95c8835fa66448a843a26
+ languageName: node
+ linkType: hard
+
"sharp@npm:^0.35.3":
version: 0.35.4
resolution: "sharp@npm:0.35.4"
@@ -2609,6 +3710,13 @@ __metadata:
languageName: node
linkType: hard
+"source-map@npm:^0.5.7":
+ version: 0.5.7
+ resolution: "source-map@npm:0.5.7"
+ checksum: 10c0/904e767bb9c494929be013017380cbba013637da1b28e5943b566031e29df04fba57edf3f093e0914be094648b577372bd8ad247fa98cfba9c600794cd16b599
+ languageName: node
+ linkType: hard
+
"stack-utils@npm:^2.0.6":
version: 2.0.6
resolution: "stack-utils@npm:2.0.6"
@@ -2625,6 +3733,13 @@ __metadata:
languageName: node
linkType: hard
+"state-local@npm:^1.0.6":
+ version: 1.0.7
+ resolution: "state-local@npm:1.0.7"
+ checksum: 10c0/8dc7daeac71844452fafb514a6d6b6f40d7e2b33df398309ea1c7b3948d6110c57f112b7196500a10c54fdde40291488c52c875575670fb5c819602deca48bd9
+ languageName: node
+ linkType: hard
+
"std-env@npm:^4.0.0-rc.1":
version: 4.2.0
resolution: "std-env@npm:4.2.0"
@@ -2662,6 +3777,13 @@ __metadata:
languageName: node
linkType: hard
+"stylis@npm:4.2.0":
+ version: 4.2.0
+ resolution: "stylis@npm:4.2.0"
+ checksum: 10c0/a7128ad5a8ed72652c6eba46bed4f416521bc9745a460ef5741edc725252cebf36ee45e33a8615a7057403c93df0866ab9ee955960792db210bb80abd5ac6543
+ languageName: node
+ linkType: hard
+
"subscriptions-transport-ws@npm:^0.9.16":
version: 0.9.19
resolution: "subscriptions-transport-ws@npm:0.9.19"
@@ -2677,6 +3799,13 @@ __metadata:
languageName: node
linkType: hard
+"supports-preserve-symlinks-flag@npm:^1.0.0":
+ version: 1.0.0
+ resolution: "supports-preserve-symlinks-flag@npm:1.0.0"
+ checksum: 10c0/6c4032340701a9950865f7ae8ef38578d8d7053f5e10518076e6554a9381fa91bd9c6850193695c141f32b21f979c985db07265a758867bac95de05f7d8aeb39
+ languageName: node
+ linkType: hard
+
"symbol-observable@npm:^1.0.4":
version: 1.2.0
resolution: "symbol-observable@npm:1.2.0"
@@ -2684,6 +3813,13 @@ __metadata:
languageName: node
linkType: hard
+"symbol-tree@npm:^3.2.4":
+ version: 3.2.4
+ resolution: "symbol-tree@npm:3.2.4"
+ checksum: 10c0/dfbe201ae09ac6053d163578778c53aa860a784147ecf95705de0cd23f42c851e1be7889241495e95c37cabb058edb1052f141387bef68f705afc8f9dd358509
+ languageName: node
+ linkType: hard
+
"tagged-tag@npm:^1.0.0":
version: 1.0.0
resolution: "tagged-tag@npm:1.0.0"
@@ -2742,6 +3878,42 @@ __metadata:
languageName: node
linkType: hard
+"tldts-core@npm:^6.1.86":
+ version: 6.1.86
+ resolution: "tldts-core@npm:6.1.86"
+ checksum: 10c0/8133c29375f3f99f88fce5f4d62f6ecb9532b106f31e5423b27c1eb1b6e711bd41875184a456819ceaed5c8b94f43911b1ad57e25c6eb86e1fc201228ff7e2af
+ languageName: node
+ linkType: hard
+
+"tldts@npm:^6.1.32":
+ version: 6.1.86
+ resolution: "tldts@npm:6.1.86"
+ dependencies:
+ tldts-core: "npm:^6.1.86"
+ bin:
+ tldts: bin/cli.js
+ checksum: 10c0/27ae7526d9d78cb97b2de3f4d102e0b4321d1ccff0648a7bb0e039ed54acbce86bacdcd9cd3c14310e519b457854e7bafbef1f529f58a1e217a737ced63f0940
+ languageName: node
+ linkType: hard
+
+"tough-cookie@npm:^5.1.1":
+ version: 5.1.2
+ resolution: "tough-cookie@npm:5.1.2"
+ dependencies:
+ tldts: "npm:^6.1.32"
+ checksum: 10c0/5f95023a47de0f30a902bba951664b359725597d8adeabc66a0b93a931c3af801e1e697dae4b8c21a012056c0ea88bd2bf4dfe66b2adcf8e2f42cd9796fe0626
+ languageName: node
+ linkType: hard
+
+"tr46@npm:^5.1.0":
+ version: 5.1.1
+ resolution: "tr46@npm:5.1.1"
+ dependencies:
+ punycode: "npm:^2.3.1"
+ checksum: 10c0/ae270e194d52ec67ebd695c1a42876e0f19b96e4aca2ab464ab1d9d17dc3acd3e18764f5034c93897db73421563be27c70c98359c4501136a497e46deda5d5ec
+ languageName: node
+ linkType: hard
+
"tr46@npm:~0.0.3":
version: 0.0.3
resolution: "tr46@npm:0.0.3"
@@ -2777,7 +3949,7 @@ __metadata:
languageName: node
linkType: hard
-"twenty-client-sdk@npm:2.41.0":
+"twenty-client-sdk@npm:2.41.0, twenty-client-sdk@npm:^2.41.0":
version: 2.41.0
resolution: "twenty-client-sdk@npm:2.41.0"
dependencies:
@@ -2820,6 +3992,34 @@ __metadata:
languageName: node
linkType: hard
+"twenty-ui@npm:^1.0.0-alpha.1":
+ version: 1.0.0-alpha.2
+ resolution: "twenty-ui@npm:1.0.0-alpha.2"
+ dependencies:
+ "@base-ui/react": "npm:^1.8.0"
+ "@monaco-editor/react": "npm:^4.7.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.30.6"
+ 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/988710d4df2b1c13ddcb96d5d7b89fbcbeb1659df09a5fff2abac774cf34df32f48db926c29ad4caac3fb1404321158462b04794a2a8349f6a51aaa86a9a1826
+ 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.9.0
resolution: "type-fest@npm:5.9.0"
@@ -2877,6 +4077,15 @@ __metadata:
languageName: node
linkType: hard
+"use-sync-external-store@npm:^1.6.0":
+ version: 1.7.0
+ resolution: "use-sync-external-store@npm:1.7.0"
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ checksum: 10c0/6bae7cb778ce611131ec830c4e469fbc2872acefc25d2e4cf1c28b8628690689770742a9f2f0642c95134f9c77041fee60f0352f81ca43f96643b0ed01774726
+ languageName: node
+ linkType: hard
+
"utility-types@npm:^3.10.0":
version: 3.11.0
resolution: "utility-types@npm:3.11.0"
@@ -3034,6 +4243,15 @@ __metadata:
languageName: node
linkType: hard
+"w3c-xmlserializer@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "w3c-xmlserializer@npm:5.0.0"
+ dependencies:
+ xml-name-validator: "npm:^5.0.0"
+ checksum: 10c0/8712774c1aeb62dec22928bf1cdfd11426c2c9383a1a63f2bcae18db87ca574165a0fbe96b312b73652149167ac6c7f4cf5409f2eb101d9c805efe0e4bae798b
+ languageName: node
+ linkType: hard
+
"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"
@@ -3041,6 +4259,39 @@ __metadata:
languageName: node
linkType: hard
+"webidl-conversions@npm:^7.0.0":
+ version: 7.0.0
+ resolution: "webidl-conversions@npm:7.0.0"
+ checksum: 10c0/228d8cb6d270c23b0720cb2d95c579202db3aaf8f633b4e9dd94ec2000a04e7e6e43b76a94509cdb30479bd00ae253ab2371a2da9f81446cc313f89a4213a2c4
+ languageName: node
+ linkType: hard
+
+"whatwg-encoding@npm:^3.1.1":
+ version: 3.1.1
+ resolution: "whatwg-encoding@npm:3.1.1"
+ dependencies:
+ iconv-lite: "npm:0.6.3"
+ checksum: 10c0/273b5f441c2f7fda3368a496c3009edbaa5e43b71b09728f90425e7f487e5cef9eb2b846a31bd760dd8077739c26faf6b5ca43a5f24033172b003b72cf61a93e
+ languageName: node
+ linkType: hard
+
+"whatwg-mimetype@npm:^4.0.0":
+ version: 4.0.0
+ resolution: "whatwg-mimetype@npm:4.0.0"
+ checksum: 10c0/a773cdc8126b514d790bdae7052e8bf242970cebd84af62fb2f35a33411e78e981f6c0ab9ed1fe6ec5071b09d5340ac9178e05b52d35a9c4bcf558ba1b1551df
+ languageName: node
+ linkType: hard
+
+"whatwg-url@npm:^14.0.0, whatwg-url@npm:^14.1.1":
+ version: 14.2.0
+ resolution: "whatwg-url@npm:14.2.0"
+ dependencies:
+ tr46: "npm:^5.1.0"
+ webidl-conversions: "npm:^7.0.0"
+ checksum: 10c0/f746fc2f4c906607d09537de1227b13f9494c171141e5427ed7d2c0dd0b6a48b43d8e71abaae57d368d0c06b673fd8ec63550b32ad5ed64990c7b0266c2b4272
+ languageName: node
+ linkType: hard
+
"whatwg-url@npm:^5.0.0":
version: 5.0.0
resolution: "whatwg-url@npm:5.0.0"
@@ -3133,6 +4384,20 @@ __metadata:
languageName: node
linkType: hard
+"xml-name-validator@npm:^5.0.0":
+ version: 5.0.0
+ resolution: "xml-name-validator@npm:5.0.0"
+ checksum: 10c0/3fcf44e7b73fb18be917fdd4ccffff3639373c7cb83f8fc35df6001fecba7942f1dbead29d91ebb8315e2f2ff786b508f0c9dc0215b6353f9983c6b7d62cb1f5
+ languageName: node
+ linkType: hard
+
+"xmlchars@npm:^2.2.0":
+ version: 2.2.0
+ resolution: "xmlchars@npm:2.2.0"
+ checksum: 10c0/b64b535861a6f310c5d9bfa10834cf49127c71922c297da9d4d1b45eeaae40bf9b4363275876088fbe2667e5db028d2cd4f8ee72eed9bede840a67d57dab7593
+ languageName: node
+ linkType: hard
+
"yallist@npm:^5.0.0":
version: 5.0.0
resolution: "yallist@npm:5.0.0"
@@ -3140,6 +4405,13 @@ __metadata:
languageName: node
linkType: hard
+"yaml@npm:^1.10.0":
+ version: 1.10.3
+ resolution: "yaml@npm:1.10.3"
+ checksum: 10c0/c309ff85a0a569a981d71ab9cf0fef68672a16b9cdf40639d1c3b30034f6cd16ee428602bd6d64ecf006f8c8bee499023cac236538f79898aa99fb5db529a2ed
+ languageName: node
+ linkType: hard
+
"yoga-layout@npm:~3.2.1":
version: 3.2.1
resolution: "yoga-layout@npm:3.2.1"
@@ -3163,3 +4435,10 @@ __metadata:
checksum: 10c0/71cc2f2bbb537300c3f569e25693d37b3bc91f225cefce251a71c30bc6bb3e7f8e9420ca0eb57f2ac9e492b085b8dfa075fd1e8195c40b83c951dd59c6e4fbf8
languageName: node
linkType: hard
+
+"zod@npm:^4.1.11":
+ version: 4.6.5
+ resolution: "zod@npm:4.6.5"
+ checksum: 10c0/32eb6c5e98becbe045675b2141c3611451c16ba567f9779231d79af41c4d651ca1c22f154aef7e6c6e77b929f23e43f1154ca05b82e119e922353725d6776af5
+ languageName: node
+ linkType: hard