Skip to content

Commit 7aaaa74

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 7aaaa74

12 files changed

Lines changed: 2136 additions & 0 deletions

.direnv/bin/nix-direnv-reload

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
if [[ ! -d "/home/sw/repo/npmx.dev" ]]; then
4+
echo "Cannot find source directory; Did you move it?"
5+
echo "(Looking for "/home/sw/repo/npmx.dev")"
6+
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
7+
exit 1
8+
fi
9+
10+
# rebuild the cache forcefully
11+
_nix_direnv_force_reload=1 direnv exec "/home/sw/repo/npmx.dev" true
12+
13+
# Update the mtime for .envrc.
14+
# This will cause direnv to reload again - but without re-building.
15+
touch "/home/sw/repo/npmx.dev/.envrc"
16+
17+
# Also update the timestamp of whatever profile_rc we have.
18+
# This makes sure that we know we are up to date.
19+
touch -r "/home/sw/repo/npmx.dev/.envrc" "/home/sw/repo/npmx.dev/.direnv"/*.rc
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/01x5k4nlxcpyd85nnr0b9gm89rm8ff4x-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/3p306srz83h9z9v0ma9xcxb8y8cdxkxj-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/fb93gahm5ghla179jbn6gyfd3qmph5qw-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/jb6v4m4xzbmx75llymn156nw1kw92qdv-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/yspm41avnsc4gr8cjamkv0cf10i3spsi-source
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nix/store/6dyakggcwykd1cw2mjgrrrxs6719ai6h-nix-shell-env

.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc

Lines changed: 2106 additions & 0 deletions
Large diffs are not rendered by default.

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
},

0 commit comments

Comments
 (0)