From 535609f33482c0d2c37a35b836c04b566faf1969 Mon Sep 17 00:00:00 2001 From: Tero Halla-aho Date: Wed, 26 Nov 2025 16:19:07 +0200 Subject: [PATCH] Document euro pricing and Mermaid fixes --- PROGRESS.md | 3 +++ docs/sequences.html | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/PROGRESS.md b/PROGRESS.md index 6922d24..4dbd14d 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -57,6 +57,9 @@ - Version hash now injected via build arg (`NEXT_PUBLIC_VERSION`) and shown in footer; build scripts updated. - In-cluster Varnish cache added in Deployment to cache `/api/images/*` and static assets. - Added `generate_images.py` and committed sample image assets for reseeding/rebuilds. +- Price hint now stored in euros (schema field `priceHintPerNightEuros`); Prisma migration added to convert from cents, seeds and API/UI updated, and build now runs `prisma generate` automatically. +- Listing creation amenities UI improved with toggle cards and EV button group. +- Mermaid docs fixed: all sequence diagrams declare their participants and avoid “->” inside message text; the listing creation diagram message was rewritten to prevent parse errors. Use mermaid.live or browser console to debug future syntax issues (errors flag the offending line/column). To resume: 1) If desired, render diagrams locally: PlantUML in `docs/plantuml`, draw.io in `docs/drawio`. diff --git a/docs/sequences.html b/docs/sequences.html index eadf56d..2c16618 100644 --- a/docs/sequences.html +++ b/docs/sequences.html @@ -20,6 +20,7 @@ sequenceDiagram participant W as Web (Next.js) participant DB as Postgres participant Mail as SMTP + participant Admin as Admin U->>W: Submit registration form (email, password) W->>DB: Create pending user + verification token @@ -45,13 +46,14 @@ sequenceDiagram participant W as Web/API participant DB as Postgres participant Mod as Moderator + participant Public as Public visitor Host->>W: Open "New listing" and submit details (address, amenities, images) W->>DB: Save listing (status = PENDING) Mod->>W: Review pending listing - W->>DB: Approve -> status = PUBLISHED + W->>DB: Approve (status = PUBLISHED) Host-->>W: Listing appears in "My listings" and public browse - Public->>W: Browse latest/map; fetch listing translation + cover image + Public->>W: Browse latest/map and fetch listing cover image @@ -64,6 +66,7 @@ sequenceDiagram participant Owner as Owner/Moderator participant W as Web/API participant DB as Postgres + participant Public as Public visitor Owner->>W: Click "Remove" on listing W->>Owner: Confirm removal