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).

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-20 22:55:24 +02:00
1 parent 07ee05e1cd
commit ec23da9bb9
16 files changed
+922 -60

No files matched your search

+10 -1
View File
@@ -21,6 +21,15 @@ const speakerRow = {
LinkedIn: 'https://example.test/one',
};
test('Language column imports the session language (German UI header first)', () => {
const payload = transformSheets({ 'Accepted sessions and speakers': [{
...sessionRow, ...speakerRow, 'Sprache / Language': ' German ',
}] });
assert.equal(payload.sessions[0].language, 'German');
const none = transformSheets({ 'Accepted sessions and speakers': [{ ...sessionRow, ...speakerRow }] });
assert.equal(none.sessions[0].language, null);
});
test('localized topic preserves the complete comma-separated string with normalized headers', () => {
const payload = transformSheets({ 'Accepted sessions and speakers': [{
...sessionRow, ...speakerRow, ' themenfeld / area OF topic ': ' Copilot Studio, Power Automate ',
@@ -61,7 +70,7 @@ test('legacy advanced two-sheet export retains plural speaker IDs and session me
assert.deepEqual(payload.sessions[0], {
external_id: 'session-1', title: 'Synthetic session', description: 'Test description',
room: 'Test room', date: '2026-10-10', start_time: '09:00:00', end_time: '09:45:00',
is_service_session: false, level: 'Intermediate', area: 'Power Apps',
is_service_session: false, level: 'Intermediate', area: 'Power Apps', language: null,
speakers: ['[email protected]', '[email protected]'],
});
assert.equal(payload.speakers[0].linkedin_url, 'https://example.test/one');