Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

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)

Links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages