bilhej/frontend/src/pages
Joakim Mörling 9b4f08469c feat: build admin dashboard with orders table and status dropdown
- api/admin.ts: AdminOrder interface (id, email, plate, letterText,
  status, trackingId, amountPaid, createdAt), fetchAllOrders() calls
  GET /api/admin/orders, updateOrderStatus(orderId, status) calls
  PATCH /api/admin/orders/{id}/status
- AdminPage.vue replaces placeholder with full dashboard:
  - Table columns: Datum, E-post, Regnr, Status, expand chevron
  - Click any row to toggle expanded letter preview below the row
  - Only one row expanded at a time; second click collapses
  - Status column has a <select> dropdown showing Swedish labels
  - Changing dropdown fires PATCH API immediately (no save button)
  - On API failure the dropdown reverts to previous value and a
    red inline error "Kunde inte uppdatera status" appears
  - Loading, empty, and API error states with Swedish messages
  - Responsive table wrapper for horizontal scroll on small screens
  - Expanded rows use a separate <tr> with colspan(5) for clean
    table semantics
2026-05-15 12:15:19 +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: build admin dashboard with orders table and status dropdown 2026-05-15 12:15:19 +02:00
ComposePage.vue feat: add template picker modal to compose page 2026-05-14 17:39:21 +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
RegisterPage.vue feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00