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).
This commit is contained in:
1 parent
f1cc926d8b
commit
6ed249fa31
16 files changed
+922
-60
No files matched your search
@@ -80,6 +80,7 @@ export function groupAgenda(rows: AgendaRow[]): { slot: Slot; sessions: Session[
|
||||
speakers: r.speakers,
|
||||
level: r.level,
|
||||
area: r.area,
|
||||
language: r.language,
|
||||
created_at: '',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -74,6 +74,8 @@ export interface Session {
|
||||
level: string | null;
|
||||
/** Free-text area/topic classification (e.g. Power Apps, Power Automate). */
|
||||
area: string | null;
|
||||
/** Free-text delivery language (e.g. English, German). */
|
||||
language: string | null;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
@@ -96,6 +98,7 @@ export interface AgendaRow {
|
||||
speakers: string | null;
|
||||
level: string | null;
|
||||
area: string | null;
|
||||
language: string | null;
|
||||
}
|
||||
|
||||
/** Event-level feedback (distinct from the per-session `feedback` table). */
|
||||
|
||||
Reference in new issue
Block a user