Commit Graph
76 Commits
Author SHA1 Message Date
Lago 1f4b9d2beb feat(sessions): service sessions are always English
Both sync functions now force language='English' for sessions flagged
is_service_session (covers Sessionize, GridSmart and Excel paths); existing
service rows are backfilled by the migration. Regular sessions keep the
Language-category behavior unchanged. Seed mirrors the rule; test suite
extended (11 cases, all green).
2026-10-20 23:25:35 +02:00
Lago 2ccbd3604b docs(release): record the session-language production deploy (2026-10-21)
Migration 20261021090000 + sidecar + both frontends live on the VM.
Baseline-guarded, backed up (szlang-20261020T211211Z), rollback-tagged.
Prod function defs verified byte-identical to local post-migrate; live
gridsmart sync through the new transform: 30 updates, 0 errors, level/area
untouched. language null until the organizer defines the category.
2026-10-20 23:15:28 +02:00
Lago 6ed249fa31 feat(sessions): import language tag from Sessionize Language category
Sabrina's backlog: show a per-session delivery language in the sessions
overview. Sessionize has no native language field (verified live), so the
sidecar now resolves each session's categoryItems against a session
category titled "Language" (Sessionize's own demo-endpoint pattern) and
ships it as a plain string; a native session.language wins if it ever
appears.

- migration 20261021090000: sessions.language + re-created
  get_agenda / sync_sessionize_event / sync_sessionize_excel. Language
  upserts with the same coalesce(excluded, existing) rule as level/area,
  so a source without language never erases it. get_agenda is dropped +
  re-created (OUT shape change) and re-granted to anon/authenticated.
- sidecar: transform extracted to sessionize-transform.js (unit-tested);
  Excel import gains Language / Sprache / "Sprache / Language" headers.
- attendee app: third agenda filter dropdown ("All languages", only
  rendered when values exist) + language pill in SessionDetail.
- admin app: Sessions search + subtitle include language.
- seed: English for all talks, German for the two German-titled sessions.
- tests: session_language_tests.sql (8 assertions, all pass),
  sessionize-transform.test.js (7), transform-excel Language case; 43/43
  sidecar tests, date-guard/gridsmart/session-persistence suites green.
- docs: schema.md sessions columns + next-steps.md completion entry.

Organizer precondition (Sabrina): define the "Language" category AND
enable session custom fields on the event's API/Embed page, otherwise
live syncs keep language null (Excel import is the fallback).
2026-10-20 22:55:24 +02:00
Lago b7c2abb73b docs: seed drift, pretix skip observability, new-suite run books, current-state refresh
tests.md: new 'Full E2E Suite Status' opener -- suite is NOT green (213/42,
2026-10-19, exit 1); the pipe-through-tail trap that produced two false '0
failed' records; seed-drift mechanism (config.ts identities gone, reset.ts
UPDATE-only no-ops, logins hang); 11 failing families; admin-schedule
exonerated by the reverted-Schedule.tsx check; fix direction (upsert demo
identities, self-provision new specs). Four new run sections: llm-connection
(three-state verdict), tooltip containment (mutation-validated provenance),
CONV-MATERIAL-005 (self-contained fixture pattern), corrected counts
(sidecar 35, checkin-points 4).

pretix.md: 'Positions that never become registrations' -- the email+name
guard, the 118->115 grouping on production numbers, and the anonymous-Skipped
gap (QRJZN case study, sync_runs.skipped never sees client-side drops).

next-steps.md: new 'Known work (open as of 2026-10-19)' section (seed drift,
skip observability, QRJZN operator action); stale cross-cutting items marked
done (subdomains live, printing shipped after the 'skipped by decision'
note, testing exists); Open decisions cleared; current-state blockquote
extended through the 2026-10-19 round.
2026-10-19 22:39:23 +02:00
Lago d24f0ebb88 docs: close round-2 doc gaps — sidecar route table, printing points note, deployment markers, releases index
- sidecar.md HTTP API table now lists the LLM routes (/llm-settings GET/PUT,
  /llm-test, /feedback-summary) it had silently omitted; points at
  feedback-ai.md for contracts
- printing.md: welcome_checkin gained points/points_awarded (+10 on the first
  check-in, same branch as the badge loop; popup promises the award only when
  points_awarded)
- deployment.md: the 2026-10-07 status table is now labelled as that day's
  snapshot with a pointer to releases/ and the current 2026-10-19 bundles,
  migration, backup and rollback tags (old index-Gv3o7AW6/CocPCSGt markers were
  misleading readers about live state)
- new docs/releases/README.md index (7 files existed, docs/README linked only
  one); docs/README.md links it
2026-10-19 22:23:06 +02:00
Lago 420d83e0ec docs(release): correct the false '0 failed' claims and record the pipe mistake
Both 202/211-passed-0-failed claims came from piping the suite through tail:
the pipe reports tail's exit code and tail's window makes Playwright's
failed-test list (indented spec paths) look like progress. Real measurement,
exit code captured: 213 passed, 42 failed -- all pre-existing seed drift
(pretix reseed removed the demo identities reset.ts only UPDATEs), with
admin-schedule proven unrelated by rerunning it against the reverted
pre-silent-refresh Schedule.tsx. Everything added this round passed.
Also records the QRJZN diagnosis: skipped since Sept 9 for missing name,
never importable -- the defect is that skip reasons are anonymous.
2026-10-19 22:17:09 +02:00
Lago 0cb67bcabd feat(convivo): pending-material chip opens the session detail directly
Tapping a session in the red-clip popup only did go('agenda'), leaving the
speaker to hunt for the talk the popup had just named. It now opens the same
SessionDetail sheet "My picks today" uses -- the upload form is inside it, so
one tap reaches the action.

