diff --git a/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot b/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot index 49106214fa..5496b2e99f 100644 --- a/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot +++ b/frontend/src/components/App/Settings/__snapshots__/Settings.General.stories.storyshot @@ -151,6 +151,49 @@ +
+ Details on list view +
+
+
diff --git a/frontend/src/components/App/Settings/__snapshots__/Settings.stories.storyshot b/frontend/src/components/App/Settings/__snapshots__/Settings.stories.storyshot new file mode 100644 index 0000000000..8905651a3e --- /dev/null +++ b/frontend/src/components/App/Settings/__snapshots__/Settings.stories.storyshot @@ -0,0 +1,329 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Settings General 1`] = ` +
+ +
+
+
+
+

+ General Settings +

+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ Language +
+
+
+
+ + + +
+
+
+
+ Theme +
+
+
+ + +
+
+
+ Drawer Mode +
+
+ +
+
+ Number of rows for tables +
+
+
+
+ + + +
+
+
+
+ Timezone to display for dates +
+
+
+
+
+ +
+ +
+ +
+
+
+
+
+
+
+
+
+
+`; diff --git a/frontend/src/components/common/Resource/ResourceTable.stories.tsx b/frontend/src/components/common/Resource/ResourceTable.stories.tsx index a86259197c..ad7257fb3b 100644 --- a/frontend/src/components/common/Resource/ResourceTable.stories.tsx +++ b/frontend/src/components/common/Resource/ResourceTable.stories.tsx @@ -1,14 +1,29 @@ import { configureStore } from '@reduxjs/toolkit'; import { Meta, StoryFn } from '@storybook/react'; +import { Provider } from 'react-redux'; +import { MemoryRouter } from 'react-router-dom'; +import { createStore } from 'redux'; import { useMockListQuery } from '../../../helpers/testHelpers'; import Pod, { KubePod } from '../../../lib/k8s/pod'; +import reducers from '../../../redux/reducers/reducers'; import { INITIAL_STATE as UI_INITIAL_STATE } from '../../../redux/reducers/ui'; import { TestContext } from '../../../test'; import ResourceTable, { ResourceTableFromResourceClassProps } from './ResourceTable'; +const store = createStore(reducers); + export default { title: 'ResourceTable', component: ResourceTable, + decorators: [ + Story => ( + + + + + + ), + ], argTypes: {}, } as Meta; @@ -25,6 +40,7 @@ const TemplateWithFilter: StoryFn<{ filter: { namespaces: new Set(), search: '' }, config: { settings: { tableRowsPerPageOptions: [10, 20, 50, 100] } }, ui: UI_INITIAL_STATE, + drawerMode: { isDetailDrawerEnabled: false }, } ) => state, preloadedState: { @@ -41,6 +57,7 @@ const TemplateWithFilter: StoryFn<{ resourceTable: { tableColumnsProcessors: [], }, + drawerMode: { isDetailDrawerEnabled: false }, }, });