Skip to content

Commit dbca8c2

Browse files
feat(manager-wiki): display properties on technical informations
ref: #MANAGER-19982 Signed-off-by: Alex Boungnaseng <[email protected]>
1 parent e9a32e0 commit dbca8c2

File tree

33 files changed

+49
-1
lines changed

33 files changed

+49
-1
lines changed

packages/manager-wiki/.storybook/main.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ const config: StorybookConfig = {
3333
reactDocgenTypescriptOptions: {
3434
shouldExtractLiteralValuesFromEnum: true,
3535
shouldRemoveUndefinedFromOptional: true,
36-
propFilter: () => true, // ← include all props, even from node_modules
36+
compilerOptions: {
37+
allowSyntheticDefaultImports: true,
38+
esModuleInterop: true,
39+
},
40+
propFilter: (prop) => {
41+
// Include all props from our components
42+
if (prop.parent) {
43+
// Exclude props from node_modules except from our components
44+
return !prop.parent.fileName.includes('node_modules');
45+
}
46+
return true;
47+
},
3748
},
3849
check: false,
3950
},

packages/manager-wiki/stories/manager-ui-kit/components/Breadcrumb/breadcrumb.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ HideRootLabel.args = {
3434
export default {
3535
title: 'Manager UI Kit/Components/Breadcrumb',
3636
component: Breadcrumb,
37+
tags: ['autodocs'],
3738
decorators: [withRouter],
3839
parameters: {
3940
docs: {

packages/manager-wiki/stories/manager-ui-kit/components/Clipboard/clipboard.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Clipboard } from '@ovh-ux/muk';
44
const meta: Meta<typeof Clipboard> = {
55
title: 'Manager UI Kit/Components/Clipboard',
66
component: Clipboard,
7+
tags: ['autodocs'],
78
};
89

910
type Story = StoryObj<typeof Clipboard>;

packages/manager-wiki/stories/manager-ui-kit/components/Datagrid/datagrid.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ FullFooter.args = {
438438
const meta = {
439439
title: 'Manager UI Kit/Components/Datagrid New',
440440
component: Datagrid,
441+
tags: ['autodocs'],
441442
decorators: [withRouter],
442443
parameters: {
443444
docs: {

packages/manager-wiki/stories/manager-ui-kit/components/Drawer/Drawer.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState } from 'react';
22
import { Meta } from '@storybook/react';
33
import { Button } from '@ovh-ux/muk';
4+
import { DrawerBase } from '@ovh-ux/muk/src/components/drawer/drawer-base/DrawerBase.component';
45
import { DrawerContent } from './DrawerContent.component';
56
import { Content } from './mocks/Content.component';
67
import {
@@ -11,6 +12,8 @@ import {
1112

1213
const meta = {
1314
title: 'Manager UI Kit/Components/Drawer',
15+
component: DrawerBase,
16+
tags: ['autodocs'],
1417
args: {
1518
isOpen: false,
1619
isLoading: false,

packages/manager-wiki/stories/manager-ui-kit/components/Error/error.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const meta: Meta<typeof Error> = {
2626
title: 'Manager UI Kit/Components/Errors',
2727
decorators: [(story) => <div>{story()}</div>],
2828
component: Error,
29+
tags: ['autodocs'],
2930
argTypes: {},
3031
args: defaultError,
3132
parameters: {

packages/manager-wiki/stories/manager-ui-kit/components/Filters/filters.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export const DefaultProps = {
113113
const meta = {
114114
title: 'Manager UI Kit/Components/Filters',
115115
component: FiltersStory,
116+
tags: ['autodocs'],
116117
decorators: [withRouter],
117118
};
118119

packages/manager-wiki/stories/manager-ui-kit/components/Link/link.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const iamLinkWithoutAuthAndTooltip: LinkProps = {
5454
const meta: Meta<LinkProps> = {
5555
title: 'Manager UI Kit/Components/Link',
5656
decorators: [(story) => <div>{story()}</div>],
57+
component: Link,
58+
tags: ['autodocs'],
5759
argTypes: {},
5860
args: backLink,
5961
};

packages/manager-wiki/stories/manager-ui-kit/components/Notifications/notifications.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ export const Primary = {
6161
export default {
6262
title: 'Manager UI Kit/Components/Notifications',
6363
component: NotificationsStory,
64+
tags: ['autodocs'],
6465
decorators: [withRouter],
6566
};

packages/manager-wiki/stories/manager-ui-kit/components/Order/Order.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const DemoOrder: Story = {
4747
const meta: Meta = {
4848
title: 'Manager UI Kit/Components/Order',
4949
component: Order,
50+
tags: ['autodocs'],
5051
subcomponents: {
5152
'Order.Summary': Order.Summary as ComponentType<unknown>,
5253
'Order.Configuration': Order.Configuration as ComponentType<unknown>,

0 commit comments

Comments
 (0)