The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Replace CircularProgressBar with Loader (#26916)
Raphaël Bosi143674a392e6
diff --git a/packages/twenty-apps/public/granola/src/front-components/components/SettingsControlLoader.tsx b/packages/twenty-apps/public/granola/src/front-components/components/SettingsControlLoader.tsxindex 10aa192ecd2..b1b1bcf91c2 100644--- a/packages/twenty-apps/public/granola/src/front-components/components/SettingsControlLoader.tsx+++ b/packages/twenty-apps/public/granola/src/front-components/components/SettingsControlLoader.tsx@@ -4,6 +4,7 @@ import { themeCssVariables } from 'twenty-ui/theme-constants';const CONTROL_LOADER_SIZE_PIXELS = 16;const CONTROL_LOADER_BAR_WIDTH_PIXELS = 2;+// TODO @bosiraphael: Replace CircularProgressBar with Loader when upgrading twenty-ui.export const SettingsControlLoader = () => (<CircularProgressBarsize={CONTROL_LOADER_SIZE_PIXELS}diff --git a/packages/twenty-docs/docs.json b/packages/twenty-docs/docs.jsonindex 604d36bd6fe..994d758caa9 100644--- a/packages/twenty-docs/docs.json+++ b/packages/twenty-docs/docs.json@@ -555,7 +555,6 @@"group": "Feedback","pages": ["ui/primitives/feedback/banner",- "ui/primitives/feedback/circular-progress-bar","ui/primitives/feedback/loader","ui/primitives/feedback/progress-bar"]diff --git a/packages/twenty-docs/navigation/base-structure.json b/packages/twenty-docs/navigation/base-structure.jsonindex 48f10900304..ceecf2bcea7 100644--- a/packages/twenty-docs/navigation/base-structure.json+++ b/packages/twenty-docs/navigation/base-structure.json@@ -567,7 +567,6 @@"label": "Feedback","pages": ["ui/primitives/feedback/banner",- "ui/primitives/feedback/circular-progress-bar","ui/primitives/feedback/loader","ui/primitives/feedback/progress-bar"]diff --git a/packages/twenty-docs/snippets/ui/generated/feedback/circular-progress-bar.mdx b/packages/twenty-docs/snippets/ui/generated/feedback/circular-progress-bar.mdxdeleted file mode 100644index e8cec74a34a..00000000000--- a/packages/twenty-docs/snippets/ui/generated/feedback/circular-progress-bar.mdx+++ /dev/null@@ -1,24 +0,0 @@-{/*- * _____ _- *|_ _|_ _____ _ __ | |_ _ _- * | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file- * | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten- * |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs- * |___/- *- * This file is generated from the documentation data in packages/twenty-ui/generated.- * To update it, edit the component prop types or design tokens in twenty-ui and run:- * npx nx generate:ui twenty-docs- */}--<ParamField body="barColor" type="string" default="currentColor">- CSS stroke color. Defaults to the inherited text color.-</ParamField>--<ParamField body="barWidth" type="number" default="5">- Stroke width in pixels. Keep it smaller than half of `size`.-</ParamField>--<ParamField body="size" type="number" default="50">- Width and height of the spinner in pixels.-</ParamField>diff --git a/packages/twenty-docs/ui/primitives/feedback/circular-progress-bar.mdx b/packages/twenty-docs/ui/primitives/feedback/circular-progress-bar.mdxdeleted file mode 100644index a5806c73d0b..00000000000--- a/packages/twenty-docs/ui/primitives/feedback/circular-progress-bar.mdx+++ /dev/null@@ -1,41 +0,0 @@-----title: CircularProgressBar-description: Show an animated circular indicator while progress is unknown.------import { StoryEmbed } from '/snippets/ui/StoryEmbed.mdx';--import CircularProgressBarReference from '/snippets/ui/generated/feedback/circular-progress-bar.mdx';--`CircularProgressBar` is an indeterminate loading spinner. It animates continuously while mounted and does not accept a progress value. Use [ProgressBar](/ui/primitives/feedback/progress-bar) when you can report a percentage.--<StoryEmbed- storyId="ui-feedback-circularprogressbar-circularprogressbar--default"- title="CircularProgressBar example"-/>--## Usage--```tsx-import { CircularProgressBar } from 'twenty-ui/primitives/feedback';-import { Text } from 'twenty-ui/primitives/typography';--export const ImportLoading = () => (- <div role="status">- <span aria-hidden="true">- <CircularProgressBar size={24} barWidth={2} />- </span>- <Text>Importing records</Text>- </div>-);-```--The application controls loading by mounting or removing the indicator. Keep an explanatory label beside it. The SVG does not supply an accessible name or live region and does not forward native attributes; apply those to a wrapper.--## Appearance--`size` sets the width and height in pixels and defaults to `50`. `barWidth` defaults to `5`; keep it smaller than half the size. `barColor` accepts a CSS color and defaults to `currentColor`, so it inherits the surrounding text color. Theme variables work as color values, for example `var(--t-font-color-secondary)`.--## Props--<CircularProgressBarReference />diff --git a/packages/twenty-docs/ui/primitives/feedback/progress-bar.mdx b/packages/twenty-docs/ui/primitives/feedback/progress-bar.mdxindex 9e8b2216bde..e4da2829bc9 100644--- a/packages/twenty-docs/ui/primitives/feedback/progress-bar.mdx+++ b/packages/twenty-docs/ui/primitives/feedback/progress-bar.mdx@@ -36,7 +36,7 @@ export const ImportProgress = ({ percentage }: ImportProgressProps) => (## State ownership-`value` is required and controlled by the application. There is no `defaultValue` mode. The component does not start a request or advance numeric progress by itself. Use [Loader](/ui/primitives/feedback/loader) or [CircularProgressBar](/ui/primitives/feedback/circular-progress-bar) when progress is unknown.+`value` is required and controlled by the application. There is no `defaultValue` mode. The component does not start a request or advance numeric progress by itself. Use [Loader](/ui/primitives/feedback/loader) when progress is unknown.## Countdowndiff --git a/packages/twenty-docs/ui/primitives/overview.mdx b/packages/twenty-docs/ui/primitives/overview.mdxindex 1be5f18ca88..6dc0503aac8 100644--- a/packages/twenty-docs/ui/primitives/overview.mdx+++ b/packages/twenty-docs/ui/primitives/overview.mdx@@ -90,7 +90,7 @@ Each page includes usage examples, interaction guidance, and a generated API ref| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || Accessibility | [VisibilityHidden](/ui/primitives/accessibility/visibility-hidden) || Data display | [Avatar](/ui/primitives/data-display/avatar), [Chip](/ui/primitives/data-display/chip), [ColorSample](/ui/primitives/data-display/color-sample), [Pill](/ui/primitives/data-display/pill), [Status](/ui/primitives/data-display/status), [Tag](/ui/primitives/data-display/tag) |-| Feedback | [Banner](/ui/primitives/feedback/banner), [CircularProgressBar](/ui/primitives/feedback/circular-progress-bar), [Loader](/ui/primitives/feedback/loader), [ProgressBar](/ui/primitives/feedback/progress-bar) |+| Feedback | [Banner](/ui/primitives/feedback/banner), [Loader](/ui/primitives/feedback/loader), [ProgressBar](/ui/primitives/feedback/progress-bar) || Forms | [Button](/ui/primitives/input/button), [ButtonGroup](/ui/primitives/input/button-group), [Checkbox](/ui/primitives/input/checkbox), [Field](/ui/primitives/input/field), [Input](/ui/primitives/input/input), [InputGroup](/ui/primitives/input/input-group), [Radio](/ui/primitives/input/radio), [RadioGroup](/ui/primitives/input/radio-group), [SegmentedControl](/ui/primitives/input/segmented-control), [Select](/ui/primitives/input/select), [Slider](/ui/primitives/input/slider), [Switch](/ui/primitives/input/switch), [Textarea](/ui/primitives/input/textarea) || Layout | [Collapsible](/ui/primitives/layout/collapsible), [HorizontalSeparator](/ui/primitives/layout/horizontal-separator), [ResizeHandle](/ui/primitives/layout/resize-handle), [TextDirectionProvider](/ui/primitives/layout/text-direction-provider) || Navigation | [ClickToActionLink](/ui/primitives/navigation/click-to-action-link), [ListItem](/ui/primitives/navigation/list-item), [Tabs](/ui/primitives/navigation/tabs) |diff --git a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-feedback-gallery.front-component.tsx b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-feedback-gallery.front-component.tsxindex 5c6d6ac5b5f..4126d2beb42 100644--- a/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-feedback-gallery.front-component.tsx+++ b/packages/twenty-front-component-renderer/src/__stories__/twenty-ui-gallery/twenty-ui-feedback-gallery.front-component.tsx@@ -1,11 +1,6 @@import { defineFrontComponent } from 'twenty-sdk/define';import { Callout, Info, InlineBanner } from 'twenty-ui/components';-import {- Banner,- CircularProgressBar,- Loader,- ProgressBar,-} from 'twenty-ui/primitives/feedback';+import { Banner, Loader, ProgressBar } from 'twenty-ui/primitives/feedback';import { ThemeProvider } from 'twenty-ui/theme';import {@@ -28,10 +23,6 @@ const FEEDBACK_ENTRIES: GalleryEntry[] = [<Callout variant="info" title="Info" description="A short description." />),},- {- name: 'CircularProgressBar',- node: <CircularProgressBar size={50} barWidth={5} />,- },{name: 'Info',node: <Info accent="blue" text="Some information" />,diff --git a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingAudioPlayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingAudioPlayer.tsxindex f045f0e498c..febed1fa102 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingAudioPlayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingAudioPlayer.tsx@@ -3,7 +3,7 @@ import { styled } from '@linaria/react';import { plural, t } from '@lingui/core/macro';import { useImperativeHandle, useRef, useState, type Ref } from 'react';import { isDefined } from 'twenty-shared/utils';-import { CircularProgressBar } from 'twenty-ui/primitives/feedback';+import { Loader } from 'twenty-ui/primitives/feedback';import {IconHeadphones,IconPlayerPause,@@ -187,15 +187,12 @@ export const CallRecordingAudioPlayer = ({<><IconButtonaria-label={isPlaying ? t`Pause` : t`Play`}+ aria-busy={isStalled}size="sm"variant="ghost"onClick={handleTogglePlayback}>- {isStalled ? (- <CircularProgressBar barWidth={2} size={24} />- ) : (- <PlaybackIcon />- )}+ {isStalled ? <Loader /> : <PlaybackIcon />}</IconButton><StyledTrack>{isDurationKnown ? (diff --git a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingVideoPlayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingVideoPlayer.tsxindex 64d91a5c75c..d7f179ce380 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingVideoPlayer.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/CallRecordingVideoPlayer.tsx@@ -1,7 +1,7 @@import { styled } from '@linaria/react';import { t } from '@lingui/core/macro';import { useState, type Ref } from 'react';-import { CircularProgressBar } from 'twenty-ui/primitives/feedback';+import { Loader } from 'twenty-ui/primitives/feedback';import { Button } from 'twenty-ui/primitives/input';import { themeCssVariables } from 'twenty-ui/theme';@@ -165,7 +165,7 @@ export const CallRecordingVideoPlayer = ({<StyledBufferingOverlayisVisible={loadState === 'awaiting-first-frame' || isPlaybackStalled}>- <CircularProgressBar barWidth={3} size={24} />+ <Loader /></StyledBufferingOverlay></StyledVideoViewport>);diff --git a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingAudioPlayer.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingAudioPlayer.stories.tsxindex eb1f07b7ce4..be3b79e65cf 100644--- a/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingAudioPlayer.stories.tsx+++ b/packages/twenty-front/src/modules/page-layout/widgets/call-recording-transcript/components/__stories__/CallRecordingAudioPlayer.stories.tsx@@ -99,14 +99,14 @@ export const MediaStates: Story = {const pauseButton = await canvas.findByRole('button', { name: 'Pause' });- expect(pauseButton.querySelector('circle')).toBeInTheDocument();+ expect(pauseButton).toHaveAttribute('aria-busy', 'true');fireEvent.pause(audioElement);await waitFor(() => {const playButton = canvas.getByRole('button', { name: 'Play' });- expect(playButton.querySelector('circle')).not.toBeInTheDocument();+ expect(playButton).toHaveAttribute('aria-busy', 'false');expect(canvas.queryByText('Playback failed')).not.toBeInTheDocument();});},diff --git a/packages/twenty-front/src/modules/spreadsheet-import/components/StepNavigationButton.tsx b/packages/twenty-front/src/modules/spreadsheet-import/components/StepNavigationButton.tsxindex a17715e46b3..e8cf4dd75ce 100644--- a/packages/twenty-front/src/modules/spreadsheet-import/components/StepNavigationButton.tsx+++ b/packages/twenty-front/src/modules/spreadsheet-import/components/StepNavigationButton.tsx@@ -4,7 +4,7 @@ import { MainButton } from 'twenty-ui/components';import { themeCssVariables } from 'twenty-ui/theme';import { t } from '@lingui/core/macro';-import { CircularProgressBar } from 'twenty-ui/primitives/feedback';+import { Loader } from 'twenty-ui/primitives/feedback';import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';const StyledFooterContainer = styled.div`@@ -37,7 +37,7 @@ export const StepNavigationButton = ({<Dialog.Footer style={{ padding: 'var(--t-spacing-5)' }}>{!isUndefinedOrNull(onBack) && (<MainButton- startIcon={isLoading ? <CircularProgressBar /> : undefined}+ startIcon={isLoading ? <Loader /> : undefined}onClick={!isLoading ? onBack : undefined}variant="outline">@@ -46,7 +46,7 @@ export const StepNavigationButton = ({)}{!isUndefinedOrNull(onContinue) && (<MainButton- startIcon={isLoading ? <CircularProgressBar /> : undefined}+ startIcon={isLoading ? <Loader /> : undefined}onClick={!isLoading ? onContinue : undefined}disabled={isContinueDisabled}>diff --git a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/SpreadsheetImportStepper.tsx b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/SpreadsheetImportStepper.tsxindex 0e9925168da..4b5ec344c36 100644--- a/packages/twenty-front/src/modules/spreadsheet-import/steps/components/SpreadsheetImportStepper.tsx+++ b/packages/twenty-front/src/modules/spreadsheet-import/steps/components/SpreadsheetImportStepper.tsx@@ -4,9 +4,8 @@ import { type SpreadsheetImportStep } from '@/spreadsheet-import/steps/types/Sprimport { SpreadsheetImportStepType } from '@/spreadsheet-import/steps/types/SpreadsheetImportStepType';import { useCallback, useState } from 'react';import { useToast } from 'twenty-ui/components';-import { CircularProgressBar } from 'twenty-ui/primitives/feedback';+import { Loader } from 'twenty-ui/primitives/feedback';import { Dialog } from 'twenty-ui/primitives/surfaces';-import { useTheme } from 'twenty-ui/theme';import { MatchColumnsStep } from './MatchColumnsStep/MatchColumnsStep';import { SelectHeaderStep } from './SelectHeaderStep/SelectHeaderStep';import { SelectSheetStep } from './SelectSheetStep/SelectSheetStep';@@ -22,7 +21,6 @@ export const SpreadsheetImportStepper = ({nextStep,prevStep,}: SpreadsheetImportStepperProps) => {- const theme = useTheme();const { initialStepState } = useSpreadsheetImportInternal();const [currentStepState, setCurrentStepState] =@@ -135,11 +133,7 @@ export const SpreadsheetImportStepper = ({justifyContent: 'center',}}>- <CircularProgressBar- size={80}- barWidth={8}- barColor={theme.font.color.primary}- />+ <Loader /></Dialog.Body>);}diff --git a/packages/twenty-shared/src/constants/DocumentationPaths.ts b/packages/twenty-shared/src/constants/DocumentationPaths.tsindex 148718777c5..f89e43b245f 100644--- a/packages/twenty-shared/src/constants/DocumentationPaths.ts+++ b/packages/twenty-shared/src/constants/DocumentationPaths.ts@@ -170,8 +170,6 @@ export const DOCUMENTATION_PATHS = {UI_PRIMITIVES_DATA_DISPLAY_STATUS: '/ui/primitives/data-display/status',UI_PRIMITIVES_DATA_DISPLAY_TAG: '/ui/primitives/data-display/tag',UI_PRIMITIVES_FEEDBACK_BANNER: '/ui/primitives/feedback/banner',- UI_PRIMITIVES_FEEDBACK_CIRCULAR_PROGRESS_BAR:- '/ui/primitives/feedback/circular-progress-bar',UI_PRIMITIVES_FEEDBACK_LOADER: '/ui/primitives/feedback/loader',UI_PRIMITIVES_FEEDBACK_PROGRESS_BAR: '/ui/primitives/feedback/progress-bar',UI_PRIMITIVES_INPUT_BUTTON: '/ui/primitives/input/button',diff --git a/packages/twenty-ui/CHANGELOG.md b/packages/twenty-ui/CHANGELOG.mdindex 244bffa1c49..cd549a7da83 100644--- a/packages/twenty-ui/CHANGELOG.md+++ b/packages/twenty-ui/CHANGELOG.md@@ -4,6 +4,7 @@### Breaking Changes+- Removed `CircularProgressBar`. Use `Loader` from `twenty-ui/primitives/feedback` for indeterminate loading. The separately versioned Granola app will migrate when its `twenty-ui` dependency is upgraded.- Removed the product URL exports `CAL_LINK`, `GITHUB_LINK`, and `TWENTY_PRICING_LINK`. Applications own their destination URLs.- `Card` is now a compound component. Import `Card` from `twenty-ui/primitives/surfaces`, replace `<Card>` with `<Card.Root>`, and replace the removed `CardHeader`, `CardContent`, and `CardFooter` exports with `Card.Header`, `Card.Content`, and `Card.Footer`. Use `Card.Root` in styled wrappers and prop types. Rendering, styling, props, and independent use of the parts are unchanged. See the [Card migration guide](https://docs.twenty.com/ui/primitives/surfaces/card#migration).- The in-repo Slack app still uses the separately versioned `twenty-ui@^1.0.0-alpha.1` package. Migrate its `twenty-ui/surfaces` import and `<Card>` usage together with its UI dependency upgrade; that published version does not expose `Card.Root`.diff --git a/packages/twenty-ui/docs/circularProgressBarPropDescriptions.ts b/packages/twenty-ui/docs/circularProgressBarPropDescriptions.tsdeleted file mode 100644index 3f35a54aa01..00000000000--- a/packages/twenty-ui/docs/circularProgressBarPropDescriptions.ts+++ /dev/null@@ -1,11 +0,0 @@-import { type ComponentProps } from 'react';--import { type CircularProgressBar } from '../src/primitives/feedback/CircularProgressBar/CircularProgressBar';--export const CIRCULAR_PROGRESS_BAR_PROP_DESCRIPTIONS = {- size: 'Width and height of the spinner in pixels.',- barWidth: 'Stroke width in pixels. Keep it smaller than half of `size`.',- barColor: 'CSS stroke color. Defaults to the inherited text color.',-} satisfies Partial<- Record<keyof ComponentProps<typeof CircularProgressBar>, string>->;diff --git a/packages/twenty-ui/docs/components.ts b/packages/twenty-ui/docs/components.tsindex 0d957d50d5e..833b7331422 100644--- a/packages/twenty-ui/docs/components.ts+++ b/packages/twenty-ui/docs/components.ts@@ -35,7 +35,6 @@ import { CARD_FOOTER_PROP_DESCRIPTIONS } from './cardFooterPropDescriptions';import { CARD_HEADER_PROP_DESCRIPTIONS } from './cardHeaderPropDescriptions';import { CARD_PROP_DESCRIPTIONS } from './cardPropDescriptions';import { CHIP_PROP_DESCRIPTIONS } from './chipPropDescriptions';-import { CIRCULAR_PROGRESS_BAR_PROP_DESCRIPTIONS } from './circularProgressBarPropDescriptions';import { CLICK_TO_ACTION_LINK_PROP_DESCRIPTIONS } from './clickToActionLinkPropDescriptions';import { CODE_EDITOR_HEADER_PROP_DESCRIPTIONS } from './codeEditorHeaderPropDescriptions';import { CODE_EDITOR_PROP_DESCRIPTIONS } from './codeEditorPropDescriptions';@@ -93,13 +92,6 @@ export const DOCUMENTED_COMPONENTS = [slug: 'feedback/banner',propDescriptions: BANNER_PROP_DESCRIPTIONS,},- {- name: 'CircularProgressBar',- source: 'primitives/feedback/CircularProgressBar/CircularProgressBar.tsx',- entryPoint: 'twenty-ui/primitives/feedback',- slug: 'feedback/circular-progress-bar',- propDescriptions: CIRCULAR_PROGRESS_BAR_PROP_DESCRIPTIONS,- },{name: 'Loader',source: 'primitives/feedback/Loader/Loader.tsx',diff --git a/packages/twenty-ui/docs/module-ownership.json b/packages/twenty-ui/docs/module-ownership.jsonindex 9d38a48d967..0fde530f006 100644--- a/packages/twenty-ui/docs/module-ownership.json+++ b/packages/twenty-ui/docs/module-ownership.json@@ -8,7 +8,6 @@"Card","Checkbox","Chip",- "CircularProgressBar","ClickToActionLink","Collapsible","ColorSample",diff --git a/packages/twenty-ui/generated/components.docs.json b/packages/twenty-ui/generated/components.docs.jsonindex ea744900509..0fbf26a495d 100644--- a/packages/twenty-ui/generated/components.docs.json+++ b/packages/twenty-ui/generated/components.docs.json@@ -111,34 +111,6 @@}]},- {- "name": "CircularProgressBar",- "entryPoint": "twenty-ui/primitives/feedback",- "slug": "feedback/circular-progress-bar",- "props": [- {- "name": "barColor",- "type": "string",- "required": false,- "defaultValue": "currentColor",- "description": "CSS stroke color. Defaults to the inherited text color."- },- {- "name": "barWidth",- "type": "number",- "required": false,- "defaultValue": "5",- "description": "Stroke width in pixels. Keep it smaller than half of `size`."- },- {- "name": "size",- "type": "number",- "required": false,- "defaultValue": "50",- "description": "Width and height of the spinner in pixels."- }- ]- },{"name": "Loader","entryPoint": "twenty-ui/primitives/feedback",diff --git a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scss b/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scssdeleted file mode 100644index d1ca0e856e8..00000000000--- a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scss+++ /dev/null@@ -1,40 +0,0 @@-.svg {- animation: circularProgressBarRotate 2s linear infinite;- transform-origin: center;-}--.circle {- animation: circularProgressBarDash 2s linear infinite;-}--@keyframes circularProgressBarRotate {- from {- transform: rotate(0deg);- }-- to {- transform: rotate(720deg);- }-}--@keyframes circularProgressBarDash {- 0% {- stroke-dasharray: 10 90;- }-- 25% {- stroke-dasharray: 20 80;- }-- 50% {- stroke-dasharray: 30 70;- }-- 75% {- stroke-dasharray: 20 80;- }-- 100% {- stroke-dasharray: 10 90;- }-}diff --git a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scss.d.ts b/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scss.d.tsdeleted file mode 100644index 502ab632b68..00000000000--- a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.module.scss.d.ts+++ /dev/null@@ -1,5 +0,0 @@-declare const classNames: {- readonly svg: 'svg';- readonly circle: 'circle';-};-export default classNames;diff --git a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.tsx b/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.tsxdeleted file mode 100644index d25644e95e7..00000000000--- a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/CircularProgressBar.tsx+++ /dev/null@@ -1,27 +0,0 @@-import styles from './CircularProgressBar.module.scss';--type CircularProgressBarProps = {- size?: number;- barWidth?: number;- barColor?: string;-};--export const CircularProgressBar = ({- size = 50,- barWidth = 5,- barColor = 'currentColor',-}: CircularProgressBarProps) => (- <svg className={styles.svg} width={size} height={size}>- <circle- className={styles.circle}- cx={size / 2}- cy={size / 2}- r={size / 2 - barWidth}- fill="none"- stroke={barColor}- strokeWidth={barWidth}- strokeLinecap="round"- pathLength={100}- />- </svg>-);diff --git a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/__stories__/CircularProgressBar.stories.tsx b/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/__stories__/CircularProgressBar.stories.tsxdeleted file mode 100644index f60058028a5..00000000000--- a/packages/twenty-ui/src/primitives/feedback/CircularProgressBar/__stories__/CircularProgressBar.stories.tsx+++ /dev/null@@ -1,59 +0,0 @@-import { type Meta, type StoryObj } from '@storybook/react-vite';-import {- A11Y_DEFER_COLOR_CONTRAST,- CatalogDecorator,- type CatalogStory,-} from '@ui/testing';--import { ComponentDecorator } from '@ui/testing/decorators/ComponentDecorator';-import { CircularProgressBar } from '@ui/primitives/feedback/CircularProgressBar/CircularProgressBar';--const meta: Meta<typeof CircularProgressBar> = {- title: 'UI/Feedback/CircularProgressBar/CircularProgressBar',- component: CircularProgressBar,- args: {- size: 50,- },- parameters: {- chromatic: { disableSnapshot: true },- },-};--export default meta;--type Story = StoryObj<typeof CircularProgressBar>;--export const Default: Story = {- decorators: [ComponentDecorator],-};--export const Catalog: CatalogStory<Story, typeof CircularProgressBar> = {- argTypes: {},- parameters: {- a11y: A11Y_DEFER_COLOR_CONTRAST,- catalog: {- dimensions: [- {- name: 'barColor',- values: [undefined, 'red'],- props: (barColor: string) => ({ barColor }),- labels: (color: string) => `Segment Color: ${color ?? 'default'}`,- },- {- name: 'barWidth',- values: [undefined, 5, 10],- props: (barWidth: number) => ({ barWidth }),- labels: (width: number) =>- `Stroke Width: ${width ? width + ' px' : 'default'}`,- },- {- name: 'size',- values: [undefined, 80, 30],- props: (size: number) => ({ size }),- labels: (size: number) => `Size: ${size ? size + ' px' : 'default'}`,- },- ],- },- },- decorators: [CatalogDecorator],-};diff --git a/packages/twenty-ui/src/primitives/feedback/index.ts b/packages/twenty-ui/src/primitives/feedback/index.tsindex 785aa450ff1..b3a0a3b2f99 100644--- a/packages/twenty-ui/src/primitives/feedback/index.ts+++ b/packages/twenty-ui/src/primitives/feedback/index.ts@@ -9,7 +9,6 @@export type { BannerColor, BannerVariant } from './Banner/Banner';export { Banner } from './Banner/Banner';-export { CircularProgressBar } from './CircularProgressBar/CircularProgressBar';export { Loader } from './Loader/Loader';export type { ProgressBarProps } from './ProgressBar/ProgressBar';export { ProgressBar } from './ProgressBar/ProgressBar';