Skip to content

Fix teacher auth and surface mastery signals in timeline#71

Merged
sfw merged 1 commit intomainfrom
sfw/fix-teacher-auth
Mar 20, 2026
Merged

Fix teacher auth and surface mastery signals in timeline#71
sfw merged 1 commit intomainfrom
sfw/fix-teacher-auth

Conversation

@sfw
Copy link
Copy Markdown
Owner

@sfw sfw commented Mar 20, 2026

Summary

  • Fix 401 on mastery-trends: getSectionMasteryTrends and getLearnerMasteryHistory in api.ts were calling requestJson without auth headers, so the x-api-key was never sent
  • Surface mastery signals in evidence timeline: Extract mastery_signal, mastery_confidence, progress_signal, evidence_signal, and evidence_rationale from mode calibration data stored in generation request context; display these in the teacher's timeline detail view alongside next-step rationale
  • Add teacher-facing label translations for mastery, evidence, and progress signal vocabulary

Test plan

  • Backend lint (ruff check) passes
  • Frontend lint (eslint) passes
  • Backend tests (721 passed)
  • Frontend tests (289 passed)
  • Frontend production build passes
  • Manually verify mastery-trends no longer returns 401 in teacher section view
  • Manually verify timeline entries show mastery/evidence badges and next-step rationale when signal data is available

🤖 Generated with Claude Code

…eline

getSectionMasteryTrends and getLearnerMasteryHistory were missing auth
headers, causing 401s. The teacher evidence timeline also lacked mastery
outcome data — extract mode_calibration signals from generation request
context and display mastery, evidence, and progress indicators alongside
next-step rationale in the timeline detail view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sfw sfw merged commit 675dfb1 into main Mar 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant