mirror of
https://github.com/metadata-swiss/ux-prototypes.git
synced 2026-12-04 20:28:43 +00:00
Read-only mirror of https://github.com/metadata-swiss/ux-prototypes — Bundesamt für Statistik. Issues & pull requests at the source.
- Vue 49.1%
- TypeScript 40.3%
- JavaScript 10%
- CSS 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Three entries of package-lock.json pointed to an internal registry that GitHub cannot reach, so npm ci failed. The Pages actions move to versions that run on Node 24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .github/workflows | ||
| app | ||
| public | ||
| scripts | ||
| server | ||
| .editorconfig | ||
| .env.example | ||
| .gitignore | ||
| .nvmrc | ||
| eslint.config.mjs | ||
| LICENSE | ||
| nuxt.config.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
metadata.swiss – UX prototypes
Clickable prototypes for metadata.swiss, the shared platform of opendata.swiss and I14Y. They make concepts tangible and are used for stakeholder feedback and user tests. All data is fictional, apart from records marked "Real record", which come from public snapshots of opendata.swiss and I14Y.
Try it online: https://metadata-swiss.github.io/ux-prototypes/ (static version: no server, so feedback, favourites and the test evaluation are stored in the browser only).
Built with Nuxt 4 and Nuxt UI v4, based on the official Nuxt UI dashboard template.
Quick start
Requires Node.js 22.21 or newer (see .nvmrc).
npm install # first time only, or after package changes
npm run db:build # builds the local catalogue database (optional, recommended)
npm run dev # starts http://localhost:3000
Stop with Ctrl+C in the terminal. Without the database the app falls back to the built-in mock data.
Using the prototype
- The prototype starts signed in as Christina, a data user. Switch the role (Public, Luna, Denise, Jim) in the menu top right; roles and permissions are explained under
/about#permissions. - "Reset demo data" in the same menu clears everything the prototype stored in the browser.
- Usability tests: set a session code per participant on
/test-session(or share/?session=T3), run the tasks under/test-session/scenariosand evaluate them under/admin/feedback(CSV export at/api/admin/feedback.csv). Feedback is stored in the local SQLite database – no third-party analytics, no personal data.
Structure
app/
├── app.config.ts ← colours and global component styles
├── assets/css/main.css ← Tailwind/Nuxt UI theme tokens, font
├── layouts/ ← portal.vue (public part), default.vue (signed-in area)
├── pages/ ← each file = one page/URL
├── components/ ← own building blocks
├── composables/ ← shared logic and state
├── data/ ← mock data (catalogue, organisations, vocabularies …)
├── types/catalog.d.ts ← data model of the mock data
└── utils/ ← formatting (DD.MM.YYYY, 1'250), quality, trends …
server/
├── api/ ← API routes (search, entries, feedback) – read from the SQLite database
├── utils/ ← database schema/build and search
└── data/ ← catalogue.db (generated) and the opendata.swiss / I14Y snapshots
scripts/ ← data validation, layout, accessibility and smoke checks
Commands
| Command | Purpose |
|---|---|
npm run dev |
Start the dev server on http://localhost:3000 |
npm run lint |
Check code style (-- --fix to fix) |
npm run typecheck |
Check types |
npm run validate:data |
Check mock data for broken references and unknown icons |
npm run db:build |
Build server/data/catalogue.db from the mock data and the snapshots |
npm run import:opendata |
Refresh the opendata.swiss snapshot |
npm run import:i14y |
Refresh the I14Y snapshot (federal network only) |
npm run check:responsive |
Screenshots at 375 / 768 / 1440 px in .screenshots/ (dev server must run) |
npm run check:a11y |
Accessibility check (WCAG 2.1 AA, axe-core; dev server must run) |
npm run test:smoke |
Smoke tests for the main flows (dev server must run) |
npx nuxt generate |
Build a static version in .output/public (for sharing/hosting) |
Links
- Nuxt UI docs: https://ui.nuxt.com
- Components: https://ui.nuxt.com/docs/components