The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add twenty/folder-structure custom oxlint rule (#18467)
Charles Bochetfea47aa9f830
diff --git a/packages/twenty-front/.oxlintrc.json b/packages/twenty-front/.oxlintrc.jsonindex dc2ceb361b4..5b84f3ee978 100644--- a/packages/twenty-front/.oxlintrc.json+++ b/packages/twenty-front/.oxlintrc.json@@ -104,6 +104,7 @@"twenty/no-navigate-prefer-link": "error","twenty/no-jotai-store-in-selector": "error","twenty/no-direct-atom-family-in-selector": "error",+ "twenty/folder-structure": "error","twenty/enforce-module-boundaries": ["error", {"depConstraints": [{diff --git a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useUploadWorkflowFile.ts b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useUploadWorkflowFile.tsindex 81a073c5388..06d075008fe 100644--- a/packages/twenty-front/src/modules/advanced-text-editor/hooks/useUploadWorkflowFile.ts+++ b/packages/twenty-front/src/modules/advanced-text-editor/hooks/useUploadWorkflowFile.ts@@ -1,4 +1,4 @@-import { MAX_ATTACHMENT_SIZE } from '@/advanced-text-editor/utils/MaxAttachmentSize';+import { MAX_ATTACHMENT_SIZE } from '@/advanced-text-editor/utils/maxAttachmentSize';import { formatFileSize } from '@/file/utils/formatFileSize';import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';import { t } from '@lingui/core/macro';diff --git a/packages/twenty-front/src/modules/advanced-text-editor/utils/MaxAttachmentSize.ts b/packages/twenty-front/src/modules/advanced-text-editor/utils/maxAttachmentSize.tssimilarity index 100%rename from packages/twenty-front/src/modules/advanced-text-editor/utils/MaxAttachmentSize.tsrename to packages/twenty-front/src/modules/advanced-text-editor/utils/maxAttachmentSize.tsdiff --git a/packages/twenty-front/src/modules/ai/utils/__tests__/isAIChatErrorOfType.test.ts b/packages/twenty-front/src/modules/ai/utils/__tests__/isAIChatErrorOfType.test.tsindex c64d5739e04..bf16d4b864f 100644--- a/packages/twenty-front/src/modules/ai/utils/__tests__/isAIChatErrorOfType.test.ts+++ b/packages/twenty-front/src/modules/ai/utils/__tests__/isAIChatErrorOfType.test.ts@@ -1,4 +1,4 @@-import { AIChatErrorCode } from '@/ai/utils/AIChatErrorCode';+import { AIChatErrorCode } from '@/ai/utils/aiChatErrorCode';import { isAIChatErrorOfType } from '@/ai/utils/isAIChatErrorOfType';describe('isAIChatErrorOfType', () => {diff --git a/packages/twenty-front/src/modules/ai/utils/AIChatErrorCode.ts b/packages/twenty-front/src/modules/ai/utils/aiChatErrorCode.tssimilarity index 100%rename from packages/twenty-front/src/modules/ai/utils/AIChatErrorCode.tsrename to packages/twenty-front/src/modules/ai/utils/aiChatErrorCode.tsdiff --git a/packages/twenty-front/src/modules/ai/utils/isAIChatErrorOfType.ts b/packages/twenty-front/src/modules/ai/utils/isAIChatErrorOfType.tsindex a57a8714225..ac4c7038ab0 100644--- a/packages/twenty-front/src/modules/ai/utils/isAIChatErrorOfType.ts+++ b/packages/twenty-front/src/modules/ai/utils/isAIChatErrorOfType.ts@@ -1,6 +1,6 @@import { isDefined } from 'twenty-shared/utils';-import { type AIChatErrorCodeType } from '@/ai/utils/AIChatErrorCode';+import { type AIChatErrorCodeType } from '@/ai/utils/aiChatErrorCode';import { extractErrorCode } from '@/ai/utils/extractErrorCode';export const isAIChatErrorOfType = (diff --git a/packages/twenty-front/src/modules/ai/utils/isApiKeyNotConfiguredError.ts b/packages/twenty-front/src/modules/ai/utils/isApiKeyNotConfiguredError.tsindex 6ff60fa618e..b6b8ebd6f48 100644--- a/packages/twenty-front/src/modules/ai/utils/isApiKeyNotConfiguredError.ts+++ b/packages/twenty-front/src/modules/ai/utils/isApiKeyNotConfiguredError.ts@@ -1,4 +1,4 @@-import { AIChatErrorCode } from '@/ai/utils/AIChatErrorCode';+import { AIChatErrorCode } from '@/ai/utils/aiChatErrorCode';import { isAIChatErrorOfType } from '@/ai/utils/isAIChatErrorOfType';export const isApiKeyNotConfiguredError = (diff --git a/packages/twenty-front/src/modules/ai/utils/isBillingCreditsExhaustedError.ts b/packages/twenty-front/src/modules/ai/utils/isBillingCreditsExhaustedError.tsindex 11ed65d9f0d..cb628e449a7 100644--- a/packages/twenty-front/src/modules/ai/utils/isBillingCreditsExhaustedError.ts+++ b/packages/twenty-front/src/modules/ai/utils/isBillingCreditsExhaustedError.ts@@ -1,4 +1,4 @@-import { AIChatErrorCode } from '@/ai/utils/AIChatErrorCode';+import { AIChatErrorCode } from '@/ai/utils/aiChatErrorCode';import { isAIChatErrorOfType } from '@/ai/utils/isAIChatErrorOfType';export const isBillingCreditsExhaustedError = (diff --git a/packages/twenty-front/src/modules/metadata-error-handler/hooks/useMetadataErrorHandler.ts b/packages/twenty-front/src/modules/metadata-error-handler/hooks/useMetadataErrorHandler.tsindex e32c324647c..8ca3592f147 100644--- a/packages/twenty-front/src/modules/metadata-error-handler/hooks/useMetadataErrorHandler.ts+++ b/packages/twenty-front/src/modules/metadata-error-handler/hooks/useMetadataErrorHandler.ts@@ -1,7 +1,7 @@import { type ApolloError } from '@apollo/client';import { t } from '@lingui/core/macro';-import { classifyMetadataError } from '@/metadata-error-handler/utils/classify-metadata-error.util';+import { classifyMetadataError } from '@/metadata-error-handler/utils/classifyMetadataError';import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';import {type AllMetadataName,diff --git a/packages/twenty-front/src/modules/metadata-error-handler/utils/classify-metadata-error.util.ts b/packages/twenty-front/src/modules/metadata-error-handler/utils/classifyMetadataError.tssimilarity index 100%rename from packages/twenty-front/src/modules/metadata-error-handler/utils/classify-metadata-error.util.tsrename to packages/twenty-front/src/modules/metadata-error-handler/utils/classifyMetadataError.tsdiff --git a/packages/twenty-front/src/modules/metadata-store/effect-components/UserMetadataProviderInitialEffect.tsx b/packages/twenty-front/src/modules/metadata-store/effect-components/UserMetadataProviderInitialEffect.tsxindex 750c88672ed..92e56afec31 100644--- a/packages/twenty-front/src/modules/metadata-store/effect-components/UserMetadataProviderInitialEffect.tsx+++ b/packages/twenty-front/src/modules/metadata-store/effect-components/UserMetadataProviderInitialEffect.tsx@@ -8,7 +8,7 @@ import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembimport { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';import { isCurrentUserLoadedState } from '@/auth/states/isCurrentUserLoadedState';import { useInitializeFormatPreferences } from '@/localization/hooks/useInitializeFormatPreferences';-import { getDateFnsLocale } from '@/ui/field/display/utils/getDateFnsLocale.util';+import { getDateFnsLocale } from '@/ui/field/display/utils/getDateFnsLocale';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { useSetAtomState } from '@/ui/utilities/state/jotai/hooks/useSetAtomState';import { type ColorScheme } from '@/workspace-member/types/WorkspaceMember';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsxindex 006e0a9c0f4..0db197a2ede 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemIcon.tsx@@ -8,7 +8,7 @@ import { StyledNavigationMenuItemIconContainer } from '@/navigation-menu-item/coimport { ObjectIconWithViewOverlay } from '@/navigation-menu-item/components/ObjectIconWithViewOverlay';import { NavigationMenuItemType } from '@/navigation-menu-item/constants/NavigationMenuItemType';import { useObjectNavItemColor } from '@/navigation-menu-item/hooks/useObjectNavItemColor';-import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color';+import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor';import { getEffectiveNavigationMenuItemColor } from '@/navigation-menu-item/utils/getEffectiveNavigationMenuItemColor';import { type ProcessedNavigationMenuItem } from '@/navigation-menu-item/utils/sortNavigationMenuItems';import { useGetStandardObjectIcon } from '@/object-metadata/hooks/useGetStandardObjectIcon';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemStyleIcon.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemStyleIcon.tsxindex 31bb1d952d5..59b2d3dbb19 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemStyleIcon.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemStyleIcon.tsx@@ -1,6 +1,6 @@import type { IconComponent } from 'twenty-ui/display';import { StyledNavigationMenuItemIconContainer } from '@/navigation-menu-item/components/NavigationMenuItemIconContainer';-import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color';+import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor';import { useContext } from 'react';import { ThemeContext } from 'twenty-ui/theme-constants';diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/ObjectIconWithViewOverlay.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/ObjectIconWithViewOverlay.tsxindex 676dda5f820..d7b8a27e755 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/components/ObjectIconWithViewOverlay.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/ObjectIconWithViewOverlay.tsx@@ -3,7 +3,7 @@ import type { IconComponent } from 'twenty-ui/display';import { useContext } from 'react';import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants';-import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color';+import { getNavigationMenuItemIconStyleFromColor } from '@/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor';const StyledCompositeContainer = styled.div`align-items: center;diff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/get-color-from-theme.util.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/getColorFromTheme.tssimilarity index 100%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/get-color-from-theme.util.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/getColorFromTheme.tsdiff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-border-color.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconBorderColor.tssimilarity index 80%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-border-color.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconBorderColor.tsindex 104501991ae..4a982680c5a 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-border-color.ts+++ b/packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconBorderColor.ts@@ -1,7 +1,7 @@import type { ThemeColor } from 'twenty-ui/theme';-import { getColorFromTheme } from '@/navigation-menu-item/utils/get-color-from-theme.util';-import { COLOR_SHADE_BORDER } from '@/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBorder.constant';+import { getColorFromTheme } from '@/navigation-menu-item/utils/getColorFromTheme';+import { COLOR_SHADE_BORDER } from '@/navigation-menu-item/utils/navigationMenuItemIconColorShadeBorder';export const getNavigationMenuItemIconBorderColor = (themeColor: ThemeColor,diff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor.tssimilarity index 74%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor.tsindex 6a1ba19e15e..0ad0ea5624b 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/utils/get-navigation-menu-item-icon-style-from-color.ts+++ b/packages/twenty-front/src/modules/navigation-menu-item/utils/getNavigationMenuItemIconStyleFromColor.ts@@ -1,9 +1,9 @@import { DEFAULT_NAV_ITEM_ICON_COLOR } from '@/navigation-menu-item/constants/NavigationMenuItemDefaultIconColor.constant';-import { getColorFromTheme } from '@/navigation-menu-item/utils/get-color-from-theme.util';-import { COLOR_SHADE_BACKGROUND } from '@/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBackground.constant';-import { COLOR_SHADE_BORDER } from '@/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBorder.constant';-import { COLOR_SHADE_ICON } from '@/navigation-menu-item/utils/NavigationMenuItemIconColorShadeIcon.constant';-import { type NavigationMenuItemIconStyle } from '@/navigation-menu-item/utils/navigation-menu-item-icon-style.type';+import { getColorFromTheme } from '@/navigation-menu-item/utils/getColorFromTheme';+import { COLOR_SHADE_BACKGROUND } from '@/navigation-menu-item/utils/navigationMenuItemIconColorShadeBackground';+import { COLOR_SHADE_BORDER } from '@/navigation-menu-item/utils/navigationMenuItemIconColorShadeBorder';+import { COLOR_SHADE_ICON } from '@/navigation-menu-item/utils/navigationMenuItemIconColorShadeIcon';+import { type NavigationMenuItemIconStyle } from '@/navigation-menu-item/utils/navigationMenuItemIconStyle';import { parseThemeColor } from '@/navigation-menu-item/utils/parseThemeColor';export const getNavigationMenuItemIconStyleFromColor = (diff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBackground.constant.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeBackground.tssimilarity index 100%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBackground.constant.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeBackground.tsdiff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBorder.constant.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeBorder.tssimilarity index 100%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeBorder.constant.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeBorder.tsdiff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeIcon.constant.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeIcon.tssimilarity index 100%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/NavigationMenuItemIconColorShadeIcon.constant.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconColorShadeIcon.tsdiff --git a/packages/twenty-front/src/modules/navigation-menu-item/utils/navigation-menu-item-icon-style.type.ts b/packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconStyle.tssimilarity index 100%rename from packages/twenty-front/src/modules/navigation-menu-item/utils/navigation-menu-item-icon-style.type.tsrename to packages/twenty-front/src/modules/navigation-menu-item/utils/navigationMenuItemIconStyle.tsdiff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsxindex 931430b8661..7cf8cc8b7c1 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderFirstCell.tsx@@ -9,7 +9,7 @@ import { RecordTableHeaderCellContainer } from '@/object-record/record-table/recimport { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';import { RecordTableHeaderLabelIdentifierCellPlusButton } from '@/object-record/record-table/record-table-header/components/RecordTableHeaderLabelIdentifierCellPlusButton';-import { getVisibleFieldWithLowestPosition } from '@/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition.util';+import { getVisibleFieldWithLowestPosition } from '@/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition';import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition.util.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition.tssimilarity index 100%rename from packages/twenty-front/src/modules/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition.util.tsrename to packages/twenty-front/src/modules/object-record/record-table/record-table-header/utils/getVisibleFieldWithLowestPosition.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsxindex dd8d8334c25..aa801e675d3 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx@@ -1,15 +1,15 @@import { WidgetSkeletonLoader } from '@/page-layout/widgets/components/WidgetSkeletonLoader';-import { GraphWidgetAggregateChartRenderer } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChartRenderer';-import { GraphWidgetBarChartRenderer } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer';-import { GraphWidgetLineChartRenderer } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer';-import { GraphWidgetPieChartRenderer } from '@/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChartRenderer';+import { GraphWidgetAggregateChartRenderer } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChartRenderer';+import { GraphWidgetBarChartRenderer } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer';+import { GraphWidgetLineChartRenderer } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer';+import { GraphWidgetPieChartRenderer } from '@/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer';import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget';import { lazy, Suspense } from 'react';import { WidgetConfigurationType } from '~/generated-metadata/graphql';const GraphWidgetGaugeChart = lazy(() =>import(- '@/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart'+ '@/page-layout/widgets/graph/graph-widget-gauge-chart/components/GraphWidgetGaugeChart').then((module) => ({default: module.GraphWidgetGaugeChart,})),diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsxindex 05d8af61e25..57414f1046c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetAggregateChart.stories.tsx@@ -1,6 +1,6 @@import { type Meta, type StoryObj } from '@storybook/react-vite';-import { GraphWidgetAggregateChart } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart';+import { GraphWidgetAggregateChart } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChart';import { ComponentDecorator } from 'twenty-ui/testing';const meta: Meta<typeof GraphWidgetAggregateChart> = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsxindex 27626cc1f7a..abdd6ce4260 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx@@ -1,7 +1,7 @@import { type Meta, type StoryObj } from '@storybook/react-vite';import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper';-import { GraphWidgetBarChart } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart';+import { GraphWidgetBarChart } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChart';import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsxindex 3d4d126df2b..e42ae269afb 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetGaugeChart.stories.tsx@@ -1,7 +1,7 @@import { type Meta, type StoryObj } from '@storybook/react-vite';import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper';-import { GraphWidgetGaugeChart } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart';+import { GraphWidgetGaugeChart } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/components/GraphWidgetGaugeChart';import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing';const meta: Meta<typeof GraphWidgetGaugeChart> = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsxindex 74e8f2f1687..385036b951a 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetLineChart.stories.tsx@@ -2,7 +2,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';import { type ComponentProps } from 'react';import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper';-import { GraphWidgetLineChart } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart';+import { GraphWidgetLineChart } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChart';import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing';const meta: Meta<typeof GraphWidgetLineChart> = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsxindex 254ce9265b7..570c5c68831 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx@@ -2,7 +2,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';import { CoreObjectNameSingular } from 'twenty-shared/types';import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper';-import { GraphWidgetPieChart } from '@/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart';+import { GraphWidgetPieChart } from '@/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChart';import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing';import {AggregateOperations,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChart.tsxsimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChart.tsxindex d6062355b2a..87297646f06 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChart.tsx@@ -1,4 +1,4 @@-import { formatNumberChartTrend } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/formatNumberChartTrend';+import { formatNumberChartTrend } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/formatNumberChartTrend';import { styled } from '@linaria/react';import { useContext } from 'react';import { isDefined } from 'twenty-shared/utils';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChartRenderer.tsxsimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChartRenderer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChartRenderer.tsxindex 2f4c4f9ee15..c642e5fa6b9 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChartRenderer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChartRenderer.tsx@@ -6,7 +6,7 @@ import { lazy, Suspense } from 'react';const GraphWidgetAggregateChart = lazy(() =>import(- '@/page-layout/widgets/graph/graphWidgetAggregateChart/components/GraphWidgetAggregateChart'+ '@/page-layout/widgets/graph/graph-widget-aggregate-chart/components/GraphWidgetAggregateChart').then((module) => ({default: module.GraphWidgetAggregateChart,})),diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/buildRatioNumeratorFilter.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/buildRatioNumeratorFilter.test.tsindex 0442bd2475c..1010c8e79eb 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/buildRatioNumeratorFilter.test.ts@@ -4,7 +4,7 @@ import {type RatioAggregateConfig,} from '~/generated-metadata/graphql';-import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter';+import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/buildRatioNumeratorFilter';describe('buildRatioNumeratorFilter', () => {const mockBooleanField = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/computeRatioDisplayValue.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/computeRatioDisplayValue.test.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/computeRatioDisplayValue.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/computeRatioDisplayValue.test.tsindex 333ac3a52d1..837c3d56ba0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/computeRatioDisplayValue.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/computeRatioDisplayValue.test.ts@@ -1,4 +1,4 @@-import { computeRatioDisplayValue } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/computeRatioDisplayValue';+import { computeRatioDisplayValue } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/computeRatioDisplayValue';describe('computeRatioDisplayValue', () => {it('should return "0%" when denominator is 0', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.tsindex 5f4e51b3690..9e782ea529c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/__tests__/getAvailableAggregateOperationsForAggregateChart.test.ts@@ -1,7 +1,7 @@import { DASHBOARD_AGGREGATE_OPERATION_RATIO } from '@/page-layout/widgets/graph/constants/DashboardAggregateOperationRatio';import { FieldMetadataType } from '~/generated-metadata/graphql';-import { getAvailableAggregateOperationsForAggregateChart } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAvailableAggregateOperationsForAggregateChart';+import { getAvailableAggregateOperationsForAggregateChart } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAvailableAggregateOperationsForAggregateChart';describe('getAvailableAggregateOperationsForAggregateChart', () => {it('should include RATIO for BOOLEAN field', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/buildRatioNumeratorFilter.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/buildRatioNumeratorFilter.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/computeRatioDisplayValue.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/computeRatioDisplayValue.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/computeRatioDisplayValue.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/computeRatioDisplayValue.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/formatNumberChartTrend.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/formatNumberChartTrend.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/formatNumberChartTrend.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/formatNumberChartTrend.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAggregateChartOperationLabel.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAggregateChartOperationLabel.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAggregateChartOperationLabel.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAggregateChartOperationLabel.tsindex 4d1e26eb4bf..73ac8747b9e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAggregateChartOperationLabel.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAggregateChartOperationLabel.ts@@ -1,6 +1,6 @@import { getAggregateOperationLabel } from '@/object-record/record-board/record-board-column/utils/getAggregateOperationLabel';import { DASHBOARD_AGGREGATE_OPERATION_RATIO } from '@/page-layout/widgets/graph/constants/DashboardAggregateOperationRatio';-import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation';+import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation';import { t } from '@lingui/core/macro';export const getAggregateChartOperationLabel = (diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAvailableAggregateOperationsForAggregateChart.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAvailableAggregateOperationsForAggregateChart.tssimilarity index 93%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAvailableAggregateOperationsForAggregateChart.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAvailableAggregateOperationsForAggregateChart.tsindex fd687da3b48..b1c24c6e82a 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAvailableAggregateOperationsForAggregateChart.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAvailableAggregateOperationsForAggregateChart.ts@@ -1,6 +1,6 @@import { getAvailableAggregateOperationsForFieldMetadataType } from '@/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType';import { DASHBOARD_AGGREGATE_OPERATION_RATIO } from '@/page-layout/widgets/graph/constants/DashboardAggregateOperationRatio';-import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation';+import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation';import { FieldMetadataType } from '~/generated-metadata/graphql';export const getAvailableAggregateOperationsForAggregateChart = ({diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChart.tsxsimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChart.tsxindex 255dc4662e7..3145ff45abc 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChart.tsx@@ -1,14 +1,14 @@-import { BarChartLayers } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers';-import { useBarChartTheme } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartTheme';-import { useMemoizedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions';-import { useBarChartLayout } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData';-import { computeAllCategorySlices } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeAllCategorySlices';-import { getSliceHoverDataFromMouseEvent } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromMouseEvent';-import { hasNegativeValuesInData } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/hasNegativeValuesInData';+import { BarChartLayers } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartLayers';+import { useBarChartTheme } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartTheme';+import { useMemoizedBarPositions } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useMemoizedBarPositions';+import { useBarChartLayout } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartLayout';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData';+import { computeAllCategorySlices } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeAllCategorySlices';+import { getSliceHoverDataFromMouseEvent } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromMouseEvent';+import { hasNegativeValuesInData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/hasNegativeValuesInData';import { graphWidgetHighlightedLegendIdComponentState } from '@/page-layout/widgets/graph/states/graphWidgetHighlightedLegendIdComponentState';import {formatGraphValue,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayer.tsxsimilarity index 93%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayer.tsxindex ea33b1fb32a..892d284af0b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayer.tsx@@ -1,5 +1,5 @@-import { BarChartBaseLayerEffect } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { BarChartBaseLayerEffect } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayerEffect';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { styled } from '@linaria/react';import { useRef } from 'react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayerEffect.tsxsimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayerEffect.tsxindex 79e58a745f6..35696d2cce1 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayerEffect.tsx@@ -1,11 +1,11 @@import { CHART_CORE_CONSTANTS } from '@/page-layout/widgets/graph/chart-core/constants/ChartCoreConstants';import { computeValueScale } from '@/page-layout/widgets/graph/chart-core/utils/computeValueScale';import { renderGridLayer } from '@/page-layout/widgets/graph/chart-core/utils/renderGridLayer';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBaselineBar } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBaselineBar';-import { interpolateBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/interpolateBars';-import { renderBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/renderBars';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBaselineBar } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBaselineBar';+import { interpolateBars } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/interpolateBars';+import { renderBars } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderBars';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import {type RefObject,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayer.tsxsimilarity index 90%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayer.tsxindex 0e7d0e2c63c..2743face84d 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayer.tsx@@ -1,5 +1,5 @@-import { BarChartHoverLayerEffect } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { BarChartHoverLayerEffect } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayerEffect';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { styled } from '@linaria/react';import { useRef } from 'react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayerEffect.tsxsimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayerEffect.tsxindex feb7a3d33b0..d31d5c01f8f 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayerEffect.tsx@@ -1,6 +1,6 @@import { CHART_CORE_CONSTANTS } from '@/page-layout/widgets/graph/chart-core/constants/ChartCoreConstants';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { renderSliceHighlight } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/renderSliceHighlight';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { renderSliceHighlight } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderSliceHighlight';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { type RefObject, useContext, useEffect, useState } from 'react';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartLayers.tsxsimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartLayers.tsxindex d75b9534a4a..d569afcddb7 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartLayers.tsx@@ -1,11 +1,11 @@import { AxisLayer } from '@/page-layout/widgets/graph/chart-core/layers/AxisLayer';import { type AxisLayerConfig } from '@/page-layout/widgets/graph/chart-core/types/AxisLayerConfig';import { NoDataLayer } from '@/page-layout/widgets/graph/components/NoDataLayer';-import { BarChartBaseLayer } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer';-import { BarChartHoverLayer } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer';-import { BarChartTotalsLayer } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { BarChartBaseLayer } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartBaseLayer';+import { BarChartHoverLayer } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartHoverLayer';+import { BarChartTotalsLayer } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTotalsLayer';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { styled } from '@linaria/react';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTooltip.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTooltip.tsxsimilarity index 88%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTooltip.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTooltip.tsxindex a6589ffe6bc..1d806f5c02c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTooltip.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTooltip.tsx@@ -1,11 +1,11 @@import { GraphWidgetFloatingTooltip } from '@/page-layout/widgets/graph/components/GraphWidgetFloatingTooltip';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { graphWidgetBarTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetBarTooltipComponentState';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { getBarChartTooltipData } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTooltipData';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { graphWidgetBarTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetBarTooltipComponentState';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { getBarChartTooltipData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTooltipData';import { createVirtualElementFromContainerOffset } from '@/page-layout/widgets/graph/utils/createVirtualElementFromContainerOffset';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import { type RefObject } from 'react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTotalsLayer.tsxsimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTotalsLayer.tsxindex c0a9673e549..844c665d286 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTotalsLayer.tsx@@ -1,8 +1,8 @@import { GraphDataLabel } from '@/page-layout/widgets/graph/components/GraphDataLabel';-import { type BarChartLabelData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartLabelData';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBarChartGroupedLabels } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartGroupedLabels';-import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartStackedLabels';+import { type BarChartLabelData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartLabelData';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBarChartGroupedLabels } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartGroupedLabels';+import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartStackedLabels';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { type GraphLabelData } from '@/page-layout/widgets/graph/types/GraphLabelData';import { styled } from '@linaria/react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChart.tsxsimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChart.tsxindex 9253ec54462..15de9dab830 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChart.tsx@@ -3,17 +3,17 @@ import { pageLayoutDraggingWidgetIdComponentState } from '@/page-layout/states/pimport { pageLayoutResizingWidgetIdComponentState } from '@/page-layout/states/pageLayoutResizingWidgetIdComponentState';import { GraphWidgetChartContainer } from '@/page-layout/widgets/graph/components/GraphWidgetChartContainer';import { GraphWidgetLegend } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';-import { BarChart } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart';-import { BarChartTooltip } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTooltip';-import { useBarChartData } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartData';-import { graphWidgetBarTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetBarTooltipComponentState';-import { graphWidgetHoveredSliceIndexComponentState } from '@/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetHoveredSliceIndexComponentState';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData';-import { calculateStackedBarChartValueRange } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateStackedBarChartValueRange';-import { calculateValueRangeFromBarChartKeys } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateValueRangeFromBarChartKeys';+import { BarChart } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChart';+import { BarChartTooltip } from '@/page-layout/widgets/graph/graph-widget-bar-chart/components/BarChartTooltip';+import { useBarChartData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartData';+import { graphWidgetBarTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetBarTooltipComponentState';+import { graphWidgetHoveredSliceIndexComponentState } from '@/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetHoveredSliceIndexComponentState';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData';+import { calculateStackedBarChartValueRange } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateStackedBarChartValueRange';+import { calculateValueRangeFromBarChartKeys } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateValueRangeFromBarChartKeys';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { computeEffectiveValueRange } from '@/page-layout/widgets/graph/utils/computeEffectiveValueRange';import { createGraphColorRegistry } from '@/page-layout/widgets/graph/utils/createGraphColorRegistry';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsxsimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsxindex c30af3ba8a9..8faff664083 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChartRenderer.tsx@@ -1,8 +1,8 @@import { isPageLayoutInEditModeComponentState } from '@/page-layout/states/isPageLayoutInEditModeComponentState';import { WidgetSkeletonLoader } from '@/page-layout/widgets/components/WidgetSkeletonLoader';import { GraphWidgetChartHasTooManyGroupsEffect } from '@/page-layout/widgets/graph/components/GraphWidgetChartHasTooManyGroupsEffect';-import { useGraphBarChartWidgetData } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { useGraphBarChartWidgetData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useGraphBarChartWidgetData';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';import { assertBarChartWidgetOrThrow } from '@/page-layout/widgets/graph/utils/assertBarChartWidget';import { buildChartDrilldownQueryParams } from '@/page-layout/widgets/graph/utils/buildChartDrilldownQueryParams';import { generateChartAggregateFilterKey } from '@/page-layout/widgets/graph/utils/generateChartAggregateFilterKey';@@ -21,7 +21,7 @@ import { AxisNameDisplay } from '~/generated-metadata/graphql';const GraphWidgetBarChart = lazy(() =>import(- '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart'+ '@/page-layout/widgets/graph/graph-widget-bar-chart/components/GraphWidgetBarChart').then((module) => ({default: module.GraphWidgetBarChart,})),diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/__tests__/useBarChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/__tests__/useBarChartData.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/__tests__/useBarChartData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/__tests__/useBarChartData.test.tsindex ecea2a77c61..d9656ae73c2 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/__tests__/useBarChartData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/__tests__/useBarChartData.test.ts@@ -1,5 +1,5 @@-import { useBarChartData } from '@/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartData';-import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries';+import { useBarChartData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartData';+import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';import { renderHook } from '@testing-library/react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartData.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartData.tsindex 90d5e06cef4..2dc30798d26 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartData.ts@@ -1,6 +1,6 @@import { type GraphWidgetLegendItem } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries';import { graphWidgetHiddenLegendIdsComponentState } from '@/page-layout/widgets/graph/states/graphWidgetHiddenLegendIdsComponentState';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartLayout.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartLayout.tsindex 9f24c93ef08..c24c4ee71a6 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartLayout.ts@@ -1,10 +1,10 @@import { type AxisLayerConfig } from '@/page-layout/widgets/graph/chart-core/types/AxisLayerConfig';import { getChartInnerDimensions } from '@/page-layout/widgets/graph/chart-core/utils/getChartInnerDimensions';import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding';-import { getBarChartLayout } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartInnerPadding';+import { getBarChartLayout } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartLayout';import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import { resolveAxisFontSizes } from '@/page-layout/widgets/graph/utils/resolveAxisFontSizes';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartTheme.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartTheme.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartTheme.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useBarChartTheme.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useGraphBarChartWidgetData.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useGraphBarChartWidgetData.tsindex 09861cf2a2f..bf6fae7ceb3 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useGraphBarChartWidgetData.ts@@ -1,9 +1,9 @@import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';import { type FieldMetadataItemOption } from '@/object-metadata/types/FieldMetadataItem';import { BAR_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/barChartData';-import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries';-import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries';+import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getEffectiveGroupMode';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type RawDimensionValue } from '@/page-layout/widgets/graph/types/RawDimensionValue';import { determineChartItemColor } from '@/page-layout/widgets/graph/utils/determineChartItemColor';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useMemoizedBarPositions.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useMemoizedBarPositions.tsindex 1e72f626b86..03953a5cf93 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/hooks/useMemoizedBarPositions.ts@@ -1,7 +1,7 @@-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBarPositions } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositions';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { useMemo } from 'react';import { type BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetBarTooltipComponentState.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetBarTooltipComponentState.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetBarTooltipComponentState.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetBarTooltipComponentState.tsindex 21578fadd88..bf3517e270e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetBarTooltipComponentState.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetBarTooltipComponentState.ts@@ -1,4 +1,4 @@-import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData';+import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData';import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/contexts/WidgetComponentInstanceContext';import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetHoveredSliceIndexComponentState.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetHoveredSliceIndexComponentState.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/states/graphWidgetHoveredSliceIndexComponentState.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/states/graphWidgetHoveredSliceIndexComponentState.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartLabelData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartLabelData.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartLabelData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartLabelData.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSeries.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice.tssimilarity index 83%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice.tsindex 6c99470f012..7c0621d9685 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice.ts@@ -1,4 +1,4 @@-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';export type BarChartSlice = {indexValue: string;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData.tssimilarity index 79%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData.tsindex 48696716bc0..53419574624 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData.ts@@ -1,4 +1,4 @@-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';export type BarChartSliceHoverData = {slice: BarChartSlice;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateBarChartValueRange.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateBarChartValueRange.test.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateBarChartValueRange.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateBarChartValueRange.test.tsindex 50862950d62..9c31a08fe7c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateBarChartValueRange.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateBarChartValueRange.test.ts@@ -1,5 +1,5 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { calculateValueRangeFromBarChartKeys } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateValueRangeFromBarChartKeys';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { calculateValueRangeFromBarChartKeys } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateValueRangeFromBarChartKeys';describe('calculateValueRangeFromBarChartKeys (essential cases)', () => {it('returns minimum=0 and maximum=highest value for all positive values', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateStackedBarChartValueRange.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateStackedBarChartValueRange.test.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateStackedBarChartValueRange.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateStackedBarChartValueRange.test.tsindex c629617cb90..203e8fc04b6 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/calculateStackedBarChartValueRange.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/calculateStackedBarChartValueRange.test.ts@@ -1,5 +1,5 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { calculateStackedBarChartValueRange } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateStackedBarChartValueRange';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { calculateStackedBarChartValueRange } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateStackedBarChartValueRange';describe('calculateStackedBarChartValueRange (essential cases)', () => {it('returns minimum=0 and maximum=largest positive stack', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeAllCategorySlices.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeAllCategorySlices.test.tssimilarity index 99%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeAllCategorySlices.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeAllCategorySlices.test.tsindex d75144f496a..eef2dc81132 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeAllCategorySlices.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeAllCategorySlices.test.ts@@ -1,4 +1,4 @@-import { computeAllCategorySlices } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeAllCategorySlices';+import { computeAllCategorySlices } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeAllCategorySlices';describe('computeAllCategorySlices', () => {const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 };diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartGroupedLabels.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartGroupedLabels.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartGroupedLabels.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartGroupedLabels.test.tsindex ae4bcd66528..3cdb4cde627 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartGroupedLabels.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartGroupedLabels.test.ts@@ -1,5 +1,5 @@-import { computeBarChartGroupedLabels } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartGroupedLabels';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { computeBarChartGroupedLabels } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartGroupedLabels';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';const createMockBar = (overrides: Partial<BarPosition> = {}): BarPosition => ({x: 0,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartStackedLabels.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartStackedLabels.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartStackedLabels.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartStackedLabels.test.tsindex b5a3e1a48c0..7139f2c4ac0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarChartStackedLabels.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarChartStackedLabels.test.ts@@ -1,5 +1,5 @@-import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartStackedLabels';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartStackedLabels';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';const createMockBar = (seriesId: string,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarPositions.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarPositions.test.tsindex 27d2e8d1dc4..015262387c4 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBarPositions.test.ts@@ -1,5 +1,5 @@-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { computeBarPositions } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositions';import { BarChartLayout } from '~/generated-metadata/graphql';describe('computeBarPositions', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBaselineBar.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBaselineBar.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBaselineBar.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBaselineBar.test.tsindex 37b1cc994a9..20335da2cc4 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBaselineBar.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeBaselineBar.test.ts@@ -1,5 +1,5 @@-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBaselineBar } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBaselineBar';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBaselineBar } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBaselineBar';describe('computeBaselineBar', () => {const createBar = (overrides: Partial<BarPosition> = {}): BarPosition => ({diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeGroupedBarLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeGroupedBarLayout.test.tssimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeGroupedBarLayout.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeGroupedBarLayout.test.tsindex 79a60d2ab48..1a6e59a3226 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeGroupedBarLayout.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeGroupedBarLayout.test.ts@@ -1,6 +1,6 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';-import { computeGroupedBarLayout } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';+import { computeGroupedBarLayout } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions';const createContext = (overrides: Partial<BarPositionContext> = {},diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeSliceTooltipPosition.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeSliceTooltipPosition.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeSliceTooltipPosition.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeSliceTooltipPosition.test.tsindex a6d69cc0ab9..46fd29cdd7c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeSliceTooltipPosition.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeSliceTooltipPosition.test.ts@@ -1,5 +1,5 @@-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { computeSliceTooltipPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceTooltipPosition';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { computeSliceTooltipPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceTooltipPosition';describe('computeSliceTooltipPosition', () => {const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 };diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeStackedBarLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeStackedBarLayout.test.tssimilarity index 85%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeStackedBarLayout.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeStackedBarLayout.test.tsindex 1c3b4e2083a..d7d0e72f49f 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeStackedBarLayout.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/computeStackedBarLayout.test.ts@@ -1,6 +1,6 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';-import { computeStackedBarLayout } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';+import { computeStackedBarLayout } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions';const createContext = (overrides: Partial<BarPositionContext> = {},diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartInnerPadding.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartInnerPadding.test.tsindex a1d3ab14348..b20c207beaf 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartInnerPadding.test.ts@@ -1,5 +1,5 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartInnerPadding';import { BarChartLayout } from '~/generated-metadata/graphql';describe('getBarChartInnerPadding', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartLayout.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartLayout.test.tsindex 5987a9cbb46..a76d6e9bada 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getBarChartLayout.test.ts@@ -1,8 +1,8 @@import { TEXT_MARGIN_LIMITS } from '@/page-layout/widgets/graph/constants/TextMarginLimits';-import { getBarChartLayout } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout';+import { getBarChartLayout } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartLayout';import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';import { BarChartLayout } from '~/generated-metadata/graphql';describe('getBarChartLayout', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getEffectiveGroupMode.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getEffectiveGroupMode.test.tsindex be8fe6d2c3f..8f59317155e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getEffectiveGroupMode.test.ts@@ -1,4 +1,4 @@-import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode';+import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getEffectiveGroupMode';import { BarChartGroupMode } from '~/generated-metadata/graphql';describe('getEffectiveGroupMode', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getGroupedBarDimensions.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getGroupedBarDimensions.test.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getGroupedBarDimensions.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getGroupedBarDimensions.test.tsindex cecf15fb030..a862ec2557d 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getGroupedBarDimensions.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getGroupedBarDimensions.test.ts@@ -1,8 +1,8 @@import {computeGroupedBarLayout,getGroupedBarDimensions,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';const createContext = (overrides: Partial<BarPositionContext> = {},diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getStackedBarDimensions.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getStackedBarDimensions.test.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getStackedBarDimensions.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getStackedBarDimensions.test.tsindex 69cdac2943d..8816bb79e39 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getStackedBarDimensions.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/getStackedBarDimensions.test.ts@@ -1,8 +1,8 @@import {getStackedBarDimensions,type StackedBarLayout,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';const createContext = (overrides: Partial<BarPositionContext> = {},diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/hasNegativeValuesInData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/hasNegativeValuesInData.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/hasNegativeValuesInData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/hasNegativeValuesInData.test.tsindex 89237c03c03..9c590b6b5ed 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/hasNegativeValuesInData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/hasNegativeValuesInData.test.ts@@ -1,4 +1,4 @@-import { hasNegativeValuesInData } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/hasNegativeValuesInData';+import { hasNegativeValuesInData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/hasNegativeValuesInData';describe('hasNegativeValuesInData', () => {describe('positive values only', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/interpolateBars.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/interpolateBars.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/interpolateBars.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/interpolateBars.test.tsindex 38834db55e4..52e89ba01d6 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/interpolateBars.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/interpolateBars.test.ts@@ -1,5 +1,5 @@-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { interpolateBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/interpolateBars';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { interpolateBars } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/interpolateBars';describe('interpolateBars', () => {const createBar = (overrides: Partial<BarPosition> = {}): BarPosition => ({diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/truncateTickLabel.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/truncateTickLabel.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/truncateTickLabel.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/truncateTickLabel.test.tsindex e67fbff56b3..c6edbac56cd 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/truncateTickLabel.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/__tests__/truncateTickLabel.test.ts@@ -1,4 +1,4 @@-import { truncateTickLabel } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel';+import { truncateTickLabel } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel';describe('truncateTickLabel', () => {it('should return the original string when it fits within maxLength', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/buildBars.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/buildBars.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/buildBars.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/buildBars.tsindex 604d13a75de..a2ae9c95f05 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/buildBars.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/buildBars.ts@@ -1,7 +1,7 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';import { isNumber } from '@sniptt/guards';type StackState = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateStackedBarChartValueRange.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateStackedBarChartValueRange.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateStackedBarChartValueRange.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateStackedBarChartValueRange.tsindex 51cb8442d82..1d993060630 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateStackedBarChartValueRange.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateStackedBarChartValueRange.ts@@ -1,6 +1,6 @@import { type ChartValueRange } from '@/page-layout/widgets/graph/types/ChartValueRange';import { calculateValueRangeFromValues } from '@/page-layout/widgets/graph/utils/calculateValueRangeFromValues';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';export const calculateStackedBarChartValueRange = (data: BarChartDatum[],diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateValueRangeFromBarChartKeys.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateValueRangeFromBarChartKeys.tssimilarity index 93%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateValueRangeFromBarChartKeys.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateValueRangeFromBarChartKeys.tsindex c2153d13736..a4384886b21 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/calculateValueRangeFromBarChartKeys.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/calculateValueRangeFromBarChartKeys.ts@@ -1,6 +1,6 @@import { type ChartValueRange } from '@/page-layout/widgets/graph/types/ChartValueRange';import { calculateValueRangeFromValues } from '@/page-layout/widgets/graph/utils/calculateValueRangeFromValues';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';export const calculateValueRangeFromBarChartKeys = (data: BarChartDatum[],diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeAllCategorySlices.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeAllCategorySlices.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeAllCategorySlices.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeAllCategorySlices.tsindex b85f377870a..0e4b3197064 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeAllCategorySlices.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeAllCategorySlices.ts@@ -1,8 +1,8 @@import { computeBandScale } from '@/page-layout/widgets/graph/chart-core/utils/computeBandScale';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { isDefined } from 'twenty-shared/utils';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartCategoryTickValues.tssimilarity index 90%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartCategoryTickValues.tsindex da51663eda8..98247dffde8 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartCategoryTickValues.ts@@ -1,6 +1,6 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeMinHeightPerTick';import { computeChartCategoryTickValues } from '@/page-layout/widgets/graph/utils/computeChartCategoryTickValues';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartGroupedLabels.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartGroupedLabels.tssimilarity index 88%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartGroupedLabels.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartGroupedLabels.tsindex 3c37a848ea3..f794a5e91fb 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartGroupedLabels.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartGroupedLabels.ts@@ -1,5 +1,5 @@-import { type BarChartLabelData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartLabelData';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarChartLabelData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartLabelData';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';export const computeBarChartGroupedLabels = (bars: BarPosition[],diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartStackedLabels.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartStackedLabels.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartStackedLabels.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartStackedLabels.tsindex e03d9607cc7..5fe45f5ed9b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartStackedLabels.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartStackedLabels.ts@@ -1,5 +1,5 @@-import { type BarChartLabelData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartLabelData';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarChartLabelData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartLabelData';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';import { isDefined } from 'twenty-shared/utils';export const computeBarChartStackedLabels = (diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartValueTickCount.tssimilarity index 85%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartValueTickCount.tsindex 205c3d680e8..bf256c46c95 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartValueTickCount.ts@@ -1,5 +1,5 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeMinHeightPerTick';import { BarChartLayout } from '~/generated-metadata/graphql';type ComputeBarChartValueTickCountProps = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext.tsindex 0e40d549030..95af88863c5 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext.ts@@ -1,7 +1,7 @@import { computeBandScale } from '@/page-layout/widgets/graph/chart-core/utils/computeBandScale';import { computeValueScale } from '@/page-layout/widgets/graph/chart-core/utils/computeValueScale';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';import {type BarChartLayout,BarChartLayout as BarChartLayoutEnum,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositions.tssimilarity index 86%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositions.tsindex 1daeb1afd46..d52aa6823dc 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositions.ts@@ -1,8 +1,8 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBarPositionsByGroupMode } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode';-import { computeShouldRoundFreeEndMap } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBarPositionsByGroupMode } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionsByGroupMode';+import { computeShouldRoundFreeEndMap } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeShouldRoundFreeEndMap';import { getChartInnerDimensions } from '@/page-layout/widgets/graph/chart-core/utils/getChartInnerDimensions';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { type BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionsByGroupMode.tssimilarity index 83%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionsByGroupMode.tsindex 243e0726e16..b8103d3151c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionsByGroupMode.ts@@ -1,9 +1,9 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { computeBarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';-import { computeGroupedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions';-import { computeStackedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { computeBarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';+import { computeGroupedBarPositions } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeGroupedBarPositions';+import { computeStackedBarPositions } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeStackedBarPositions';import { type BarChartLayout } from '~/generated-metadata/graphql';type ComputeBarPositionsByGroupModeParams = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBaselineBar.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBaselineBar.tssimilarity index 93%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBaselineBar.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBaselineBar.tsindex 14a5b6e2939..f7bec866b2e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBaselineBar.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBaselineBar.ts@@ -1,4 +1,4 @@-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';type ComputeBaselineBarParams = {bar: BarPosition;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeGroupedBarPositions.tssimilarity index 77%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeGroupedBarPositions.tsindex fd55c4ebbe9..723247263cb 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeGroupedBarPositions.ts@@ -1,12 +1,12 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';-import { buildBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/buildBars';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';+import { buildBars } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/buildBars';import {computeGroupedBarLayout,getGroupedBarDimensions,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions';type ComputeGroupedBarPositionsParams = {ctx: BarPositionContext;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeMinHeightPerTick.tssimilarity index 82%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeMinHeightPerTick.tsindex 26f05a5edaa..d9457d59230 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeMinHeightPerTick.ts@@ -1,4 +1,4 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';export const computeMinHeightPerTick = ({axisFontSize,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeShouldRoundFreeEndMap.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeShouldRoundFreeEndMap.tsindex fb6020bb7c7..abe407196d9 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeShouldRoundFreeEndMap.ts@@ -1,6 +1,6 @@import { isNumber } from '@sniptt/guards';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';export const computeShouldRoundFreeEndMap = ({data,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceHighlightPosition.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceHighlightPosition.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceHighlightPosition.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceHighlightPosition.tsindex 602a9b4052a..bd4b83c94f8 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceHighlightPosition.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceHighlightPosition.ts@@ -1,4 +1,4 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';type ComputeSliceHighlightPositionParams = {sliceCenter: number | null;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceTooltipPosition.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceTooltipPosition.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceTooltipPosition.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceTooltipPosition.tsindex db3a244418a..a2a1babf939 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceTooltipPosition.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceTooltipPosition.ts@@ -1,6 +1,6 @@-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';-import { findAnchorBarInSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/findAnchorBarInSlice';+import { findAnchorBarInSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/findAnchorBarInSlice';type ComputeSliceTooltipPositionParams = {slice: BarChartSlice;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeStackedBarPositions.tssimilarity index 80%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeStackedBarPositions.tsindex c72b4cdc667..d23ab107989 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeStackedBarPositions.ts@@ -1,12 +1,12 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';-import { buildBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/buildBars';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';+import { buildBars } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/buildBars';import {computeStackedBarLayout,getStackedBarDimensions,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions';type ComputeStackedBarPositionsParams = {ctx: BarPositionContext;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/drawRoundedRect.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/drawRoundedRect.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/drawRoundedRect.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/drawRoundedRect.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findAnchorBarInSlice.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findAnchorBarInSlice.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findAnchorBarInSlice.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findAnchorBarInSlice.tsindex 8bf04d8244f..adcac5ca715 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findAnchorBarInSlice.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findAnchorBarInSlice.ts@@ -1,4 +1,4 @@-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';export const findAnchorBarInSlice = ({bars,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findSliceAtPosition.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findSliceAtPosition.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findSliceAtPosition.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findSliceAtPosition.tsindex f9a1c47e032..64f5680fec0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/findSliceAtPosition.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/findSliceAtPosition.ts@@ -1,4 +1,4 @@-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';export const findSliceAtPosition = ({mouseX,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartAxisConfigs.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartAxisConfigs.tsindex c7d393e54a9..5ded3ac5eaf 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartAxisConfigs.ts@@ -1,12 +1,12 @@-import { truncateTickLabel } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel';+import { truncateTickLabel } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel';import {formatGraphValue,type GraphValueFormatOptions,} from '@/page-layout/widgets/graph/utils/graphFormatters';import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartTickConfig } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartTickConfig } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTickConfig';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartInnerPadding.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartInnerPadding.tsindex 47e43f112c5..3bd9d37e4b2 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartInnerPadding.ts@@ -1,4 +1,4 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';import { computeBandScale } from '@/page-layout/widgets/graph/chart-core/utils/computeBandScale';import { BarChartLayout } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartLayout.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartLayout.tsindex 8b3e2758b05..8525fa02d58 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartLayout.ts@@ -1,12 +1,12 @@import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { getBarChartAxisConfigs } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { getBarChartAxisConfigs } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartAxisConfigs';import {getBarChartTickConfig,type BarChartTickConfig,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig';-import { truncateTickLabel } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTickConfig';+import { truncateTickLabel } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel';import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { computeBottomLegendOffsetFromText } from '@/page-layout/widgets/graph/utils/computeBottomLegendOffsetFromText';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTickConfig.tssimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTickConfig.tsindex 17eff5fb08f..bba0f9a6376 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTickConfig.ts@@ -1,7 +1,7 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { computeBarChartCategoryTickValues } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues';-import { computeBarChartValueTickCount } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { computeBarChartCategoryTickValues } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartCategoryTickValues';+import { computeBarChartValueTickCount } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarChartValueTickCount';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { computeMaxLabelLengthForMargin } from '@/page-layout/widgets/graph/utils/computeMaxLabelLengthForMargin';import { getTickRotationConfig } from '@/page-layout/widgets/graph/utils/getTickRotationConfig';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTooltipData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTooltipData.tssimilarity index 90%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTooltipData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTooltipData.tsindex 32ce4b1f013..7baf9d00124 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTooltipData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getBarChartTooltipData.ts@@ -1,7 +1,7 @@import { type GraphWidgetTooltipItem } from '@/page-layout/widgets/graph/components/GraphWidgetTooltip';-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';-import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';+import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartEnrichedKey';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';import {formatGraphValue,type GraphValueFormatOptions,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getEffectiveGroupMode.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getEffectiveGroupMode.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions.tsindex 279ea7c49d4..7b6b5400ee2 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getGroupedBarDimensions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getGroupedBarDimensions.ts@@ -1,5 +1,5 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';type GetGroupedBarDimensionsParams = {ctx: BarPositionContext;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromMouseEvent.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromMouseEvent.tssimilarity index 85%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromMouseEvent.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromMouseEvent.tsindex 6fa61ff5d3a..e43543fd601 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromMouseEvent.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromMouseEvent.ts@@ -1,7 +1,7 @@import { getPointerPosition } from '@/page-layout/widgets/graph/chart-core/utils/getPointerPosition';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData';-import { getSliceHoverDataFromPointerPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromPointerPosition';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData';+import { getSliceHoverDataFromPointerPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromPointerPosition';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { type MouseEvent } from 'react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromPointerPosition.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromPointerPosition.tssimilarity index 87%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromPointerPosition.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromPointerPosition.tsindex 2ad6a2c0abf..19441ca2e15 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getSliceHoverDataFromPointerPosition.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getSliceHoverDataFromPointerPosition.ts@@ -1,8 +1,8 @@import { isPointInChartArea } from '@/page-layout/widgets/graph/chart-core/utils/isPointInChartArea';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';-import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSliceHoverData';-import { computeSliceTooltipPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeSliceTooltipPosition';-import { findSliceAtPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/findSliceAtPosition';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';+import { type BarChartSliceHoverData } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSliceHoverData';+import { computeSliceTooltipPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeSliceTooltipPosition';+import { findSliceAtPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/findSliceAtPosition';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';type GetSliceHoverDataFromPointerPositionParams = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions.tsindex 13e726b14a0..32c164ae856 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getStackedBarDimensions.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/getStackedBarDimensions.ts@@ -1,6 +1,6 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';import { computeValueScale } from '@/page-layout/widgets/graph/chart-core/utils/computeValueScale';-import { type BarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';+import { type BarPositionContext } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/computeBarPositionContext';type GetStackedBarDimensionsParams = {ctx: BarPositionContext;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/hasNegativeValuesInData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/hasNegativeValuesInData.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/hasNegativeValuesInData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/hasNegativeValuesInData.tsindex b6fdbfaa9f3..65081a86e5b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/hasNegativeValuesInData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/hasNegativeValuesInData.ts@@ -1,4 +1,4 @@-import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';+import { type BarChartDatum } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartDatum';import { isNumber } from '@sniptt/guards';export const hasNegativeValuesInData = (diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/interpolateBars.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/interpolateBars.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/interpolateBars.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/interpolateBars.tsindex 516e8030041..4de32d24525 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/interpolateBars.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/interpolateBars.ts@@ -1,5 +1,5 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';const getBarKey = (bar: BarPosition) => `${bar.indexValue}::${bar.seriesId}`;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderBars.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderBars.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderBars.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderBars.tsindex 978c9a9fdf7..ab7c1754e16 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderBars.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderBars.ts@@ -1,9 +1,9 @@import { LEGEND_HIGHLIGHT_DIMMED_OPACITY } from '@/page-layout/widgets/graph/constants/LegendHighlightDimmedOpacity.constant';-import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';+import { type BarPosition } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarPosition';import {drawHorizontalRoundedRect,drawRoundedRect,-} from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/drawRoundedRect';+} from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/drawRoundedRect';export const renderBars = ({ctx,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderSliceHighlight.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderSliceHighlight.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderSliceHighlight.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderSliceHighlight.tsindex a051ecd3c6c..a4631452802 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/renderSliceHighlight.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/renderSliceHighlight.ts@@ -1,5 +1,5 @@-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSlice';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { type BarChartSlice } from '@/page-layout/widgets/graph/graph-widget-bar-chart/types/BarChartSlice';export const renderSliceHighlight = ({ctx,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GaugeChartEndLine.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GaugeChartEndLine.tsxsimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GaugeChartEndLine.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GaugeChartEndLine.tsxindex 296f626614b..21c01589496 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GaugeChartEndLine.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GaugeChartEndLine.tsx@@ -1,5 +1,5 @@import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';-import { calculateGaugeChartEndLineCoordinates } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/utils/calculateGaugeChartEndLineCoordinates';+import { calculateGaugeChartEndLineCoordinates } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/utils/calculateGaugeChartEndLineCoordinates';import { type RadialBarCustomLayerProps } from '@nivo/radial-bar';import { isDefined } from 'twenty-shared/utils';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GraphWidgetGaugeChart.tsxsimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GraphWidgetGaugeChart.tsxindex d13aea347a7..ffe0727b320 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/components/GraphWidgetGaugeChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/components/GraphWidgetGaugeChart.tsx@@ -1,10 +1,10 @@import { CHART_MOTION_CONFIG } from '@/page-layout/widgets/graph/constants/ChartMotionConfig';import { GraphWidgetLegend } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';import { GraphWidgetTooltip } from '@/page-layout/widgets/graph/components/GraphWidgetTooltip';-import { GaugeChartEndLine } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/components/GaugeChartEndLine';-import { useGaugeChartData } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartData';-import { useGaugeChartTooltip } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartTooltip';-import { type GaugeChartData } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/types/GaugeChartData';+import { GaugeChartEndLine } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/components/GaugeChartEndLine';+import { useGaugeChartData } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartData';+import { useGaugeChartTooltip } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartTooltip';+import { type GaugeChartData } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/types/GaugeChartData';import { createGraphColorRegistry } from '@/page-layout/widgets/graph/utils/createGraphColorRegistry';import {formatGraphValue,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/__tests__/useGaugeChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/__tests__/useGaugeChartData.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/__tests__/useGaugeChartData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/__tests__/useGaugeChartData.test.tsindex 471db5b2c46..121d7ed74dc 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/__tests__/useGaugeChartData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/__tests__/useGaugeChartData.test.ts@@ -1,7 +1,7 @@-import { type GaugeChartData } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/types/GaugeChartData';+import { type GaugeChartData } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/types/GaugeChartData';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';import { renderHook } from '@testing-library/react';-import { useGaugeChartData } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartData';+import { useGaugeChartData } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartData';describe('useGaugeChartData', () => {const mockColorRegistry: GraphColorRegistry = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartData.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartData.tsindex 2746f8b1fa1..eb8d3ee74f4 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartData.ts@@ -1,4 +1,4 @@-import { type GaugeChartData } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/types/GaugeChartData';+import { type GaugeChartData } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/types/GaugeChartData';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';import { getColorScheme } from '@/page-layout/widgets/graph/utils/getColorScheme';import { useMemo } from 'react';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartTooltip.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartTooltip.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/hooks/useGaugeChartTooltip.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/hooks/useGaugeChartTooltip.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/types/GaugeChartData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/types/GaugeChartData.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/types/GaugeChartData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/types/GaugeChartData.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.tsindex cfcc609cfed..fb32df71191 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/utils/__tests__/calculateGaugeChartEndLineCoordinates.test.ts@@ -1,4 +1,4 @@-import { calculateGaugeChartEndLineCoordinates } from '@/page-layout/widgets/graph/graphWidgetGaugeChart/utils/calculateGaugeChartEndLineCoordinates';+import { calculateGaugeChartEndLineCoordinates } from '@/page-layout/widgets/graph/graph-widget-gauge-chart/utils/calculateGaugeChartEndLineCoordinates';describe('calculateGaugeChartEndLineCoordinates', () => {it('should calculate coordinates for angle π/2 (after adjustment points right)', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/utils/calculateGaugeChartEndLineCoordinates.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/utils/calculateGaugeChartEndLineCoordinates.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetGaugeChart/utils/calculateGaugeChartEndLineCoordinates.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-gauge-chart/utils/calculateGaugeChartEndLineCoordinates.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomCrosshairLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomCrosshairLayer.tsxsimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomCrosshairLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomCrosshairLayer.tsxindex b18c6e09a77..d92146d2e39 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomCrosshairLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomCrosshairLayer.tsx@@ -1,5 +1,5 @@-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { graphWidgetLineCrosshairXComponentState } from '@/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineCrosshairXComponentState';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { graphWidgetLineCrosshairXComponentState } from '@/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineCrosshairXComponentState';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { type LineSeries, type Point } from '@nivo/line';import { motion } from 'framer-motion';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomLinesLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomLinesLayer.tsxsimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomLinesLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomLinesLayer.tsxdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomPointLabelsLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomPointLabelsLayer.tsxsimilarity index 90%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomPointLabelsLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomPointLabelsLayer.tsxindex 296217532dd..6f9b0027a5b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomPointLabelsLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomPointLabelsLayer.tsx@@ -1,6 +1,6 @@import { GraphDataLabel } from '@/page-layout/widgets/graph/components/GraphDataLabel';-import { computeLineChartGroupedLabels } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartGroupedLabels';-import { computeLineChartStackedLabels } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartStackedLabels';+import { computeLineChartGroupedLabels } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartGroupedLabels';+import { computeLineChartStackedLabels } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartStackedLabels';import { type LineCustomSvgLayerProps, type LineSeries } from '@nivo/line';type CustomPointLabelsLayerProps = Pick<diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomStackedAreasLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomStackedAreasLayer.tsxsimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomStackedAreasLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomStackedAreasLayer.tsxindex 6c25968af46..200824a3e6a 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/CustomStackedAreasLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/CustomStackedAreasLayer.tsx@@ -1,7 +1,7 @@-import { LineAnimatedAreaPath } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/LineAnimatedAreaPath';-import { LineAreaGradientDefs } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/LineAreaGradientDefs';-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';-import { computeLineAreaPath } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineAreaPath';+import { LineAnimatedAreaPath } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/LineAnimatedAreaPath';+import { LineAreaGradientDefs } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/LineAreaGradientDefs';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';+import { computeLineAreaPath } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineAreaPath';import {type ComputedSeries,type LineCustomSvgLayerProps,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphLineChartTooltip.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphLineChartTooltip.tsxsimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphLineChartTooltip.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphLineChartTooltip.tsxindex 0a8835147bf..9ca36b3262d 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphLineChartTooltip.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphLineChartTooltip.tsx@@ -1,8 +1,8 @@import { GraphWidgetFloatingTooltip } from '@/page-layout/widgets/graph/components/GraphWidgetFloatingTooltip';-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { graphWidgetLineTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineTooltipComponentState';-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';-import { getLineChartTooltipData } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartTooltipData';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { graphWidgetLineTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineTooltipComponentState';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';+import { getLineChartTooltipData } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartTooltipData';import { createVirtualElementFromContainerOffset } from '@/page-layout/widgets/graph/utils/createVirtualElementFromContainerOffset';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChart.tsxsimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChart.tsxindex 7beedc285a4..7ff92e5651c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChart.tsx@@ -5,18 +5,18 @@ import { NoDataLayer } from '@/page-layout/widgets/graph/components/NoDataLayer'import {CustomCrosshairLayer,type SliceHoverData,-} from '@/page-layout/widgets/graph/graphWidgetLineChart/components/CustomCrosshairLayer';-import { CustomLinesLayer } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/CustomLinesLayer';-import { CustomPointLabelsLayer } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/CustomPointLabelsLayer';-import { CustomStackedAreasLayer } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/CustomStackedAreasLayer';-import { GraphLineChartTooltip } from '@/page-layout/widgets/graph/graphWidgetLineChart/components/GraphLineChartTooltip';-import { useLineChartData } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData';-import { useLineChartTheme } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartTheme';-import { graphWidgetLineCrosshairXComponentState } from '@/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineCrosshairXComponentState';-import { graphWidgetLineTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineTooltipComponentState';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';-import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries';-import { getLineChartLayout } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartLayout';+} from '@/page-layout/widgets/graph/graph-widget-line-chart/components/CustomCrosshairLayer';+import { CustomLinesLayer } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/CustomLinesLayer';+import { CustomPointLabelsLayer } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/CustomPointLabelsLayer';+import { CustomStackedAreasLayer } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/CustomStackedAreasLayer';+import { GraphLineChartTooltip } from '@/page-layout/widgets/graph/graph-widget-line-chart/components/GraphLineChartTooltip';+import { useLineChartData } from '@/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartData';+import { useLineChartTheme } from '@/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartTheme';+import { graphWidgetLineCrosshairXComponentState } from '@/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineCrosshairXComponentState';+import { graphWidgetLineTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineTooltipComponentState';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';+import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/calculateValueRangeFromLineChartSeries';+import { getLineChartLayout } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartLayout';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { computeEffectiveValueRange } from '@/page-layout/widgets/graph/utils/computeEffectiveValueRange';import { createGraphColorRegistry } from '@/page-layout/widgets/graph/utils/createGraphColorRegistry';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsxsimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsxindex 600dc41d95b..49b15c217da 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChartRenderer.tsx@@ -1,8 +1,8 @@import { isPageLayoutInEditModeComponentState } from '@/page-layout/states/isPageLayoutInEditModeComponentState';import { WidgetSkeletonLoader } from '@/page-layout/widgets/components/WidgetSkeletonLoader';import { GraphWidgetChartHasTooManyGroupsEffect } from '@/page-layout/widgets/graph/components/GraphWidgetChartHasTooManyGroupsEffect';-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { useGraphLineChartWidgetData } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { useGraphLineChartWidgetData } from '@/page-layout/widgets/graph/graph-widget-line-chart/hooks/useGraphLineChartWidgetData';import { assertLineChartWidgetOrThrow } from '@/page-layout/widgets/graph/utils/assertLineChartWidget';import { buildChartDrilldownQueryParams } from '@/page-layout/widgets/graph/utils/buildChartDrilldownQueryParams';import { generateChartAggregateFilterKey } from '@/page-layout/widgets/graph/utils/generateChartAggregateFilterKey';@@ -25,7 +25,7 @@ import {const GraphWidgetLineChart = lazy(() =>import(- '@/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChart'+ '@/page-layout/widgets/graph/graph-widget-line-chart/components/GraphWidgetLineChart').then((module) => ({default: module.GraphWidgetLineChart,})),diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/LineAnimatedAreaPath.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/LineAnimatedAreaPath.tsxsimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/LineAnimatedAreaPath.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/LineAnimatedAreaPath.tsxdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/LineAreaGradientDefs.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/LineAreaGradientDefs.tsxsimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/LineAreaGradientDefs.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/LineAreaGradientDefs.tsxindex 5c1aa9d5662..d9397ddbffc 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/LineAreaGradientDefs.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/components/LineAreaGradientDefs.tsx@@ -1,5 +1,5 @@-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';-import { createAreaFillDef } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/createAreaFillDef';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';+import { createAreaFillDef } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/createAreaFillDef';type LineAreaGradientDefsProps = {enrichedSeries: LineChartEnrichedSeries[];diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/__tests__/useLineChartData.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/__tests__/useLineChartData.test.tsindex eb4d100cfe1..e2daf45080c 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/__tests__/useLineChartData.test.ts@@ -1,8 +1,8 @@-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';import { renderHook } from '@testing-library/react';-import { useLineChartData } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData';+import { useLineChartData } from '@/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartData';import { type LineChartSeries } from '~/generated-metadata/graphql';const mockUseAtomComponentStateValue = jest.fn();diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useGraphLineChartWidgetData.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useGraphLineChartWidgetData.tsindex 04dc287ff5c..45346e52cf3 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useGraphLineChartWidgetData.ts@@ -1,7 +1,7 @@import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';import { LINE_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/lineChartData';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type RawDimensionValue } from '@/page-layout/widgets/graph/types/RawDimensionValue';import { determineChartItemColor } from '@/page-layout/widgets/graph/utils/determineChartItemColor';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartData.tssimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartData.tsindex 43d19b160e9..d09f656a893 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartData.ts@@ -1,6 +1,6 @@import { type GraphWidgetLegendItem } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { graphWidgetHiddenLegendIdsComponentState } from '@/page-layout/widgets/graph/states/graphWidgetHiddenLegendIdsComponentState';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartTheme.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartTheme.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartTheme.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/hooks/useLineChartTheme.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineCrosshairXComponentState.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineCrosshairXComponentState.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineCrosshairXComponentState.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineCrosshairXComponentState.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineTooltipComponentState.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineTooltipComponentState.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/states/graphWidgetLineTooltipComponentState.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/states/graphWidgetLineTooltipComponentState.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartDataPoint.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartDataPoint.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartDataPoint.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartDataPoint.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries.tssimilarity index 81%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries.tsindex 72b7740ab5c..f6c3510092e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries.ts@@ -1,4 +1,4 @@-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';export type LineChartEnrichedSeries = LineChartSeriesWithColor & {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor.tssimilarity index 82%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor.tsindex cb538a0b9e8..e1eac6850a3 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor.ts@@ -1,4 +1,4 @@-import { type LineChartDataPoint } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartDataPoint';+import { type LineChartDataPoint } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartDataPoint';import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor';export type LineChartSeriesWithColor = {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.tsindex fc226dc2c21..7cb7cdbc9ad 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts@@ -1,5 +1,5 @@-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';-import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';+import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/calculateValueRangeFromLineChartSeries';import { type LineChartSeries } from '~/generated-metadata/graphql';describe('calculateValueRangeFromLineChartSeries', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineAreaPath.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineAreaPath.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineAreaPath.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineAreaPath.test.tsindex 6f25b54b123..296684b312e 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineAreaPath.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineAreaPath.test.ts@@ -27,7 +27,7 @@ jest.mock('d3-shape', () => {};});-import { computeLineAreaPath } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineAreaPath';+import { computeLineAreaPath } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineAreaPath';const buildComputedSeries = (points: { x: number; y: number }[],diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartGroupedLabels.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartGroupedLabels.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartGroupedLabels.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartGroupedLabels.test.tsindex 8718a08f63c..43518037021 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartGroupedLabels.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartGroupedLabels.test.ts@@ -1,4 +1,4 @@-import { computeLineChartGroupedLabels } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartGroupedLabels';+import { computeLineChartGroupedLabels } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartGroupedLabels';import { type LineSeries, type Point } from '@nivo/line';type MockPointOverrides = Omit<Partial<Point<LineSeries>>, 'data'> & {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartStackedLabels.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartStackedLabels.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartStackedLabels.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartStackedLabels.test.tsindex a8ff158feb5..486a4c4bdbf 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/computeLineChartStackedLabels.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/computeLineChartStackedLabels.test.ts@@ -1,5 +1,5 @@import { type LineSeries, type Point } from '@nivo/line';-import { computeLineChartStackedLabels } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartStackedLabels';+import { computeLineChartStackedLabels } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartStackedLabels';const createMockPoint = (seriesId: string,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/createAreaFillDef.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/createAreaFillDef.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/createAreaFillDef.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/createAreaFillDef.test.tsindex 61d66d5c23f..b4092afb929 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/createAreaFillDef.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/createAreaFillDef.test.ts@@ -1,5 +1,5 @@-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { createAreaFillDef } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/createAreaFillDef';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { createAreaFillDef } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/createAreaFillDef';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';describe('createAreaFillDef', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartLayout.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartLayout.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartLayout.test.tsindex 96d308ce0c7..cd0d3558a99 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartLayout.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartLayout.test.ts@@ -1,7 +1,7 @@import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';import { TEXT_MARGIN_LIMITS } from '@/page-layout/widgets/graph/constants/TextMarginLimits';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';-import { getLineChartLayout } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartLayout';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';+import { getLineChartLayout } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartLayout';import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartTooltipData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartTooltipData.test.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartTooltipData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartTooltipData.test.tsindex 3c591d262e6..ac54d265c82 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/getLineChartTooltipData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/__tests__/getLineChartTooltipData.test.ts@@ -1,5 +1,5 @@-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';-import { getLineChartTooltipData } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartTooltipData';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';+import { getLineChartTooltipData } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartTooltipData';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import {type LineSeries,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/calculateValueRangeFromLineChartSeries.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/calculateValueRangeFromLineChartSeries.tsindex f070e913a6c..c4eac0357a3 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/calculateValueRangeFromLineChartSeries.ts@@ -1,4 +1,4 @@-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { type ChartValueRange } from '@/page-layout/widgets/graph/types/ChartValueRange';import { calculateValueRangeFromValues } from '@/page-layout/widgets/graph/utils/calculateValueRangeFromValues';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineAreaPath.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineAreaPath.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineAreaPath.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineAreaPath.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartCategoryTickValues.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartCategoryTickValues.tssimilarity index 90%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartCategoryTickValues.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartCategoryTickValues.tsindex 43a7dc69648..339b4ed96c0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartCategoryTickValues.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartCategoryTickValues.ts@@ -1,7 +1,7 @@import { isNumber, isString } from '@sniptt/guards';-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';import { computeChartCategoryTickValues } from '@/page-layout/widgets/graph/utils/computeChartCategoryTickValues';export const computeLineChartCategoryTickValues = ({diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartGroupedLabels.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartGroupedLabels.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartGroupedLabels.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartGroupedLabels.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartStackedLabels.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartStackedLabels.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartStackedLabels.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartStackedLabels.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/createAreaFillDef.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/createAreaFillDef.tssimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/createAreaFillDef.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/createAreaFillDef.tsindex 89e918a77b7..af238485080 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/createAreaFillDef.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/createAreaFillDef.ts@@ -1,4 +1,4 @@-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';export const createAreaFillDef = (diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisBottomConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisBottomConfig.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisBottomConfig.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisBottomConfig.tsindex 610f1225b4a..23090982ff1 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisBottomConfig.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisBottomConfig.ts@@ -1,7 +1,7 @@import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';-import { truncateTickLabel } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/truncateTickLabel';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';-import { computeLineChartCategoryTickValues } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/computeLineChartCategoryTickValues';+import { truncateTickLabel } from '@/page-layout/widgets/graph/graph-widget-bar-chart/utils/truncateTickLabel';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';+import { computeLineChartCategoryTickValues } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/computeLineChartCategoryTickValues';import { getTickRotationConfig } from '@/page-layout/widgets/graph/utils/getTickRotationConfig';import { isNonEmptyArray } from '@sniptt/guards';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisLeftConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisLeftConfig.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisLeftConfig.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisLeftConfig.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartLayout.tssimilarity index 94%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartLayout.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartLayout.tsindex 96d63228a97..0cbfbd7d181 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartLayout.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartLayout.ts@@ -1,8 +1,8 @@import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/CommonChartConstants';-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';-import { getLineChartAxisBottomConfig } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisBottomConfig';-import { getLineChartAxisLeftConfig } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartAxisLeftConfig';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartSeriesWithColor';+import { getLineChartAxisBottomConfig } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisBottomConfig';+import { getLineChartAxisLeftConfig } from '@/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartAxisLeftConfig';import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';import { computeBottomLegendOffsetFromText } from '@/page-layout/widgets/graph/utils/computeBottomLegendOffsetFromText';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartTooltipData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartTooltipData.tssimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartTooltipData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartTooltipData.tsindex 2c3c107bad1..e724bce53a1 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/getLineChartTooltipData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-line-chart/utils/getLineChartTooltipData.ts@@ -1,5 +1,5 @@import { type GraphWidgetTooltipItem } from '@/page-layout/widgets/graph/components/GraphWidgetTooltip';-import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartEnrichedSeries';+import { type LineChartEnrichedSeries } from '@/page-layout/widgets/graph/graph-widget-line-chart/types/LineChartEnrichedSeries';import {formatGraphValue,type GraphValueFormatOptions,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/CustomArcsLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/CustomArcsLayer.tsxsimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/CustomArcsLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/CustomArcsLayer.tsxindex 4cb5703315e..3904337b9c0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/CustomArcsLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/CustomArcsLayer.tsx@@ -1,5 +1,5 @@import { LEGEND_HIGHLIGHT_DIMMED_OPACITY } from '@/page-layout/widgets/graph/constants/LegendHighlightDimmedOpacity.constant';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { graphWidgetHighlightedLegendIdComponentState } from '@/page-layout/widgets/graph/states/graphWidgetHighlightedLegendIdComponentState';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';import { useArcsTransition } from '@nivo/arcs';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphPieChartTooltip.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphPieChartTooltip.tsxsimilarity index 88%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphPieChartTooltip.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphPieChartTooltip.tsxindex 8e256294749..43c8b5cb89b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphPieChartTooltip.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphPieChartTooltip.tsx@@ -1,9 +1,9 @@import { GraphWidgetFloatingTooltip } from '@/page-layout/widgets/graph/components/GraphWidgetFloatingTooltip';-import { PIE_CHART_TOOLTIP_OFFSET_PX } from '@/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartTooltipOffsetPx';-import { graphWidgetPieTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetPieChart/states/graphWidgetPieTooltipComponentState';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';-import { getPieChartTooltipData } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartTooltipData';+import { PIE_CHART_TOOLTIP_OFFSET_PX } from '@/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartTooltipOffsetPx';+import { graphWidgetPieTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-pie-chart/states/graphWidgetPieTooltipComponentState';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';+import { getPieChartTooltipData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartTooltipData';import { createVirtualElementFromContainerOffset } from '@/page-layout/widgets/graph/utils/createVirtualElementFromContainerOffset';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChart.tsxsimilarity index 93%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChart.tsxindex 20e92c8cf7d..3aa37a93da7 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChart.tsx@@ -2,15 +2,15 @@ import { GraphWidgetChartContainer } from '@/page-layout/widgets/graph/componentimport { themeCssVariables } from 'twenty-ui/theme-constants';import { GraphWidgetLegend } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';import { CHART_MOTION_CONFIG } from '@/page-layout/widgets/graph/constants/ChartMotionConfig';-import { CustomArcsLayer } from '@/page-layout/widgets/graph/graphWidgetPieChart/components/CustomArcsLayer';-import { GraphPieChartTooltip } from '@/page-layout/widgets/graph/graphWidgetPieChart/components/GraphPieChartTooltip';-import { PieChartCenterMetric } from '@/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer';-import { PIE_CHART_HOVER_BRIGHTNESS } from '@/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartHoverBrightness';-import { PIE_CHART_MARGINS } from '@/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMargins';-import { usePieChartData } from '@/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartData';-import { graphWidgetPieTooltipComponentState } from '@/page-layout/widgets/graph/graphWidgetPieChart/states/graphWidgetPieTooltipComponentState';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { getPieChartFormattedValue } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartFormattedValue';+import { CustomArcsLayer } from '@/page-layout/widgets/graph/graph-widget-pie-chart/components/CustomArcsLayer';+import { GraphPieChartTooltip } from '@/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphPieChartTooltip';+import { PieChartCenterMetric } from '@/page-layout/widgets/graph/graph-widget-pie-chart/components/PieChartCenterMetricLayer';+import { PIE_CHART_HOVER_BRIGHTNESS } from '@/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartHoverBrightness';+import { PIE_CHART_MARGINS } from '@/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMargins';+import { usePieChartData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartData';+import { graphWidgetPieTooltipComponentState } from '@/page-layout/widgets/graph/graph-widget-pie-chart/states/graphWidgetPieTooltipComponentState';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { getPieChartFormattedValue } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartFormattedValue';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { createGraphColorRegistry } from '@/page-layout/widgets/graph/utils/createGraphColorRegistry';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsxsimilarity index 95%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChartRenderer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsxindex 96991b2f583..0cc94d6af3b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChartRenderer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChartRenderer.tsx@@ -1,8 +1,8 @@import { isPageLayoutInEditModeComponentState } from '@/page-layout/states/isPageLayoutInEditModeComponentState';import { WidgetSkeletonLoader } from '@/page-layout/widgets/components/WidgetSkeletonLoader';import { GraphWidgetChartHasTooManyGroupsEffect } from '@/page-layout/widgets/graph/components/GraphWidgetChartHasTooManyGroupsEffect';-import { useGraphPieChartWidgetData } from '@/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { useGraphPieChartWidgetData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/hooks/useGraphPieChartWidgetData';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { assertPieChartWidgetOrThrow } from '@/page-layout/widgets/graph/utils/assertPieChartWidget';import { buildChartDrilldownQueryParams } from '@/page-layout/widgets/graph/utils/buildChartDrilldownQueryParams';import { isFilteredViewRedirectionSupported } from '@/page-layout/widgets/graph/utils/isFilteredViewRedirectionSupported';@@ -19,7 +19,7 @@ import { getAppPath } from 'twenty-shared/utils';const GraphWidgetPieChart = lazy(() =>import(- '@/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart'+ '@/page-layout/widgets/graph/graph-widget-pie-chart/components/GraphWidgetPieChart').then((module) => ({default: module.GraphWidgetPieChart,})),diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/PieChartCenterMetricLayer.tsxsimilarity index 97%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsxrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/PieChartCenterMetricLayer.tsxindex 3ae31905a46..2c63e03309b 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/components/PieChartCenterMetricLayer.tsx@@ -1,4 +1,4 @@-import { usePieChartCenterMetricData } from '@/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData';+import { usePieChartCenterMetricData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartCenterMetricData';import { styled } from '@linaria/react';import { useLingui } from '@lingui/react/macro';import { AnimatePresence, motion } from 'framer-motion';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartCenterMetricMinSizes.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartCenterMetricMinSizes.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartCenterMetricMinSizes.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartCenterMetricMinSizes.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartCenterMetricRatios.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartCenterMetricRatios.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartCenterMetricRatios.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartCenterMetricRatios.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartHoverBrightness.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartHoverBrightness.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartHoverBrightness.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartHoverBrightness.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMargins.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMargins.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMargins.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMargins.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMaximumNumberOfSlices.constant.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMaximumNumberOfSlices.constant.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMaximumNumberOfSlices.constant.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMaximumNumberOfSlices.constant.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartTooltipOffsetPx.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartTooltipOffsetPx.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartTooltipOffsetPx.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartTooltipOffsetPx.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/__tests__/usePieChartData.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/__tests__/usePieChartData.test.tsindex 90b1d675c4c..e6282ba8cb9 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/__tests__/usePieChartData.test.ts@@ -1,5 +1,5 @@-import { usePieChartData } from '@/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartData';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { usePieChartData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartData';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';import { renderHook } from '@testing-library/react';import { type PieChartDataItem } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/useGraphPieChartWidgetData.tssimilarity index 98%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/useGraphPieChartWidgetData.tsindex 6c676fa0a5d..baa1f837657 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/useGraphPieChartWidgetData.ts@@ -1,7 +1,7 @@import { useObjectMetadataItemById } from '@/object-metadata/hooks/useObjectMetadataItemById';import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';import { PIE_CHART_DATA } from '@/page-layout/widgets/graph/graphql/queries/pieChartData';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type RawDimensionValue } from '@/page-layout/widgets/graph/types/RawDimensionValue';import { determineChartItemColor } from '@/page-layout/widgets/graph/utils/determineChartItemColor';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartCenterMetricData.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartCenterMetricData.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartData.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartData.tsindex cfc776ad467..282d94b8beb 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/hooks/usePieChartData.ts@@ -1,7 +1,7 @@import { type GraphWidgetLegendItem } from '@/page-layout/widgets/graph/components/GraphWidgetLegend';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';-import { calculatePieChartPercentage } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/calculatePieChartPercentage';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';+import { calculatePieChartPercentage } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/calculatePieChartPercentage';import { graphWidgetHiddenLegendIdsComponentState } from '@/page-layout/widgets/graph/states/graphWidgetHiddenLegendIdsComponentState';import { type GraphColorMode } from '@/page-layout/widgets/graph/types/GraphColorMode';import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/states/graphWidgetPieTooltipComponentState.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/states/graphWidgetPieTooltipComponentState.tssimilarity index 91%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/states/graphWidgetPieTooltipComponentState.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/states/graphWidgetPieTooltipComponentState.tsindex e6ec652c8d5..edcb5ab8bc9 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/states/graphWidgetPieTooltipComponentState.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/states/graphWidgetPieTooltipComponentState.ts@@ -1,4 +1,4 @@-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/contexts/WidgetComponentInstanceContext';import { createAtomComponentState } from '@/ui/utilities/state/jotai/utils/createAtomComponentState';import { type ComputedDatum } from '@nivo/pie';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData.tssimilarity index 82%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData.tsindex f8b3d3df7d8..d9d74a4ef00 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData.ts@@ -1,4 +1,4 @@-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';export type PieChartEnrichedData = PieChartDataItemWithColor & {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/calculatePieChartPercentage.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/calculatePieChartPercentage.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/calculatePieChartPercentage.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/calculatePieChartPercentage.test.tsindex 1651f526973..d41e2072db4 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/calculatePieChartPercentage.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/calculatePieChartPercentage.test.ts@@ -1,4 +1,4 @@-import { calculatePieChartPercentage } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/calculatePieChartPercentage';+import { calculatePieChartPercentage } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/calculatePieChartPercentage';describe('calculatePieChartPercentage', () => {describe('valid calculations', () => {diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartFormattedValue.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartFormattedValue.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartFormattedValue.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartFormattedValue.test.tsindex 6ad9236f39b..fa95c436a71 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartFormattedValue.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartFormattedValue.test.ts@@ -1,6 +1,6 @@-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';-import { getPieChartFormattedValue } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartFormattedValue';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';+import { getPieChartFormattedValue } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartFormattedValue';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';import { type ComputedDatum } from '@nivo/pie';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartTooltipData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartTooltipData.test.tssimilarity index 96%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartTooltipData.test.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartTooltipData.test.tsindex 467119d7674..1f4f0fd171d 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/__tests__/getPieChartTooltipData.test.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/__tests__/getPieChartTooltipData.test.ts@@ -1,6 +1,6 @@-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';-import { getPieChartTooltipData } from '@/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartTooltipData';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';+import { getPieChartTooltipData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartTooltipData';import { type GraphColorScheme } from '@/page-layout/widgets/graph/types/GraphColorScheme';import { type ComputedDatum } from '@nivo/pie';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/calculatePieChartPercentage.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/calculatePieChartPercentage.tssimilarity index 100%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/calculatePieChartPercentage.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/calculatePieChartPercentage.tsdiff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartFormattedValue.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartFormattedValue.tssimilarity index 89%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartFormattedValue.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartFormattedValue.tsindex 545b99ebb03..54396a012a0 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartFormattedValue.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartFormattedValue.ts@@ -5,8 +5,8 @@ import {import { type ComputedDatum } from '@nivo/pie';import { isDefined } from 'twenty-shared/utils';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';type GetPieChartFormattedValueParams = {datum: ComputedDatum<PieChartDataItemWithColor>;diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartTooltipData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartTooltipData.tssimilarity index 92%rename from packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartTooltipData.tsrename to packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartTooltipData.tsindex 72c5376d3d7..5cceed47244 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/utils/getPieChartTooltipData.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graph-widget-pie-chart/utils/getPieChartTooltipData.ts@@ -1,6 +1,6 @@import { type GraphWidgetTooltipItem } from '@/page-layout/widgets/graph/components/GraphWidgetTooltip';-import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';-import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartEnrichedData';+import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartDataItem';+import { type PieChartEnrichedData } from '@/page-layout/widgets/graph/graph-widget-pie-chart/types/PieChartEnrichedData';import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';import { type ComputedDatum } from '@nivo/pie';import { isDefined } from 'twenty-shared/utils';diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.tsindex eed5c3d53d6..debbe07982f 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts@@ -5,8 +5,8 @@ import { AggregateOperations } from '@/object-record/record-table/constants/Aggrimport { getRecordAggregateDisplayLabel } from '@/object-record/record-index/utils/getRecordndexAggregateDisplayLabel';import { convertAggregateOperationToExtendedAggregateOperation } from '@/object-record/utils/convertAggregateOperationToExtendedAggregateOperation';-import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter';-import { computeRatioDisplayValue } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/computeRatioDisplayValue';+import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/buildRatioNumeratorFilter';+import { computeRatioDisplayValue } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/computeRatioDisplayValue';import { useGraphWidgetQueryCommon } from '@/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon';import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';import { UserContext } from '@/users/contexts/UserContext';diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsxindex bcddd31bb10..b791a9cd375 100644--- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx+++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx@@ -7,7 +7,7 @@ import { useImpersonationAuth } from '@/settings/admin-panel/hooks/useImpersonatimport { useImpersonationRedirect } from '@/settings/admin-panel/hooks/useImpersonationRedirect';import { userLookupResultState } from '@/settings/admin-panel/states/userLookupResultState';import { type WorkspaceInfo } from '@/settings/admin-panel/types/WorkspaceInfo';-import { getWorkspaceSchemaName } from '@/settings/admin-panel/utils/get-workspace-schema-name.util';+import { getWorkspaceSchemaName } from '@/settings/admin-panel/utils/getWorkspaceSchemaName';import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';import { Table } from '@/ui/layout/table/components/Table';import { TableBody } from '@/ui/layout/table/components/TableBody';diff --git a/packages/twenty-front/src/modules/settings/admin-panel/utils/get-workspace-schema-name.util.ts b/packages/twenty-front/src/modules/settings/admin-panel/utils/getWorkspaceSchemaName.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/admin-panel/utils/get-workspace-schema-name.util.tsrename to packages/twenty-front/src/modules/settings/admin-panel/utils/getWorkspaceSchemaName.tsdiff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsxindex 38971064e83..95041b05361 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldIsUniqueForm.tsx@@ -3,7 +3,7 @@ import { Controller, useFormContext } from 'react-hook-form';import { useFieldMetadataItemById } from '@/object-metadata/hooks/useFieldMetadataItemById';import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem';import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect';-import { canBeUnique } from '@/settings/data-model/fields/forms/utils/canBeUnique.util';+import { canBeUnique } from '@/settings/data-model/fields/forms/utils/canBeUnique';import { t } from '@lingui/core/macro';import { type FieldMetadataType } from 'twenty-shared/types';import { IconKey } from 'twenty-ui/display';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldOnClickActionForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldOnClickActionForm.tsxindex 8b76ade412e..ec3fef13e22 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldOnClickActionForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldOnClickActionForm.tsx@@ -2,7 +2,7 @@ import { Controller, useFormContext } from 'react-hook-form';import { useFieldMetadataItemById } from '@/object-metadata/hooks/useFieldMetadataItemById';import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect';-import { getSettingsDataModelFieldOnClickActionDescription } from '@/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription.util';+import { getSettingsDataModelFieldOnClickActionDescription } from '@/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription';import { type SettingsDataModelFieldOnClickActionFormValues } from '@/settings/data-model/fields/forms/utils/settingsDataModelFieldOnClickActionSchema';import { Select } from '@/ui/input/components/Select';import { useLingui } from '@lingui/react/macro';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard.tsxindex b1b7c89debb..fbf4e2b49b5 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/SettingsDataModelFieldSettingsFormCard.tsx@@ -30,7 +30,7 @@ import { SettingsDataModelFieldPreviewWidget } from '@/settings/data-model/fieldimport { Separator } from '@/settings/components/Separator';import { SettingsDataModelFieldOnClickActionForm } from '@/settings/data-model/fields/forms/components/SettingsDataModelFieldOnClickActionForm';import { SettingsDataModelFieldRelationFormCard } from '@/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard';-import { mergeSettingsSchemas } from '@/settings/data-model/fields/forms/utils/mergeSettingsSchema.util';+import { mergeSettingsSchemas } from '@/settings/data-model/fields/forms/utils/mergeSettingsSchema';import { settingsDataModelFieldMaxValuesSchema } from '@/settings/data-model/fields/forms/utils/settingsDataModelFieldMaxValuesSchema';import { settingsDataModelFieldOnClickActionSchema } from '@/settings/data-model/fields/forms/utils/settingsDataModelFieldOnClickActionSchema';import { useFormContext } from 'react-hook-form';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/phones/components/SettingsDataModelFieldPhonesForm.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/phones/components/SettingsDataModelFieldPhonesForm.tsxindex ee5d0bdbdbe..a6b197f986b 100644--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/phones/components/SettingsDataModelFieldPhonesForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/phones/components/SettingsDataModelFieldPhonesForm.tsx@@ -3,7 +3,7 @@ import { Controller, useFormContext } from 'react-hook-form';import { useFieldMetadataItemById } from '@/object-metadata/hooks/useFieldMetadataItemById';import { phonesSchema as phonesFieldDefaultValueSchema } from '@/object-record/record-field/ui/types/guards/isFieldPhonesValue';import { SettingsOptionCardContentSelect } from '@/settings/components/SettingsOptions/SettingsOptionCardContentSelect';-import { mergeSettingsSchemas } from '@/settings/data-model/fields/forms/utils/mergeSettingsSchema.util';+import { mergeSettingsSchemas } from '@/settings/data-model/fields/forms/utils/mergeSettingsSchema';import { settingsDataModelFieldMaxValuesSchema } from '@/settings/data-model/fields/forms/utils/settingsDataModelFieldMaxValuesSchema';import { settingsDataModelFieldOnClickActionSchema } from '@/settings/data-model/fields/forms/utils/settingsDataModelFieldOnClickActionSchema';import { countryCodeToCallingCode } from '@/settings/data-model/fields/preview/utils/getPhonesFieldPreviewValue';diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/canBeUnique.util.ts b/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/canBeUnique.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/canBeUnique.util.tsrename to packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/canBeUnique.tsdiff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription.util.ts b/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription.util.tsrename to packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/getSettingsDataModelFieldOnClickActionDescription.tsdiff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/mergeSettingsSchema.util.ts b/packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/mergeSettingsSchema.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/mergeSettingsSchema.util.tsrename to packages/twenty-front/src/modules/settings/data-model/fields/forms/utils/mergeSettingsSchema.tsdiff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsUpdateDataModelObjectAboutForm.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsUpdateDataModelObjectAboutForm.tsxindex 5f6a4fc0ea6..52b860532ca 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsUpdateDataModelObjectAboutForm.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsUpdateDataModelObjectAboutForm.tsx@@ -1,7 +1,7 @@import { useUpdateOneObjectMetadataItem } from '@/object-metadata/hooks/useUpdateOneObjectMetadataItem';import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';import { isObjectMetadataReadOnly } from '@/object-record/read-only/utils/isObjectMetadataReadOnly';-import { computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange } from '@/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange.util';+import { computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange } from '@/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange';import { SettingsDataModelObjectAboutForm } from '@/settings/data-model/objects/forms/components/SettingsDataModelObjectAboutForm';import {type SettingsDataModelObjectAboutFormValues,diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange.util.ts b/packages/twenty-front/src/modules/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange.util.tsrename to packages/twenty-front/src/modules/settings/data-model/object-details/utils/computeUpdatedNavigationMemorizedUrlAfterObjectNamePluralChange.tsdiff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomain.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomain.tsxindex 29e96c9994f..27f4a0af567 100644--- a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomain.tsx+++ b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomain.tsx@@ -22,7 +22,7 @@ import { selectedPublicDomainState } from '@/settings/domains/states/selectedPubimport { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';import { useState } from 'react';import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons/SaveAndCancelButtons';-import { getDomainValidationSchema } from '@/settings/domains/utils/get-domain-validation-schema';+import { getDomainValidationSchema } from '@/settings/domains/utils/getDomainValidationSchema';import { themeCssVariables } from 'twenty-ui/theme-constants';const StyledButtonGroupContainer = styled.div`diff --git a/packages/twenty-front/src/modules/settings/domains/utils/get-domain-validation-schema.ts b/packages/twenty-front/src/modules/settings/domains/utils/getDomainValidationSchema.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/domains/utils/get-domain-validation-schema.tsrename to packages/twenty-front/src/modules/settings/domains/utils/getDomainValidationSchema.tsdiff --git a/packages/twenty-front/src/modules/settings/domains/utils/get-subdomain-validation-schema.ts b/packages/twenty-front/src/modules/settings/domains/utils/getSubdomainValidationSchema.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/domains/utils/get-subdomain-validation-schema.tsrename to packages/twenty-front/src/modules/settings/domains/utils/getSubdomainValidationSchema.tsdiff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsxindex 1ff16a7f90a..3095bda9d24 100644--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx@@ -28,7 +28,7 @@ import { useNavigateSettings } from '~/hooks/useNavigateSettings';import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';import { ROLE_ASSIGNMENT_CONFIRMATION_MODAL_ID } from '@/settings/roles/role-assignment/constants/RoleAssignmentConfirmationModalId';import { ROLE_TARGET_CONFIG } from '@/settings/roles/role-assignment/constants/RoleTargetConfig';-import { buildRoleMaps } from '@/settings/roles/role-assignment/utils/build-role-maps';+import { buildRoleMaps } from '@/settings/roles/role-assignment/utils/buildRoleMaps';type SettingsRoleAssignmentProps = {roleId: string;diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/build-role-maps.test.ts b/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/buildRoleMaps.test.tssimilarity index 98%rename from packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/build-role-maps.test.tsrename to packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/buildRoleMaps.test.tsindex 430f7f2fa02..2b2401971d5 100644--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/build-role-maps.test.ts+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/__tests__/buildRoleMaps.test.ts@@ -1,4 +1,4 @@-import { buildRoleMaps } from '@/settings/roles/role-assignment/utils/build-role-maps';+import { buildRoleMaps } from '@/settings/roles/role-assignment/utils/buildRoleMaps';describe('buildRoleMaps', () => {it('should build member map from roles', () => {diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/build-role-maps.ts b/packages/twenty-front/src/modules/settings/roles/role-assignment/utils/buildRoleMaps.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/roles/role-assignment/utils/build-role-maps.tsrename to packages/twenty-front/src/modules/settings/roles/role-assignment/utils/buildRoleMaps.tsdiff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/tests/useGetObjectPermissionDerivedStates.test.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/__tests__/useGetObjectPermissionDerivedStates.test.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/tests/useGetObjectPermissionDerivedStates.test.tsrename to packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/__tests__/useGetObjectPermissionDerivedStates.test.tsdiff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.tsindex e2c49c3fdf7..d54e0223c6c 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts@@ -1,4 +1,4 @@-import { getRoleWithUpsertedObjectPermission } from '@/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission';+import { getRoleWithUpsertedObjectPermission } from '@/settings/roles/role-permissions/object-level-permissions/utils/getRoleWithUpsertedObjectPermission';import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';import { useSetAtomFamilyState } from '@/ui/utilities/state/jotai/hooks/useSetAtomFamilyState';import { type ObjectPermission } from '~/generated-metadata/graphql';diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/utils/getRoleWithUpsertedObjectPermission.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.tsrename to packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/utils/getRoleWithUpsertedObjectPermission.tsdiff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.tsindex bdd549d205d..6059b9aee95 100644--- a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts+++ b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts@@ -4,7 +4,7 @@ import { useUpdateAgentRole } from '@/settings/roles/hooks/useUpdateAgentRole';import { useUpdateApiKeyRole } from '@/settings/roles/hooks/useUpdateApiKeyRole';import { useUpdateWorkspaceMemberRole } from '@/settings/roles/hooks/useUpdateWorkspaceMemberRole';import { useRemoveFieldPermissionInDraftRole } from '@/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useRemoveFieldPermissionInDraftRole';-import { newFieldPermissionsFilter } from '@/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util';+import { newFieldPermissionsFilter } from '@/settings/roles/role/utils/newFieldPermissionsFilter';import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';import { settingsPersistedRoleFamilyState } from '@/settings/roles/states/settingsPersistedRoleFamilyState';import { useAtomFamilyStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyStateValue';diff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts b/packages/twenty-front/src/modules/settings/roles/role/utils/newFieldPermissionsFilter.tssimilarity index 100%rename from packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.tsrename to packages/twenty-front/src/modules/settings/roles/role/utils/newFieldPermissionsFilter.tsdiff --git a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsxindex d8f84e0c294..cde564b2681 100644--- a/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx+++ b/packages/twenty-front/src/modules/side-panel/constants/SidePanelPagesConfig.tsx@@ -1,4 +1,4 @@-import { SidePanelAIChatThreadsPage } from '@/side-panel/pages/AIChatThreads/components/SidePanelAIChatThreadsPage';+import { SidePanelAIChatThreadsPage } from '@/side-panel/pages/ai-chat-threads/components/SidePanelAIChatThreadsPage';import { SidePanelAskAIPage } from '@/side-panel/pages/ask-ai/components/SidePanelAskAIPage';import { SidePanelCalendarEventPage } from '@/side-panel/pages/calendar-event/components/SidePanelCalendarEventPage';import { SidePanelFrontComponentPage } from '@/side-panel/pages/front-component/components/SidePanelFrontComponentPage';diff --git a/packages/twenty-front/src/modules/side-panel/pages/AIChatThreads/components/SidePanelAIChatThreadsPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/ai-chat-threads/components/SidePanelAIChatThreadsPage.tsxsimilarity index 100%rename from packages/twenty-front/src/modules/side-panel/pages/AIChatThreads/components/SidePanelAIChatThreadsPage.tsxrename to packages/twenty-front/src/modules/side-panel/pages/ai-chat-threads/components/SidePanelAIChatThreadsPage.tsxdiff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectableListItem.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectableListItem.tsxindex a3992142425..4faf23ce3e8 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectableListItem.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectableListItem.tsx@@ -5,7 +5,7 @@ import { isWidgetConfigurationOfType } from '@/side-panel/pages/page-layout/utilimport { type ExtendedAggregateOperations } from '@/object-record/record-table/types/ExtendedAggregateOperations';import { convertExtendedAggregateOperationToAggregateOperation } from '@/object-record/utils/convertExtendedAggregateOperationToAggregateOperation';import { DASHBOARD_AGGREGATE_OPERATION_RATIO } from '@/page-layout/widgets/graph/constants/DashboardAggregateOperationRatio';-import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation';+import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation';import { DropdownComponentInstanceContext } from '@/ui/layout/dropdown/contexts/DropdownComponentInstanceContext';import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';import { SelectableListItem } from '@/ui/layout/selectable-list/components/SelectableListItem';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectionDropdownContent.tsx b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectionDropdownContent.tsxindex c7a722dc308..eec18f2733f 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectionDropdownContent.tsx+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/components/dropdown-content/ChartAggregateOperationSelectionDropdownContent.tsx@@ -8,9 +8,9 @@ import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadatimport { DateAggregateOperations } from '@/object-record/record-table/constants/DateAggregateOperations';import { getAvailableAggregateOperationsForFieldMetadataType } from '@/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType';import { DASHBOARD_AGGREGATE_OPERATION_RATIO } from '@/page-layout/widgets/graph/constants/DashboardAggregateOperationRatio';-import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/types/AggregateChartOperation';-import { getAggregateChartOperationLabel } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAggregateChartOperationLabel';-import { getAvailableAggregateOperationsForAggregateChart } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/getAvailableAggregateOperationsForAggregateChart';+import { type AggregateChartOperation } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/types/AggregateChartOperation';+import { getAggregateChartOperationLabel } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAggregateChartOperationLabel';+import { getAvailableAggregateOperationsForAggregateChart } from '@/page-layout/widgets/graph/graph-widget-aggregate-chart/utils/getAvailableAggregateOperationsForAggregateChart';import { DropdownMenuHeader } from '@/ui/layout/dropdown/components/DropdownMenuHeader/DropdownMenuHeader';import { DropdownMenuHeaderLeftComponent } from '@/ui/layout/dropdown/components/DropdownMenuHeader/internal/DropdownMenuHeaderLeftComponent';import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';diff --git a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getChartLimitMessage.ts b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getChartLimitMessage.tsindex 906c86d6662..b12d4998e9e 100644--- a/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getChartLimitMessage.ts+++ b/packages/twenty-front/src/modules/side-panel/pages/page-layout/utils/getChartLimitMessage.ts@@ -1,7 +1,7 @@import { getDateGranularityPluralLabel } from '@/side-panel/pages/page-layout/utils/getDateGranularityPluralLabel';-import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';-import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetLineChart/constants/LineChartConstants';-import { PIE_CHART_MAXIMUM_NUMBER_OF_SLICES } from '@/page-layout/widgets/graph/graphWidgetPieChart/constants/PieChartMaximumNumberOfSlices.constant';+import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-bar-chart/constants/BarChartConstants';+import { LINE_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graph-widget-line-chart/constants/LineChartConstants';+import { PIE_CHART_MAXIMUM_NUMBER_OF_SLICES } from '@/page-layout/widgets/graph/graph-widget-pie-chart/constants/PieChartMaximumNumberOfSlices.constant';import { t } from '@lingui/core/macro';import { type ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';import { isDefined } from 'twenty-shared/utils';diff --git a/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/hooks/useSnackBar.ts b/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/hooks/useSnackBar.tsindex 6ff29bdadcd..e08bb63ed27 100644--- a/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/hooks/useSnackBar.ts+++ b/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/hooks/useSnackBar.ts@@ -7,7 +7,7 @@ import {snackBarInternalComponentState,type SnackBarOptions,} from '@/ui/feedback/snack-bar-manager/states/snackBarInternalComponentState';-import { buildErrorAction } from '@/ui/feedback/snack-bar-manager/utils/build-error-action.util';+import { buildErrorAction } from '@/ui/feedback/snack-bar-manager/utils/buildErrorAction';import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';import { type ApolloError } from '@apollo/client';import { t } from '@lingui/core/macro';diff --git a/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/utils/build-error-action.util.ts b/packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/utils/buildErrorAction.tssimilarity index 100%rename from packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/utils/build-error-action.util.tsrename to packages/twenty-front/src/modules/ui/feedback/snack-bar-manager/utils/buildErrorAction.tsdiff --git a/packages/twenty-front/src/modules/ui/field/display/utils/getDateFnsLocale.util.ts b/packages/twenty-front/src/modules/ui/field/display/utils/getDateFnsLocale.tssimilarity index 100%rename from packages/twenty-front/src/modules/ui/field/display/utils/getDateFnsLocale.util.tsrename to packages/twenty-front/src/modules/ui/field/display/utils/getDateFnsLocale.tsdiff --git a/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx b/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsxindex ce5c46e7cab..37850c18ff2 100644--- a/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/IconPicker.tsx@@ -11,7 +11,7 @@ import { SelectableList } from '@/ui/layout/selectable-list/components/Selectablimport { arrayToChunks } from '~/utils/array/arrayToChunks';import { ICON_PICKER_DROPDOWN_CONTENT_WIDTH } from '@/ui/input/components/constants/IconPickerDropdownContentWidth';-import { IconPickerScrollEffect } from '@/ui/input/hooks/IconPickerScrollEffect';+import { IconPickerScrollEffect } from '@/ui/input/effect-components/IconPickerScrollEffect';import {ICON_PICKER_DEFAULT_VISIBLE_COUNT,iconPickerVisibleCountState,diff --git a/packages/twenty-front/src/modules/ui/input/hooks/IconPickerScrollEffect.tsx b/packages/twenty-front/src/modules/ui/input/effect-components/IconPickerScrollEffect.tsxsimilarity index 100%rename from packages/twenty-front/src/modules/ui/input/hooks/IconPickerScrollEffect.tsxrename to packages/twenty-front/src/modules/ui/input/effect-components/IconPickerScrollEffect.tsxdiff --git a/packages/twenty-front/src/pages/settings/domains/SettingsDomain.tsx b/packages/twenty-front/src/pages/settings/domains/SettingsDomain.tsxindex 1a0d3181864..1e5125eb4de 100644--- a/packages/twenty-front/src/pages/settings/domains/SettingsDomain.tsx+++ b/packages/twenty-front/src/pages/settings/domains/SettingsDomain.tsx@@ -23,8 +23,8 @@ import { useNavigateSettings } from '~/hooks/useNavigateSettings';import { SettingsCustomDomain } from '@/settings/domains/components/SettingsCustomDomain';import { SettingsSubdomain } from '@/settings/domains/components/SettingsSubdomain';import { useState } from 'react';-import { getSubdomainValidationSchema } from '@/settings/domains/utils/get-subdomain-validation-schema';-import { getDomainValidationSchema } from '@/settings/domains/utils/get-domain-validation-schema';+import { getSubdomainValidationSchema } from '@/settings/domains/utils/getSubdomainValidationSchema';+import { getDomainValidationSchema } from '@/settings/domains/utils/getDomainValidationSchema';import { useCheckCustomDomainValidRecords } from '@/settings/domains/hooks/useCheckCustomDomainValidRecords';import { isCloudflareIntegrationEnabledState } from '@/client-config/states/isCloudflareIntegrationEnabledState';diff --git a/packages/twenty-front/src/pages/settings/profile/appearance/components/LocalePicker.tsx b/packages/twenty-front/src/pages/settings/profile/appearance/components/LocalePicker.tsxindex f89c8e6412c..be6cde0ed01 100644--- a/packages/twenty-front/src/pages/settings/profile/appearance/components/LocalePicker.tsx+++ b/packages/twenty-front/src/pages/settings/profile/appearance/components/LocalePicker.tsx@@ -4,7 +4,7 @@ import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMembeimport { useAtomState } from '@/ui/utilities/state/jotai/hooks/useAtomState';import { CoreObjectNameSingular } from 'twenty-shared/types';import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord';-import { getDateFnsLocale } from '@/ui/field/display/utils/getDateFnsLocale.util';+import { getDateFnsLocale } from '@/ui/field/display/utils/getDateFnsLocale';import { Select } from '@/ui/input/components/Select';import { useRefreshObjectMetadataItems } from '@/object-metadata/hooks/useRefreshObjectMetadataItems';diff --git a/packages/twenty-oxlint-rules/OXLINT_MIGRATION_TODO.md b/packages/twenty-oxlint-rules/OXLINT_MIGRATION_TODO.mdindex f7db2432ada..a1bb450f04e 100644--- a/packages/twenty-oxlint-rules/OXLINT_MIGRATION_TODO.md+++ b/packages/twenty-oxlint-rules/OXLINT_MIGRATION_TODO.md@@ -25,7 +25,7 @@ These plugins were in use but have no oxlint equivalent. Consider whether altern| Plugin | Where Used | What It Did | Replacement / Status ||--------|-----------|-------------|---------------------|-| `eslint-plugin-project-structure` | Frontend | Enforced folder naming and structure conventions for `src/modules/` (kebab-case dirs, allowed subdirs like hooks/utils/components, file naming for hooks/utils). Config still in `folderStructure.json`. | No equivalent. Could be implemented as a custom oxlint rule or a standalone CI script. |+| `eslint-plugin-project-structure` | Frontend | Enforced folder naming and structure conventions for `src/modules/` (kebab-case dirs, allowed subdirs like hooks/utils/components, file naming for hooks/utils). Config still in `folderStructure.json`. | Re-implemented as `twenty/folder-structure` custom oxlint rule. Enabled as `"warn"` — 403 pre-existing violations (160 non-kebab-case names, 215 depth > 4, 28 naming). || `lingui/*` | Frontend, emails | i18n extraction and consistency rules | No equivalent || `@stylistic/*` | Server | Formatting rules (indentation, spacing) | Use Prettier instead || `import/order`, `simple-import-sort/imports` | Server | Import sorting and ordering | No equivalent |@@ -48,4 +48,8 @@ The `oxc.oxc-vscode` extension provides inline diagnostics for built-in oxlint r- Enable TypeScript's `verbatimModuleSyntax` (major migration)- Keep disabled until oxlint supports decorator-aware type import analysis2. **Max consts per file** (`twenty-server`): Manually split 24 constant files to have at most 1 exported const each, then re-enable the rule.-3. **Folder structure enforcement** (`twenty-front`): Implement as a custom oxlint rule or a standalone CI check script that validates `src/modules/` against `folderStructure.json`.+3. **Folder structure enforcement** (`twenty-front`): Re-implemented as `twenty/folder-structure` custom oxlint rule (enabled as `"warn"`). 403 pre-existing violations to address:+ - 160 non-kebab-case module folder names (e.g. `graphWidgetBarChart` → `graph-widget-bar-chart`)+ - 215 modules nested deeper than 4 levels+ - 28 util/hook file naming violations (`.util.ts` suffixes, kebab-case filenames, PascalCase)+ - Promote to `"error"` once violations are resolveddiff --git a/packages/twenty-oxlint-rules/oxlint-plugin.ts b/packages/twenty-oxlint-rules/oxlint-plugin.tsindex cc17e3b2536..973f9cf3f87 100644--- a/packages/twenty-oxlint-rules/oxlint-plugin.ts+++ b/packages/twenty-oxlint-rules/oxlint-plugin.ts@@ -12,6 +12,10 @@ import {rule as enforceModuleBoundaries,RULE_NAME as enforceModuleBoundariesName,} from './rules/enforce-module-boundaries';+import {+ rule as folderStructure,+ RULE_NAME as folderStructureName,+} from './rules/folder-structure';import {rule as graphqlResolversShouldBeGuarded,RULE_NAME as graphqlResolversShouldBeGuardedName,@@ -67,6 +71,7 @@ export default definePlugin({[componentPropsNamingName]: componentPropsNaming,[effectComponentsName]: effectComponents,[enforceModuleBoundariesName]: enforceModuleBoundaries,+ [folderStructureName]: folderStructure,[graphqlResolversShouldBeGuardedName]: graphqlResolversShouldBeGuarded,[injectWorkspaceRepositoryName]: injectWorkspaceRepository,[matchingStateVariableName]: matchingStateVariable,diff --git a/packages/twenty-oxlint-rules/rules/folder-structure.spec.ts b/packages/twenty-oxlint-rules/rules/folder-structure.spec.tsnew file mode 100644index 00000000000..75b9b5a1383--- /dev/null+++ b/packages/twenty-oxlint-rules/rules/folder-structure.spec.ts@@ -0,0 +1,361 @@+import { RuleTester } from 'oxlint/plugins-dev';++import { rule, RULE_NAME } from './folder-structure';++const ruleTester = new RuleTester();++const DUMMY_CODE = 'const x = 1;';+const PROJECT = '/project/packages/twenty-front';++const filename = (path: string) => `${PROJECT}/${path}`;++ruleTester.run(RULE_NAME, rule, {+ valid: [+ // Files outside src/modules/ are ignored+ {+ code: DUMMY_CODE,+ filename: filename('src/utils/helper.ts'),+ },+ {+ code: DUMMY_CODE,+ filename: filename('src/components/Button.tsx'),+ },++ // types/ root folder allows anything+ {+ code: DUMMY_CODE,+ filename: filename('src/modules/types/global.d.ts'),+ },+ {+ code: DUMMY_CODE,+ filename: filename('src/modules/types/nested/deep.ts'),+ },++ // Hooks: use{PascalCase}.(ts|tsx)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/useCreateOneRecord.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/useMyHook.tsx',+ ),+ },++ // Hook tests: use{PascalCase}.(test|spec).(ts|tsx)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/__tests__/useCreateOneRecord.test.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/__tests__/useMyHook.test.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/__tests__/useMyHook.spec.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/__tests__/__snapshots__/snap.ts',+ ),+ },++ // Hooks internal+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/internal/useInternalHook.ts',+ ),+ },++ // Hooks __mocks__+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/hooks/__mocks__/useMyHook.ts',+ ),+ },++ // Utils: {camelCase}.(ts|tsx)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/utils/buildQuery.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/utils/getCardComponent.tsx',+ ),+ },++ // Util tests: {camelCase}.(test|spec).(ts|tsx)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/utils/__tests__/buildQuery.test.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/utils/__tests__/buildQuery.spec.ts',+ ),+ },++ // Utils kebab-case subfolders (leaf directories)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/workflow/utils/cron-to-human/parseCron.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/workflow/utils/cron-to-human/types/CronParts.ts',+ ),+ },++ // Standard allowed subdirs+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/components/RecordTable.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/states/someState.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/constants/DEFAULT_VALUE.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/graphql/queries.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/effect-components/MyEffect.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/validation-schemas/schema.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/contexts/MyContext.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/scopes/MyScope.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/services/recordService.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/errors/NotFoundError.ts',+ ),+ },++ // Nested modules up to depth 4+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/sub-module/components/Widget.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename('src/modules/a/b/c/d/hooks/useDeep.ts'),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/a/b/c/d/e/hooks/useDeep.ts',+ ),+ },++ // Files directly in module folders+ {+ code: DUMMY_CODE,+ filename: filename('src/modules/my-feature/index.ts'),+ },++ // __tests__ inside module+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/object-record/__tests__/integration.test.ts',+ ),+ },++ // Test helpers and non-standard files in __tests__/ are allowed (leaf context)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/__tests__/TestWrapper.tsx',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/__tests__/constants/mockData.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/utils/__tests__/helpers/setup.ts',+ ),+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/utils/__tests__/kebab-name.test.js',+ ),+ },+ ],++ invalid: [+ // Files directly in modules root+ {+ code: DUMMY_CODE,+ filename: filename('src/modules/loose-file.ts'),+ errors: [{ messageId: 'noFilesInModulesRoot' }],+ },++ // Non-kebab-case module names+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/MyModule/hooks/useHook.ts',+ ),+ errors: [{ messageId: 'moduleNameNotKebabCase' }],+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/camelCase/hooks/useHook.ts',+ ),+ errors: [{ messageId: 'moduleNameNotKebabCase' }],+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/graphWidgetChart/file.ts',+ ),+ errors: [{ messageId: 'moduleNameNotKebabCase' }],+ },++ // Module nesting too deep (depth > 5)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/a/b/c/d/e/f/hooks/useDeep.ts',+ ),+ errors: [{ messageId: 'moduleTooDeep' }],+ },+ // Depth check fires before kebab-case check at max depth+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/a/b/c/d/e/camelCaseDir/file.ts',+ ),+ errors: [{ messageId: 'moduleTooDeep' }],+ },++ // Bad hook file naming+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/badName.ts',+ ),+ errors: [{ messageId: 'hookFileNaming' }],+ },+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/helper.ts',+ ),+ errors: [{ messageId: 'hookFileNaming' }],+ },++ // Invalid hooks folder entry+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/random-folder/file.ts',+ ),+ errors: [{ messageId: 'invalidHooksEntry' }],+ },++ // Bad util file naming (PascalCase not allowed)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/utils/BadName.ts',+ ),+ errors: [{ messageId: 'utilFileNaming' }],+ },+ // Bad util file naming (kebab-case files not allowed)+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/utils/kebab-name.ts',+ ),+ errors: [{ messageId: 'utilFileNaming' }],+ },++ // Non-kebab-case subfolder in utils+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/utils/camelCase/file.ts',+ ),+ errors: [{ messageId: 'invalidUtilsEntry' }],+ },++ // hooks/internal/ too deep+ {+ code: DUMMY_CODE,+ filename: filename(+ 'src/modules/my-feature/hooks/internal/internal/internal/useHook.ts',+ ),+ errors: [{ messageId: 'hooksInternalTooDeep' }],+ },+ ],+});diff --git a/packages/twenty-oxlint-rules/rules/folder-structure.ts b/packages/twenty-oxlint-rules/rules/folder-structure.tsnew file mode 100644index 00000000000..2e1c346b3db--- /dev/null+++ b/packages/twenty-oxlint-rules/rules/folder-structure.ts@@ -0,0 +1,269 @@+import { defineRule } from '@oxlint/plugins';++export const RULE_NAME = 'folder-structure';++const KEBAB_CASE_REGEX = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;+const USE_PASCAL_CASE_FILE_REGEX = /^use[A-Z][a-zA-Z0-9]*\.(ts|tsx)$/;+const CAMEL_CASE_UTIL_FILE_REGEX = /^[a-z][a-zA-Z0-9]*\.(ts|tsx)$/;++const LEAF_SUBDIRS_WITHOUT_FILE_NAMING_CONSTRAINT = new Set([+ 'states',+ 'types',+ 'graphql',+ 'components',+ 'effect-components',+ 'constants',+ 'validation-schemas',+ 'contexts',+ 'scopes',+ 'services',+ 'errors',+]);++const TESTING_DIRS = new Set(['__tests__', '__mocks__', '__snapshots__']);++const MAX_MODULE_DEPTH = 5;+const MAX_HOOKS_INTERNAL_DEPTH = 2;++type PathContext =+ | { type: 'modules_root' }+ | { type: 'module'; depth: number }+ | { type: 'hooks'; internalDepth: number }+ | { type: 'utils' }+ | { type: 'leaf' };++type ValidationError = {+ messageId: string;+ data: Record<string, string | number>;+};++const isFile = (segment: string, isLastSegment: boolean): boolean =>+ isLastSegment;++const validateSegment = (+ segment: string,+ context: PathContext,+ isLastSegment: boolean,+):+ | { nextContext: PathContext; error?: undefined }+ | { error: ValidationError } => {+ switch (context.type) {+ case 'modules_root': {+ if (isFile(segment, isLastSegment)) {+ return {+ error: {+ messageId: 'noFilesInModulesRoot',+ data: { name: segment },+ },+ };+ }+ if (segment === 'types') {+ return { nextContext: { type: 'leaf' } };+ }+ if (!KEBAB_CASE_REGEX.test(segment)) {+ return {+ error: {+ messageId: 'moduleNameNotKebabCase',+ data: { name: segment },+ },+ };+ }+ return { nextContext: { type: 'module', depth: 1 } };+ }++ case 'module': {+ if (isFile(segment, isLastSegment)) {+ return { nextContext: context };+ }+ if (TESTING_DIRS.has(segment)) {+ return { nextContext: { type: 'leaf' } };+ }+ if (segment === 'hooks') {+ return {+ nextContext: { type: 'hooks', internalDepth: 0 },+ };+ }+ if (segment === 'utils') {+ return { nextContext: { type: 'utils' } };+ }+ if (LEAF_SUBDIRS_WITHOUT_FILE_NAMING_CONSTRAINT.has(segment)) {+ return { nextContext: { type: 'leaf' } };+ }+ if (context.depth >= MAX_MODULE_DEPTH) {+ return {+ error: {+ messageId: 'moduleTooDeep',+ data: { max: MAX_MODULE_DEPTH, name: segment },+ },+ };+ }+ if (!KEBAB_CASE_REGEX.test(segment)) {+ return {+ error: {+ messageId: 'moduleNameNotKebabCase',+ data: { name: segment },+ },+ };+ }+ return {+ nextContext: { type: 'module', depth: context.depth + 1 },+ };+ }++ case 'hooks': {+ if (isFile(segment, isLastSegment)) {+ if (!USE_PASCAL_CASE_FILE_REGEX.test(segment)) {+ return {+ error: {+ messageId: 'hookFileNaming',+ data: { name: segment },+ },+ };+ }+ return { nextContext: context };+ }+ if (TESTING_DIRS.has(segment)) {+ return { nextContext: { type: 'leaf' } };+ }+ if (segment === 'internal') {+ if (context.internalDepth >= MAX_HOOKS_INTERNAL_DEPTH) {+ return {+ error: {+ messageId: 'hooksInternalTooDeep',+ data: { max: MAX_HOOKS_INTERNAL_DEPTH },+ },+ };+ }+ return {+ nextContext: {+ type: 'hooks',+ internalDepth: context.internalDepth + 1,+ },+ };+ }+ return {+ error: {+ messageId: 'invalidHooksEntry',+ data: { name: segment },+ },+ };+ }++ case 'utils': {+ if (isFile(segment, isLastSegment)) {+ if (!CAMEL_CASE_UTIL_FILE_REGEX.test(segment)) {+ return {+ error: {+ messageId: 'utilFileNaming',+ data: { name: segment },+ },+ };+ }+ return { nextContext: context };+ }+ if (TESTING_DIRS.has(segment)) {+ return { nextContext: { type: 'leaf' } };+ }+ // Intentionally treated as leaf — files inside these subfolders+ // skip camelCase enforcement to allow flexible organization+ // (e.g. utils/cron-to-human/types/CronParts.ts is valid).+ if (KEBAB_CASE_REGEX.test(segment)) {+ return { nextContext: { type: 'leaf' } };+ }+ return {+ error: {+ messageId: 'invalidUtilsEntry',+ data: { name: segment },+ },+ };+ }++ case 'leaf': {+ return { nextContext: { type: 'leaf' } };+ }+ }+};++const extractModulesRelativePath = (+ filename: string,+): string | null => {+ const marker = '/src/modules/';+ const index = filename.indexOf(marker);++ if (index === -1) {+ return null;+ }++ return filename.slice(index + marker.length);+};++export const rule = defineRule({+ meta: {+ type: 'problem',+ docs: {+ description:+ 'Enforce folder structure conventions inside src/modules/ (kebab-case module dirs, allowed subdirs, hook/util file naming)',+ },+ schema: [],+ messages: {+ noFilesInModulesRoot:+ "Files are not allowed directly in src/modules/. Found '{{ name }}'.",+ moduleNameNotKebabCase:+ "Module folder '{{ name }}' must be kebab-case (e.g. 'my-module').",+ moduleTooDeep:+ "Module folder '{{ name }}' exceeds maximum nesting depth of {{ max }}.",+ hookFileNaming:+ "Hook file '{{ name }}' must match use{PascalCase}.(ts|tsx) (e.g. 'useMyHook.ts').",+ hooksInternalTooDeep:+ 'hooks/internal/ nesting exceeds maximum depth of {{ max }}.',+ invalidHooksEntry:+ "Unexpected entry '{{ name }}' in hooks/. Only hook files, __tests__/, __mocks__/, and internal/ are allowed.",+ utilFileNaming:+ "Util file '{{ name }}' must match {camelCase}.(ts|tsx) (e.g. 'myUtil.ts').",+ invalidUtilsEntry:+ "Unexpected entry '{{ name }}' in utils/. Only util files, __tests__/, and kebab-case subfolders are allowed.",+ },+ },+ create: (context) => {+ return {+ Program: (node: any) => {+ const relativePath = extractModulesRelativePath(+ context.filename,+ );++ if (!relativePath) {+ return;+ }++ const segments = relativePath.split('/').filter(Boolean);++ if (segments.length === 0) {+ return;+ }++ let currentContext: PathContext = { type: 'modules_root' };++ for (let i = 0; i < segments.length; i++) {+ const segment = segments[i];+ const isLastSegment = i === segments.length - 1;+ const result = validateSegment(+ segment,+ currentContext,+ isLastSegment,+ );++ if ('error' in result) {+ context.report({+ node,+ messageId: result.error.messageId,+ data: result.error.data,+ });+ return;+ }++ currentContext = result.nextContext;+ }+ },+ };+ },+});