fix: import localized topics and flattened Sessionize speakers

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-10 01:50:08 +02:00
1 parent 22de4a8645
commit 7f340b4c08
6 files changed
+226 -88

No files matched your search

+20
View File
@@ -131,6 +131,26 @@ cross-event slot/dependent mismatches fail atomically instead of cascading
foreign-event rows. This is local validation only; it does not write migration
history or deploy anything.
## Sessionize Excel Transform
The sidecar's [Excel transform tests](../../apps/sidecar/tests/transform-excel.test.js)
use Node's built-in test runner and the installed `xlsx` dependency. They
generate synthetic workbooks in memory, without real personal data, server
startup, HTTP calls, or database access:
```bash
npm test --prefix apps/sidecar
node --check apps/sidecar/src/transform-excel.js
node --check apps/sidecar/src/server.js
```
Coverage includes the localized topic header, trimmed/case-insensitive header
matching, nonempty Area/Topic fallback, complete comma-separated topic strings,
flattened multi-speaker session grouping, duplicate speaker IDs/emails, singular
Speaker Id fallback, legacy two-sheet plural Speaker Ids, scheduled time and
metadata preservation, service-session classification, and unscheduled-row
filtering. See [supported Excel formats](./sidecar.md#what-it-does).
## Files
- [`supabase/tests/rpc_tests.sql`](../../supabase/tests/rpc_tests.sql) — the test