Skip to content

Commit 7a23bf9

Browse files
charlesBochetAdityaPimpalkar
authored andcommitted
Clean and re-organize post table refactoring (twentyhq#1000)
* Clean and re-organize post table refactoring * Fix tests
1 parent 2c14dcb commit 7a23bf9

File tree

336 files changed

+638
-2755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+638
-2755
lines changed

front/.storybook/preview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { initialize, mswDecorator } from 'msw-storybook-addon';
22
import { Preview } from '@storybook/react';
33
import { ThemeProvider } from '@emotion/react';
44
import { withThemeFromJSXProvider } from '@storybook/addon-styling';
5-
import { lightTheme, darkTheme } from '../src/modules/ui/themes/themes';
5+
import { lightTheme, darkTheme } from '../src/modules/ui/theme/constants/theme';
66
import { RootDecorator } from '../src/testing/decorators/RootDecorator';
77
import 'react-loading-skeleton/dist/skeleton.css';
88
import { mockedUserJWT } from '../src/testing/mock-data/jwt';

front/src/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { RecoilRoot } from 'recoil';
66
import { ApolloProvider } from '@/apollo/components/ApolloProvider';
77
import { ClientConfigProvider } from '@/client-config/components/ClientConfigProvider';
88
import { SnackBarProvider } from '@/ui/snack-bar/components/SnackBarProvider';
9-
import { AppThemeProvider } from '@/ui/themes/components/AppThemeProvider';
10-
import { ThemeType } from '@/ui/themes/themes';
9+
import { AppThemeProvider } from '@/ui/theme/components/AppThemeProvider';
10+
import { ThemeType } from '@/ui/theme/constants/theme';
1111
import { UserProvider } from '@/users/components/UserProvider';
1212

1313
import '@emotion/react';

front/src/modules/activities/components/ActivityAssigneePicker.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useFilteredSearchEntityQuery } from '@/search/hooks/useFilteredSearchEntityQuery';
2-
import { useRecoilScopedState } from '@/ui/recoil-scope/hooks/useRecoilScopedState';
3-
import { SingleEntitySelect } from '@/ui/relation-picker/components/SingleEntitySelect';
4-
import { relationPickerSearchFilterScopedState } from '@/ui/relation-picker/states/relationPickerSearchFilterScopedState';
5-
import { EntityForSelect } from '@/ui/relation-picker/types/EntityForSelect';
6-
import { Entity } from '@/ui/relation-picker/types/EntityTypeForSelect';
2+
import { SingleEntitySelect } from '@/ui/input/relation-picker/components/SingleEntitySelect';
3+
import { relationPickerSearchFilterScopedState } from '@/ui/input/relation-picker/states/relationPickerSearchFilterScopedState';
4+
import { EntityForSelect } from '@/ui/input/relation-picker/types/EntityForSelect';
5+
import { Entity } from '@/ui/input/relation-picker/types/EntityTypeForSelect';
6+
import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState';
77
import {
88
Activity,
99
User,

front/src/modules/activities/components/ActivityComments.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useRecoilValue } from 'recoil';
44
import { v4 } from 'uuid';
55

66
import { currentUserState } from '@/auth/states/currentUserState';
7-
import { useIsMobile } from '@/ui/hooks/useIsMobile';
8-
import { AutosizeTextInput } from '@/ui/input/components/AutosizeTextInput';
7+
import { AutosizeTextInput } from '@/ui/input/autosize-text/components/AutosizeTextInput';
8+
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
99
import { Activity, useCreateCommentMutation } from '~/generated/graphql';
1010
import { isNonEmptyString } from '~/utils/isNonEmptyString';
1111

