- PROJECT.md, README.md, TEST_GUIDE.md: status line refreshed; rate-limiter doc-vs-code drift fixed; HTML export section rewritten for the SvelteKit- static viewer; SSE event names + new events documented; config seed block extended with planned toggles + privacy_note; decision log entries added. - docs/CONCEPT_HTML_VIEWER.md, docs/CONCEPT_MOBILE_UI.md: banner the design intent as shipped; point at the source-of-truth code paths. - docs/CONCEPT_DIASHOW.md: planned-then-shipped design for the live diashow (two-queue policy, pluggable transitions, data-mode aware). - docs/FEATURES.md: capability matrix by role (Guest / Host / Admin) plus prose per area (auth, posting, feed, moderation, admin, export, gestures, data mode, quotas, privacy note, extensibility). - docs/USER_JOURNEYS.md: step-by-step flows for every supported scenario, including PIN reset by host, data mode, privacy note, gestures, and the admin toggles. - docs/IDEAS.md: speculative extensions (global diashow, reactions, multi-tenancy, animation pack, etc.) — explicitly out of v0.16 scope. - backend/migrations/README.md, frontend/src/lib/README.md: codify the "never edit a shipped migration" rule and the lib/ conventions (one store per concern, gestures via actions, sheets via ContextSheet, transitions as drop-in components). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6.9 KiB
6.9 KiB
Frontend Testing — Step by Step
Please test each step in order and report any errors (console errors, wrong text, broken UI, API errors).
Step 1 — Join flow + PIN modal
- Open http://localhost:5173/ in your browser (or navigate there if already open)
- You should land on the join page (
/join) with a name input - Enter your name (e.g.
Max) and click Beitreten - ✅ Expected: A modal appears showing your 4-digit PIN in large monospace font with a "Kopieren" button
- Click Weiter zur Galerie
Step 2 — Onboarding guide
- You should land on the feed page (
/feed) - ✅ Expected: A dark overlay appears at the bottom (or center on desktop) — the onboarding guide — showing step 1 of 4 with a step indicator and the Willkommen screen
- Click Weiter through all 4 steps, then Los geht's!
- ✅ Expected: Overlay disappears
Step 3 — Feed & navigation
- ✅ Expected: Feed shows the empty state ("Noch keine Fotos." or similar) with a hint to upload
- ✅ Expected: A persistent bottom nav is visible with three slots — 🏠 Feed on the left, an elevated 📷+ FAB in the center, 👤 Account on the right
Step 4 — My Account page
- Tap the 👤 Account tab in the bottom nav
- ✅ Expected:
/accountpage shows your name (Max), a blue "Gast" badge, session expiry date, and your PIN displayed large in an amber box - Tap Kopieren — check the clipboard contains your PIN
- ✅ Expected: Button briefly shows "Kopiert!"
- Tap the 🏠 Feed tab to go back
Step 5 — Upload
- Tap the central 📷+ FAB in the bottom nav
- ✅ Expected: A bottom sheet slides up offering Kamera and Galerie options
- Tap Galerie → pick a photo from your device library
- ✅ Expected: Preview screen (
/upload) shows the staged file with an optional caption / hashtag editor - Tap Hochladen
- ✅ Expected: You return to the feed immediately; the FAB shows a small badge while uploading; the photo appears in the feed once processing completes
Step 6 — Onboarding guide not shown again
- Reload the page at
/feed - ✅ Expected: The onboarding overlay does not appear (already dismissed)
Step 7 — Recover (open a private/incognito window)
- Open a new private/incognito window at http://localhost:5173/recover
- Enter the same name (
Max) and the PIN you copied - ✅ Expected: You're redirected to the feed with the same account
Step 8 — Upload rate-limit auto-retry
- Upload more than the per-hour limit of photos in quick succession to trigger the rate limit
- ✅ Expected: When the limit is hit, remaining items stay Wartend (not error)
- ✅ Expected: An amber banner appears in the queue: "Upload-Limit erreicht. Wird in Xs automatisch fortgesetzt."
- ✅ Expected: The countdown ticks down and uploads resume automatically when it reaches 0
Step 9 — Name uniqueness (case-insensitive)
- In a private/incognito window go to http://localhost:5173/join
- Enter
maxorMAX— the same name already taken in Step 1 (different case) - ✅ Expected: Instead of creating a new account, an amber warning appears: „Max ist bereits vergeben." with name tips
- ✅ Expected: A PIN input and Anmelden button appear, plus an Anderen Namen wählen button
- Enter your PIN from Step 1 and click Anmelden
- ✅ Expected: You're signed in to the existing
Maxaccount and redirected to the feed - Alternatively, click Anderen Namen wählen — ✅ Expected: the name input reappears with
maxpre-filled so you can edit it
Admin & Host Features
For these steps you need an admin session. Go to http://localhost:5173/admin/login and enter the admin password (admin123 for the dev environment). You'll be redirected to the dashboard automatically.
Step 10 — Admin Dashboard: Stats & Config
- Go to http://localhost:5173/admin
- ✅ Expected: Stats card shows user count, upload count, comment count, and a disk-usage progress bar
- In the Konfiguration section, change Upload-Limit pro Stunde to a different value (e.g.
5) and click Speichern - ✅ Expected: Toast "Konfiguration gespeichert." appears briefly
- Reload — ✅ Expected: the changed value persists
Step 11 — Admin Dashboard: Export Jobs
- The Export-Jobs section shows all past jobs (likely empty if gallery hasn't been released yet)
- Click Aktualisieren — ✅ Expected: list refreshes without a full page reload
Step 12 — Host Dashboard: Event Controls
- Navigate to http://localhost:5173/host (or click "Host-Dashboard" from the admin page)
- ✅ Expected: Event name shown in the header; two status dots (Uploads open/locked, Export released/locked)
- Click Uploads sperren
- ✅ Expected: Toast "Uploads wurden gesperrt."; button changes to "Uploads wieder öffnen"; status dot turns red
- Try uploading a photo as a guest — ✅ Expected: "Uploads sind gesperrt." error
- Click Uploads wieder öffnen — ✅ Expected: dot turns green; uploads work again
Step 13 — Host Dashboard: User Management
- The Gäste list shows all registered users with upload counts and sizes
- Find a guest and click Host next to their name
- ✅ Expected: Toast "X ist jetzt Host."; a blue "Host" badge appears next to their name
- As admin, a Degradieren button is now visible — click it
- ✅ Expected: Toast "X ist jetzt Gast."; badge disappears
Step 14 — Host Dashboard: Ban & Unban
- Click Sperren next to a guest
- ✅ Expected: A confirmation modal opens asking what to do with their uploads, with a checkbox "Uploads aus der Galerie ausblenden"
- Leave the checkbox unchecked and click Sperren
- ✅ Expected: Toast "X wurde gesperrt."; a red "Gesperrt" badge appears; buttons change to Entsperren
- Try uploading as that banned user — ✅ Expected: "Du bist gesperrt." error
- Click Entsperren — ✅ Expected: ban lifted; badge gone
Step 15 — Gallery Release & Export
- Make sure you have at least a few photos uploaded, then on the Host Dashboard click Galerie freigeben
- ✅ Expected: Toast "Galerie wurde freigegeben. Export wird vorbereitet…"; button becomes disabled "Galerie bereits freigegeben"
- Navigate to http://localhost:5173/export as any logged-in user
- ✅ Expected: Two cards — ZIP-Archiv and HTML-Viewer — both initially showing "Wird vorbereitet…" or a progress bar
- Wait for both to show "Bereit zum Download" (reload or wait for SSE to update the UI)
- Click Download on the ZIP card — ✅ Expected:
Gallery.zipdownloads - Click Download on the HTML card — ✅ Expected: A guide modal appears explaining how to open the file; click Herunterladen to get
Memories.zip - In the Admin Dashboard → Export-Jobs, click Aktualisieren — ✅ Expected: both jobs show "Fertig" with green badges