Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create Settings/Accounts/Calendars/Calendar Settings page #4092

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: add SettingsAccountsCalendarsSettings stories
thaisguigon committed Feb 21, 2024
commit 1aa9d33f2a0c3c537665d1f9faa34b03762b0691
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Meta, StoryObj } from '@storybook/react';

import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath';
import { SettingsPath } from '@/types/SettingsPath';
import {
PageDecorator,
PageDecoratorArgs,
} from '~/testing/decorators/PageDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { mockedConnectedAccounts } from '~/testing/mock-data/accounts';

import { SettingsAccountsCalendarsSettings } from '../SettingsAccountsCalendarsSettings';

const meta: Meta<PageDecoratorArgs> = {
title: 'Pages/Settings/Accounts/SettingsAccountsCalendarsSettings',
component: SettingsAccountsCalendarsSettings,
decorators: [PageDecorator],
args: {
routePath: getSettingsPagePath(SettingsPath.AccountsCalendarsSettings),
routeParams: { ':accountUuid': mockedConnectedAccounts[0].id },
},
parameters: {
layout: 'fullscreen',
msw: graphqlMocks,
},
};

export default meta;

export type Story = StoryObj<typeof SettingsAccountsCalendarsSettings>;

export const Default: Story = {};
6 changes: 4 additions & 2 deletions packages/twenty-front/src/testing/mock-data/metadata.ts
Original file line number Diff line number Diff line change
@@ -5229,7 +5229,7 @@ export const mockedMessageThreads = {
},
};

export const mockedMessageChannels = {
export const mockedMessageChannelsMetadata = {
__typename: 'objectEdge',
node: {
__typename: 'object',
@@ -6811,6 +6811,8 @@ export const mockedObjectMetadataItems = {
mockedWorkspaceMembersMetadata,
mockedOpportunitiesMetadata,
mockedAPIKeysMetadata,
mockedConnectedAccountsMetadata,
mockedMessageChannelsMetadata,
],
pageInfo: {
__typename: 'PageInfo',
@@ -6819,5 +6821,5 @@ export const mockedObjectMetadataItems = {
startCursor: 'YXJyYXljb25uZWN0aW9uOjA=',
endCursor: 'YXJyYXljb25uZWN0aW9uOjk=',
},
totalCount: 13,
totalCount: 15,
};
Loading
Oops, something went wrong.