Fix ParticipantChip and stories imports (#4974)

- Fix ParticipantChip
- Fix stories imports after some component have been moved to twenty UI
This commit is contained in:
bosiraphael
2024-04-15 18:09:05 +02:00
committed by GitHub
parent db2935b877
commit d7d9f0c16b
83 changed files with 189 additions and 216 deletions

View File

@ -300,7 +300,7 @@ import {
```tsx ```tsx
// ✅ Good, utilises the designated aliases // ✅ Good, utilises the designated aliases
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';= import { ComponentDecorator } from 'twenty-ui';=
``` ```
## Schema Validation ## Schema Validation

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { Calendar } from '@/activities/calendar/components/Calendar'; import { Calendar } from '@/activities/calendar/components/Calendar';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks'; import { graphqlMocks } from '~/testing/graphqlMocks';

View File

@ -1,9 +1,9 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil'; import { useSetRecoilState } from 'recoil';
import { ComponentDecorator } from 'twenty-ui';
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState'; import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ActivityActionBar } from '../../right-drawer/components/ActivityActionBar'; import { ActivityActionBar } from '../../right-drawer/components/ActivityActionBar';
import { Comment } from '../Comment'; import { Comment } from '../Comment';

View File

@ -24,9 +24,13 @@ const StyledContainer = styled.div`
display: flex; display: flex;
`; `;
const StyledRecordChip = styled(RecordChip)<{ variant: 'default' | 'bold' }>` const StyledRecordChip = styled(RecordChip)<{
font-weight: ${({ theme, variant }) => participantChipVariant: 'default' | 'bold';
variant === 'bold' ? theme.font.weight.medium : theme.font.weight.regular}; }>`
font-weight: ${({ theme, participantChipVariant }) =>
participantChipVariant === 'bold'
? theme.font.weight.medium
: theme.font.weight.regular};
`; `;
const StyledChip = styled.div` const StyledChip = styled.div`
@ -63,7 +67,7 @@ export const ParticipantChip = ({
<StyledRecordChip <StyledRecordChip
objectNameSingular={CoreObjectNameSingular.Person} objectNameSingular={CoreObjectNameSingular.Person}
record={person} record={person}
variant={variant} participantChipVariant={variant}
/> />
) : ( ) : (
<StyledChip> <StyledChip>

View File

@ -1,7 +1,6 @@
import styled from '@emotion/styled'; import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CommentChip } from '../CommentChip'; import { CommentChip } from '../CommentChip';

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { TaskList } from '@/activities/tasks/components/TaskList'; import { TaskList } from '@/activities/tasks/components/TaskList';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks'; import { graphqlMocks } from '~/testing/graphqlMocks';

View File

@ -1,12 +1,12 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil'; import { useSetRecoilState } from 'recoil';
import { ComponentDecorator } from 'twenty-ui';
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
import { ChipFieldDisplay } from '@/object-record/record-field/meta-types/display/components/ChipFieldDisplay'; import { ChipFieldDisplay } from '@/object-record/record-field/meta-types/display/components/ChipFieldDisplay';
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
const ChipFieldValueSetterEffect = () => { const ChipFieldValueSetterEffect = () => {

View File

@ -1,8 +1,8 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { FieldContext } from '../../../../contexts/FieldContext'; import { FieldContext } from '../../../../contexts/FieldContext';
import { useDateTimeField } from '../../../hooks/useDateTimeField'; import { useDateTimeField } from '../../../hooks/useDateTimeField';

View File

@ -1,10 +1,10 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
import { useEmailField } from '@/object-record/record-field/meta-types/hooks/useEmailField'; import { useEmailField } from '@/object-record/record-field/meta-types/hooks/useEmailField';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { EmailFieldDisplay } from '../EmailFieldDisplay'; import { EmailFieldDisplay } from '../EmailFieldDisplay';

View File

@ -1,8 +1,8 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { FieldContext } from '../../../../contexts/FieldContext'; import { FieldContext } from '../../../../contexts/FieldContext';
import { useNumberField } from '../../../hooks/useNumberField'; import { useNumberField } from '../../../hooks/useNumberField';

View File

@ -1,10 +1,10 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
import { usePhoneField } from '@/object-record/record-field/meta-types/hooks/usePhoneField'; import { usePhoneField } from '@/object-record/record-field/meta-types/hooks/usePhoneField';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { PhoneFieldDisplay } from '../PhoneFieldDisplay'; import { PhoneFieldDisplay } from '../PhoneFieldDisplay';

View File

@ -1,8 +1,8 @@
import { useEffect } from 'react'; import { useEffect } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { FieldMetadataType } from '~/generated/graphql'; import { FieldMetadataType } from '~/generated/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { FieldContext } from '../../../../contexts/FieldContext'; import { FieldContext } from '../../../../contexts/FieldContext';
import { useTextField } from '../../../hooks/useTextField'; import { useTextField } from '../../../hooks/useTextField';

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';

View File

@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition'; import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition';
import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions';
import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { RecordStoreDecorator } from '~/testing/decorators/RecordStoreDecorator'; import { RecordStoreDecorator } from '~/testing/decorators/RecordStoreDecorator';

View File

@ -1,9 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, userEvent, within } from '@storybook/test'; import { expect, userEvent, within } from '@storybook/test';
import { IconUserCircle } from 'twenty-ui'; import { ComponentDecorator, IconUserCircle } from 'twenty-ui';
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ComponentWithRecoilScopeDecorator } from '~/testing/decorators/ComponentWithRecoilScopeDecorator'; import { ComponentWithRecoilScopeDecorator } from '~/testing/decorators/ComponentWithRecoilScopeDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { RelationPickerDecorator } from '~/testing/decorators/RelationPickerDecorator'; import { RelationPickerDecorator } from '~/testing/decorators/RelationPickerDecorator';

View File

@ -1,8 +1,8 @@
import { Decorator, Meta, StoryObj } from '@storybook/react'; import { Decorator, Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { SettingsAccountsEmailsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistInput'; import { SettingsAccountsEmailsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistInput';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
const updateBlockedEmailListJestFn = fn(); const updateBlockedEmailListJestFn = fn();

View File

@ -1,8 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { SettingsAccountsEmailsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistInput'; import { SettingsAccountsEmailsBlocklistInput } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistInput';
import { SettingsAccountsEmailsBlocklistSection } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistSection'; import { SettingsAccountsEmailsBlocklistSection } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistSection';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
const meta: Meta<typeof SettingsAccountsEmailsBlocklistSection> = { const meta: Meta<typeof SettingsAccountsEmailsBlocklistSection> = {
title: title:

View File

@ -1,9 +1,9 @@
import { Decorator, Meta, StoryObj } from '@storybook/react'; import { Decorator, Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist';
import { SettingsAccountsEmailsBlocklistTable } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTable'; import { SettingsAccountsEmailsBlocklistTable } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTable';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { formatToHumanReadableDate } from '~/utils'; import { formatToHumanReadableDate } from '~/utils';
const handleBlockedEmailRemoveJestFn = fn(); const handleBlockedEmailRemoveJestFn = fn();

View File

@ -1,9 +1,9 @@
import { Decorator, Meta, StoryObj } from '@storybook/react'; import { Decorator, Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist';
import { SettingsAccountsEmailsBlocklistTableRow } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow'; import { SettingsAccountsEmailsBlocklistTableRow } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { formatToHumanReadableDate } from '~/utils'; import { formatToHumanReadableDate } from '~/utils';
const onRemoveJestFn = fn(); const onRemoveJestFn = fn();

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { SettingsObjectFieldFormSection } from '../SettingsObjectFieldFormSection'; import { SettingsObjectFieldFormSection } from '../SettingsObjectFieldFormSection';

View File

@ -1,5 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test'; import { fn } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { import {
mockedCompanyObjectMetadataItem, mockedCompanyObjectMetadataItem,
@ -10,7 +11,6 @@ import {
FieldMetadataType, FieldMetadataType,
RelationMetadataType, RelationMetadataType,
} from '~/generated-metadata/graphql'; } from '~/generated-metadata/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';

View File

@ -1,8 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldMetadataType } from '~/generated-metadata/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks'; import { graphqlMocks } from '~/testing/graphqlMocks';
import { SettingsDataModelFieldTypeSelect } from '../SettingsDataModelFieldTypeSelect'; import { SettingsDataModelFieldTypeSelect } from '../SettingsDataModelFieldTypeSelect';

View File

@ -1,11 +1,11 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { import {
mockedCompanyObjectMetadataItem, mockedCompanyObjectMetadataItem,
mockedPersonObjectMetadataItem, mockedPersonObjectMetadataItem,
} from '@/object-record/record-field/__mocks__/fieldDefinitions'; } from '@/object-record/record-field/__mocks__/fieldDefinitions';
import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldMetadataType } from '~/generated-metadata/graphql';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';

View File

@ -1,7 +1,6 @@
import { Decorator, Meta, StoryObj } from '@storybook/react'; import { Decorator, Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { SettingsObjectInactiveMenuDropDown } from '../SettingsObjectInactiveMenuDropDown'; import { SettingsObjectInactiveMenuDropDown } from '../SettingsObjectInactiveMenuDropDown';

View File

@ -1,8 +1,8 @@
import styled from '@emotion/styled'; import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator';
import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ApiKeyInput } from '@/settings/developers/components/ApiKeyInput'; import { ApiKeyInput } from '@/settings/developers/components/ApiKeyInput';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
const meta: Meta<typeof ApiKeyInput> = { const meta: Meta<typeof ApiKeyInput> = {

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { SettingsApiKeysFieldItemTableRow } from '@/settings/developers/components/SettingsApiKeysFieldItemTableRow'; import { SettingsApiKeysFieldItemTableRow } from '@/settings/developers/components/SettingsApiKeysFieldItemTableRow';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
const meta: Meta<typeof SettingsApiKeysFieldItemTableRow> = { const meta: Meta<typeof SettingsApiKeysFieldItemTableRow> = {
title: 'Modules/Settings/Developers/ApiKeys/SettingsApiKeysFieldItemTableRow', title: 'Modules/Settings/Developers/ApiKeys/SettingsApiKeysFieldItemTableRow',

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ColorSample } from '../ColorSample'; import { ColorSample } from '../ColorSample';

View File

@ -1,13 +1,11 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { import {
MAIN_COLOR_NAMES, MAIN_COLOR_NAMES,
ThemeColor, ThemeColor,
} from '@/ui/theme/constants/MainColorNames'; } from '@/ui/theme/constants/MainColorNames';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { Status } from '../Status'; import { Status } from '../Status';

View File

@ -1,13 +1,11 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { import {
MAIN_COLOR_NAMES, MAIN_COLOR_NAMES,
ThemeColor, ThemeColor,
} from '@/ui/theme/constants/MainColorNames'; } from '@/ui/theme/constants/MainColorNames';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { Tag } from '../Tag'; import { Tag } from '../Tag';

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { H1Title, H1TitleFontColor } from '../H1Title'; import { H1Title, H1TitleFontColor } from '../H1Title';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { H2Title } from '../H2Title'; import { H2Title } from '../H2Title';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { H3Title } from '../H3Title'; import { H3Title } from '../H3Title';

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { CircularProgressBar } from '../CircularProgressBar'; import { CircularProgressBar } from '../CircularProgressBar';

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { ProgressBar } from '../ProgressBar'; import { ProgressBar } from '../ProgressBar';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { import {
Button, Button,

View File

@ -1,9 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox, IconNotes, IconTimelineEvent } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconCheckbox,
IconNotes,
IconTimelineEvent,
} from 'twenty-ui';
import { Button, ButtonAccent, ButtonSize, ButtonVariant } from '../Button'; import { Button, ButtonAccent, ButtonSize, ButtonVariant } from '../Button';
import { ButtonGroup } from '../ButtonGroup'; import { ButtonGroup } from '../ButtonGroup';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ColorPickerButton } from '../ColorPickerButton'; import { ColorPickerButton } from '../ColorPickerButton';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { FloatingButton, FloatingButtonSize } from '../FloatingButton'; import { FloatingButton, FloatingButtonSize } from '../FloatingButton';

View File

@ -1,9 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox, IconNotes, IconTimelineEvent } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconCheckbox,
IconNotes,
IconTimelineEvent,
} from 'twenty-ui';
import { FloatingButton, FloatingButtonSize } from '../FloatingButton'; import { FloatingButton, FloatingButtonSize } from '../FloatingButton';
import { FloatingButtonGroup } from '../FloatingButtonGroup'; import { FloatingButtonGroup } from '../FloatingButtonGroup';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { import {
FloatingIconButton, FloatingIconButton,

View File

@ -1,9 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox, IconNotes, IconTimelineEvent } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconCheckbox,
IconNotes,
IconTimelineEvent,
} from 'twenty-ui';
import { FloatingIconButtonSize } from '../FloatingIconButton'; import { FloatingIconButtonSize } from '../FloatingIconButton';
import { FloatingIconButtonGroup } from '../FloatingIconButtonGroup'; import { FloatingIconButtonGroup } from '../FloatingIconButtonGroup';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { import {
IconButton, IconButton,

View File

@ -1,9 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox, IconNotes, IconTimelineEvent } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconCheckbox,
IconNotes,
IconTimelineEvent,
} from 'twenty-ui';
import { import {
IconButtonAccent, IconButtonAccent,

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { LightButton, LightButtonAccent } from '../LightButton'; import { LightButton, LightButtonAccent } from '../LightButton';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconSearch,
} from 'twenty-ui';
import { import {
LightIconButton, LightIconButton,

View File

@ -1,8 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { IconBrandGoogle } from 'twenty-ui'; import { ComponentDecorator, IconBrandGoogle } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MainButton } from '../MainButton'; import { MainButton } from '../MainButton';

View File

@ -1,8 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, fn, userEvent, within } from '@storybook/test'; import { expect, fn, userEvent, within } from '@storybook/test';
import { IconArrowRight } from 'twenty-ui'; import { ComponentDecorator, IconArrowRight } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { RoundedIconButton } from '../RoundedIconButton'; import { RoundedIconButton } from '../RoundedIconButton';

View File

@ -1,7 +1,6 @@
import styled from '@emotion/styled'; import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ColorSchemeCard } from '../ColorSchemeCard'; import { ColorSchemeCard } from '../ColorSchemeCard';

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { import {
AutosizeTextInput, AutosizeTextInput,

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { import {
Checkbox, Checkbox,

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, userEvent, within } from '@storybook/test'; import { expect, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator';
import { sleep } from '~/testing/sleep'; import { sleep } from '~/testing/sleep';

View File

@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { workspaceLogoUrl } from '~/testing/mock-data/users'; import { workspaceLogoUrl } from '~/testing/mock-data/users';
import { ImageInput } from '../ImageInput'; import { ImageInput } from '../ImageInput';

View File

@ -1,8 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { CatalogDecorator, CatalogStory, ComponentDecorator } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { LabelPosition, Radio, RadioSize } from '../Radio'; import { LabelPosition, Radio, RadioSize } from '../Radio';

View File

@ -1,8 +1,7 @@
import { useState } from 'react'; import { useState } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { userEvent, within } from '@storybook/test'; import { userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Select, SelectProps } from '../Select'; import { Select, SelectProps } from '../Select';

View File

@ -1,7 +1,6 @@
import { useState } from 'react'; import { useState } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { TextArea, TextAreaProps } from '../TextArea'; import { TextArea, TextAreaProps } from '../TextArea';

View File

@ -1,7 +1,6 @@
import { useState } from 'react'; import { useState } from 'react';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { TextInput, TextInputComponentProps } from '../TextInput'; import { TextInput, TextInputComponentProps } from '../TextInput';

View File

@ -1,7 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, userEvent, within } from '@storybook/test'; import { expect, userEvent, within } from '@storybook/test';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { InternalDatePicker } from '../InternalDatePicker'; import { InternalDatePicker } from '../InternalDatePicker';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Card } from '../Card'; import { Card } from '../Card';
import { CardContent } from '../CardContent'; import { CardContent } from '../CardContent';

View File

@ -1,9 +1,8 @@
import { DragDropContext, Droppable } from '@hello-pangea/dnd'; import { DragDropContext, Droppable } from '@hello-pangea/dnd';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui'; import { ComponentDecorator, IconBell } from 'twenty-ui';
import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable'; import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { DraggableItem } from '../components/DraggableItem'; import { DraggableItem } from '../components/DraggableItem';

View File

@ -1,9 +1,8 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui'; import { ComponentDecorator, IconBell } from 'twenty-ui';
import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable'; import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { DraggableItem } from '../components/DraggableItem'; import { DraggableItem } from '../components/DraggableItem';
import { DraggableList } from '../components/DraggableList'; import { DraggableList } from '../components/DraggableList';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { DropdownMenuInput } from '../DropdownMenuInput'; import { DropdownMenuInput } from '../DropdownMenuInput';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ConfirmationModal } from '../ConfirmationModal'; import { ConfirmationModal } from '../ConfirmationModal';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Modal } from '../Modal'; import { Modal } from '../Modal';
import { ModalHotkeyScope } from '../types/ModalHotkeyScope'; import { ModalHotkeyScope } from '../types/ModalHotkeyScope';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconCheckbox,
} from 'twenty-ui';
import { Tab } from '../Tab'; import { Tab } from '../Tab';

View File

@ -1,9 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { expect, within } from '@storybook/test'; import { expect, within } from '@storybook/test';
import { IconCheckbox } from 'twenty-ui'; import { ComponentDecorator, IconCheckbox } from 'twenty-ui';
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope'; import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { TabList } from '../TabList'; import { TabList } from '../TabList';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Table } from '../Table'; import { Table } from '../Table';
import { TableCell } from '../TableCell'; import { TableCell } from '../TableCell';

View File

@ -1,8 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil'; import { useSetRecoilState } from 'recoil';
import { ComponentDecorator } from 'twenty-ui';
import { RecordTableScope } from '@/object-record/record-table/scopes/RecordTableScope'; import { RecordTableScope } from '@/object-record/record-table/scopes/RecordTableScope';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { actionBarOpenState } from '../../states/actionBarIsOpenState'; import { actionBarOpenState } from '../../states/actionBarIsOpenState';

View File

@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';
import { Breadcrumb } from '../Breadcrumb'; import { Breadcrumb } from '../Breadcrumb';

View File

@ -1,8 +1,8 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil'; import { useSetRecoilState } from 'recoil';
import { ComponentDecorator } from 'twenty-ui';
import { RecordTableScope } from '@/object-record/record-table/scopes/RecordTableScope'; import { RecordTableScope } from '@/object-record/record-table/scopes/RecordTableScope';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { contextMenuIsOpenState } from '../../states/contextMenuIsOpenState'; import { contextMenuIsOpenState } from '../../states/contextMenuIsOpenState';

View File

@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ActionLink } from '@/ui/navigation/link/components/ActionLink.tsx'; import { ActionLink } from '@/ui/navigation/link/components/ActionLink.tsx';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator.tsx';
const meta: Meta<typeof ActionLink> = { const meta: Meta<typeof ActionLink> = {
title: 'UI/navigation/link/ActionLink', title: 'UI/navigation/link/ActionLink',

View File

@ -1,10 +1,11 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemAccent } from '../../types/MenuItemAccent'; import { MenuItemAccent } from '../../types/MenuItemAccent';
import { MenuItem } from '../MenuItem'; import { MenuItem } from '../MenuItem';

View File

@ -1,9 +1,10 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui'; import {
CatalogDecorator,
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemCommand } from '../MenuItemCommand'; import { MenuItemCommand } from '../MenuItemCommand';

View File

@ -1,13 +1,13 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell, IconMinus } from 'twenty-ui';
import { import {
CatalogDecorator, CatalogDecorator,
CatalogDimension, CatalogDimension,
CatalogOptions, CatalogOptions,
} from '~/testing/decorators/CatalogDecorator'; ComponentDecorator,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; IconBell,
IconMinus,
} from 'twenty-ui';
import { MenuItemAccent } from '../../types/MenuItemAccent'; import { MenuItemAccent } from '../../types/MenuItemAccent';
import { MenuItemDraggable } from '../MenuItemDraggable'; import { MenuItemDraggable } from '../MenuItemDraggable';

View File

@ -1,13 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui';
import { import {
CatalogDecorator, CatalogDecorator,
CatalogDimension, CatalogDimension,
CatalogOptions, CatalogOptions,
} from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemMultiSelect } from '../MenuItemMultiSelect'; import { MenuItemMultiSelect } from '../MenuItemMultiSelect';

View File

@ -1,13 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui';
import { import {
CatalogDecorator, CatalogDecorator,
CatalogDimension, CatalogDimension,
CatalogOptions, CatalogOptions,
} from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemNavigate } from '../MenuItemNavigate'; import { MenuItemNavigate } from '../MenuItemNavigate';

View File

@ -1,13 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui';
import { import {
CatalogDecorator, CatalogDecorator,
CatalogDimension, CatalogDimension,
CatalogOptions, CatalogOptions,
} from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemSelect } from '../MenuItemSelect'; import { MenuItemSelect } from '../MenuItemSelect';

View File

@ -1,17 +1,17 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import {
CatalogDecorator,
CatalogDimension,
CatalogOptions,
CatalogStory,
ComponentDecorator,
} from 'twenty-ui';
import { ColorSampleVariant } from '@/ui/display/color/components/ColorSample'; import { ColorSampleVariant } from '@/ui/display/color/components/ColorSample';
import { import {
MAIN_COLOR_NAMES, MAIN_COLOR_NAMES,
ThemeColor, ThemeColor,
} from '@/ui/theme/constants/MainColorNames'; } from '@/ui/theme/constants/MainColorNames';
import {
CatalogDecorator,
CatalogDimension,
CatalogOptions,
} from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { MenuItemSelectColor } from '../MenuItemSelectColor'; import { MenuItemSelectColor } from '../MenuItemSelectColor';

View File

@ -1,13 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from 'twenty-ui';
import { import {
CatalogDecorator, CatalogDecorator,
CatalogDimension, CatalogDimension,
CatalogOptions, CatalogOptions,
} from '~/testing/decorators/CatalogDecorator'; CatalogStory,
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; ComponentDecorator,
import { CatalogStory } from '~/testing/types'; IconBell,
} from 'twenty-ui';
import { MenuItemToggle } from '../MenuItemToggle'; import { MenuItemToggle } from '../MenuItemToggle';

View File

@ -1,7 +1,12 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox, IconList, IconSearch, IconSettings } from 'twenty-ui'; import {
ComponentDecorator,
IconCheckbox,
IconList,
IconSearch,
IconSettings,
} from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';
import { NavigationBar } from '../NavigationBar'; import { NavigationBar } from '../NavigationBar';

View File

@ -1,6 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from 'twenty-ui';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { NavigationDrawerCollapseButton } from '../NavigationDrawerCollapseButton'; import { NavigationDrawerCollapseButton } from '../NavigationDrawerCollapseButton';

View File

@ -1,11 +1,9 @@
import styled from '@emotion/styled'; import styled from '@emotion/styled';
import { Meta, StoryObj } from '@storybook/react'; import { Meta, StoryObj } from '@storybook/react';
import { IconSearch } from 'twenty-ui'; import { CatalogDecorator, CatalogStory, IconSearch } from 'twenty-ui';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';
import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator';
import { CatalogStory } from '~/testing/types';
import { NavigationDrawerItem } from '../NavigationDrawerItem'; import { NavigationDrawerItem } from '../NavigationDrawerItem';

View File

@ -1,8 +1,5 @@
import { Module } from '@nestjs/common'; import { Module } from '@nestjs/common';
import { GoogleCalendarSyncCommand } from 'src/modules/calendar/commands/google-calendar-sync.command';
import { ObjectMetadataRepositoryModule } from 'src/engine/object-metadata-repository/object-metadata-repository.module';
import { ConnectedAccountObjectMetadata } from 'src/modules/connected-account/standard-objects/connected-account.object-metadata';
import { GoogleCalendarSyncCronCommand } from 'src/modules/calendar/crons/commands/google-calendar-sync.cron.command'; import { GoogleCalendarSyncCronCommand } from 'src/modules/calendar/crons/commands/google-calendar-sync.cron.command';
@Module({ @Module({