front/src/modules/activities/components/ActivityEditor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { ActivityTypeDropdown } from '@/activities/components/ActivityTypeDropdo
88
import { GET_ACTIVITIES_BY_TARGETS } from '@/activities/queries';
99
import { PropertyBox } from '@/ui/editable-field/property-box/components/PropertyBox';
1010
import { DateEditableField } from '@/ui/editable-field/variants/components/DateEditableField';
11-
import { useIsMobile } from '@/ui/hooks/useIsMobile';
1211
import { IconCalendar } from '@/ui/icon/index';
12+
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
1313
import {
1414
Activity,
1515
ActivityTarget,

front/src/modules/activities/components/ActivityRelationPicker.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import { CompanyChip } from '@/companies/components/CompanyChip';
1212
import { useFilteredSearchCompanyQuery } from '@/companies/queries';
1313
import { PersonChip } from '@/people/components/PersonChip';
1414
import { useFilteredSearchPeopleQuery } from '@/people/queries';
15-
import { useListenClickOutside } from '@/ui/hooks/useListenClickOutside';
16-
import { usePreviousHotkeyScope } from '@/ui/hotkey/hooks/usePreviousHotkeyScope';
17-
import { useScopedHotkeys } from '@/ui/hotkey/hooks/useScopedHotkeys';
18-
import { RecoilScope } from '@/ui/recoil-scope/components/RecoilScope';
19-
import { MultipleEntitySelect } from '@/ui/relation-picker/components/MultipleEntitySelect';
20-
import { RelationPickerHotkeyScope } from '@/ui/relation-picker/types/RelationPickerHotkeyScope';
15+
import { MultipleEntitySelect } from '@/ui/input/relation-picker/components/MultipleEntitySelect';
16+
import { RelationPickerHotkeyScope } from '@/ui/input/relation-picker/types/RelationPickerHotkeyScope';
17+
import { useListenClickOutside } from '@/ui/utilities/click-outside/hooks/useListenClickOutside';
18+
import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope';
19+
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
20+
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
2121
import { Activity, ActivityTarget, CommentableType } from '~/generated/graphql';
2222
import { assertNotNull } from '~/utils/assert';
2323

front/src/modules/activities/components/ActivityTitle.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Checkbox,
55
CheckboxShape,
66
CheckboxSize,
7-
} from '@/ui/input/components/Checkbox';
7+
} from '@/ui/input/checkbox/components/Checkbox';
88
import { ActivityType } from '~/generated/graphql';
99