CONV-MATERIAL-005 provisions its own speaker fixture (the old demo speaker died
with the pretix-import reseed), drives the real QR login, and asserts the
upload notice is visible with the home tab still active; mutation-checked by
restoring go('agenda') -- the test fails on the old behavior.
2026-10-19 21:40:56 +02:00
Lago 184449adb6 fix(admin): clamp tooltips into the viewport
The portal kept cards out of table overflow but nothing kept them on screen:
centred on a fixed-width card, any trigger near an edge lost text -- reported
on Sessions' right-aligned Generate button. The shared Tooltip now measures the
card, clamps it to the viewport, flips below when there is no room above, and
keeps the arrow aimed at the trigger. No more CSS centreing transform, JS owns
the coordinates.

New tooltip-containment.spec.ts (4 tests) asserts the measured rectangle, no
document widening and arrow alignment at wide/narrow/short viewports; verified
it catches the bug by reverting the fix (3 of 4 fail). Full serial e2e: 211
passed, 0 failed.
2026-10-19 21:19:30 +02:00
Lago 5e13c8ec1d docs(release): record the points/sessions/sidecar deployment
Backup 20261019T181646Z with the four pre-migration function definitions (the
migration drops them, so the dump alone was not a rollback path); 113/24/57
assertions run rollback-only against prod data before applying; welcome +10 ->
session +10 -> total 20 and the staff zero-award path both proven on real prod
rows inside rolled-back transactions; three container IDs changed, seventeen
preserved; the llm-test verdict fix redeployed without recreating convivo-app.
2026-10-19 20:41:51 +02:00
Lago d14e1c2ddd fix(llm-test): an unreported reasoning-token counter is not a warning
Measured against the gateway this deployment actually uses (ai.lago.dev), a
"Reply with OK" request comes back with usage.completion_tokens_details: {} --
the provider does not report a reasoning counter at all. Thinking is
verifiably off there (2 completion tokens, 424 ms, versus ~235 tokens and
~3.5x latency when on), but reasoning_tokens is undefined, not 0.

The verdict had two states, so a healthy production connection rendered amber
with "the model is still thinking" -- the button would have reported a working
configuration as broken. The reasoning verdict is now three-state:

- reported 0        -> reasoning_disabled: true, green
- not reported      -> reasoning_tokens: null, no warning, neutral card that
                       says it cannot be confirmed from the usage block
- reported and > 0  -> amber + the existing warning

Only a reported 0 asserts reasoning_disabled, so the UI still never claims
thinking is off without evidence.

Sidecar 34 -> 35 tests (all three unreported shapes assert no warning); new
e2e/tests/llm-connection-test.spec.ts, 6 tests, covering the three verdict
tones, the failure case, the dirty-form lock and the in-flight state.
2026-10-19 20:35:13 +02:00
Lago fdb6045966 fix(points): welcome check-in awards +10; add Sessions view, AI connection test, silent reload
The front-desk check-in set checked_in and printed badges but awarded nothing,
so the +10 depended on which check-in a person happened to get. Every award
path was reviewed:

- welcome_checkin awards +10 (category checkin) on a genuine first check-in and
  returns points + points_awarded; checkin_attendee and preview_welcome_checkin
  return points_awarded too.
- set_registration_checked_in(false) deleted all checkin points while keeping
  the checkins rows, and switching back on awarded nothing -- one mistaken
  toggle destroyed those points permanently. ON now recomputes from the rows
  that still exist and awards only the shortfall: reversible, still unfarmable.
- The staff/Admin/@appe.at exclusion stays (product decision) but is no longer
  silent: three-way points sheets in the scanner, "no points" with a tooltip in
  Registrations, and the Contacts points modal refuses to apply rather than
  letting adjust_points (void) no-op quietly.

Also in this change:
- admin silent refresh (5s poll + 500ms after writes) across all data views;
  Registrations patches in place so rows never slide under the cursor
- Settings "Validate AI connection" via a new sidecar POST /llm-test verdict
  endpoint (never leaks the key, distinguishes "no usage block" from "off")
- new Sessions view between Schedule and Activity: speakers, attendance,
  ratings, attendee filter, and one button that summarises every session with
  feedback (one request each, concurrency 3, UI blocked until all settle)
- provider requests disable thinking through one shared body builder sending
  both reasoning_effort:"none" and chat_template_kwargs.enable_thinking

SQL: 113 / 57 / 24 assertions (set_registration_checked_in section 3 was
rewritten, it asserted the bug). Sidecar 34 unit tests. Full e2e 202 passed,
0 failed. Migration applied locally only -- not deployed.
2026-10-19 20:14:03 +02:00
Lago 96e4e6a6ea docs(release): record the 2026-10-19 production deployment
Deployed to prod: migration 20261019110000 (ledger 41 -> 42) applied with the
badge_print suite run rollback-only in the same transaction (113/113), both
images rebuilt and recreated, live bundles now index-DSNhW0mZ.js (admin) and
index-CXd2kxEv.js (attendee) md5-identical to the HEAD build.

Gate and copies verified against real prod data inside rolled-back transactions:
a session scan of an un-welcomed attendee raised the front-desk message, the same
call returned a checkin_id after welcome_checkin, and refused again once the flag
was cleared; with badge_copies = 3 one welcome enqueued exactly 3 pgmq jobs and
preview reported copies = 3. Counts match the backup afterwards (119 contacts,
115 registrations, 2 checkins, queue 0, 173 auth users).

Backup /home/APPE/convivo-backups/gatecopies-20261019T131204Z with rollback tags
convivo-{app,admin}:rollback-gatecopies-20261019T131204Z. No data backfill:
[email protected] keeps checked_in = false, so the front desk re-welcomes him or an
admin flips the toggle. No printer change - the Pi renders from its own bundled
dist-print, and multiplicity is N queue jobs. .design-audit/ is ignored now.
2026-10-19 15:20:26 +02:00
Lago c49a94fe80 fix(admin): per-row check-in toggle; feat(db): front-desk gate + badge copies
Registrations table felt buggy because both row actions did
setBusy(true) -> write -> reloadRegistrations() -> setBusy(false):
the list is sorted by points, so a reload made the row you just
touched jump (or vanish under a Checked-in filter), and the single
`busy` flag disabled every control in the table for the whole
request. The fix is per-row in-flight state (busyIds + withRowBusy)
and no reload at all: the toggle patches its own row's checked_in
plus the points delta the RPC returns, the type change patches
`type`; a rejected write rolls both back. Only the touched row is
disabled, shows a "Saving…" pulse, and two rows can save at once.
Toggle hit area is now 40x41 px with a focus-visible ring.

