The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix Frontend modules tests (#2688)
gitstart-twenty0fa55b0634eb
diff --git a/front/.storybook/preview.ts b/front/.storybook/preview.tsindex 56edada6c0f..9c82b0eae90 100644--- a/front/.storybook/preview.ts+++ b/front/.storybook/preview.ts@@ -1,4 +1,4 @@-import { initialize, mswDecorator } from 'msw-storybook-addon';+import { initialize, mswLoader } from 'msw-storybook-addon';import { Preview } from '@storybook/react';import { ThemeProvider } from '@emotion/react';import { withThemeFromJSXProvider } from '@storybook/addon-styling';@@ -6,12 +6,12 @@ import { lightTheme, darkTheme } from '../src/modules/ui/theme/constants/theme';import { RootDecorator } from '../src/testing/decorators/RootDecorator';import 'react-loading-skeleton/dist/skeleton.css';import { mockedUserJWT } from '../src/testing/mock-data/jwt';+import { rest } from 'msw'initialize();const preview: Preview = {decorators: [- mswDecorator,withThemeFromJSXProvider({themes: {light: lightTheme,@@ -39,6 +39,7 @@ const preview: Preview = {},},},+ loaders: [mswLoader],};export default preview;diff --git a/front/package.json b/front/package.jsonindex 45203794a54..040f44c0d76 100644--- a/front/package.json+++ b/front/package.json@@ -161,8 +161,8 @@"eslint-plugin-twenty": "file:../packages/eslint-plugin-twenty","eslint-plugin-unused-imports": "^3.0.0","http-server": "^14.1.1",- "msw": "1.2.1",- "msw-storybook-addon": "^1.8.0",+ "msw": "1.3.2",+ "msw-storybook-addon": "^1.10.0","prettier": "^2.8.0","react-scripts": "5.0.1","storybook": "^7.0.22",diff --git a/front/public/mockServiceWorker.js b/front/public/mockServiceWorker.jsindex 87e0f31b814..51d85eeebf6 100644--- a/front/public/mockServiceWorker.js+++ b/front/public/mockServiceWorker.js@@ -2,7 +2,7 @@/* tslint:disable *//**- * Mock Service Worker (1.2.1).+ * Mock Service Worker (1.3.2).* @see https://github.com/mswjs/msw* - Please do NOT modify this file.* - Please do NOT serve this file on production.diff --git a/front/src/modules/activities/tasks/__stories__/TaskGroups.stories.tsx b/front/src/modules/activities/tasks/__stories__/TaskGroups.stories.tsxindex 5e5c003c8a0..7ad9c006770 100644--- a/front/src/modules/activities/tasks/__stories__/TaskGroups.stories.tsx+++ b/front/src/modules/activities/tasks/__stories__/TaskGroups.stories.tsx@@ -5,6 +5,7 @@ import { TaskGroups } from '@/activities/tasks/components/TaskGroups';import { ObjectFilterDropdownScope } from '@/ui/object/object-filter-dropdown/scopes/ObjectFilterDropdownScope';import { ComponentWithRecoilScopeDecorator } from '~/testing/decorators/ComponentWithRecoilScopeDecorator';import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';import { graphqlMocks } from '~/testing/graphqlMocks';import { mockedTasks } from '~/testing/mock-data/activities';@@ -19,6 +20,7 @@ const meta: Meta<typeof TaskGroups> = {),ComponentWithRouterDecorator,ComponentWithRecoilScopeDecorator,+ SnackBarDecorator,],parameters: {msw: graphqlMocks,diff --git a/front/src/modules/activities/tasks/__stories__/TaskList.stories.tsx b/front/src/modules/activities/tasks/__stories__/TaskList.stories.tsxindex 7df54e3f519..e7b4bbe7401 100644--- a/front/src/modules/activities/tasks/__stories__/TaskList.stories.tsx+++ b/front/src/modules/activities/tasks/__stories__/TaskList.stories.tsx@@ -3,6 +3,7 @@ import { Meta, StoryObj } from '@storybook/react';import { TaskList } from '@/activities/tasks/components/TaskList';import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';import { graphqlMocks } from '~/testing/graphqlMocks';import { mockedActivities } from '~/testing/mock-data/activities';@@ -16,6 +17,7 @@ const meta: Meta<typeof TaskList> = {</MemoryRouter>),ComponentDecorator,+ SnackBarDecorator,],args: {title: 'Tasks',diff --git a/front/src/modules/activities/tasks/components/TaskRow.tsx b/front/src/modules/activities/tasks/components/TaskRow.tsxindex 4c6af3057f1..d10312f9590 100644--- a/front/src/modules/activities/tasks/components/TaskRow.tsx+++ b/front/src/modules/activities/tasks/components/TaskRow.tsx@@ -77,7 +77,7 @@ export const TaskRow = ({const { completeTask } = useCompleteTask(task);const activityTargetIds =- task?.activityTargets?.edges.map(+ task?.activityTargets?.edges?.map((activityTarget) => activityTarget.node.id,) ?? [];diff --git a/front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx b/front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsxindex 03f30117e69..360f39dd5c4 100644--- a/front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx+++ b/front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx@@ -7,6 +7,8 @@ import { useCommandMenu } from '@/command-menu/hooks/useCommandMenu';import { CommandType } from '@/command-menu/types/Command';import { IconCheckbox, IconNotes } from '@/ui/display/icon';import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';+import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';import { graphqlMocks } from '~/testing/graphqlMocks';import { sleep } from '~/testing/sleep';@@ -18,6 +20,7 @@ const meta: Meta<typeof CommandMenu> = {title: 'Modules/CommandMenu/CommandMenu',component: CommandMenu,decorators: [+ ObjectMetadataItemsDecorator,ComponentWithRouterDecorator,(Story) => {const { addToCommandMenu, setToIntitialCommandMenu, toggleCommandMenu } =@@ -48,6 +51,7 @@ const meta: Meta<typeof CommandMenu> = {return <Story />;},+ SnackBarDecorator,],parameters: {msw: graphqlMocks,diff --git a/front/src/modules/command-menu/hooks/useCommandMenu.ts b/front/src/modules/command-menu/hooks/useCommandMenu.tsindex 609741fee95..00cee62bc92 100644--- a/front/src/modules/command-menu/hooks/useCommandMenu.ts+++ b/front/src/modules/command-menu/hooks/useCommandMenu.ts@@ -1,4 +1,4 @@-import { useRecoilState, useSetRecoilState } from 'recoil';+import { useRecoilCallback, useSetRecoilState } from 'recoil';import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope';import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';@@ -9,9 +9,7 @@ import { isCommandMenuOpenedState } from '../states/isCommandMenuOpenedState';import { Command } from '../types/Command';export const useCommandMenu = () => {- const [isCommandMenuOpened, setIsCommandMenuOpened] = useRecoilState(- isCommandMenuOpenedState,- );+ const setIsCommandMenuOpened = useSetRecoilState(isCommandMenuOpenedState);const setCommands = useSetRecoilState(commandMenuCommandsState);const {setHotkeyScopeAndMemorizePreviousScope,@@ -28,13 +26,17 @@ export const useCommandMenu = () => {goBackToPreviousHotkeyScope();};- const toggleCommandMenu = () => {+ const toggleCommandMenu = useRecoilCallback(({ snapshot }) => async () => {+ const isCommandMenuOpened = snapshot+ .getLoadable(isCommandMenuOpenedState)+ .getValue();+if (isCommandMenuOpened) {closeCommandMenu();} else {openCommandMenu();}- };+ });const addToCommandMenu = (addCommand: Command[]) => {setCommands((prev) => [...prev, ...addCommand]);diff --git a/front/src/modules/companies/__stories__/Board.stories.tsx b/front/src/modules/companies/__stories__/Board.stories.tsxindex a4992e48dce..f264ef39f72 100644--- a/front/src/modules/companies/__stories__/Board.stories.tsx+++ b/front/src/modules/companies/__stories__/Board.stories.tsx@@ -1,6 +1,7 @@import { Meta, StoryObj } from '@storybook/react';import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';import { graphqlMocks } from '~/testing/graphqlMocks';import { CompanyBoard } from '../board/components/CompanyBoard';@@ -16,6 +17,7 @@ const meta: Meta<typeof CompanyBoard> = {</CompanyBoardRecoilScopeContext.Provider>),ComponentWithRouterDecorator,+ SnackBarDecorator,],parameters: {msw: graphqlMocks,diff --git a/front/src/modules/object-metadata/components/ObjectMetadataItemsProvider.tsx b/front/src/modules/object-metadata/components/ObjectMetadataItemsProvider.tsxindex 749a5dfd687..5744c8d3447 100644--- a/front/src/modules/object-metadata/components/ObjectMetadataItemsProvider.tsx+++ b/front/src/modules/object-metadata/components/ObjectMetadataItemsProvider.tsx@@ -10,9 +10,11 @@ export const ObjectMetadataItemsProvider = ({return loading ? (<></>) : (- <RelationPickerScope relationPickerScopeId="relation-picker">+ <><ObjectMetadataItemsRelationPickerEffect />- {children}- </RelationPickerScope>+ <RelationPickerScope relationPickerScopeId="relation-picker">+ {children}+ </RelationPickerScope>+ </>);};diff --git a/front/src/modules/object-metadata/components/ObjectMetadataItemsRelationPickerEffect.tsx b/front/src/modules/object-metadata/components/ObjectMetadataItemsRelationPickerEffect.tsxindex deb4e028cbc..cf072acd72f 100644--- a/front/src/modules/object-metadata/components/ObjectMetadataItemsRelationPickerEffect.tsx+++ b/front/src/modules/object-metadata/components/ObjectMetadataItemsRelationPickerEffect.tsx@@ -5,7 +5,9 @@ import { IdentifiersMapper } from '@/ui/input/components/internal/relation-pickeimport { getLogoUrlFromDomainName } from '~/utils';export const ObjectMetadataItemsRelationPickerEffect = () => {- const { setIdentifiersMapper, setSearchQuery } = useRelationPicker();+ const { setIdentifiersMapper, setSearchQuery } = useRelationPicker({+ relationPickerScopeId: 'relation-picker',+ });const computeFilterFields = (relationPickerType: string) => {if (relationPickerType === 'company') {diff --git a/front/src/modules/object-metadata/states/objectMetadataItemFamilySelector.ts b/front/src/modules/object-metadata/states/objectMetadataItemFamilySelector.tsindex c1ff8ce1713..fbfe2e33c65 100644--- a/front/src/modules/object-metadata/states/objectMetadataItemFamilySelector.ts+++ b/front/src/modules/object-metadata/states/objectMetadataItemFamilySelector.ts@@ -18,7 +18,6 @@ export const objectMetadataItemFamilySelector = selectorFamily<}) =>({ get }) => {const objectMetadataItems = get(objectMetadataItemsState);-return (objectMetadataItems.find((objectMetadataItem) =>diff --git a/front/src/modules/settings/data-model/components/SettingsObjectFieldTypeSelectSection.tsx b/front/src/modules/settings/data-model/components/SettingsObjectFieldTypeSelectSection.tsxindex cf83840c78d..6060fb65fc0 100644--- a/front/src/modules/settings/data-model/components/SettingsObjectFieldTypeSelectSection.tsx+++ b/front/src/modules/settings/data-model/components/SettingsObjectFieldTypeSelectSection.tsx@@ -69,7 +69,7 @@ export const SettingsObjectFieldTypeSelectSection = ({description="The field's type and values."/><Select- disabled={!!fieldMetadata.id}+ disabled={!!fieldMetadata?.id}dropdownScopeId="object-field-type-select"value={values?.type}onChange={(value) => onChange({ type: value })}diff --git a/front/src/modules/settings/data-model/components/__stories__/SettingsObjectFieldTypeSelectSection.stories.tsx b/front/src/modules/settings/data-model/components/__stories__/SettingsObjectFieldTypeSelectSection.stories.tsxindex 524106a53e6..62bc3842c5f 100644--- a/front/src/modules/settings/data-model/components/__stories__/SettingsObjectFieldTypeSelectSection.stories.tsx+++ b/front/src/modules/settings/data-model/components/__stories__/SettingsObjectFieldTypeSelectSection.stories.tsx@@ -14,7 +14,6 @@ import {mockedCompaniesMetadata,mockedPeopleMetadata,} from '~/testing/mock-data/metadata';-import { sleep } from '~/testing/sleep';import { SettingsObjectFieldTypeSelectSection } from '../SettingsObjectFieldTypeSelectSection';@@ -61,9 +60,10 @@ export const WithOpenSelect: Story = {play: async ({ canvasElement }) => {const canvas = within(canvasElement);- await sleep(500);+ const input = await canvas.findByText('Unique ID');+ await userEvent.click(input);- const selectLabel = canvas.getByText('Text');+ const selectLabel = canvas.getByText('Number');await userEvent.click(selectLabel);},diff --git a/front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx b/front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsxindex f97189d7d51..da043110603 100644--- a/front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/__stories__/MatchColumns.stories.tsx@@ -5,6 +5,7 @@ import { Providers } from '@/spreadsheet-import/components/Providers';import { MatchColumnsStep } from '@/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep';import { mockRsiValues } from '@/spreadsheet-import/tests/mockRsiValues';import { DialogManagerScope } from '@/ui/feedback/dialog-manager/scopes/DialogManagerScope';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';const meta: Meta<typeof MatchColumnsStep> = {title: 'Modules/SpreadsheetImport/MatchColumnsStep',@@ -12,6 +13,7 @@ const meta: Meta<typeof MatchColumnsStep> = {parameters: {layout: 'fullscreen',},+ decorators: [SnackBarDecorator],};export default meta;diff --git a/front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx b/front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsxindex ed449c310af..0b469fea0f3 100644--- a/front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/__stories__/Upload.stories.tsx@@ -5,6 +5,7 @@ import { Providers } from '@/spreadsheet-import/components/Providers';import { UploadStep } from '@/spreadsheet-import/steps/components/UploadStep/UploadStep';import { mockRsiValues } from '@/spreadsheet-import/tests/mockRsiValues';import { DialogManagerScope } from '@/ui/feedback/dialog-manager/scopes/DialogManagerScope';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';const meta: Meta<typeof UploadStep> = {title: 'Modules/SpreadsheetImport/UploadStep',@@ -12,6 +13,7 @@ const meta: Meta<typeof UploadStep> = {parameters: {layout: 'fullscreen',},+ decorators: [SnackBarDecorator],};export default meta;diff --git a/front/src/modules/ui/navigation/navbar/components/__stories__/MainNavbar.stories.tsx b/front/src/modules/ui/navigation/navbar/components/__stories__/MainNavbar.stories.tsxindex 0bbffceeef9..42712aa6ad9 100644--- a/front/src/modules/ui/navigation/navbar/components/__stories__/MainNavbar.stories.tsx+++ b/front/src/modules/ui/navigation/navbar/components/__stories__/MainNavbar.stories.tsx@@ -11,6 +11,7 @@ import {IconUser,} from '@/ui/display/icon';import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';+import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';import MainNavbar from '../MainNavbar';import NavItem from '../NavItem';@@ -19,6 +20,7 @@ import NavTitle from '../NavTitle';const meta: Meta<typeof MainNavbar> = {title: 'UI/Navigation/Navbar/MainNavbar',component: MainNavbar,+ decorators: [SnackBarDecorator],};export default meta;diff --git a/front/src/modules/ui/object/field/meta-types/display/components/__stories__/PhoneFieldDisplay.stories.tsx b/front/src/modules/ui/object/field/meta-types/display/components/__stories__/PhoneFieldDisplay.stories.tsxindex 3039c3b0ddb..235315ead06 100644--- a/front/src/modules/ui/object/field/meta-types/display/components/__stories__/PhoneFieldDisplay.stories.tsx+++ b/front/src/modules/ui/object/field/meta-types/display/components/__stories__/PhoneFieldDisplay.stories.tsx@@ -29,11 +29,12 @@ const meta: Meta = {fieldDefinition: {fieldMetadataId: 'phone',label: 'Phone',- type: 'PHONE',+ type: 'TEXT',iconName: 'IconPhone',metadata: {- fieldName: 'Phone',+ fieldName: 'phone',placeHolder: 'Phone',+ objectMetadataNameSingular: 'person',},},hotkeyScope: 'hotkey-scope',diff --git a/front/src/modules/ui/object/field/meta-types/input/components/__stories__/PhoneFieldInput.stories.tsx b/front/src/modules/ui/object/field/meta-types/input/components/__stories__/PhoneFieldInput.stories.tsxindex b136a23f56a..e9f34170a3e 100644--- a/front/src/modules/ui/object/field/meta-types/input/components/__stories__/PhoneFieldInput.stories.tsx+++ b/front/src/modules/ui/object/field/meta-types/input/components/__stories__/PhoneFieldInput.stories.tsx@@ -45,11 +45,12 @@ const PhoneFieldInputWithContext = ({fieldDefinition={{fieldMetadataId: 'phone',label: 'Phone',- type: 'PHONE',+ type: 'TEXT',iconName: 'IconPhone',metadata: {- fieldName: 'Phone',+ fieldName: 'phone',placeHolder: 'Enter phone number',+ objectMetadataNameSingular: 'person',},}}entityId={entityId}diff --git a/front/src/modules/ui/object/field/meta-types/input/components/__stories__/RelationFieldInput.stories.tsx b/front/src/modules/ui/object/field/meta-types/input/components/__stories__/RelationFieldInput.stories.tsxindex d30080a4a6d..4c8cac269f7 100644--- a/front/src/modules/ui/object/field/meta-types/input/components/__stories__/RelationFieldInput.stories.tsx+++ b/front/src/modules/ui/object/field/meta-types/input/components/__stories__/RelationFieldInput.stories.tsx@@ -3,6 +3,7 @@ import { expect, jest } from '@storybook/jest';import { Decorator, Meta, StoryObj } from '@storybook/react';import { userEvent, waitFor, within } from '@storybook/testing-library';+import { RelationPickerScope } from '@/ui/input/components/internal/relation-picker/scopes/RelationPickerScope';import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';import { ComponentWithRecoilScopeDecorator } from '~/testing/decorators/ComponentWithRecoilScopeDecorator';import { graphqlMocks } from '~/testing/graphqlMocks';@@ -43,21 +44,23 @@ const RelationFieldInputWithContext = ({return (<div>- <FieldContextProvider- fieldDefinition={{- fieldMetadataId: 'relation',- label: 'Relation',- type: 'RELATION',- iconName: 'IconLink',- metadata: {- fieldName: 'Relation',- },- }}- entityId={entityId}- >- <RelationFieldValueSetterEffect value={value} />- <RelationFieldInput onSubmit={onSubmit} onCancel={onCancel} />- </FieldContextProvider>+ <RelationPickerScope relationPickerScopeId="relation-picker">+ <FieldContextProvider+ fieldDefinition={{+ fieldMetadataId: 'relation',+ label: 'Relation',+ type: 'RELATION',+ iconName: 'IconLink',+ metadata: {+ fieldName: 'Relation',+ },+ }}+ entityId={entityId}+ >+ <RelationFieldValueSetterEffect value={value} />+ <RelationFieldInput onSubmit={onSubmit} onCancel={onCancel} />+ </FieldContextProvider>+ </RelationPickerScope><div data-testid="data-field-input-click-outside-div" /></div>);@@ -108,6 +111,7 @@ export const Submit: Story = {expect(submitJestFn).toHaveBeenCalledTimes(0);+ // FIXME: Failing because the picker is not fetching any itemsconst item = await canvas.findByText('Jane Doe');userEvent.click(item);diff --git a/front/src/modules/ui/object/field/types/FieldType.ts b/front/src/modules/ui/object/field/types/FieldType.tsindex 9cd6f00cd5d..b637938745b 100644--- a/front/src/modules/ui/object/field/types/FieldType.ts+++ b/front/src/modules/ui/object/field/types/FieldType.ts@@ -12,10 +12,6 @@ export type FieldType =| 'NUMBER'| 'PHONE'| 'PROBABILITY'- | 'RELATION'- | 'TEXT'- | 'URL'- | 'PHONE'| 'URL'| 'LINK'| 'CURRENCY'diff --git a/front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx b/front/src/testing/decorators/ObjectMetadataItemsDecorator.tsxnew file mode 100644index 00000000000..0eab23f8aca--- /dev/null+++ b/front/src/testing/decorators/ObjectMetadataItemsDecorator.tsx@@ -0,0 +1,9 @@+import { Decorator } from '@storybook/react';++import { ObjectMetadataItemsProvider } from '@/object-metadata/components/ObjectMetadataItemsProvider';++export const ObjectMetadataItemsDecorator: Decorator = (Story) => (+ <ObjectMetadataItemsProvider>+ <Story />+ </ObjectMetadataItemsProvider>+);diff --git a/front/src/testing/graphqlMocks.ts b/front/src/testing/graphqlMocks.tsindex 449727c10a1..6feb8f945eb 100644--- a/front/src/testing/graphqlMocks.ts+++ b/front/src/testing/graphqlMocks.ts@@ -5,6 +5,7 @@ import { CREATE_EVENT } from '@/analytics/graphql/queries/createEvent';import { GET_CLIENT_CONFIG } from '@/client-config/graphql/queries/getClientConfig';import { FIND_MANY_METADATA_OBJECTS } from '@/object-metadata/graphql/queries';import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';+import { mockedActivities } from '~/testing/mock-data/activities';import { mockedCompaniesData } from './mock-data/companies';import { mockedObjectMetadataItems } from './mock-data/metadata';@@ -17,128 +18,151 @@ const metadataGraphql = graphql.link(`${process.env.REACT_APP_SERVER_BASE_URL}/metadata`,);-export const graphqlMocks = [- graphql.query(getOperationName(GET_CURRENT_USER) ?? '', (req, res, ctx) => {- return res(- ctx.data({- currentUser: mockedUsersData[0],- }),- );- }),- graphql.mutation(getOperationName(CREATE_EVENT) ?? '', (req, res, ctx) => {- return res(- ctx.data({- createEvent: { success: 1, __typename: 'Event' },- }),- );- }),- graphql.query(getOperationName(GET_CLIENT_CONFIG) ?? '', (req, res, ctx) => {- return res(- ctx.data({- clientConfig: {- signInPrefilled: true,- dataModelSettingsEnabled: true,- developersSettingsEnabled: true,- debugMode: false,- authProviders: { google: true, password: true, magicLink: false },- telemetry: { enabled: false, anonymizationEnabled: true },- support: {- supportDriver: 'front',- supportFrontChatId: null,+export const graphqlMocks = {+ handlers: [+ graphql.query(getOperationName(GET_CURRENT_USER) ?? '', (req, res, ctx) => {+ return res(+ ctx.data({+ currentUser: mockedUsersData[0],+ }),+ );+ }),+ graphql.mutation(getOperationName(CREATE_EVENT) ?? '', (req, res, ctx) => {+ return res(+ ctx.data({+ createEvent: { success: 1, __typename: 'Event' },+ }),+ );+ }),+ graphql.query(+ getOperationName(GET_CLIENT_CONFIG) ?? '',+ (req, res, ctx) => {+ return res(+ ctx.data({+ clientConfig: {+ signInPrefilled: true,+ dataModelSettingsEnabled: true,+ developersSettingsEnabled: true,+ debugMode: false,+ authProviders: { google: true, password: true, magicLink: false },+ telemetry: { enabled: false, anonymizationEnabled: true },+ support: {+ supportDriver: 'front',+ supportFrontChatId: null,+ },+ },+ }),+ );+ },+ ),+ metadataGraphql.query(+ getOperationName(FIND_MANY_METADATA_OBJECTS) ?? '',+ (req, res, ctx) => {+ return res(ctx.data({ objects: mockedObjectMetadataItems }));+ },+ ),+ graphql.query('FindManyViews', (req, res, ctx) => {+ const objectMetadataId = req.variables.filter.objectMetadataId.eq;+ const viewType = req.variables.filter.type.eq;++ return res(+ ctx.data({+ views: {+ edges: mockedViewsData+ .filter(+ (view) =>+ view.objectMetadataId === objectMetadataId &&+ view.type === viewType,+ )+ .map((view) => ({+ node: view,+ cursor: null,+ })),+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },},- },- }),- );- }),- metadataGraphql.query(- getOperationName(FIND_MANY_METADATA_OBJECTS) ?? '',- (req, res, ctx) => {- return res(ctx.data({ objects: mockedObjectMetadataItems }));- },- ),- graphql.query('FindManyViews', (req, res, ctx) => {- const objectMetadataId = req.variables.filter.objectMetadataId.eq;- const viewType = req.variables.filter.type.eq;+ }),+ );+ }),+ graphql.query('FindManyViewFields', (req, res, ctx) => {+ const viewId = req.variables.filter.view.eq;- return res(- ctx.data({- views: {- edges: mockedViewsData- .filter(- (view) =>- view.objectMetadataId === objectMetadataId &&- view.type === viewType,- )- .map((view) => ({- node: view,+ return res(+ ctx.data({+ viewFields: {+ edges: mockedViewFieldsData+ .filter((viewField) => viewField.viewId === viewId)+ .map((viewField) => ({+ node: viewField,+ cursor: null,+ })),+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },+ },+ }),+ );+ }),+ graphql.query('FindManyCompanies', (req, res, ctx) => {+ return res(+ ctx.data({+ companies: {+ edges: mockedCompaniesData.map((company) => ({+ node: company,cursor: null,})),- pageInfo: {- hasNextPage: false,- hasPreviousPage: false,- startCursor: null,- endCursor: null,+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },},- },- }),- );- }),- graphql.query('FindManyViewFields', (req, res, ctx) => {- const viewId = req.variables.filter.view.eq;-- return res(- ctx.data({- viewFields: {- edges: mockedViewFieldsData- .filter((viewField) => viewField.viewId === viewId)- .map((viewField) => ({- node: viewField,+ }),+ );+ }),+ graphql.query('FindManyPeople', (req, res, ctx) => {+ return res(+ ctx.data({+ people: {+ edges: mockedPeopleData.map((person) => ({+ node: person,cursor: null,})),- pageInfo: {- hasNextPage: false,- hasPreviousPage: false,- startCursor: null,- endCursor: null,+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },},- },- }),- );- }),- graphql.query('FindManyCompanies', (req, res, ctx) => {- return res(- ctx.data({- companies: {- edges: mockedCompaniesData.map((company) => ({- node: company,- cursor: null,- })),- pageInfo: {- hasNextPage: false,- hasPreviousPage: false,- startCursor: null,- endCursor: null,- },- },- }),- );- }),- graphql.query('FindManyPeople', (req, res, ctx) => {- return res(- ctx.data({- people: {- edges: mockedPeopleData.map((person) => ({- node: person,- cursor: null,- })),- pageInfo: {- hasNextPage: false,- hasPreviousPage: false,- startCursor: null,- endCursor: null,+ }),+ );+ }),+ graphql.query('FindManyActivities', (req, res, ctx) => {+ return res(+ ctx.data({+ activities: {+ edges: mockedActivities.map((activities) => ({+ node: activities,+ cursor: null,+ })),+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },},- },- }),- );- }),-];+ }),+ );+ }),+ ],+};diff --git a/front/src/testing/mock-data/metadata.ts b/front/src/testing/mock-data/metadata.tsindex 1a02c2e9c33..f7730cd7dab 100644--- a/front/src/testing/mock-data/metadata.ts+++ b/front/src/testing/mock-data/metadata.ts@@ -5,34 +5,245 @@ import {export const mockedPeopleMetadata = {node: {- id: 'e3802178-cfe8-4df1-8be6-b1b26ba10a21',- dataSourceId: '',+ __typename: 'object',+ id: '20202020-c64b-44bc-bd2c-502c99f49dca',nameSingular: 'person',namePlural: 'people',labelSingular: 'Person',labelPlural: 'People',- description: null,+ description: 'A person',icon: 'IconUser',isCustom: false,isActive: true,- createdAt: '',- updatedAt: '',+ isSystem: false,+ createdAt: '2023-11-24T03:29:18.207Z',+ updatedAt: '2023-11-24T03:29:18.207Z',fields: {edges: [{node: {- id: '86b696ea-9b43-46b4-9162-e1ee8b558a38',- type: FieldMetadataType.Text,+ __typename: 'field',+ id: '20202020-2bf4-42b8-8718-a3e852bfa6a6',+ type: 'DATE_TIME',+ name: 'updatedAt',+ label: 'Update date',+ description: null,+ icon: 'IconCalendar',+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-03cd-4cd0-9afc-92077b69f24f',+ type: 'UUID',+ name: 'id',+ label: 'Id',+ description: null,+ icon: null,+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-486f-45f9-bbdf-aac18b1831c0',+ type: 'TEXT',+ name: 'phone',+ label: 'Phone',+ description: 'Contact’s phone number',+ icon: 'IconPhone',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-dcf6-445a-b543-37e55de43c25',+ type: 'LINK',+ name: 'linkedinLink',+ label: 'Linkedin',+ description: 'Contact’s Linkedin account',+ icon: 'IconBrandLinkedin',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-64e1-4080-b6ad-db03c3809f8b',+ type: 'UUID',+ name: 'companyId',+ label: 'Company ID (foreign key)',+ description: 'Foreign key for company',+ icon: null,+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-bb05-45cb-aa2a-71b58d49dd23',+ type: 'TEXT',+ name: 'avatarUrl',+ label: 'Avatar',+ description: 'Contact’s avatar',+ icon: 'IconFileUpload',+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-a3a7-4f63-9303-10226f6055be',+ type: 'LINK',+ name: 'xLink',+ label: 'X',+ description: 'Contact’s X/Twitter account',+ icon: 'IconBrandX',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-3b86-413e-ab56-0ebd1a583ff3',+ type: 'TEXT',+ name: 'jobTitle',+ label: 'Job Title',+ description: 'Contact’s job title',+ icon: 'IconBriefcase',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-8a96-4e4b-86fd-ea126530e0c1',+ type: 'EMAIL',+ name: 'email',+ label: 'Email',+ description: 'Contact’s Email',+ icon: 'IconMail',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-9b56-4888-bfe3-f6f59aa999e3',+ type: 'FULL_NAME',name: 'name',label: 'Name',- description: '',- placeholder: null,+ description: 'Contact’s name',icon: 'IconUser',isCustom: false,isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-78f8-4b4c-90ff-86adf77590f5',+ type: 'TEXT',+ name: 'city',+ label: 'City',+ description: 'Contact’s city',+ icon: 'IconMap',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-bec0-4cf0-bf1c-8b2ed21f027a',+ type: 'DATE_TIME',+ name: 'createdAt',+ label: 'Creation date',+ description: null,+ icon: 'IconCalendar',+ isCustom: false,+ isActive: true,+ isSystem: false,isNullable: false,- createdAt: '',- updatedAt: '',+ createdAt: '2023-11-24T03:29:18.268Z',+ updatedAt: '2023-11-24T03:29:18.268Z',fromRelationMetadata: null,toRelationMetadata: null,},@@ -72,7 +283,7 @@ export const mockedPeopleMetadata = {startCursor: null,endCursor: null,},- totalCount: 2,+ totalCount: 12,},},};@@ -149,7 +360,6 @@ export const mockedCompaniesMetadata = {relationType: RelationMetadataType.OneToMany,toObjectMetadata: {id: mockedPeopleMetadata.node.id,- dataSourceId: mockedPeopleMetadata.node.dataSourceId,nameSingular: mockedPeopleMetadata.node.nameSingular,namePlural: mockedPeopleMetadata.node.namePlural,},@@ -306,6 +516,244 @@ export const mockedWorkspacesMetadata = {},};+export const mockedActivitiesMetadata = {+ node: {+ __typename: 'object',+ id: '20202020-8ee3-4f67-84ab-1b7a6eb5a448',+ nameSingular: 'activity',+ namePlural: 'activities',+ labelSingular: 'Activity',+ labelPlural: 'Activities',+ description: 'An activity',+ icon: 'IconCheckbox',+ isCustom: false,+ isActive: true,+ isSystem: true,+ createdAt: '2023-11-24T03:29:18.207Z',+ updatedAt: '2023-11-24T03:29:18.207Z',+ fields: {+ edges: [+ {+ node: {+ __typename: 'field',+ id: '20202020-4694-4ec6-9084-8d932ebb3066',+ type: 'UUID',+ name: 'assigneeId',+ label: 'Assignee id (foreign key)',+ description: 'Acitivity assignee id foreign key',+ icon: null,+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-88df-4202-bf82-6a06c6963280',+ type: 'DATE_TIME',+ name: 'updatedAt',+ label: 'Update date',+ description: null,+ icon: 'IconCalendar',+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-aff0-4961-be8a-0e5c2598b9a6',+ type: 'TEXT',+ name: 'body',+ label: 'Body',+ description: 'Activity body',+ icon: 'IconList',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-cd46-44f4-bf22-b0aa20d009da',+ type: 'DATE_TIME',+ name: 'reminderAt',+ label: 'Reminder Date',+ description: 'Activity reminder date',+ icon: 'IconCalendarEvent',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-2584-4797-95a8-5cc90d48c040',+ type: 'TEXT',+ name: 'title',+ label: 'Title',+ description: 'Activity title',+ icon: 'IconNotes',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-f695-419c-b928-c488323d6df3',+ type: 'UUID',+ name: 'id',+ label: 'Id',+ description: null,+ icon: null,+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-3acb-46bb-b993-0dc49fa2a48d',+ type: 'UUID',+ name: 'authorId',+ label: 'Author id (foreign key)',+ description: 'Activity author id foreign key',+ icon: null,+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-0924-48f0-a8c2-d2dd4e2098e2',+ type: 'DATE_TIME',+ name: 'completedAt',+ label: 'Completion Date',+ description: 'Activity completion date',+ icon: 'IconCheck',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-a243-4b94-a4b4-25705af86be2',+ type: 'TEXT',+ name: 'type',+ label: 'Type',+ description: 'Activity type',+ icon: 'IconCheckbox',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-65a2-4d9c-b640-bac54007a14d',+ type: 'DATE_TIME',+ name: 'createdAt',+ label: 'Creation date',+ description: null,+ icon: 'IconCalendar',+ isCustom: false,+ isActive: true,+ isSystem: true,+ isNullable: false,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ {+ node: {+ __typename: 'field',+ id: '20202020-20e1-4366-b386-750bdca2dfe3',+ type: 'DATE_TIME',+ name: 'dueAt',+ label: 'Due Date',+ description: 'Activity due date',+ icon: 'IconCalendarEvent',+ isCustom: false,+ isActive: true,+ isSystem: false,+ isNullable: true,+ createdAt: '2023-11-24T03:29:18.228Z',+ updatedAt: '2023-11-24T03:29:18.228Z',+ fromRelationMetadata: null,+ toRelationMetadata: null,+ },+ },+ ],+ pageInfo: {+ hasNextPage: false,+ hasPreviousPage: false,+ startCursor: null,+ endCursor: null,+ },+ totalCount: 11,+ },+ },+};+export const mockedObjectMetadataItems = {edges: [{@@ -509,6 +957,8 @@ export const mockedObjectMetadataItems = {mockedPeopleMetadata,mockedCompaniesMetadata,mockedWorkspacesMetadata,+ mockedPeopleMetadata,+ mockedActivitiesMetadata,],pageInfo: {hasNextPage: false,@@ -516,5 +966,5 @@ export const mockedObjectMetadataItems = {startCursor: null,endCursor: null,},- totalCount: 5,+ totalCount: 6,};diff --git a/front/yarn.lock b/front/yarn.lockindex 479e7dc1af3..bd9cba08fb7 100644--- a/front/yarn.lock+++ b/front/yarn.lock@@ -3236,7 +3236,7 @@"@types/set-cookie-parser" "^2.4.0"set-cookie-parser "^2.4.6"-"@mswjs/interceptors@^0.17.5":+"@mswjs/interceptors@^0.17.10":version "0.17.10"resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.17.10.tgz#857b41f30e2b92345ed9a4e2b1d0a08b8b6fcad4"integrity sha512-N8x7eSLGcmUFNWZRxT1vsHvypzIRgQYdG0rJey/rZCy6zT/30qDt8Joj7FxzGNLSwXbeZqJOMqDurp7ra4hgbw==@@ -3502,27 +3502,6 @@dependencies:"@babel/runtime" "^7.13.10"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-dialog/-/react-dialog-1.0.0.tgz#997e97cb183bc90bd888b26b8e23a355ac9fe5f0"- integrity sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/primitive" "1.0.0"- "@radix-ui/react-compose-refs" "1.0.0"- "@radix-ui/react-context" "1.0.0"- "@radix-ui/react-dismissable-layer" "1.0.0"- "@radix-ui/react-focus-guards" "1.0.0"- "@radix-ui/react-focus-scope" "1.0.0"- "@radix-ui/react-id" "1.0.0"- "@radix-ui/react-portal" "1.0.0"- "@radix-ui/react-presence" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"- "@radix-ui/react-slot" "1.0.0"- "@radix-ui/react-use-controllable-state" "1.0.0"- aria-hidden "^1.1.1"- react-remove-scroll "2.5.4"-"@radix-ui/[email protected]":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-direction/-/react-direction-1.0.0.tgz#a2e0b552352459ecf96342c79949dd833c1e6e45"@@ -3537,18 +3516,6 @@dependencies:"@babel/runtime" "^7.13.10"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.0.tgz#35b7826fa262fd84370faef310e627161dffa76b"- integrity sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/primitive" "1.0.0"- "@radix-ui/react-compose-refs" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"- "@radix-ui/react-use-callback-ref" "1.0.0"- "@radix-ui/react-use-escape-keydown" "1.0.0"-"@radix-ui/[email protected]":version "1.0.4"resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.4.tgz#883a48f5f938fa679427aa17fcba70c5494c6978"@@ -3561,13 +3528,6 @@"@radix-ui/react-use-callback-ref" "1.0.1""@radix-ui/react-use-escape-keydown" "1.0.3"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.0.tgz#339c1c69c41628c1a5e655f15f7020bf11aa01fa"- integrity sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==- dependencies:- "@babel/runtime" "^7.13.10"-"@radix-ui/[email protected]":version "1.0.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.1.tgz#1ea7e32092216b946397866199d892f71f7f98ad"@@ -3575,16 +3535,6 @@dependencies:"@babel/runtime" "^7.13.10"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.0.tgz#95a0c1188276dc8933b1eac5f1cdb6471e01ade5"- integrity sha512-C4SWtsULLGf/2L4oGeIHlvWQx7Rf+7cX/vKOAD2dXW0A1b5QXwi3wWeaEgW+wn+SEVrraMUk05vLU9fZZz5HbQ==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-compose-refs" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"- "@radix-ui/react-use-callback-ref" "1.0.0"-"@radix-ui/[email protected]":version "1.0.3"resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.3.tgz#9c2e8d4ed1189a1d419ee61edd5c1828726472f9"@@ -3595,14 +3545,6 @@"@radix-ui/react-primitive" "1.0.3""@radix-ui/react-use-callback-ref" "1.0.1"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.0.0.tgz#8d43224910741870a45a8c9d092f25887bb6d11e"- integrity sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-use-layout-effect" "1.0.0"-"@radix-ui/[email protected]":version "1.0.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.0.1.tgz#73cdc181f650e4df24f0b6a5b7aa426b912c88c0"@@ -3628,14 +3570,6 @@"@radix-ui/react-use-size" "1.0.1""@radix-ui/rect" "1.0.1"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.0.tgz#7220b66743394fabb50c55cb32381395cc4a276b"- integrity sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-primitive" "1.0.0"-"@radix-ui/[email protected]":version "1.0.3"resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.3.tgz#ffb961244c8ed1b46f039e6c215a6c4d9989bda1"@@ -3653,14 +3587,6 @@"@radix-ui/react-compose-refs" "1.0.0""@radix-ui/react-use-layout-effect" "1.0.0"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.0.tgz#376cd72b0fcd5e0e04d252ed33eb1b1f025af2b0"- integrity sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-slot" "1.0.0"-"@radix-ui/[email protected]":version "1.0.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.1.tgz#c1ebcce283dd2f02e4fbefdaa49d1cb13dbc990a"@@ -3745,14 +3671,6 @@"@babel/runtime" "^7.13.10""@radix-ui/react-primitive" "1.0.3"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.0.tgz#7fa805b99891dea1e862d8f8fbe07f4d6d0fd698"- integrity sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-compose-refs" "1.0.0"-"@radix-ui/[email protected]":version "1.0.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"@@ -3821,14 +3739,6 @@dependencies:"@babel/runtime" "^7.13.10"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.0.tgz#a64deaafbbc52d5d407afaa22d493d687c538b7f"- integrity sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-use-callback-ref" "1.0.0"-"@radix-ui/[email protected]":version "1.0.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz#ecd2ced34e6330caf89a82854aa2f77e07440286"@@ -3837,14 +3747,6 @@"@babel/runtime" "^7.13.10""@radix-ui/react-use-callback-ref" "1.0.1"-"@radix-ui/[email protected]":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.0.tgz#aef375db4736b9de38a5a679f6f49b45a060e5d1"- integrity sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==- dependencies:- "@babel/runtime" "^7.13.10"- "@radix-ui/react-use-callback-ref" "1.0.0"-"@radix-ui/[email protected]":version "1.0.3"resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz#217b840c250541609c66f67ed7bab2b733620755"@@ -8185,14 +8087,6 @@ ccount@^2.0.0:resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"integrity sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==- version "4.1.1"- resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad"- integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==- dependencies:- ansi-styles "^4.1.0"- supports-color "^7.1.0"-chalk@^1.1.3:version "1.1.3"resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"@@ -8536,11 +8430,6 @@ comma-separated-tokens@^2.0.0:resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz#4e89c9458acb61bc8fef19f4529973b2392839ee"integrity sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==- version "0.1.2"- resolved "https://registry.yarnpkg.com/command-score/-/command-score-0.1.2.tgz#b986ad7e8c0beba17552a56636c44ae38363d381"- integrity sha512-VtDvQpIJBvBatnONUsPzXYFVKQQAhuf3XTNOAsdBxCNO/QCtUUd8LSgjn0GVarBkCad6aJCZfXgrjYbl/KRr7w==-commander@^2.20.0:version "2.20.3"resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"@@ -11216,7 +11105,7 @@ [email protected]:resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.12.1.tgz#c62d5ac54dbd409cc6520b0b39de374b3d59d0dd"integrity sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg==-"graphql@14 - 16", "graphql@^15.0.0 || ^16.0.0", graphql@^16.6.0:+"graphql@14 - 16", graphql@^16.6.0, graphql@^16.8.1:version "16.8.1"resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07"integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==@@ -11507,11 +11396,6 @@ [email protected]:resolved "https://registry.yarnpkg.com/headers-polyfill/-/headers-polyfill-3.2.5.tgz#6e67d392c9d113d37448fe45014e0afdd168faed"integrity sha512-tUCGvt191vNSQgttSyJoibR+VO+I6+iCHIUdhzEMJKE+EAL8BwCN7fUOZlY4ofOelNHsK+gEjxB/B+9N3EWtdA==-headers-polyfill@^3.1.2:- version "3.3.0"- resolved "https://registry.yarnpkg.com/headers-polyfill/-/headers-polyfill-3.3.0.tgz#67c6ef7b72d4c8cac832ad5936f5b3a56e7b705a"- integrity sha512-5e57etwBpNcDc0b6KCVWEh/Ro063OxPvzVimUdM0/tsYM/T7Hfy3kknIGj78SFTOhNd8AZY41U8mOHoO4LzmIQ==-hex-rgb@^5.0.0:version "5.0.0"resolved "https://registry.yarnpkg.com/hex-rgb/-/hex-rgb-5.0.0.tgz#e2c9eb6a37498d66c5a350a221ed4c2c7d1a92d6"@@ -14674,28 +14558,28 @@ [email protected], ms@^2.1.1:resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==-msw-storybook-addon@^1.8.0:+msw-storybook-addon@^1.10.0:version "1.10.0"resolved "https://registry.yarnpkg.com/msw-storybook-addon/-/msw-storybook-addon-1.10.0.tgz#8855cb0171ed2ac0649b1ce386e0e0d67420cfd4"integrity sha512-soCTMTf7DnLeaMnFHPrtVgbyeFTJALVvnDHpzzXpJad+HOzJgQdwU4EAzVfDs1q+X5cVEgxOdAhSMC7ljvnSXg==dependencies:is-node-process "^1.0.1"- version "1.2.1"- resolved "https://registry.yarnpkg.com/msw/-/msw-1.2.1.tgz#9dd347583eeba5e5c7f33b54be5600a899dc61bd"- integrity sha512-bF7qWJQSmKn6bwGYVPXOxhexTCGD5oJSZg8yt8IBClxvo3Dx/1W0zqE1nX9BSWmzRsCKWfeGWcB/vpqV6aclpw==+ version "1.3.2"+ resolved "https://registry.yarnpkg.com/msw/-/msw-1.3.2.tgz#35e0271293e893fc3c55116e90aad5d955c66899"+ integrity sha512-wKLhFPR+NitYTkQl5047pia0reNGgf0P6a1eTnA5aNlripmiz0sabMvvHcicE8kQ3/gZcI0YiPFWmYfowfm3lA==dependencies:"@mswjs/cookies" "^0.2.2"- "@mswjs/interceptors" "^0.17.5"+ "@mswjs/interceptors" "^0.17.10""@open-draft/until" "^1.0.3""@types/cookie" "^0.4.1""@types/js-levenshtein" "^1.1.1"- chalk "4.1.1"+ chalk "^4.1.1"chokidar "^3.4.2"cookie "^0.4.2"- graphql "^15.0.0 || ^16.0.0"- headers-polyfill "^3.1.2"+ graphql "^16.8.1"+ headers-polyfill "3.2.5"inquirer "^8.2.0"is-node-process "^1.2.0"js-levenshtein "^1.1.6"@@ -16721,17 +16605,6 @@ react-remove-scroll-bar@^2.3.3:react-style-singleton "^2.2.1"tslib "^2.0.0"- version "2.5.4"- resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.4.tgz#afe6491acabde26f628f844b67647645488d2ea0"- integrity sha512-xGVKJJr0SJGQVirVFAUZ2k1QLyO6m+2fy0l8Qawbp5Jgrv3DeLalrfMNBFSlmz5kriGGzsVBtGVnf4pTKIhhWA==- dependencies:- react-remove-scroll-bar "^2.3.3"- react-style-singleton "^2.2.1"- tslib "^2.1.0"- use-callback-ref "^1.3.0"- use-sidecar "^1.1.2"-version "2.5.5"resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz#1e31a1260df08887a8a0e46d09271b52b3a37e77"