Commit Graph

13 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
af0777b7f5 fix(auth): resolve learner routes across lazy FastAPI routers 2026-10-04 16:05:11 +08:00
Bingxi Zhao
cab53cb98d Merge pull request #1662 from larryluozhang/fix/learner-workspace-surface
fix(learner): allow own-scope settings and workspace writes via route templates
2026-10-04 14:17:07 +08:00
Bingxi Zhao (Frank)
864bdd934f Merge dev into PR #1652 and preserve integrated behavior 2026-10-04 14:16:25 +08:00
Bingxi Zhao
412fdf4dd0 Merge pull request #1651 from evan188199-tech/codex/feat/learner-assigned-books
feat(learner): expose assigned interactive books
2026-10-04 14:15:04 +08:00
Bingxi Zhao (Frank)
33f2f2b4b0 fix(auth): allow learner knowledge list proxy reads 2026-10-04 14:14:52 +08:00
XZH
f5cfe969d3 fix(learner): expose assigned reading library 2026-09-29 02:24:47 -07:00
XZH
c90fe4d047 feat(learner): expose assigned interactive books
Closes #1650
2026-09-29 02:14:47 -07:00
larryluozhang
1168103a43 fix(learner): allow own-scope settings and workspace writes via route templates
Follow-up to #1323 (which merged as the prefix surface map): three
learner-blocking gaps remained, and all three sit on URL prefixes that
also host admin-grade operations, so they are matched on the resolved
route template — the same pattern as _LEARNER_KB_READ_ROUTES.

- PUT /api/settings/ui — theme/language save into the caller's own
  per-user interface.json; learners currently get 403 changing language.
- PUT/DELETE /api/settings/draft — the settings UI saves through a
  per-user draft document; catalog apply stays admin-gated in the
  endpoint itself.
- /api/settings/workspace self-management — PUT root (select current
  binding), POST /validate, POST /registrations, PATCH
  /registrations/{id}. Data migration/export/root-migration/snapshot
  routes under the same prefix stay default-denied: they move data
  across scopes and carry no internal admin gate.
2026-09-28 13:19:09 +08:00
Bingxi Zhao (Frank)
7dd1f7f046 fix: allow learner task board through chat surface 2026-09-27 02:25:51 +08:00
Bingxi Zhao (Frank)
c0d19dae04 fix(multi-user): preserve newer grant writes during preset rollback 2026-09-23 11:15:47 +08:00
Bingxi Zhao (Frank)
e750a8ddd0 fix(multi-user): restore prior grant if preset update fails 2026-09-23 11:00:37 +08:00
Bingxi Zhao (Frank)
6ac8deed51 fix(multi-user): scope learner KB reads and persist grants before preset 2026-09-23 10:55:46 +08:00
larryluozhang
0c2666c010 fix(learner): complete surface map for first-party learner screens + flip preset on restrictions assignment (#1222)
Rebased onto current main (v1.6.9 layout): _learning_surface_for_path now
lives in deeptutor/api/routers/auth.py; change content unchanged.

- map /api/mastery-paths/* to chat (learner's own per-user progress data)
- map GET/HEAD/OPTIONS /api/knowledge-bases* to reading (browse-only;
  mutations still default-deny)
- pass request.method into the surface lookup
- put_guardian_restrictions: when the account has no learning_policy yet,
  seed the default learner grant and flip the preset to learner, avoiding
  the standard-preset+policy mix that renders the admin shell and 403-storms
- regression tests: tests/multi_user/test_learning_surface_map.py (22 tests)
2026-09-22 00:57:28 +08:00