Front-desk gate: checkin_attendee reads registrations.checked_in
and raises "This attendee needs to be checked in at the front desk
first." when it is not true, and no longer sets checked_in as a
side effect. checkins has no INSERT policy, so the RPC is the only
write path and the gate cannot be bypassed. The scanner shows a
dedicated "Not checked in yet" sheet instead of a toast.

Badge copies: events.badge_copies (1..4, default 1). welcome_checkin
sends that many pgmq jobs in one transaction (the Pi prints one
label per job, so N jobs = N labels; no worker change) and clamps
the value again itself. preview_welcome_checkin gained a `copies`
column (drop + recreate) so the popup states the real count. Manual
reprint still prints exactly one. Set from Settings -> Badge
printing (active event) and the Events form, always as a
single-column update; the Settings badge section now renders even
when the LLM settings call fails.

Tests: badge_print 113 (+6), leaderboard 47 (+1), new
registration-checkin-toggle (6), front-desk-gate (3),
welcome-badge-copies (3); the stale registrations-PATCH mock in
registration-ticket-merge now targets set_registration_checked_in,
the ambiguous Save button is "Save copies", and the print-copy
assertion tolerates the typographic apostrophe. Docs updated
(rpcs, schema, printing, tests, admin-app, screens) with a release
record; NOT deployed - see docs/releases/2026-10-19.md.
2026-10-19 15:10:20 +02:00
Lago c857204cfe fix(scanner): camera restarts automatically after a scan (paused-driven lifecycle)
The camera stopped after decoding one code (by design, one scan at a time)
but was only ever started on mount, so it stayed dead until staff navigated
away and back. The parent now owns the lifecycle via a paused prop: Scan
pauses while busy or any sheet is open (camera re-arms when the sheet
closes), Login pauses while busy (re-arms after a failed scan). scannedRef
guards duplicate callbacks between decode and stop.
2026-10-19 11:03:08 +02:00
Lago 316f1316e6 fix(scanner): camera scans used stale first-render handler (welcome mode ignored); feat(admin): un-check-in removes check-in points
- Scanner: invoke onResult through a ref refreshed each render; the camera
  callback captured the mount-time closure, so scans kept running session
  check-in even with the Welcome toggle on (manual entry was unaffected)
- new RPC set_registration_checked_in(id, bool): admin-only; on un-check,
  deletes the event's 'checkin' points_log rows and applies the negative
  delta via _award_points('admin') so leaderboard + audit stay consistent;
  re-check awards nothing; returns points_removed
- admin Registrations toggle now calls the RPC, refreshes rows and toasts
  the removed points
- supabase/tests/set_registration_checked_in_tests.sql: 15 assertions
2026-10-19 10:35:10 +02:00
Lago 9a6e2e5c2a feat(scan): confirm before welcome check-in, with print warning
The staff scanner checked attendees in silently, and the default session
mode never prints — so a welcome-desk scan could check someone in with no
badge and no confirmation.

- new read-only RPC preview_welcome_checkin(qr): resolves the attendee and
  reports already + will_print (mirrors the exact welcome_checkin enqueue
  condition: first check-in AND a layout exists). Staff/admin only; checks
  nobody in, enqueues nothing.
- attendee Scan screen previews first and shows a Yes/No sheet: "You are
  checking in [Name]. By confirming, you will print this person's label."
  Only Yes runs welcome_checkin. Session check-in unchanged (never prints).
- badge_print_tests.sql +8 assertions (109 total); ScanPage + welcome specs
  drive the confirm step; new CONV-CHECKIN-003 (No cancels, Yes checks in).
- docs: rpcs.md, printing.md, releases/2026-10-19.md.
2026-10-19 09:45:20 +02:00
Lago c980effddc feat(printer): badge print queue, Pi worker, captive-portal setup, admin printing view
- migration 20261018170000: pgmq badge_print/badge_print_dlq, print_stations,
  token-gated printer RPCs (claim/complete/fail/heartbeat), admin RPCs,
  welcome_checkin enqueue; badge_print_tests.sql (101 assertions)
- apps/printer: Python worker (Playwright render -> brother_ql via pyusb),
  comitup captive-portal (Wi-Fi + HTTPS endpoint + anon key + token),
  arm64 image build + idempotent Pi setup/install scripts, 77 pytest
- apps/admin: Printing view, station management/DLQ, global printer status
  pill, Print button on Registrations, standalone print renderer entry
  (print.html -> dist-print) with bundled fonts
- docs: printing.md + architecture/schema/rpcs/tests/admin-app updates,
  apps/printer/AGENT.md operating manual
- e2e: printing.spec.ts
2026-10-18 22:25:38 +02:00
Lago 04f3f55b78 docs: record attendee feedback-polish deployment (6bde90a, attendee-only)
Live bundle index-DRSsD1hj.js / index-4X1LaDjo.css byte-identical to a clean
local build of 6bde90a; previous index-CRttiV1E.js now 404. Drift guard passed
against the 1e3c969 baseline, backup + rollback tag
convivo-app:rollback-fbpolish-6bde90a-20261018T162520Z, only convivo-app
recreated, unrelated containers unchanged, 45/45 mocked checks vs production.
2026-10-18 18:27:49 +02:00
Lago d4205d0342 docs(pretix): document organizer-detail endpoint feeding events.company
Catch-up note for the organizer display-name fetch added with ab25c10:
GET /organizers/<slug>/ returns the organisation name (multi-lingual object
or string), which the sidecar resolves via pickPretixName and stores on
events.company during each Pretix sync so badges can bind a Company field.
There is no separate company field on the organizer resource.
2026-10-18 18:20:24 +02:00
Lago 6bde90aac1 fix(convivo): readable descriptions, no feedback UI on service sessions, no demo-clock badge
Three attendee-app polish items from hands-on testing (Sabrina). All
presentation-layer: no migration, no RPC, no admin/sidecar change.

