Document euro pricing and Mermaid fixes

This commit is contained in:
Tero Halla-aho 2025-11-26 16:19:07 +02:00
parent 0041561795
commit 535609f334
2 changed files with 8 additions and 2 deletions

View file

@ -57,6 +57,9 @@
- Version hash now injected via build arg (`NEXT_PUBLIC_VERSION`) and shown in footer; build scripts updated. - 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. - 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. - 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: To resume:
1) If desired, render diagrams locally: PlantUML in `docs/plantuml`, draw.io in `docs/drawio`. 1) If desired, render diagrams locally: PlantUML in `docs/plantuml`, draw.io in `docs/drawio`.

View file

@ -20,6 +20,7 @@ sequenceDiagram
participant W as Web (Next.js) participant W as Web (Next.js)
participant DB as Postgres participant DB as Postgres
participant Mail as SMTP participant Mail as SMTP
participant Admin as Admin
U->>W: Submit registration form (email, password) U->>W: Submit registration form (email, password)
W->>DB: Create pending user + verification token W->>DB: Create pending user + verification token
@ -45,13 +46,14 @@ sequenceDiagram
participant W as Web/API participant W as Web/API
participant DB as Postgres participant DB as Postgres
participant Mod as Moderator participant Mod as Moderator
participant Public as Public visitor
Host->>W: Open "New listing" and submit details (address, amenities, images) Host->>W: Open "New listing" and submit details (address, amenities, images)
W->>DB: Save listing (status = PENDING) W->>DB: Save listing (status = PENDING)
Mod->>W: Review pending listing 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 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
</pre> </pre>
</div> </div>
</section> </section>
@ -64,6 +66,7 @@ sequenceDiagram
participant Owner as Owner/Moderator participant Owner as Owner/Moderator
participant W as Web/API participant W as Web/API
participant DB as Postgres participant DB as Postgres
participant Public as Public visitor
Owner->>W: Click "Remove" on listing Owner->>W: Click "Remove" on listing
W->>Owner: Confirm removal W->>Owner: Confirm removal