Commit Graph

3 Commits

Author SHA1 Message Date
f5000d3c58 fix(import): set owner on auto-created lessons + nest lesson_path under started lesson
Two bugs surfaced by Excel import on a lesson with a lesson_path column:
1. resolveLesson created lessons without owner_id, so after the ownership
   model (sub-project B) they never appeared in getLessonTree — import
   reported success but nothing was visible.
2. lesson_path was resolved at the root; cards landed in new root lessons
   instead of under the lesson the import was started from.

Now: auto-created lessons get ownerId + visibility 'private'; lesson_path is
resolved relative to the started lesson (each segment a sublesson). Also drop
the stale eager card_progress insert (progress is per-user and lazy since B).
2026-05-21 07:45:49 +02:00
fb95ccd772 feat(routes): thread userId through routes + visibility/fork/curated endpoints 2026-05-21 00:26:49 +02:00
ea45f6fcaf feat(backend): excel import and export 2026-05-20 21:06:44 +02:00