diff --git a/docs/README.md b/docs/README.md index 1d1e1f5..9111ca0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -30,8 +30,8 @@ system works*; the root [`README.md`](../README.md) is the quick-start. | Manual event/session feedback summaries and LLM configuration | [backend/feedback-ai.md](./backend/feedback-ai.md) | | **Badge printing** — pgmq queue, Raspberry Pi stations, tokens, troubleshooting | [backend/printing.md](./backend/printing.md) | | **Deployment — VM access (remote host for `appe.at`)** | [deployment.md](./deployment.md) | -| **2026-10-10 changes, deployment and verification** | [releases/2026-10-10.md](./releases/2026-10-10.md) | -| **What's next (Redesign Phases 3–6 + later + open items)** | [next-steps.md](./next-steps.md) | +| **Release records** (per day: cause, fix, tests, deploy evidence) | [releases/README.md](./releases/README.md) | +| **What's next (open items + known work)** | [next-steps.md](./next-steps.md) | ## Reading order diff --git a/docs/backend/printing.md b/docs/backend/printing.md index ed4c6cd..294da42 100644 --- a/docs/backend/printing.md +++ b/docs/backend/printing.md @@ -123,7 +123,13 @@ worker) and stamps `last_seen_at`. `welcome_checkin` was re-created in the same migration: identical signature and behaviour, plus the `badge_print` enqueue for a **genuine first check-in** only, -inside the same transaction (see [rpcs.md](./rpcs.md#welcome_checkinp_attendee_qr--attendee_email-attendee_name-already)). +inside the same transaction (see +[rpcs.md](./rpcs.md#welcome_checkinp_attendee_qr--attendee_email-attendee_name-already-points-points_awarded)). +`20261019160000_welcome_points_and_toggle_restore.sql` widened its return with +`points` + `points_awarded` and gave that same first check-in its **+10** award: +badge loop and award share one `v_checked is not true` branch, so a re-welcome +neither prints nor pays, and a staff/Admin contact is still welcomed and still +printed — just with nothing to award. ### How many labels one welcome prints @@ -149,9 +155,14 @@ times"*, from `copies`) — with **Yes/No**. Only **Yes** runs `welcome_checkin`. The preview's `will_print` mirrors the exact enqueue condition (first check-in **and** a layout exists), so the popup never promises a print that won't happen; when it is `false` the popup says the person -is checked in without mentioning a label. Session check-in is unchanged and never +is checked in without mentioning a label. Since +`20261019160000_welcome_points_and_toggle_restore.sql` the preview also returns +`points_awarded`, so the same popup adds *"Checking in awards +10 points"* only +when the award will really land, and says the person does not earn points +(staff/organiser) when it will not. Session check-in is unchanged and never prints. (Added in `20261019090000_welcome_checkin_preview.sql`, `copies` in -`20261019110000_front_desk_gate_and_badge_copies.sql`.) +`20261019110000_front_desk_gate_and_badge_copies.sql`, `points_awarded` in +`20261019160000`.) ## 5. Station tokens & security model diff --git a/docs/backend/sidecar.md b/docs/backend/sidecar.md index b50b000..77b2528 100644 --- a/docs/backend/sidecar.md +++ b/docs/backend/sidecar.md @@ -201,6 +201,16 @@ flowchart LR | `POST` | `/run` | `{ event_id }` | **blocking** — the API-sync result (summary + errors) | | `POST` | `/import-excel` | `multipart/form-data` (`event_id` + `file` = the `.xlsx`) | **blocking** — the Excel-import result (summary + errors) | | `POST` | `/export` | `{ event_id, format: 'csv' \| 'xlsx' \| 'pdf', tables? }` | **blocking** — `{ filename, mime, content_base64 }` (the event report) | +| `GET` | `/llm-settings` | — | stored LLM settings (never the key itself; `has_api_key` boolean) | +| `PUT` | `/llm-settings` | `{ endpoint, model, api_key? }` | the saved public settings | +| `POST` | `/llm-test` | — | a connection **verdict** (never an exception): `{ ok, model, endpoint, latency_ms, reasoning_disabled, reasoning_tokens, content, warning, error }` | +| `POST` | `/feedback-summary` | `{ scope: 'event', event_id }` or `{ scope: 'session', event_id, session_id }` | the generated summary (stored via service role) | + +`/llm-test` runs the SSRF-guarded one-shot request against the **stored** +settings — a bad form state cannot be tested because the key never reaches the +browser. The three-state reasoning verdict (reported 0 / not reported / reported +non-zero) and the redaction rules are in +[Feedback AI summaries](./feedback-ai.md). `/run` is **blocking**: it reads the event's endpoint, fetches Sessionize, transforms, calls the RPC, and returns the summary. The admin's "Sync" button and diff --git a/docs/deployment.md b/docs/deployment.md index fa6b442..07a946e 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -7,6 +7,16 @@ Convivo runs locally for development and on the production VM at ## Production status (2026-10-07) +> **This table and its evidence block describe the 2026-10-07 deploy** — its +> bundle markers (`index-Gv3o7AW6.js` / `index-CocPCSGt.js`) were superseded many +> times since. Dated deployment evidence lives in [releases/](./releases/). +> Last full deploy **2026-10-19** ([release record](./releases/2026-10-19.md)): +> served bundles `index-CvbBKcXb.js` (admin) and `index-D4o4lQL7.js` (attendee), +> both md5-identical to clean local builds of `main`; migration +> `20261019160000` in the ledger; backup +> `/home/APPE/convivo-backups/pointsfix-20261019T181646Z`; rollback tags +> `convivo-{app,admin,sidecar}:rollback-pointsfix-20261019T181646Z`. + | Public URL | Role | Verified result | |---|---|---| | `https://convivo.appe.at` | Attendee app | DNS points to `68.210.96.53`; valid TLS; HTTP 200 | diff --git a/docs/releases/README.md b/docs/releases/README.md new file mode 100644 index 0000000..d22e466 --- /dev/null +++ b/docs/releases/README.md @@ -0,0 +1,23 @@ +# Release Records + +One file per working day, append-only: each deploy or significant change gets a +section with **symptom → root cause → fix → tests → deployment evidence**. +Sections are written when the work is committed; a deployment section is added +when it ships (or the section says it has not shipped). Numbers in a section +(“N passed, 0 failed”) describe the run taken at that moment — if a later +measurement contradicts one, the old claim stays and a correction section is +appended, so the record shows what was believed and when it was fixed. + +| Date | Contents | +|---|---| +| [2026-10-19](./2026-10-19.md) | Welcome-check-in confirmation + camera fixes; per-row check-in toggle, front-desk gate, badge copies — **deployed**; then points correctness (welcome +10, toggle restore, visible exclusions), Sessions view, AI connection test, silent refresh, tooltip containment, speaker pending-material deep link — **deployed**, incl. the corrected test numbers and the seed-drift diagnosis | +| [2026-10-18](./2026-10-18.md) | Badge print queue on the Pi stations | +| [2026-10-17](./2026-10-17.md) | Reports + event feedback work | +| [2026-10-16](./2026-10-16.md) | Pretix ticket sync live | +| [2026-10-15](./2026-10-15.md) | Leaderboard staff/admin exclusion | +| [2026-10-11](./2026-10-11.md) | Feedback AI summaries (sidecar) | +| [2026-10-10](./2026-10-10.md) | Admin magic links, speaker portal, deployment verification | + +Current production state (bundles, migration ledger entry, backup + rollback +tags) is summarised at the top of +[../deployment.md](../deployment.md) and in detail in the latest release file.