Skip to content

Fix realm label formatting for underscored subject names - #31

Merged
femtechtk merged 1 commit into
mainfrom
fix-realm-label
Sep 6, 2026
Merged

femtechtk merged 1 commit into
mainfrom
fix-realm-label

Conversation

@femtechtk

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • JS syntax check passes locally
  • CI green
  • Manual confirm on live site after deploy: realm card reads "Computer Science", other 7 subjects unaffected (single-word names pass through unchanged)

🤖 Generated with Claude Code

syllabi.js only capitalized the first letter of a subject's internal
name, so "computer_science" rendered as "Computer_science" in the realm
selector. Title-case each underscore-separated word and join with a
space instead, so it reads as "Computer Science".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@femtechtk
femtechtk merged commit 8d81d49 into main Sep 6, 2026
5 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