- Session detail collapsed multi-paragraph descriptions into one block. The
  feed carries real newlines (the sidecar passes Sessionize description through
  untouched), so this was pure CSS: new .sd-desc uses white-space: pre-line.
  The AI feedback summary gets the same via .feedback-review .fr-text.
- Staff saw "Your session feedback" on Break/Lunch cards, because
  _assign_service_session_speakers makes every staff member a speaker of every
  service slot. showFeedback = !isService now gates all three feedback surfaces
  (review block, Give-feedback button, "not checked in" note). The sheet itself
  stays openable for service sessions.
- Removed the "Demo clock" badge from the Home header. The simulated clock is an
  internal demo aid; attendees were never meant to see it. useEvent() still
  exposes clockMode and the admin toggle is unchanged.

Tests: three new API-mocked cases in convivo-admin-entry.spec.ts (service
feedback suppression, multi-line description via pre-line CSS + exact textContent
+ rendered-height comparison, no demo-clock badge per clock mode). 45/45 green
against the local dev server; attendee build clean.

Docs synced: screens.md, app-structure.md, backend/tests.md, next-steps.md, plus
a release record at docs/releases/2026-10-18.md noting that items 1/3/7 of the
report were already shipped (ef0446d, 999527b) and that this change is not yet
deployed.
2026-10-18 18:20:16 +02:00
Lago 1e3c969365 docs: record Home pick-nudge fix deployment (999527b, attendee-only) 2026-10-17 10:39:09 +02:00
Lago 999527b188 fix(home): hide the 'No pick yet' nudge once the user has any pick
The Now/Next cards fall back to a concurrent-session list when the user
has no pick for that specific slot, and always appended a 'No pick yet —
tap a session in the Agenda to choose.' hint. With picks on other slots
this contradicted the 'My picks today' list right below (screenshot).
ConcurrentList now takes hasPicks and renders the hint only while the
user has no picks at all.

e2e: two new 'Home session picks' cases (hint hidden with a pick on the
other slot; still shown with none, asserted per card). 43/43 local.
Docs: screens.md nudge rule, tests.md regression note.
2026-10-17 10:36:58 +02:00
Lago 7733af7625 chore(assets): move Manfred originals to assets/manfred, rename by pose
Relocate the four full-resolution mascot source PNGs out of the root
Manfred/ folder into assets/manfred/ (a non-build-context source dir,
like mockup/), renamed from their ChatGPT export names to pose names:
manfred-{waving,confident,coffee,celebrating}.png. git mv preserves
history (all four recorded as renames).

These originals are never shipped (Vite serves only apps/convivo/public/),
so the served 224px WebP poses are untouched and the attendee bundle is
byte-identical. Add assets/manfred/README.md with the pose table and a
regeneration command, and note a pre-existing cosmetic mismatch: the
deployed WebP filenames are rotated relative to their content (harmless —
Profile picks a pose at random and e2e asserts the filename).

Docs: fix the stale Manfred/ pointer in releases/2026-10-10.md and
cross-reference the source dir from frontend/screens.md.
2026-10-16 23:32:57 +02:00
Lago 6e67e831b2 chore(parity): record prod⇄dev⇄repo parity execution + fix stale schedule test
- docs/prod-parity-plan.md: audit + phased plan, now marked EXECUTED with the
  autonomous decisions (target=HEAD, data preserved, bonus shipped at 0,
  whole-tree deploy).
- docs/releases/2026-10-16.md: append the parity release record (schema +
  ledger + whole-tree code deploy, backups/rollback tags, 151/151 e2e, 46-assert
  live rollback smoke, autosync preserved, dev==prod==repo).
- e2e/admin-schedule.spec.ts: drop the stale 'Evaluate' disabled assertion
  (button removed from the codebase in 6bad96c).
2026-10-16 17:56:09 +02:00
Lago 93d188a968 build(sidecar): use npm ci with lockfile for reproducible installs
Fold prod's genuinely-better Dockerfile into the repo so a whole-tree
prod deploy loses nothing: copy package-lock.json and run npm ci
instead of npm install. The repo lockfile already contains pdfkit, so
this resolves cleanly.
2026-10-16 17:43:58 +02:00
Lago 6d9dc5dc8a docs: record attendee agenda polish deployment (scoped overlay, ef0446d) 2026-10-16 16:22:59 +02:00
Lago ef0446dcdf fix(convivo): consistent service cards, in-place pick details, no duplicated slot time
- groupAgenda drops orphan service slots (no session row), so every Service Session card consistently shows header + session row; list, slot count and Home Now/Next agree
- Extract the session detail bottom sheet into shared components/SessionDetail.tsx; Home's My-picks chips now open it in place instead of routing to the Agenda (App passes openFeedback so Give-feedback works there too)
- Sheet subtitle shows the slot name only when it adds information: auto-named 'Slot 10:15-11:00' no longer repeats the time range, and service names equal to the session title are skipped
- e2e: orphan-slot test + Home session picks test (exact subtitle assertion) in convivo-admin-entry.spec.ts, 41/41 green; speaker-portal 19/19; docs + release record 2026-10-16.md
2026-10-16 16:11:12 +02:00
Lago 3d4dc207ff feat(admin): per-row badge preview with unconfigured tooltip, Excel-style column filters and search in Contacts/Registrations
- New shared BadgeRender module (resolveText/resolveQr/BadgeElementBody/BadgePagePreview/fitScale) reused by the badge editor and the new read-only preview modal
- Registrations: Badge button on every row opens a live preview of that attendee's badge; grayed out with a Uiverse-style APPE-red tooltip when the event has no badge configured
- Contacts + Registrations: per-column multi-select filters (LinkedIn/Visibility/Admin; Type/Ticket/Checked in) with Excel-style live counts, plus general search (contacts: first/last/email; registrations: +type)
- New Tooltip and ColumnFilter primitives in ui.tsx (portal-based, escape/outside-click close)
- e2e: registration-badge-preview.spec.ts (13) + table-filters.spec.ts (13), all green; docs synced
2026-10-16 08:53:46 +02:00
Lago 6b277a2a67 feat(badges): labeled align-text-in-box section and Ctrl+Z/Ctrl+Y shortcuts
Replace the cryptic single-letter text alignment buttons with a labeled 'Align text in box' section (horizontal + vertical icon groups); make wrapped text honor textAlign via full-width span; add undo/redo keyboard shortcuts (Ctrl/Cmd+Z, Ctrl+Y, Ctrl/Cmd+Shift+Z) gated behind the typing guard; 7 new e2e tests (20 total).
2026-10-16 07:57:50 +02:00
Lago ab25c102dc feat: add per-event badge editor, pretix company import, smart guides
Badge Designer (admin): per-event WYSIWYG badge/PDF layout editor with mm canvas, text/QR/image elements, multi-select, Word+PowerPoint alignment, PowerPoint-style smart guides with snapping, Delete-key, preview and JSON views. Migration 20261015194531_badge_editor (badge_layouts + admin-only save/set-default/delete RPCs).

