From a3199e6c11e32f27125f4673e969c6a4d7b4ed11 Mon Sep 17 00:00:00 2001 From: Marcin Krueger Date: Wed, 10 Aug 2022 14:12:27 +0200 Subject: [PATCH] [AAE-10214] Storybook add documentation table for stories --- .../error-content.component.stories.ts | 42 +++++++++++++++---- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/lib/core/templates/error-content/error-content.component.stories.ts b/lib/core/templates/error-content/error-content.component.stories.ts index e7819a5b0e1..2fe0f70d148 100644 --- a/lib/core/templates/error-content/error-content.component.stories.ts +++ b/lib/core/templates/error-content/error-content.component.stories.ts @@ -40,11 +40,45 @@ export default { argTypes: { errorCode: { type: 'string', + description: 'Component level Error Code', + table: { + category: 'Component Inputs', + type: { + summary: 'string' + }, + defaultValue: { + summary: 'UNKNOWN' + } + }, defaultValue: '404' }, + errorCodeTranslated: { + type: 'string', + description: + 'Code of translated Error - if translation doesn\'t exist then is UNKNOWN', + table: { + category: 'Component Variables', + type: { + summary: 'string' + } + }, + control: { + disable: true + } + }, isAdditionalContent: { type: 'boolean', - defaultValue: true + description: 'Enable Content Projection', + defaultValue: false, + table: { + category: 'Story Controls', + type: { + summary: 'boolean' + }, + defaultValue: { + summary: false + } + } } } } as Meta; @@ -79,9 +113,6 @@ const template: Story = args => ({ }); export const errorKnownParamStory = template.bind({}); -errorKnownParamStory.args = { - isAdditionalContent: true -}; errorKnownParamStory.argTypes = templateArgTypes; errorKnownParamStory.decorators = [ moduleMetadata({ @@ -98,9 +129,6 @@ errorKnownParamStory.decorators = [ errorKnownParamStory.storyName = 'Error Param with Known ID'; export const errorUnknownParamStory = template.bind({}); -errorUnknownParamStory.args = { - isAdditionalContent: true -}; errorUnknownParamStory.argTypes = templateArgTypes; errorUnknownParamStory.decorators = [ moduleMetadata({