From 7bec7b3a79577a5d369ce946afd2d127960de804 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 11 Oct 2023 11:17:00 +0200 Subject: [PATCH] Replace 'storyName' with 'name' in Angular stories --- .../custom-cva-component.stories.ts | 2 +- .../ng-content-about-parent.stories.ts | 4 ++-- .../basics/component-with-on-push/on-push.stories.ts | 2 +- .../basics/component-with-pipe/custom-pipes.stories.ts | 2 +- .../component-with-provider/di.component.stories.ts | 4 ++-- .../component-with-style/styled.component.stories.ts | 2 +- .../without-selector-ng-component-outlet.stories.ts | 2 +- .../basics/ng-module/import-module-for-root.stories.ts | 8 ++++---- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/code/frameworks/angular/template/stories/basics/angular-forms/customControlValueAccessor/custom-cva-component.stories.ts b/code/frameworks/angular/template/stories/basics/angular-forms/customControlValueAccessor/custom-cva-component.stories.ts index c5fb49653135..0396bae99acc 100644 --- a/code/frameworks/angular/template/stories/basics/angular-forms/customControlValueAccessor/custom-cva-component.stories.ts +++ b/code/frameworks/angular/template/stories/basics/angular-forms/customControlValueAccessor/custom-cva-component.stories.ts @@ -22,7 +22,7 @@ export default meta; type Story = StoryObj; export const SimpleInput: Story = { - storyName: 'Simple input', + name: 'Simple input', render: () => ({ props: { ngModel: 'Type anything', diff --git a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts index ae936092f96b..f8185f8eb80a 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts @@ -1,5 +1,5 @@ import { Component, Input } from '@angular/core'; -import { componentWrapperDecorator, Meta, StoryFn, StoryObj } from '@storybook/angular'; +import { componentWrapperDecorator, Meta, StoryObj } from '@storybook/angular'; @Component({ selector: 'sb-button', @@ -54,5 +54,5 @@ export const InH1: Story = { template: 'My button in h1', }), decorators: [componentWrapperDecorator((story) => `

${story}

`)], - storyName: 'In

', + name: 'In

', }; diff --git a/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push.stories.ts index 5da4366a606f..cc672938a7f2 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push.stories.ts @@ -19,5 +19,5 @@ export default meta; type Story = StoryObj; export const ClassSpecifiedComponentWithOnPushAndArgs: Story = { - storyName: 'Class-specified component with OnPush and Args', + name: 'Class-specified component with OnPush and Args', }; diff --git a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts index e9c3037b28ec..9a4a8e53c577 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts @@ -26,7 +26,7 @@ export const Simple: Story = { }; export const WithArgsStory: Story = { - storyName: 'With args', + name: 'With args', argTypes: { field: { control: 'text' }, }, diff --git a/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.stories.ts index 2b676f567d23..381c272fb96d 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.stories.ts @@ -16,11 +16,11 @@ export const InputsAndInjectDependencies: Story = { title: 'Component dependencies', }, }), - storyName: 'inputs and inject dependencies', + name: 'inputs and inject dependencies', }; export const InputsAndInjectDependenciesWithArgs: Story = { - storyName: 'inputs and inject dependencies with args', + name: 'inputs and inject dependencies with args', argTypes: { title: { control: 'text' }, }, diff --git a/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.stories.ts index 32116ba05090..c0cd88c09bc2 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.stories.ts @@ -11,5 +11,5 @@ export default meta; type Story = StoryObj; export const ComponentWithStyles: Story = { - storyName: 'Component with styles', + name: 'Component with styles', }; diff --git a/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts b/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts index 5e7cbabee628..3c0327c64a71 100644 --- a/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts @@ -56,7 +56,7 @@ class NgComponentOutletWrapperComponent implements OnInit { // Live changing of args by controls does not work at the moment. When changing args storybook does not fully // reload and therefore does not take into account the change of provider. export const WithCustomNgComponentOutletWrapper: Story = { - storyName: 'Custom wrapper *NgComponentOutlet', + name: 'Custom wrapper *NgComponentOutlet', argTypes: { name: { control: 'text' }, color: { control: 'color' }, diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts index f94dd25d1b50..6902672b66b5 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts @@ -33,11 +33,11 @@ export default meta; type Story = StoryObj; -export const Base = { - storyName: 'Chips group', +export const Base: Story = { + name: 'Chips group', }; -export const WithCustomProvider = { +export const WithCustomProvider: Story = { decorators: [ moduleMetadata({ providers: [ @@ -48,5 +48,5 @@ export const WithCustomProvider = { ], }), ], - storyName: 'Chips group with overridden provider', + name: 'Chips group with overridden provider', };