The /bab/<folder> endpoint returned raw get_sub_home_data() output, so lessons had no completed/locked fields and green checkmarks never appeared. api_bab now reads the student token, injects progress via get_ordered_lessons_with_learning_objectives (scoped to the folder's sub-home.md), and computes lock status from prerequisites — matching /lessons. The bab page load also forwards the student token, and tests cover progress injection and prerequisite locking. |
||
|---|---|---|
| .. | ||
| src | ||
| static | ||
| .dockerignore | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| svelte.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||