The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
refactor: update import paths for FeatureFlagKey (#9542)
Antoine Moreauxd1170668dff0
diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsxindex a39d230d8a2..4dab9fa2fc6 100644--- a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx+++ b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx@@ -31,7 +31,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';import '@blocknote/core/fonts/inter.css';import '@blocknote/mantine/style.css';import '@blocknote/react/style.css';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';type ActivityRichTextEditorProps = {activityId: string;diff --git a/packages/twenty-front/src/modules/activities/hooks/useOpenActivityRightDrawer.ts b/packages/twenty-front/src/modules/activities/hooks/useOpenActivityRightDrawer.tsindex 26ca1032323..5d0aec52a52 100644--- a/packages/twenty-front/src/modules/activities/hooks/useOpenActivityRightDrawer.ts+++ b/packages/twenty-front/src/modules/activities/hooks/useOpenActivityRightDrawer.ts@@ -9,7 +9,7 @@ import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPageimport { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';export const useOpenActivityRightDrawer = ({objectNameSingular,diff --git a/packages/twenty-front/src/modules/activities/hooks/useOpenCreateActivityDrawer.ts b/packages/twenty-front/src/modules/activities/hooks/useOpenCreateActivityDrawer.tsindex 48a98407d8c..bbaf0c183c0 100644--- a/packages/twenty-front/src/modules/activities/hooks/useOpenCreateActivityDrawer.ts+++ b/packages/twenty-front/src/modules/activities/hooks/useOpenCreateActivityDrawer.ts@@ -19,7 +19,7 @@ import { isNewViewableRecordLoadingState } from '@/object-record/record-right-drimport { viewableRecordNameSingularState } from '@/object-record/record-right-drawer/states/viewableRecordNameSingularState';import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';import { ActivityTargetableObject } from '../types/ActivityTargetableEntity';export const useOpenCreateActivityDrawer = ({diff --git a/packages/twenty-front/src/modules/object-record/record-right-drawer/components/RightDrawerRecord.tsx b/packages/twenty-front/src/modules/object-record/record-right-drawer/components/RightDrawerRecord.tsxindex 4ac308ee140..c532bf4bb97 100644--- a/packages/twenty-front/src/modules/object-record/record-right-drawer/components/RightDrawerRecord.tsx+++ b/packages/twenty-front/src/modules/object-record/record-right-drawer/components/RightDrawerRecord.tsx@@ -12,7 +12,7 @@ import { RecordFieldValueSelectorContextProvider } from '@/object-record/record-import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';import styled from '@emotion/styled';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';const StyledRightDrawerRecord = styled.div<{ hasTopBar: boolean }>`height: ${({ theme, hasTopBar }) =>diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRecordGroupRows.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRecordGroupRows.tsxindex 78d394fe23f..cf29982e69a 100644--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRecordGroupRows.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRecordGroupRows.tsx@@ -11,7 +11,7 @@ import { useRecoilComponentFamilyValueV2 } from '@/ui/utilities/state/component-import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';import { useMemo } from 'react';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';import { isDefined } from '~/utils/isDefined';export const RecordTableRecordGroupRows = () => {diff --git a/packages/twenty-front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.ts b/packages/twenty-front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.tsindex 05c2c4e99ce..52a604e71a2 100644--- a/packages/twenty-front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.ts+++ b/packages/twenty-front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.ts@@ -8,7 +8,7 @@ import { commandMenuPageState } from '@/command-menu/states/commandMenuPageStateimport { emitRightDrawerCloseEvent } from '@/ui/layout/right-drawer/utils/emitRightDrawerCloseEvent';import { mapRightDrawerPageToCommandMenuPage } from '@/ui/layout/right-drawer/utils/mapRightDrawerPageToCommandMenuPage';import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';-import { FeatureFlagKey } from '~/generated-metadata/graphql';+import { FeatureFlagKey } from '~/generated/graphql';import { isRightDrawerOpenState } from '../states/isRightDrawerOpenState';import { rightDrawerPageState } from '../states/rightDrawerPageState';import { RightDrawerPages } from '../types/RightDrawerPages';