Skip to content

fix: knowledge graph mastery colors not updating#120

Merged
willwearing merged 1 commit into
mainfrom
fix/knowledge-graph-mastery-colors
Apr 12, 2026
Merged

fix: knowledge graph mastery colors not updating#120
willwearing merged 1 commit into
mainfrom
fix/knowledge-graph-mastery-colors

Conversation

@willwearing
Copy link
Copy Markdown
Owner

Summary

  • Two controllers both handled GET /academies/:id/graph — NestJS matched the structural endpoint (no mastery) instead of the gamification one (with masteryState)
  • Renamed structural route to /structure so the knowledge graph gets mastery data for node coloring

Test plan

  • Verified locally: graph endpoint now returns masteryState per concept
  • Backend type-checks clean

🤖 Generated with Claude Code

AcademyGraphController and AcademyGamificationController both handled
GET /academies/:id/graph. NestJS matched the structural endpoint (no
mastery data) instead of the gamification endpoint (with masteryState).

Rename structural route to /structure so the gamification graph endpoint
wins — frontend knowledge graph now receives mastery states for coloring.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graspful Ready Ready Preview, Comment Apr 12, 2026 6:41pm

@willwearing willwearing merged commit 737b529 into main Apr 12, 2026
2 of 3 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