bilhej/frontend
Hermes Agent 48c2a50c5d
Some checks failed
CI / Lint, type check, unit tests, coverage (push) Successful in 2m43s
CI / E2E browser tests (push) Failing after 1m17s
fix(guest): route homepage CTA to guest checkout when unauthenticated
Guest checkout was unreachable: the homepage CTA "Fortsatt till brevet"
always linked to /compose (requiresAuth), so anonymous users hit the
router guard and got redirected to /logga-in instead of reaching the
guest checkout flow.

Changes:
- HomePage.vue: compute CTA target based on auth state. Authenticated
  users still go to /compose; unauthenticated users go to
  /gast-bestallning with the plate as a query param.
- GuestCheckoutPage.vue: accept plate from route.query.plate so the user
  does not have to re-enter it after looking it up on the homepage.
- HomePage.spec.ts: add Pinia setup + guest-checkout route; update CTA
  assertion to expect /gast-bestallning?plate=... when unauthenticated.

All 318 frontend tests pass, vue-tsc clean (exit 0).
2026-06-22 12:08:43 +00:00
..
e2e fix(e2e): use unique plate in QR code test to avoid admin row collision 2026-06-19 14:04:26 +00:00
public refactor: add design system with CSS tokens, utilities, and app shell 2026-05-16 16:09:35 +02:00
src fix(guest): route homepage CTA to guest checkout when unauthenticated 2026-06-22 12:08:43 +00:00
.gitignore feat: add login page with Playwright E2E tests 2026-05-13 19:17:29 +02:00
.prettierrc feat: scaffold Vue 3 + Vite frontend with TypeScript, Router, Pinia, Vitest, ESLint, Prettier 2026-05-01 00:52:38 +02:00
eslint.config.ts feat: scaffold Vue 3 + Vite frontend with TypeScript, Router, Pinia, Vitest, ESLint, Prettier 2026-05-01 00:52:38 +02:00
index.html refactor: add design system with CSS tokens, utilities, and app shell 2026-05-16 16:09:35 +02:00
package-lock.json feat(payment): Swish QR code and pre-filled payment link 2026-06-19 12:06:29 +00:00
package.json feat(payment): Swish QR code and pre-filled payment link 2026-06-19 12:06:29 +00:00
playwright.config.ts fix(e2e): retry transient CI failures and fix backend health check 2026-06-22 10:05:36 +00:00
README.md feat: scaffold Vue 3 + Vite frontend with TypeScript, Router, Pinia, Vitest, ESLint, Prettier 2026-05-01 00:52:38 +02:00
tsconfig.app.json fix: E2E pipeline — vite preview instead of nginx, ts build fixes 2026-05-19 18:53:52 +02:00
tsconfig.json feat: scaffold Vue 3 + Vite frontend with TypeScript, Router, Pinia, Vitest, ESLint, Prettier 2026-05-01 00:52:38 +02:00
tsconfig.node.json feat: scaffold Vue 3 + Vite frontend with TypeScript, Router, Pinia, Vitest, ESLint, Prettier 2026-05-01 00:52:38 +02:00
vite.config.ts feat(guest): guest checkout without login (Swish + QR) 2026-06-22 10:35:56 +00:00

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.