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%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
TOBIAS BREGY c7410aa696 Install packages from the public npm registry in CI and Pages
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>
2026-12-03 09:25:57 +01:00
.github/workflows Install packages from the public npm registry in CI and Pages 2026-12-03 09:25:57 +01:00
app Publish the static prototype on GitHub Pages 2026-12-03 08:57:54 +01:00
public metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
scripts metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
server metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
.editorconfig metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
.env.example metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
.gitignore metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
.nvmrc metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
eslint.config.mjs metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
LICENSE metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
nuxt.config.ts Fix CI: pre-bundle runtime dependencies, update GitHub Actions 2026-12-02 15:20:01 +01:00
package-lock.json Install packages from the public npm registry in CI and Pages 2026-12-03 09:25:57 +01:00
package.json metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00
README.md Publish the static prototype on GitHub Pages 2026-12-03 08:57:54 +01:00
tsconfig.json metadata.swiss UX prototypes 2026-12-02 14:53:44 +01:00

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/scenarios and 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)