Company import: migration 20261015200719_events_company adds events.company; the sidecar pretix sync now fetches the organizer display name and stores it (best-effort). Bindable on badges as Company/organizer.

Tests: 15 SQL rollback assertions + 13 mocked browser tests. Docs synced.
2026-10-15 22:25:15 +02:00
Lago 3e2f8ff0ed feat: add admin raffle with confetti and top-3/staff exclusion 2026-10-15 21:39:57 +02:00
Lago 5117a25372 docs: record verified feedback and leaderboard deployment 2026-10-15 19:15:03 +02:00
Lago 6bad96ca03 feat: add manual feedback AI summaries and secure leaderboard scoring 2026-10-15 19:06:10 +02:00
Lago 34a3a88376 docs: record October 11 delivery and seed formatting 2026-10-11 09:03:38 +02:00
Lago c0fbf495dc feat: sync GridSmart agendas and use event-relative demo time
Support script and URL sources, automatic Sessionize polling, staff-linked service sessions, chronological agenda blocks, and inline Placeholders. Fix demo mode to use the active event date and document deployed behavior with regression coverage.
2026-10-11 08:39:15 +02:00
Lago 40f24cf5f7 fix: preserve week-long sessions and add profile mascot 2026-10-10 20:40:42 +02:00
Lago 4e71e9b797 feat: finalize ticket merging and speaker-aware imports 2026-10-10 13:28:18 +02:00
Lago 648daa0794 fix: import localized topics and flattened Sessionize speakers 2026-10-10 01:50:08 +02:00
Lago 5c93d4a0cb feat: add event-scoped schedule deletion and import date guard 2026-10-10 01:44:40 +02:00
Lago ef0121a3e4 feat: polish speaker material upload control 2026-10-07 19:58:00 +02:00
Lago 8d8d3ae4b8 feat: add magic-link admin login and speaker materials portal 2026-10-07 18:27:56 +02:00
Lago 3adc0fd58f Post-event reporting + talk networking incentives
- Talk networking: per-event talk_networking_bonus awarded when two people
  who shared a checked-in talk accept a connection (accept_connection
  re-created, shared_talk flag, get_talk_cohort RPC, points_log category
  check widened); Convivo Networking sub-tab inside the Connect screen
  (Home quick action deep-links in; Connect button reflects existing
  connection state and is disabled for sent/connected/declined); admin
  Events view bonus input (0-10).
- Reports: sidecar POST /export (CSV / multi-sheet XLSX / PDF report via
  new pdfkit dep); APPE Admin Reports view (any event: on-screen summary,
  session feedback summary, top-5, CSV/Excel/PDF downloads); Activity
  session-feedback per-session aggregate header.
- Also carried: @appe.at admin trigger + default password, bulk contact
  delete, session level/area + event-level feedback, agenda level/area
  filters, admin password self-service, schedule level/area fields.
- 18/18 RPC tests; both apps build; exports verified end-to-end.
2026-09-21 22:34:25 +02:00
Lago 08ab41898b pretix: per-event API key + live organizer/event picker 2026-09-09 18:03:18 +02:00
Lago d288fbf2f8 admin: group Sessionize + Pretix into labeled sections in event modal 2026-09-09 17:37:29 +02:00
Lago 17d28ea753 Force admin registrations to staff type (no exception)
Adds a BEFORE INSERT OR UPDATE trigger on public.registrations: if the
registrant is an admin (is_admin flag OR @appe.at domain — same rule as
is_admin()), the registration type is forced to 'staff' (staff is merged
into admin in this app). No exception.

Enforced at the DB transaction level, so it covers every write path — the
Pretix sync RPC, Sessionize sync, manual admin edits, direct Postgres.
Backfilled the 2 existing admin registrations ([email protected], [email protected]
were 'attendee' -> now 'staff'). Verified: setting an admin reg to 'attendee'
is immediately forced back to 'staff'.
2026-09-09 13:09:04 +02:00
Lago cdcfdb2c33 Auto-set is_admin for @appe.at contacts via trigger
The one-time backfill (20260909010000) missed contacts created later (e.g. by
the Pretix sync), so their is_admin flag stayed false and the admin UI badge
showed them as non-admin even though is_admin() treated them as admins.

Adds a BEFORE INSERT OR UPDATE trigger that auto-sets is_admin=true for any
@appe.at email, keeping the flag, the UI badge, and is_admin() in sync for
every current + future contact. Re-applied the rule to the 2 rows created
since the last backfill.
2026-09-09 13:05:26 +02:00
Lago d341a8aa8f Make @appe.at contacts admins automatically
- is_admin() now returns true when the caller's email is on the @appe.at
  domain (in addition to the is_admin flag) — covers all admin RLS policies
  + admin-only RPCs at once.
- Backfill contacts.is_admin=true for existing @appe.at rows.
- Admin app login gate (AuthContext) mirrors the same rule so a freshly
  created @appe.at contact can sign in immediately.
