Skip to content

Commit 7399ea7

Browse files
committed
chore: standardize stories
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> ### My notes - enable autodics - need support for dark mode - i18n is causing errors - remove snapshot story (replaced by autodocs) - add a playground story - autodocs has this but requires scrolling #### types of stories - visual stories - only show in autodocs - interactive stories only show in sidebar - test focused stories - only show in sidebar (or not at all? if it isnt visually apparent) ### 🔗 Linked issue <!-- Please ensure there is an open issue and mention its number. For example, "resolves #123" --> ### 🧭 Context <!-- Brief background and why this change is needed --> <!-- High-level summary of what changed --> ### 📚 Description <!-- Describe your changes in detail. Why is this change required? What problem does it solve? --> <!-- If you used AI tools to help with this contribution, please ensure the PR description and code reflect your own understanding. Write in your own voice rather than copying AI-generated text. --> <!---------------------------------------------------------------------- Before creating the pull request, please make sure you do the following: - Check that there isn't already a PR that solves the problem the same way. If you find a duplicate, please help us reviewing it. - Ensure that PR title follows conventional commits (https://www.conventionalcommits.org) - Update the corresponding documentation if needed. - Include relevant tests that fail without this PR but pass with it. - Add any additional context, tradeoffs, follow-ups, or things reviewers should be aware of. Thank you for contributing to npmx! ----------------------------------------------------------------------->
1 parent 8cea27f commit 7399ea7

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

app/components/Button/Base.stories.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import Component from './Base.vue'
33

44
const meta = {
55
component: Component,
6+
tags: ['autodocs'],
67
} satisfies Meta<typeof Component>
78

89
export default meta
910
type Story = StoryObj<typeof meta>
1011

1112
export const Primary: Story = {
13+
tags: ['!dev'],
1214
args: {
1315
default: 'Primary Button',
1416
},

app/components/Input/Base.stories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Component from './Base.vue'
44

55
const meta = {
66
component: Component,
7+
tags: ['autodocs'],
78
argTypes: {
89
disabled: { control: 'boolean' },
910
size: {

app/components/Link/Link.stories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import LinkBase from './Base.vue'
33

44
const meta = {
55
component: LinkBase,
6+
tags: ['autodocs'],
67
args: {
78
to: '/',
89
default: 'Click me',

0 commit comments

Comments
 (0)