bilhej/frontend/src/pages
Joakim Mörling c3c1513ac1 feat: add payment page and wire compose submit to payment flow
- api/payment.ts: payOrder(orderId) calls POST /api/payment/{id}/pay
- api/orders.ts: add amountPaid (number|null) to Order type
- PaymentRedirect.vue: route /betalning/:orderId, shows plate from
  query?plate, amount label (49 kr), green Betalt button, mock note:
  "Detta är en mock-betalning. I framtiden skickas du till Stripe."
  On click: calls payOrder, on success navigates to /orders, on
  failure shows error. Button disables and shows "Bearbetar..." while
  paying.
- ComposePage.vue: after createOrder success, captures returned order
  object and navigates to /betalning/{orderId}?plate=... instead of
  the old direct-to-orders route
- Router: add /betalning/:orderId route (name: payment, component:
  PaymentRedirect, meta: { requiresAuth: true })
2026-05-15 20:30:15 +02:00
..
AboutPage.vue feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
AdminPage.vue feat: add tracking input, save button, and PostNord link to admin dashboard 2026-05-15 19:58:46 +02:00
ComposePage.vue feat: add payment page and wire compose submit to payment flow 2026-05-15 20:30:15 +02:00
ContactPage.vue feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
HomePage.vue feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
LoginPage.vue feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00
OrdersPage.vue refactor: remove template from order flow 2026-05-14 16:55:59 +02:00
PaymentRedirect.vue feat: add payment page and wire compose submit to payment flow 2026-05-15 20:30:15 +02:00
RegisterPage.vue feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00