2026-09-09 12:58:52 +02:00
Lago 7559f879c8 Fix: 'delete all contacts for event' no longer deletes the logged-in admin
The bulk delete now excludes the currently-logged-in contact (me.email) so
you can't delete your own account out from under yourself.
2026-09-09 12:54:36 +02:00
Lago 98f65e8665 Admin: per-event registrations view, contact deletion, collapsible interface logs
- Registrations: event selector dropdown (default = active event), event name
  shown prominently in header with active badge, 'Delete all contacts for this
  event' action (deletes the contacts registered for the selected event)
- Contacts: per-row Delete button (with confirm; cascades to registrations)
- Interfaces: Sessionize + Pretix 'Recent runs' tables now in per-interface
  collapsibles, collapsed by default
- api: deleteContact + deleteContacts helpers
2026-09-09 12:49:07 +02:00
Lago c7d095aff7 Add Pretix ticketing integration (every-minute sidecar sync)
- docs/backend/pretix.md: Pretix REST API reference (auth, orders/items
  endpoints, pagination, rate limiting, worked example)
- migration 20260909000000_pretix_sync.sql: events.pretix_organizer +
  pretix_event_slug; _map_ticket_type, _ensure_auth_user (QR token =
  password), sync_pretix_attendees (service-role-only, idempotent)
- sidecar: pretixFetch/fetchPretixOrders/fetchPretixItems/transformPretix,
  runPretixSync + every-minute runPretixLoop, POST /run-pretix, /status
  extended with pretix state
- admin: Pretix panel + recent runs in Interfaces, per-event Pretix config
  + Sync button in Events, api/types for Pretix
- docker-compose: PRETIX_API_KEY / PRETIX_BASE / PRETIX_SYNC_INTERVAL_MS

Verified on VM: 25 paid orders -> 25 attendees, auto-sync every minute,
login via QR token works, idempotent (no duplicate registrations).
2026-09-09 11:40:56 +02:00
Lago 692df23149 Add Playwright E2E suite (46 tests) + app testids + test_cases.md
- e2e/: full Playwright suite covering every spec case (staff auth/UI,
  welcome + session check-in, attendee access/gating, connections,
  profile visibility, speaker material, sponsor, feedback, E2E journeys,
  role security matrix). 46/46 passing.
- apps/convivo: add data-testid attributes (gate, tabs, scanner, toggles)
  to support the E2E suite.
- test_cases.md: spec-case-to-test coverage map (all cases fully covered).
- .gitignore: ignore e2e node_modules/reports/test-results.
2026-09-09 10:13:26 +02:00
Lago e4c8815e52 Check-in gate + fixes, RPC test suite, docs
- Convivo: not-checked-in gate for non-staff (see-a-staff screen with QR
  code + logout); lifts automatically once staff checks them in
- Convivo: fix check-in 'pick a session first' race (synchronous default
  session fallback)
- Add RPC test suite (npm run test:rpc): points idempotency, role guards,
  service-session guard, speaker auto-promote, leaderboard staff exclusion
- Fix db:types script (create packages/shared/src); gitignore generated types
- Docs: README/roadmap drift fixes, tests.md, backend README link
2026-09-08 21:05:34 +02:00
Lago 25ae8b6ee4 fix(convivo): tab bar safe-area + no-cache index.html
- Tab bar: respect env(safe-area-inset-bottom) so the iOS home indicator
  no longer clips the tab labels (min-height + bottom padding). Screen
  bottom padding also grows by the safe-area inset.
- nginx: index.html now sends Cache-Control: no-cache so clients always
  fetch the latest hashed bundle after a redeploy (assets stay immutable).
  Fixes stale-bundle behavior seen on phones (old 'Pick a session first'
  button, etc.).
2026-08-26 08:46:50 +02:00
Lago e66648ce3d docs: add NPM creds (base64 JSON) + full tunnel command
- Nginx Proxy Manager admin login ([email protected] / appepassword) stored
  base64-encoded as {IP,user,pass}, same format as the other creds.
- Noted NPM's admin UI is on port 81 in this instance (8181/8182 unbound)
  and how to reset it (wipe npm_data volume).
- Updated the tunnel command to the full port set (incl. Portainer 9000/9443
  and NPM via 8081->81) with a local-URL table.
2026-08-25 20:43:04 +02:00
Lago 674bacca85 docs: add Portainer creds (base64 JSON) + running-services table
- Portainer admin login (admin/appepassword) stored base64-encoded as
  {IP,user,pass}, same format as the VM creds.
- Note on the one-time setup token (from 'docker logs portainer').
- Added a Running services table (all host-exposed ports on the VM) and
  corrected the status line: the full stack is deployed on the VM.
2026-08-25 20:15:20 +02:00
Lago 4e3bf78dda docs: document key-based SSH auth + port-forward tunnel for the VM
- Key auth is now set up (id_ed25519 in [email protected] authorized_keys);
  passwordless login verified.
- Added the convivo-vm alias and a ready-to-copy ssh -L tunnel command for
  reaching the deployed stack (apps :3000/:3001, sidecar :3002, Kong :54321,
  Postgres :54322, Studio :54323) from a laptop.
2026-08-25 20:02:21 +02:00
Lago c43bfb2d91 docs: add deployment.md with VM access credentials (base64 JSON)
- New docs/deployment.md documents the remote VM (the target for the
  appe.at subdomains). Credentials are stored base64-encoded and decode
  to a JSON object with IP, user, and pass.
- Verified the credentials work (SSH login) on 2026-08-25.
- Linked from docs/README.md (hub) and docs/next-steps.md (subdomains).
2026-08-25 19:52:43 +02:00
Lago 5ac0aa3f57 Real-time clock toggle: per-event use_realtime_clock flag
- Migration 20260834000000: events.use_realtime_clock (boolean, default false)
- Admin: Real-time clock toggle in the Events create/edit modal
- Convivo: useEvent picks new Date() vs simulated DEFAULT_NOW from the flag;
  Home shows a 'Demo clock' badge only in simulated mode
- Docs: app-structure, admin-app, schema, next-steps
2026-08-25 09:22:28 +02:00
Lago a5ad9795ee Service sessions + Home redesign + feedback loop
Service sessions (new slot semantics):
- Sidecar maps isServiceSession OR isPlenumSession -> service_session
  (Excel path also matches 'plenum' in Session Format).
