Histoire is unmaintained and blocks upgrading Vite and other dev
dependencies. Replace it with a small standalone Vite app that keeps the
same `<Story>`/`<Variant>` template API so story files need no changes.
- Add vite.stories.config.ts and app/javascript/stories/ (sidebar tree
with collapsible groups, search, dark-mode and RTL/LTR toggles, and a
per-story error boundary)
- Globally register Story/Variant; migrate the histoire setup (store,
i18n, plugins/directives) and seed a memory router for route-aware
components
- Repoint story:dev/build/preview scripts and drop the histoire deps
- Remove histoire.config.ts, histoire.setup.ts and histoire.scss
We will use
[histoire](https://histoire.dev/guide/vue3/getting-started.html) for
component development. I've locked the version to 0.17.15 as it had
issues in the latest versions.
Run the following commands to start the development server.
```bash
# Start the development server
pnpm story:dev
# Build the assets to deploy it to website
pnpm story:build
# View the production version of the build
pnpm story:preview
```