The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Rename the Teams feature flags to release flags (#28347)
nitin70a3a8247038
diff --git a/packages/twenty-apps/public/teams/SETUP.md b/packages/twenty-apps/public/teams/SETUP.mdindex bfbe0d5bc32..1b0b3c08b42 100644--- a/packages/twenty-apps/public/teams/SETUP.md+++ b/packages/twenty-apps/public/teams/SETUP.md@@ -64,7 +64,7 @@ three credentials before bot operations can run.Chat lets workspace members message the Teams Assistant bot from MicrosoftTeams. It needs the [bot server variables](#bot-server-variables), the-`IS_CHAT_ASSISTANT_ENABLED` release flag, and the workspace's **Enable chat**+`IS_CHAT_ASSISTANT_RELEASED` release flag, and the workspace's **Enable chat**setting.1. In the Azure Bot resource, set the messaging endpoint to@@ -118,7 +118,7 @@ write or rewrite their summary, up to 20 calls at a time.## Test the transcript actions-1. For a development build, set `IS_TRANSCRIPT_IMPORT_ENABLED` to `true`, then+1. For a development build, set `IS_TRANSCRIPT_IMPORT_RELEASED` to `true`, thenrebuild and deploy the app.2. Schedule a Teams meeting with the connected account, join it at itsscheduled time, start transcription, speak, and end the meeting. Microsoft@@ -144,7 +144,7 @@ References: [Microsoft authorization code flow](https://learn.microsoft.com/en-uand [transcript permissions](https://learn.microsoft.com/en-us/graph/api/onlinemeeting-list-transcripts?view=graph-rest-1.0),plus [Teams transcript API access settings](https://learn.microsoft.com/en-us/microsoftteams/meeting-transcript-api-access).-## Features, settings, and feature flags+## Features, settings, and release flags- **Features** are the product areas: chat and transcripts. Their code, settingscomponents, identifiers, and tests live in `src/features/chat` and@@ -155,20 +155,21 @@ plus [Teams transcript API access settings](https://learn.microsoft.com/en-us/miSettings** manages chat and transcript summaries; transcripts are on bydefault and have no switch. Updates use the metadata API, which requirespermission 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,-`IS_TRANSCRIPT_IMPORT_ENABLED` controls transcript imports and summaries, and-`IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED` shows the Import history section. All+- **Release flags** are developer-controlled release decisions, defined in+ `src/constants/release-flags.ts` and bundled with the app. They are not the+ server's workspace feature flags, so they are named `IS_…_RELEASED`. Changing+ them requires a new build and deployment; a workspace setting cannot override+ them.++`IS_CHAT_ASSISTANT_RELEASED` controls availability of chat in this scaffold,+`IS_TRANSCRIPT_IMPORT_RELEASED` controls transcript imports and summaries, and+`IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED` shows the Import history section. Allstart as `false`. Settings hides chat and Import history until their flags areon, and shows transcript summaries as unavailable until transcripts are,retaining any saved workspace preference.The frontend and handlers share-`isFeatureEnabled({ isAvailable, settingValue })`. Pass the feature's development+`isFeatureEnabled({ isAvailable, settingValue })`. Pass the feature's releaseflag 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`.@@ -185,12 +186,12 @@ external resources, add its enable/disable reconciliation alongside thatfeature's handlers. The shared settings component composes each feature'ssection; the app's single uninstall hook will compose their cleanup.-Feature flags gate behavior at runtime, not installation. The build puts every+Release flags gate behavior at runtime, not installation. The build puts everyfile that default-exports a `define…` call in the manifest, so a disabledfeature's objects, fields, indexes, roles, agents and logic functions are stillinstalled, and its handlers return before doing any work. The only definitionsa flag changes are the transcript summary functions: they declare their Call-Recording triggers only while `IS_TRANSCRIPT_IMPORT_ENABLED` is on, so they are+Recording triggers only while `IS_TRANSCRIPT_IMPORT_RELEASED` is on, so they arenot invoked before release. Disabled features must still pass typecheck andbuild. The Microsoft OAuth connection remains available independently of thetranscript release flag; connecting an account only stores its credentials fordiff --git a/packages/twenty-apps/public/teams/src/constants/feature-flags.ts b/packages/twenty-apps/public/teams/src/constants/feature-flags.tsdeleted file mode 100644index a8fd00f6a57..00000000000--- a/packages/twenty-apps/public/teams/src/constants/feature-flags.ts+++ /dev/null@@ -1,5 +0,0 @@-export const FEATURE_FLAGS = {- IS_CHAT_ASSISTANT_ENABLED: false,- IS_TRANSCRIPT_IMPORT_ENABLED: false,- IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED: false,-} as const;diff --git a/packages/twenty-apps/public/teams/src/constants/release-flags.ts b/packages/twenty-apps/public/teams/src/constants/release-flags.tsnew file mode 100644index 00000000000..8a43eefd7b1--- /dev/null+++ b/packages/twenty-apps/public/teams/src/constants/release-flags.ts@@ -0,0 +1,5 @@+export const RELEASE_FLAGS = {+ IS_CHAT_ASSISTANT_RELEASED: false,+ IS_TRANSCRIPT_IMPORT_RELEASED: false,+ IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED: false,+} as const;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.tsxindex a34044738f8..b96d44532bd 100644--- 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@@ -1,6 +1,6 @@import { useTranslate } from 'twenty-sdk/front-component';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';import { TeamsUserLinksList } from 'src/features/chat/front-components/TeamsUserLinksList';import { FeatureSettingsSection } from 'src/front-components/components/FeatureSettingsSection';@@ -12,11 +12,11 @@ export const ChatSettings = () => {const { settingValue, isSaving, hasSaveError, updateSetting } =useFeatureSetting({variableKey: CHAT_ENABLED_APPLICATION_VARIABLE_KEY,- isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED,});const isChatEnabled = isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED,settingValue,});@@ -32,7 +32,7 @@ export const ChatSettings = () => {description={t('Use the Teams assistant and messaging workflows in this workspace.',)}- isAvailable={FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED}+ isAvailable={RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED}isEnabled={isChatEnabled}isSaving={isSaving}hasSaveError={hasSaveError}diff --git a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/enqueue-teams-assistant-request.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/enqueue-teams-assistant-request.test.tsindex 1ec2d15ffce..e9e44ed160f 100644--- a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/enqueue-teams-assistant-request.test.ts+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/enqueue-teams-assistant-request.test.ts@@ -4,15 +4,15 @@ import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constanimport { type TeamsActivitiesDispatchPayload } from 'src/features/chat/logic-functions/types/teams-activities-dispatch-payload.type';import { enqueueTeamsAssistantRequest } from 'src/features/chat/logic-functions/utils/enqueue-teams-assistant-request';-const { featureFlags, enqueueTeamsAssistantRequestRecordMock } = vi.hoisted(+const { releaseFlags, enqueueTeamsAssistantRequestRecordMock } = vi.hoisted(() => ({- featureFlags: { IS_CHAT_ASSISTANT_ENABLED: true },+ releaseFlags: { IS_CHAT_ASSISTANT_RELEASED: true },enqueueTeamsAssistantRequestRecordMock: vi.fn(),}),);-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: featureFlags,+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: releaseFlags,}));vi.mock(@@ -41,7 +41,7 @@ const PAYLOAD: TeamsActivitiesDispatchPayload = {describe('enqueueTeamsAssistantRequest', () => {beforeEach(() => {vi.clearAllMocks();- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;process.env[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';enqueueTeamsAssistantRequestRecordMock.mockResolvedValue({ok: true,@@ -73,7 +73,7 @@ describe('enqueueTeamsAssistantRequest', () => {});it('should skip while the chat feature is unavailable', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = false;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = false;expect(await enqueueTeamsAssistantRequest(PAYLOAD)).toEqual({ok: true,diff --git a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/register-teams-connection.test.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/register-teams-connection.test.tsindex ce3751746c7..62051b4a6a1 100644--- a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/register-teams-connection.test.ts+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/__tests__/register-teams-connection.test.ts@@ -6,14 +6,14 @@ import { buildTeamsTenantKvKey } from 'src/features/chat/logic-functions/utils/bimport { registerTeamsConnection } from 'src/features/chat/logic-functions/utils/register-teams-connection';const {- featureFlags,+ releaseFlags,kvGetMock,kvSetMock,getConnectionMock,fetchGraphJsonMock,releaseMock,} = vi.hoisted(() => ({- featureFlags: { IS_CHAT_ASSISTANT_ENABLED: true },+ releaseFlags: { IS_CHAT_ASSISTANT_RELEASED: true },kvGetMock: vi.fn(),kvSetMock: vi.fn(),getConnectionMock: vi.fn(),@@ -21,8 +21,8 @@ const {releaseMock: vi.fn(),}));-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: featureFlags,+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: releaseFlags,}));vi.mock('twenty-sdk/logic-function', () => ({@@ -46,7 +46,7 @@ const TENANT_ID = 'tenant-id';describe('registerTeamsConnection', () => {beforeEach(() => {vi.clearAllMocks();- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;process.env[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';getConnectionMock.mockResolvedValue({visibility: 'workspace',diff --git a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/enqueue-teams-assistant-request.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/enqueue-teams-assistant-request.tsindex 6e46aa495a8..1b87194d362 100644--- a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/enqueue-teams-assistant-request.ts+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/enqueue-teams-assistant-request.ts@@ -1,4 +1,4 @@-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';import { type TeamsActivitiesDispatchPayload } from 'src/features/chat/logic-functions/types/teams-activities-dispatch-payload.type';import { type TeamsActivitiesEnqueueResult } from 'src/features/chat/logic-functions/types/teams-activities-enqueue-result.type';@@ -10,7 +10,7 @@ export const enqueueTeamsAssistantRequest = async (payload: TeamsActivitiesDispatchPayload,): Promise<TeamsActivitiesEnqueueResult> => {const isChatEnabled = isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED,settingValue: process.env[CHAT_ENABLED_APPLICATION_VARIABLE_KEY],});diff --git a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/register-teams-connection.ts b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/register-teams-connection.tsindex 688c5d0d28e..c88ba6d6917 100644--- a/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/register-teams-connection.ts+++ b/packages/twenty-apps/public/teams/src/features/chat/logic-functions/utils/register-teams-connection.ts@@ -1,7 +1,7 @@import { isNonEmptyString } from '@sniptt/guards';import { getConnection, kv } from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constants/chat-enabled-application-variable-key';import { buildTeamsConnectedAccountTenantKvKey } from 'src/features/chat/logic-functions/utils/build-teams-connected-account-tenant-kv-key';import { buildTeamsTenantKvKey } from 'src/features/chat/logic-functions/utils/build-teams-tenant-kv-key';@@ -15,7 +15,7 @@ export const registerTeamsConnection = async ({connectedAccountId: string;}): Promise<{ claimedTenantId: string | null }> => {const isChatEnabled = isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED,settingValue: process.env[CHAT_ENABLED_APPLICATION_VARIABLE_KEY],});const connection = isChatEnableddiff --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.tsxindex 4b10d2bf240..c999dec7d3d 100644--- 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@@ -1,6 +1,6 @@import { useTranslate } from 'twenty-sdk/front-component';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcript-summary-enabled-application-variable-key';import { TranscriptImportHistorySection } from 'src/features/transcripts/front-components/TranscriptImportHistorySection';import { FeatureSettingsSection } from 'src/front-components/components/FeatureSettingsSection';@@ -12,7 +12,7 @@ export const TranscriptSettings = () => {const { settingValue, isSaving, hasSaveError, updateSetting } =useFeatureSetting({variableKey: TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY,- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,});const handleChange = (isEnabled: boolean) => {@@ -27,17 +27,17 @@ export const TranscriptSettings = () => {description={t('Write an AI summary on each Call Recording imported from Microsoft Teams. Each summary uses AI credits.',)}- isAvailable={FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED}+ isAvailable={RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED}isEnabled={isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue,})}isSaving={isSaving}hasSaveError={hasSaveError}onChange={handleChange}/>- {FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED &&- FEATURE_FLAGS.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED && (+ {RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED &&+ RELEASE_FLAGS.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED && (<TranscriptImportHistorySection />)}</>diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/__tests__/teams-transcript-history-routes.test.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/__tests__/teams-transcript-history-routes.test.tsindex a2beef1492a..89aaee00603 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/__tests__/teams-transcript-history-routes.test.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/__tests__/teams-transcript-history-routes.test.ts@@ -5,19 +5,19 @@ import { teamsTranscriptHistoryCountHandler } from 'src/features/transcripts/logimport { teamsTranscriptHistoryImportHandler } from 'src/features/transcripts/logic-functions/teams-transcript-history-import';import { teamsTranscriptHistoryStatusHandler } from 'src/features/transcripts/logic-functions/teams-transcript-history-status';-const { featureFlags, kvStore, listConnectionsMock, enqueueJobsMock } =+const { releaseFlags, kvStore, listConnectionsMock, enqueueJobsMock } =vi.hoisted(() => ({- featureFlags: {- IS_TRANSCRIPT_IMPORT_ENABLED: true,- IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED: true,+ releaseFlags: {+ IS_TRANSCRIPT_IMPORT_RELEASED: true,+ IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED: true,},kvStore: new Map<string, unknown>(),listConnectionsMock: vi.fn(),enqueueJobsMock: vi.fn(),}));-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: featureFlags,+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: releaseFlags,}));vi.mock('twenty-sdk/logic-function', async (importOriginal) => ({@@ -80,14 +80,14 @@ describe('Teams transcript history routes', () => {beforeEach(() => {vi.clearAllMocks();kvStore.clear();- featureFlags.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED = true;+ releaseFlags.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED = true;process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';listConnectionsMock.mockResolvedValue([ADMIN_CONNECTION]);enqueueJobsMock.mockResolvedValue(undefined);});it('should refuse every history route until history import is released', async () => {- featureFlags.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED = false;+ releaseFlags.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED = false;await expect(teamsTranscriptHistoryCountHandler(diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-import-transcript.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-import-transcript.tsindex 85b848b9cb8..f7ba51d28fb 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-import-transcript.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-import-transcript.ts@@ -3,7 +3,7 @@ import { defineLogicFunction } from 'twenty-sdk/define';import { kv } from 'twenty-sdk/logic-function';import { isDefined } from 'twenty-sdk/utils';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { TEAMS_IMPORT_TRANSCRIPT_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { type TeamsTranscriptImportOutcome } from 'src/features/transcripts/logic-functions/types/teams-transcript-import-outcome.type';@@ -36,7 +36,7 @@ export const teamsImportTranscriptHandler = async (payload: {if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-list-organizer-transcripts.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-list-organizer-transcripts.tsindex d47064fa3c3..bb4d28bb906 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-list-organizer-transcripts.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-list-organizer-transcripts.ts@@ -6,7 +6,7 @@ import {jsonSchemaToInputSchema,} from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { TEAMS_LIST_ORGANIZER_TRANSCRIPTS_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { buildTeamsCalendarViewUrl } from 'src/features/transcripts/logic-functions/utils/build-teams-calendar-view-url';@@ -68,7 +68,7 @@ export const teamsListOrganizerTranscriptsHandler = async (): Promise<TeamsListOrganizerTranscriptsResult> => {if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-created-call-recordings.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-created-call-recordings.tsindex 710175c1f48..d37b1f96995 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-created-call-recordings.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-created-call-recordings.ts@@ -4,7 +4,7 @@ import {type ObjectRecordCreateEvent,} from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TEAMS_SUMMARIZE_CREATED_CALL_RECORDINGS_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { type TeamsCallRecordingEventRecord } from 'src/features/transcripts/logic-functions/types/teams-call-recording-event-record.type';import { enqueueTeamsTranscriptSummariesOrThrow } from 'src/features/transcripts/logic-functions/utils/enqueue-teams-transcript-summaries-or-throw';@@ -22,7 +22,7 @@ export default defineLogicFunction({description:'Queues an AI summary for each Call Recording that Microsoft Teams created with a transcript.',handler: teamsSummarizeCreatedCallRecordingsHandler,- ...(FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED+ ...(RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED? {databaseEventTriggerSettings: {eventName: 'callRecording.created',diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-updated-call-recordings.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-updated-call-recordings.tsindex 21a170b768b..5de6d456f8b 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-updated-call-recordings.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-summarize-updated-call-recordings.ts@@ -4,7 +4,7 @@ import {type ObjectRecordUpdateEvent,} from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TEAMS_SUMMARIZE_UPDATED_CALL_RECORDINGS_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { type TeamsCallRecordingEventRecord } from 'src/features/transcripts/logic-functions/types/teams-call-recording-event-record.type';import { enqueueTeamsTranscriptSummariesOrThrow } from 'src/features/transcripts/logic-functions/utils/enqueue-teams-transcript-summaries-or-throw';@@ -22,7 +22,7 @@ export default defineLogicFunction({description:'Queues an AI summary for each Microsoft Teams Call Recording whose transcript changed.',handler: teamsSummarizeUpdatedCallRecordingsHandler,- ...(FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED+ ...(RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED? {databaseEventTriggerSettings: {eventName: 'callRecording.updated',diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-sync-transcript.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-sync-transcript.tsindex abe3348f156..4ac1fbc9a54 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-sync-transcript.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-sync-transcript.ts@@ -7,7 +7,7 @@ import {jsonSchemaToInputSchema,} from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { TEAMS_SYNC_TRANSCRIPT_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { type CallRecordingSyncFields } from 'src/features/transcripts/logic-functions/types/call-recording-sync-fields.type';@@ -54,7 +54,7 @@ export const teamsSyncTranscriptHandler = async (): Promise<TeamsSyncTranscriptResult> => {if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-transcripts-webhook.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-transcripts-webhook.tsindex 55c312604a3..01bbe092db1 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-transcripts-webhook.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/teams-transcripts-webhook.ts@@ -7,7 +7,7 @@ import {} from 'twenty-sdk/logic-function';import { isDefined } from 'twenty-sdk/utils';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { TEAMS_TRANSCRIPTS_WEBHOOK_UNIVERSAL_IDENTIFIER } from 'src/features/transcripts/constants/universal-identifiers';import { GRAPH_CREATED_CHANGE_TYPE } from 'src/features/transcripts/logic-functions/constants/graph-created-change-type';@@ -112,7 +112,7 @@ export const teamsTranscriptsWebhookHandler = async (if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/process-teams-transcript-history-page-or-throw.test.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/process-teams-transcript-history-page-or-throw.test.tsindex e33731bcacc..bfa7bfdd351 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/process-teams-transcript-history-page-or-throw.test.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/process-teams-transcript-history-page-or-throw.test.ts@@ -23,8 +23,8 @@ const {listConnectionsMock: vi.fn(),}));-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: { IS_TRANSCRIPT_IMPORT_ENABLED: true },+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: { IS_TRANSCRIPT_IMPORT_RELEASED: true },}));vi.mock('twenty-sdk/logic-function', async (importOriginal) => ({diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/start-teams-transcript-history-initial-import-or-throw.test.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/start-teams-transcript-history-initial-import-or-throw.test.tsindex 795e0f2ef96..a0a3486e506 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/start-teams-transcript-history-initial-import-or-throw.test.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/__tests__/start-teams-transcript-history-initial-import-or-throw.test.ts@@ -9,8 +9,8 @@ const { kvStore, enqueueJobsMock, listConnectionsMock } = vi.hoisted(() => ({listConnectionsMock: vi.fn(),}));-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: { IS_TRANSCRIPT_IMPORT_ENABLED: true },+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: { IS_TRANSCRIPT_IMPORT_RELEASED: true },}));vi.mock('twenty-sdk/logic-function', async (importOriginal) => ({diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/handle-teams-transcript-history-route.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/handle-teams-transcript-history-route.tsindex fe3bb9c22d6..d383e4de492 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/handle-teams-transcript-history-route.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/handle-teams-transcript-history-route.ts@@ -1,6 +1,6 @@import { type LogicFunctionExecutionContext } from 'twenty-sdk/logic-function';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { TeamsConnectionUnavailableError } from 'src/features/transcripts/logic-functions/types/teams-connection-unavailable-error';import { type TeamsTranscriptHistoryRouteResult } from 'src/features/transcripts/logic-functions/types/teams-transcript-history-route-result.type';@@ -20,9 +20,9 @@ export const handleTeamsTranscriptHistoryRoute = async ({) => Promise<TeamsTranscriptHistoryRouteResult>;}): Promise<TeamsTranscriptHistoryRouteResult> => {if (- !FEATURE_FLAGS.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED ||+ !RELEASE_FLAGS.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED ||!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/is-teams-transcript-summary-enabled.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/is-teams-transcript-summary-enabled.tsindex 8a9a7bef3c3..ed69cbc93ce 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/is-teams-transcript-summary-enabled.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/is-teams-transcript-summary-enabled.ts@@ -1,15 +1,15 @@-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcript-summary-enabled-application-variable-key';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { isFeatureEnabled } from 'src/utils/is-feature-enabled';export const isTeamsTranscriptSummaryEnabled = (): boolean =>isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],}) &&isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue:process.env[TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY],});diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/process-teams-transcript-history-page-or-throw.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/process-teams-transcript-history-page-or-throw.tsindex 7c4c705c557..c473b460736 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/process-teams-transcript-history-page-or-throw.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/process-teams-transcript-history-page-or-throw.ts@@ -8,7 +8,7 @@ import {} from 'twenty-sdk/logic-function';import { isDefined } from 'twenty-sdk/utils';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TEAMS_TRANSCRIPT_HISTORY_IMPORT_PAGE_DELAY_MILLISECONDS } from 'src/features/transcripts/constants/teams-transcript-history-import-page-delay-milliseconds';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { GRAPH_ACCESS_TO_TRANSCRIPTS_DISABLED_ERROR_CODE } from 'src/features/transcripts/logic-functions/constants/graph-access-to-transcripts-disabled-error-code';@@ -281,7 +281,7 @@ export const processTeamsTranscriptHistoryPageOrThrow = async ({if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/register-teams-transcript-subscription.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/register-teams-transcript-subscription.tsindex 409b9cf179a..2d7c7f7a1fc 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/register-teams-transcript-subscription.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/register-teams-transcript-subscription.ts@@ -2,7 +2,7 @@ import { isNonEmptyString } from '@sniptt/guards';import { getConnection, kv } from 'twenty-sdk/logic-function';import { isDefined } from 'twenty-sdk/utils';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { GraphRequestError } from 'src/features/transcripts/logic-functions/types/graph-request-error';import { type TeamsTranscriptSubscription } from 'src/features/transcripts/logic-functions/types/teams-transcript-subscription.type';@@ -50,7 +50,7 @@ export const registerTeamsTranscriptSubscription = async ({connectedAccountId: string;}): Promise<{ transcriptSubscriptionId: string | null }> => {const isTranscriptImportEnabled = isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],});diff --git a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/start-teams-transcript-history-initial-import-or-throw.ts b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/start-teams-transcript-history-initial-import-or-throw.tsindex 03ba5087d40..c1e59252027 100644--- a/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/start-teams-transcript-history-initial-import-or-throw.ts+++ b/packages/twenty-apps/public/teams/src/features/transcripts/logic-functions/utils/start-teams-transcript-history-initial-import-or-throw.ts@@ -1,7 +1,7 @@import { kv } from 'twenty-sdk/logic-function';import { isDefined } from 'twenty-sdk/utils';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { TEAMS_TRANSCRIPT_HISTORY_INITIAL_IMPORT_DAYS } from 'src/features/transcripts/constants/teams-transcript-history-initial-import-days';import { TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcripts-enabled-application-variable-key';import { type TeamsTranscriptHistoryState } from 'src/features/transcripts/logic-functions/types/teams-transcript-history-state.type';@@ -20,7 +20,7 @@ export const startTeamsTranscriptHistoryInitialImportOrThrow = async ({}): Promise<void> => {if (!isFeatureEnabled({- isAvailable: FEATURE_FLAGS.IS_TRANSCRIPT_IMPORT_ENABLED,+ isAvailable: RELEASE_FLAGS.IS_TRANSCRIPT_IMPORT_RELEASED,settingValue: process.env[TRANSCRIPTS_ENABLED_APPLICATION_VARIABLE_KEY],})) {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.tsxindex 613029c315e..f7ca03992a0 100644--- a/packages/twenty-apps/public/teams/src/front-components/components/TeamsSettings.tsx+++ b/packages/twenty-apps/public/teams/src/front-components/components/TeamsSettings.tsx@@ -5,7 +5,7 @@ import 'twenty-ui/theme-light.css';import styled from '@emotion/styled';import { themeCssVariables } from 'twenty-ui/theme';-import { FEATURE_FLAGS } from 'src/constants/feature-flags';+import { RELEASE_FLAGS } from 'src/constants/release-flags';import { ChatSettings } from 'src/features/chat/front-components/ChatSettings';import { TranscriptSettings } from 'src/features/transcripts/front-components/TranscriptSettings';@@ -18,7 +18,7 @@ const StyledContainer = styled.div`export const TeamsSettings = () => (<StyledContainer>- {FEATURE_FLAGS.IS_CHAT_ASSISTANT_ENABLED && <ChatSettings />}+ {RELEASE_FLAGS.IS_CHAT_ASSISTANT_RELEASED && <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.tsxindex 6eda4cf28c9..f1b57af8f92 100644--- 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@@ -9,15 +9,15 @@ import { CHAT_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/chat/constanimport { TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY } from 'src/features/transcripts/constants/transcript-summary-enabled-application-variable-key';import { TeamsSettings } from 'src/front-components/components/TeamsSettings';-const { featureFlags, variables, queryMock, mutationMock, restGetMock } =+const { releaseFlags, variables, queryMock, mutationMock, restGetMock } =vi.hoisted(() => {const variables: Record<string, string | undefined> = {};return {- featureFlags: {- IS_CHAT_ASSISTANT_ENABLED: false,- IS_TRANSCRIPT_IMPORT_ENABLED: false,- IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED: false,+ releaseFlags: {+ IS_CHAT_ASSISTANT_RELEASED: false,+ IS_TRANSCRIPT_IMPORT_RELEASED: false,+ IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED: false,},variables,queryMock: vi.fn(),@@ -33,8 +33,8 @@ const APPLICATION_QUERY = {},};-vi.mock('src/constants/feature-flags', () => ({- FEATURE_FLAGS: featureFlags,+vi.mock('src/constants/release-flags', () => ({+ RELEASE_FLAGS: releaseFlags,}));vi.mock('twenty-sdk/front-component', () => ({@@ -68,9 +68,9 @@ vi.mock(describe('TeamsSettings', () => {beforeEach(() => {vi.resetAllMocks();- featureFlags.IS_CHAT_ASSISTANT_ENABLED = false;- featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = false;- featureFlags.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED = false;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = false;+ releaseFlags.IS_TRANSCRIPT_IMPORT_RELEASED = false;+ releaseFlags.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED = false;variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'false';variables[TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY] = 'false';queryMock.mockResolvedValue({@@ -114,8 +114,8 @@ describe('TeamsSettings', () => {])('supports independent chat (%s) and transcript (%s) releases',(isChatAvailable, isTranscriptsAvailable) => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = isChatAvailable;- featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = isTranscriptsAvailable;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = isChatAvailable;+ releaseFlags.IS_TRANSCRIPT_IMPORT_RELEASED = isTranscriptsAvailable;variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';variables[TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY] = 'true';@@ -146,8 +146,8 @@ describe('TeamsSettings', () => {])('shows Import history only when transcripts (%s) and history import (%s) are released',(isTranscriptsAvailable, isHistoryImportAvailable) => {- featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = isTranscriptsAvailable;- featureFlags.IS_TRANSCRIPT_HISTORY_IMPORT_ENABLED =+ releaseFlags.IS_TRANSCRIPT_IMPORT_RELEASED = isTranscriptsAvailable;+ releaseFlags.IS_TRANSCRIPT_HISTORY_IMPORT_RELEASED =isHistoryImportAvailable;render(<TeamsSettings />);@@ -161,8 +161,8 @@ describe('TeamsSettings', () => {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;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;+ releaseFlags.IS_TRANSCRIPT_IMPORT_RELEASED = true;variables[CHAT_ENABLED_APPLICATION_VARIABLE_KEY] = value;variables[TRANSCRIPT_SUMMARY_ENABLED_APPLICATION_VARIABLE_KEY] = value;@@ -178,7 +178,7 @@ describe('TeamsSettings', () => {);it('shows linked Teams accounts only while chat is enabled', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;const user = userEvent.setup();render(<TeamsSettings />);@@ -194,8 +194,8 @@ describe('TeamsSettings', () => {});it('saves the selected feature without changing the other preference', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;- featureFlags.IS_TRANSCRIPT_IMPORT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;+ releaseFlags.IS_TRANSCRIPT_IMPORT_RELEASED = true;const user = userEvent.setup();render(<TeamsSettings />);@@ -266,7 +266,7 @@ describe('TeamsSettings', () => {});it('keeps the saved preference after a failed update and allows retry', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;mutationMock.mockRejectedValueOnce(new Error('Not allowed'));const user = userEvent.setup();@@ -312,7 +312,7 @@ describe('TeamsSettings', () => {});it('does not write settings if the Teams application cannot be found', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;const user = userEvent.setup();render(<TeamsSettings />);@@ -326,7 +326,7 @@ describe('TeamsSettings', () => {});it('disables the selected setting while saving and prevents duplicate writes', async () => {- featureFlags.IS_CHAT_ASSISTANT_ENABLED = true;+ releaseFlags.IS_CHAT_ASSISTANT_RELEASED = true;const user = userEvent.setup();let resolveSave: ((response: unknown) => void) | undefined;const pendingSave = new Promise((resolve) => {