- checkin_attendee rejects service sessions; Scan check-in dropdown
  excludes them.
- New _assign_service_session_speakers helper links every registered
  staff member as a speaker of a service session; both sync RPCs call
  it (and the API sync now actually types slots from is_service_session).
- No material requirement + no mic emoji for service sessions.

Home redesign:
- Now/Next cards show all concurrent sessions as sub-sections when
  there's no pick (1/2/3 sessions -> 1/2/3 sub-sections), with a
  "Nothing scheduled" fallback for empty slots.
- My picks today lists every pick (slot order) + empty state.
- Demo clock EVENT_DATE fixed to 2026-02-20 (matches seed) so a slot
  is live at 10:20.

Feedback loop:
- Attendee pending-feedback pill on Home (checked into an over session,
  not its speaker, no feedback yet); clears on submit.
- Speaker sees rating + AI summary for their own session in the Agenda
  sheet only after it's over.

Migration 20260833000000_service_sessions_feedback.sql. Docs updated.
2026-08-25 08:58:16 +02:00
Lago 2db22984fc feat: update slot types and enhance TypeBadge display 2026-08-24 20:55:29 +02:00
Lago f7aea663d8 feat: add sidecar service for Sessionize sync
- Introduced a new Node HTTP service (sidecar) to sync event agendas from Sessionize into Convivo.
- Implemented two import paths: API sync and Excel import for session and speaker data.
- Added necessary database migrations for sessionize integration, including new columns and audit tables.
- Created functions for handling speaker and session imports, ensuring proper error handling and logging.
- Established row-level security and grants for new functions to restrict access to service-role only.
2026-08-24 20:47:29 +02:00
Lago 8054d0ace2 Events: toggle switch to activate/deactivate (single-active)
- Replace the 'Set active' button / 'Active' pill in the Events table with a
  toggle switch. Activating an event deactivates all others (enforced by the
  existing DB trigger + partial unique index); deactivating just turns it off.
- Add deactivateEvent() API helper.
- Update docs (admin-app.md, next-steps.md).
2026-08-24 11:01:32 +02:00
Lago a54ce69c4d Existing-sponsor link + remove Interfaces (Pretix/Sessionize)
- Sponsor lookup popup can now link an existing sponsor (dropdown + pre-fill)
  or create a new one; save upserts the sponsor linked to the contact and sets
  the registration type to sponsor.
- Remove the Interfaces feature end-to-end: admin nav button + Sync view, sync
  API helpers + SyncRun type, sync-trigger Edge Function, mock-api + its
  docker-compose service, and a migration dropping the sync RPCs, helpers, and
  sync_runs table.
- Update docs (architecture, backend, frontend, README, roadmap, next-steps).
2026-08-24 09:11:25 +02:00
Lago 1cbbd1b529 Registration optionset + speaker auto-promote + welcome check-in
- registrations.type is now a Postgres ENUM (registration_type)
- session_speakers trigger auto-promotes attendee -> speaker (never overrides staff/sponsor)
- new welcome_checkin RPC: staff marks an attendee present at the event
- admin Registrations: QR token is final (no reset); failed sponsor change opens in-place sponsor lookup
- Convivo Home: Now/Next cards always render; red pending-material pill + popup for speakers
- Convivo Agenda: speakers can delete their material to re-upload
- Convivo Scan: staff Session/Welcome check-in toggle (uiverse switch)
- seed: staff (Bruno/Rita) get a password so staff QR login works after reset
2026-08-23 21:33:44 +02:00
Lago 1bffae9777 Convivo login: staff QR asks for staff password (not email)
When a staff QR is detected, the confirm step now shows a password field
instead of the email field. Login uses the resolved contact's email + the
entered staff password (signInWithPassword). Attendees are unchanged (QR +
ticket email). Docs updated (screens.md, architecture.md).
2026-08-23 19:18:59 +02:00
Lago 698bf13551 Staff exclusions + contact-password auth sync
- contacts.password now auto-syncs to auth.users.encrypted_password via
  trg_contact_password_sync, so setting a password on the contact row in the
  Supabase UI makes it work with signInWithPassword immediately (fixes staff
  like Bruno not being able to log in with a UI-set password). One-time
  reconciliation in the migration.
- Staff excluded from the leaderboard: _sync_leaderboard skips/removes staff
  rows, get_leaderboard() filters type='staff', seed no longer inserts staff.
  Affects the attendee Leaderboard and the admin Dashboard 'Top points'.
- Home/Agenda/Profile identical for all roles: Home quick-action always
  'Scan & connect' (no 'Check-in' relabel), footer role badge removed, tab
  label always 'Scan' (staff keep check-in via the Scan screen mode toggle).
- Profile: removed the duplicate Staff pill (type pill already shows Staff).
- Agenda session sheet: 'Download material' moved to the bottom of the button
  stack with spacing.
- Docs updated (schema, rpcs, seed, screens, architecture, next-steps).
2026-08-23 18:27:01 +02:00
Lago 8b1130f078 Admin password login + attendee profile self-service
- contacts.password: admin-only APPE Admin login password (event-independent);
  must match the bcrypt hash in auth.users.encrypted_password (set in Supabase).
- APPE Admin login is now email + password (was QR token).
- update_my_profile RPC (security definer, scoped to current_email()): attendees
  set their LinkedIn URL + show_email / show_linkedin toggles from the Profile.
- Convivo Profile gains a 'Profile settings' card (LinkedIn + 2 toggles + Save).
- Visibility enforced server-side in the public projection (linkedin nulled when
  show_linkedin off, email omitted when show_email off).
- Seed: admin password appe-admin-2026; staff keep QR tokens as auth passwords.
- Docs updated (schema, rpcs, seed, admin-app, screens, api-client,
  architecture, next-steps, README, docker-compose).
2026-08-23 14:11:26 +02:00
Lago b52d8ab007 Fixes & Refinements: QR token on registration, role caps, connection detail + red dot, admin schedule/sponsors
Datamodel:
- Move qr_token from contacts to registrations (per event); new migration
  20260826000000. lanyard_lookup / create_connection_request / checkin_attendee
  resolve via registrations + active event.