1010
const StyledEditableTitleInput = styled.input<{

front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableField.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { EditableField } from '@/ui/editable-field/components/EditableField';
22
import { FieldContext } from '@/ui/editable-field/states/FieldContext';
33
import { IconUserCircle } from '@/ui/icon';
4-
import { RecoilScope } from '@/ui/recoil-scope/components/RecoilScope';
5-
import { RelationPickerHotkeyScope } from '@/ui/relation-picker/types/RelationPickerHotkeyScope';
4+
import { RelationPickerHotkeyScope } from '@/ui/input/relation-picker/types/RelationPickerHotkeyScope';
5+
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
66
import { UserChip } from '@/users/components/UserChip';
77
import { Company, User } from '~/generated/graphql';
88

front/src/modules/activities/editable-fields/components/ActivityRelationEditableField.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { PersonChip } from '@/people/components/PersonChip';
55
import { EditableField } from '@/ui/editable-field/components/EditableField';
66
import { FieldContext } from '@/ui/editable-field/states/FieldContext';
77
import { IconArrowUpRight } from '@/ui/icon';
8-
import { RecoilScope } from '@/ui/recoil-scope/components/RecoilScope';
9-
import { RelationPickerHotkeyScope } from '@/ui/relation-picker/types/RelationPickerHotkeyScope';
8+
import { RelationPickerHotkeyScope } from '@/ui/input/relation-picker/types/RelationPickerHotkeyScope';
9+
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
1010
import {
1111
Activity,
1212
ActivityTarget,

front/src/modules/activities/editable-fields/components/ActivityRelationEditableFieldEditMode.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { flatMapAndSortEntityForSelectArrayOfArrayByName } from '@/activities/ut
66
import { useFilteredSearchCompanyQuery } from '@/companies/queries';
77
import { useFilteredSearchPeopleQuery } from '@/people/queries';
88
import { useEditableField } from '@/ui/editable-field/hooks/useEditableField';
9-
import { MultipleEntitySelect } from '@/ui/relation-picker/components/MultipleEntitySelect';
9+
import { MultipleEntitySelect } from '@/ui/input/relation-picker/components/MultipleEntitySelect';
1010
import { Activity, ActivityTarget } from '~/generated/graphql';
1111
import { assertNotNull } from '~/utils/assert';
1212

front/src/modules/activities/hooks/useOpenActivityRightDrawer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useRecoilState } from 'recoil';
22

3-
import { useSetHotkeyScope } from '@/ui/hotkey/hooks/useSetHotkeyScope';
43
import { useRightDrawer } from '@/ui/right-drawer/hooks/useRightDrawer';
54
import { RightDrawerHotkeyScope } from '@/ui/right-drawer/types/RightDrawerHotkeyScope';
65
import { RightDrawerPages } from '@/ui/right-drawer/types/RightDrawerPages';
6+
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
77

88
import { viewableActivityIdState } from '../states/viewableActivityIdState';
99

front/src/modules/activities/hooks/useOpenCreateActivityDrawer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { v4 } from 'uuid';
55
import { currentUserState } from '@/auth/states/currentUserState';
66
import { GET_COMPANIES } from '@/companies/queries';
77
import { GET_PEOPLE } from '@/people/queries';
8-
import { useSetHotkeyScope } from '@/ui/hotkey/hooks/useSetHotkeyScope';
98
import { useRightDrawer } from '@/ui/right-drawer/hooks/useRightDrawer';
109
import { RightDrawerHotkeyScope } from '@/ui/right-drawer/types/RightDrawerHotkeyScope';
1110
import { RightDrawerPages } from '@/ui/right-drawer/types/RightDrawerPages';
11+
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
1212
import { ActivityType, useCreateActivityMutation } from '~/generated/graphql';
1313

1414
import { GET_ACTIVITIES_BY_TARGETS, GET_ACTIVITY } from '../queries';

front/src/modules/activities/hooks/useOpenCreateActivityDrawerForSelectedRowIds.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { v4 } from 'uuid';
55
import { currentUserState } from '@/auth/states/currentUserState';
66
import { GET_COMPANIES } from '@/companies/queries';
77
import { GET_PEOPLE } from '@/people/queries';
8-
import { useSetHotkeyScope } from '@/ui/hotkey/hooks/useSetHotkeyScope';
98
import { useRightDrawer } from '@/ui/right-drawer/hooks/useRightDrawer';
109
import { RightDrawerHotkeyScope } from '@/ui/right-drawer/types/RightDrawerHotkeyScope';
1110
import { RightDrawerPages } from '@/ui/right-drawer/types/RightDrawerPages';
1211
import { selectedRowIdsSelector } from '@/ui/table/states/selectedRowIdsSelector';
12+
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
1313
import {
1414
ActivityType,
1515
CommentableType,

front/src/modules/activities/hooks/useOpenTimelineRightDrawer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useRecoilState } from 'recoil';
22

3-
import { useSetHotkeyScope } from '@/ui/hotkey/hooks/useSetHotkeyScope';
43
import { useRightDrawer } from '@/ui/right-drawer/hooks/useRightDrawer';
54
import { RightDrawerHotkeyScope } from '@/ui/right-drawer/types/RightDrawerHotkeyScope';
65
import { RightDrawerPages } from '@/ui/right-drawer/types/RightDrawerPages';
6+
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
77

88
import { commentableEntityArrayState } from '../states/commentableEntityArrayState';
99
import { CommentableEntity } from '../types/CommentableEntity';

front/src/modules/activities/right-drawer/components/RightDrawerTimeline.tsx

+11-17
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,21 @@ import { useRecoilState } from 'recoil';
22

33
import { commentableEntityArrayState } from '@/activities/states/commentableEntityArrayState';
44
import { Timeline } from '@/activities/timeline/components/Timeline';
5-
import { RightDrawerBody } from '@/ui/right-drawer/components/RightDrawerBody';
6-
import { RightDrawerPage } from '@/ui/right-drawer/components/RightDrawerPage';
7-
import { RightDrawerTopBar } from '@/ui/right-drawer/components/RightDrawerTopBar';
85

96
export function RightDrawerTimeline() {
107
const [commentableEntityArray] = useRecoilState(commentableEntityArrayState);
118

129
return (
13-
<RightDrawerPage>
14-
<RightDrawerTopBar />
15-
<RightDrawerBody>
16-
{commentableEntityArray.map((commentableEntity) => (
17-
<Timeline
18-
key={commentableEntity.id}
19-
entity={{
20-
id: commentableEntity?.id ?? '',
21-
type: commentableEntity.type,
22-
}}
23-
/>
24-
))}
25-
</RightDrawerBody>
26-
</RightDrawerPage>
10+
<>
11+
{commentableEntityArray.map((commentableEntity) => (
12+
<Timeline
13+
key={commentableEntity.id}
14+
entity={{
15+
id: commentableEntity?.id ?? '',
16+
type: commentableEntity.type,
17+
}}
18+
/>
19+
))}
20+
</>
2721
);
2822
}
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
import { useRecoilValue } from 'recoil';
22

33
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
4-
import { RightDrawerBody } from '@/ui/right-drawer/components/RightDrawerBody';
5-
import { RightDrawerPage } from '@/ui/right-drawer/components/RightDrawerPage';
6-
import { RightDrawerTopBar } from '@/ui/right-drawer/components/RightDrawerTopBar';
74

85
import { RightDrawerActivity } from '../RightDrawerActivity';
96

107
export function RightDrawerCreateActivity() {
118
const activityId = useRecoilValue(viewableActivityIdState);
129

1310
return (
14-
<RightDrawerPage>
15-
<RightDrawerTopBar />
16-
<RightDrawerBody>
17-
{activityId && (
18-
<RightDrawerActivity
19-
activityId={activityId}
20-
showComment={false}
21-
autoFillTitle={true}
22-
/>
23-
)}
24-
</RightDrawerBody>
25-
</RightDrawerPage>
11+
<>
12+
{activityId && (
13+
<RightDrawerActivity
14+
activityId={activityId}
15+
showComment={false}
16+
autoFillTitle={true}
17+
/>
18+
)}
19+
</>
2620
);
2721
}
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
import { useRecoilValue } from 'recoil';
22

33
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
4-
import { RightDrawerBody } from '@/ui/right-drawer/components/RightDrawerBody';
5-
import { RightDrawerPage } from '@/ui/right-drawer/components/RightDrawerPage';
6-
import { RightDrawerTopBar } from '@/ui/right-drawer/components/RightDrawerTopBar';
74

85
import { RightDrawerActivity } from '../RightDrawerActivity';
96

107
export function RightDrawerEditActivity() {
118
const activityId = useRecoilValue(viewableActivityIdState);
129

13-
return (
14-
<RightDrawerPage>
15-
<RightDrawerTopBar />
16-
<RightDrawerBody>
17-
{activityId && <RightDrawerActivity activityId={activityId} />}
18-
</RightDrawerBody>
19-
</RightDrawerPage>
20-
);
10+
return <>{activityId && <RightDrawerActivity activityId={activityId} />}</>;
2111
}

front/src/modules/activities/timeline/components/Timeline.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { ActivityCreateButton } from '@/activities/components/ActivityCreateButt
66
import { useOpenCreateActivityDrawer } from '@/activities/hooks/useOpenCreateActivityDrawer';
77
import { ActivityForDrawer } from '@/activities/types/ActivityForDrawer';
88
import { CommentableEntity } from '@/activities/types/CommentableEntity';
9-
import { useIsMobile } from '@/ui/hooks/useIsMobile';
109
import { IconCircleDot } from '@/ui/icon';
10+
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
1111
import {
1212
ActivityType,
1313
SortOrder,

front/src/modules/activities/timeline/components/TimelineActivityTitle.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import styled from '@emotion/styled';
22

3-
import { Checkbox, CheckboxShape } from '@/ui/input/components/Checkbox';
3+
import {
4+
Checkbox,
5+
CheckboxShape,
6+
} from '@/ui/input/checkbox/components/Checkbox';
47
import { OverflowingTextWithTooltip } from '@/ui/tooltip/OverflowingTextWithTooltip';
58
import { ActivityType } from '~/generated/graphql';
69

front/src/modules/activities/types/CommentableEntityForSelect.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EntityForSelect } from '@/ui/relation-picker/types/EntityForSelect';
1+
import { EntityForSelect } from '@/ui/input/relation-picker/types/EntityForSelect';
22
import { CommentableType } from '~/generated/graphql';
33

44
export type CommentableEntityForSelect = EntityForSelect & {

front/src/modules/activities/utils/flatMapAndSortEntityForSelectArrayByName.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EntityForSelect } from '@/ui/relation-picker/types/EntityForSelect';
1+
import { EntityForSelect } from '@/ui/input/relation-picker/types/EntityForSelect';
22

33
export function flatMapAndSortEntityForSelectArrayOfArrayByName<
44
T extends EntityForSelect,

front/src/modules/auth/components/Title.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from '@emotion/styled';
33

4-
import { AnimatedEaseIn } from '../../ui/animation/components/AnimatedEaseIn';
4+
import { AnimatedEaseIn } from '@/ui/utilities/animation/components/AnimatedEaseIn';
55

66
type Props = React.PropsWithChildren & {
77
animate?: boolean;

front/src/modules/auth/sign-in-up/components/SignInUpForm.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { useTheme } from '@emotion/react';
44
import styled from '@emotion/styled';
55
import { motion } from 'framer-motion';
66

7-
import { AnimatedEaseIn } from '@/ui/animation/components/AnimatedEaseIn';
87
import { MainButton } from '@/ui/button/components/MainButton';
98
import { IconBrandGoogle } from '@/ui/icon';
10-
import { TextInput } from '@/ui/input/components/TextInput';
9+
import { TextInput } from '@/ui/input/text/components/TextInput';
10+
import { AnimatedEaseIn } from '@/ui/utilities/animation/components/AnimatedEaseIn';
1111

1212
import { Logo } from '../../components/Logo';
1313
import { Title } from '../../components/Title';

front/src/modules/auth/sign-in-up/hooks/useSignInUp.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { authProvidersState } from '@/client-config/states/authProvidersState';
99
import { isDemoModeState } from '@/client-config/states/isDemoModeState';
1010
import { AppPath } from '@/types/AppPath';
1111
import { PageHotkeyScope } from '@/types/PageHotkeyScope';
12-
import { useScopedHotkeys } from '@/ui/hotkey/hooks/useScopedHotkeys';
1312
import { useSnackBar } from '@/ui/snack-bar/hooks/useSnackBar';
13+
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
1414
import { useIsMatchingLocation } from '~/hooks/useIsMatchingLocation';
1515

1616
import { useAuth } from '../../hooks/useAuth';

front/src/modules/command-menu/components/CommandMenu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { useState } from 'react';
22
import { useRecoilValue } from 'recoil';
33

44
import { useOpenActivityRightDrawer } from '@/activities/hooks/useOpenActivityRightDrawer';
5-
import { useScopedHotkeys } from '@/ui/hotkey/hooks/useScopedHotkeys';
6-
import { AppHotkeyScope } from '@/ui/hotkey/types/AppHotkeyScope';
75
import { IconNotes } from '@/ui/icon';
6+
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
7+
import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';
88
import { Avatar } from '@/users/components/Avatar';
99
import {
1010
QueryMode,

front/src/modules/command-menu/components/CommandMenuStyles.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from '@emotion/styled';
22
import { Command } from 'cmdk';
33

4-
import { useIsMobile } from '@/ui/hooks/useIsMobile';
4+
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
55

66
export const StyledDialog = styled(Command.Dialog)`
77
background: ${({ theme }) => theme.background.primary};

front/src/modules/command-menu/hooks/useCommandMenu.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useRecoilState } from 'recoil';
22

3-
import { usePreviousHotkeyScope } from '@/ui/hotkey/hooks/usePreviousHotkeyScope';
4-
import { AppHotkeyScope } from '@/ui/hotkey/types/AppHotkeyScope';
3+
import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope';
4+
import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';
55

66
import { isCommandMenuOpenedState } from '../states/isCommandMenuOpenedState';
77

front/src/modules/companies/__stories__/Board.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { MemoryRouter } from 'react-router-dom';
22
import { Meta, StoryObj } from '@storybook/react';
33

44
import { EntityBoard } from '@/pipeline/components/EntityBoard';
5+
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
56
import { opportunitiesBoardOptions } from '~/pages/opportunities/opportunitiesBoardOptions';
67
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
78
import { graphqlMocks } from '~/testing/graphqlMocks';
89

910
import { defaultPipelineProgressOrderBy } from '../../pipeline/queries';
10-
import { RecoilScope } from '../../ui/recoil-scope/components/RecoilScope';
1111
import { HooksCompanyBoard } from '../components/HooksCompanyBoard';
1212
import { CompanyBoardContext } from '../states/CompanyBoardContext';
1313

front/src/modules/companies/__stories__/CompanyBoardCard.stories.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { MemoryRouter } from 'react-router-dom';
33
import { Meta, StoryObj } from '@storybook/react';
44

55
import { CompanyBoardCard } from '@/companies/components/CompanyBoardCard';
6+
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
7+
import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState';
68
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
79
import { graphqlMocks } from '~/testing/graphqlMocks';
810
import { mockedPipelineProgressData } from '~/testing/mock-data/pipeline-progress';
@@ -11,8 +13,6 @@ import { defaultPipelineProgressOrderBy } from '../../pipeline/queries';
1113
import { BoardCardContext } from '../../pipeline/states/BoardCardContext';
1214
import { BoardColumnContext } from '../../pipeline/states/BoardColumnContext';
1315
import { pipelineProgressIdScopedState } from '../../pipeline/states/pipelineProgressIdScopedState';
14-
import { RecoilScope } from '../../ui/recoil-scope/components/RecoilScope';
15-
import { useRecoilScopedState } from '../../ui/recoil-scope/hooks/useRecoilScopedState';
1616
import { HooksCompanyBoard } from '../components/HooksCompanyBoard';
1717
import { CompanyBoardContext } from '../states/CompanyBoardContext';
1818

0 commit comments

Comments
 (0)