- reset_qr_token -> reset_registration_qr_token (fixes ambiguous 'email' col).
- upsert_contact drops the token arg; create_registration generates + syncs it.
- Pretix sync writes the token to the registration (keeps it on re-sync).

Registration types:
- Distinct pill colors; red reserved for Staff (both apps).
- Roles capitalized everywhere (Attendee/Speaker/Sponsor/Staff); 'Attendee'
  hidden only at the Home footer.
- Reset-token button moved from Contacts to Registrations (per registration).

Sessions (APPE Admin):
- Slot types capitalized; material submitted/not-submitted state.
- Speaker selection = multi-select search dropdown.
- Fix 'a session must have a speaker' on edit (diff-based setSessionSpeakers)
  and the file-upload bug (speaker save no longer aborts first).

APPE Admin:
- Sponsors contact lookup = search field (filter + pick).

Convivo App:
- Other people's QR codes hidden; connection detail sheet shows public info +
  points.
- Connect red dot recalculates immediately on accept/decline/send.
- 'My picks today' = 2 rows (current + next); 'tap to change' links to Agenda.

Docs updated across backend + frontend.
2026-08-23 10:39:21 +02:00
Lago 005f1d404f Use the real APPE logo image in the .logo class (splash, admin sidebar, admin login) instead of the plain letter A 2026-08-23 08:49:39 +02:00
Lago 16f304d145 Phase 7+8: Pretix + Sessionize interfaces
- Migration 20260825000000_interfaces.sql: external_id on contacts/
  registrations/sessions (+ partial unique indexes), slots_id_seq, sync_runs
  audit table, and service-role-only sync_pretix_attendees /
  sync_sessionize_sessions RPCs (idempotent upserts).
- sync-trigger Edge Function: admin-JWT or CRON_SECRET auth, pulls from
  Pretix/Sessionize base URLs, normalizes, calls the service-role RPCs.
- interfaces/mock-api: dependency-free Node server (:54330) + fixtures so the
  full pipeline is testable without real tokens.
- APPE Admin 'Interfaces' view: per-source + 'Sync all' triggers, result
  counts, recent sync runs, and QR CSV export; /functions proxy added.
- Docs: new docs/backend/interfaces.md; updated README, roadmap, next-steps,
  schema, rls, rpcs, architecture, admin-app, and docs index.
2026-08-23 03:34:30 +02:00
Lago 22f5f1d317 Redesign Phases 3-6: multi-event model, APPE Admin, Convivo App behaviors, APPE branding
- Phase 3: new migration 20260824000000_redesign.sql (contacts/events/registrations/sponsors, slot types, session speakers + feedback/material), seed rewrite
- Phase 4: APPE Admin rebrand + Contacts/Registrations/Sponsors/Schedule/Activity/Events views
- Phase 5: Convivo App (24h login, 5s polling, QR type badge, red dot, speaker material)
- Phase 6: APPE favicon + PWA icons for both apps
- Docs: schema/rpcs/rls/seed/screens/api-client/admin-app/architecture/next-steps/README/roadmap updated
2026-08-23 02:53:16 +02:00
Lago 5adb5785aa docs: update project status and roadmap for redesign phases 3–6 2026-08-22 22:51:31 +02:00
Lago cf70f39903 Phase 2: Admin console (admin.appe.at)
A desktop-first React app for organizers, guarded to the admin role.

Backend (supabase/migrations/20260823000000_admin_app.sql):
- Admin-only SELECT policies on preferences, connections, feedback
- reset_qr_token RPC: regenerates a lanyard token, re-hashes it as the
  Auth password (old token stops working), and clears the attendee's
  sessions to force re-login

App (apps/admin, port 3001):
- Login: same QR+email flow, but non-admin sessions are rejected
- Dashboard: live stats + top points + recent activity
- Attendees: search, edit name/company/role, reset QR, adjust points
- Schedule: manage slots + sessions (create/edit/delete)
- Activity: check-ins / connections / feedback tables
- Same-origin proxy (Vite dev / nginx in Docker), same design tokens

Docker + scripts:
- convivo-admin service in docker-compose.yml (:3001)
- admin:dev / admin:build root scripts
- fixed db:reset script (supabase reset -> supabase db reset)

Docs: new frontend/admin-app.md; updated architecture, rls, rpcs,
docker, next-steps, and READMEs.

Verified: build clean, all views + flows browser-tested, Docker build +
proxy + login + admin guard confirmed. DB reset to clean seed.
2026-08-22 19:47:22 +02:00
Lago 0cbfb25714 docs: renumber phases (admin app = Phase 2, Pretix = Phase 3) 2026-08-22 18:13:57 +02:00
Lago 4abdc7691b docs: add /docs living documentation per AGENT.MD
- docs/README.md: navigation hub
- docs/architecture.md: system overview, tech stack, data flows, ports
- docs/backend/: supabase-core, schema, rpcs, rls, seed, docker
- docs/frontend/: app-structure, screens, api-client
- docs/next-steps.md: Phase 2/3/4 plan + open decisions
- Fix README demo-account emails to match the actual seed
2026-08-22 17:10:50 +02:00
Lago 37684ba116 Phase 0 + 1: Dockerized Supabase core + attendee PWA
Phase 0 — Supabase core (Docker via CLI):
- Schema: profiles, slots, sessions, preferences, connections, checkins,
  feedback, leaderboard (Realtime mirror), points_log
- RLS on every table; transactional security-definer points RPCs
- Seed: 6 slots, 18 sessions, 13 demo users (QR token as auth password)

Phase 1 — Attendee web PWA (React + Vite + TS):
- Login via QR token + email (GoTrue, no email sent)
- Home, Agenda, Scan/Connect, staff Check-in, Feedback, live Leaderboard, Profile
- Same-origin proxy to Supabase (Vite dev / nginx in Docker)
- Docker: multi-stage build -> nginx sidecar on the Supabase network
2026-08-22 16:10:59 +02:00