Skip to content

Show display names in teacher-reported-today and absence tracking - #219

Merged
buzz-code merged 2 commits into
mainfrom
claude/project-thread-fk654v
Oct 14, 2026
Merged

buzz-code merged 2 commits into
mainfrom
claude/project-thread-fk654v

Conversation

@buzz-code

@buzz-code buzz-code commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Requested by הדסה · project thread

Before: the "teachers who reported attendance" report and the "absence tracking" report always showed the plain name of classes, lessons and teachers.

After: both reports show the display name when one is set, and fall back to the name otherwise. The student attendance pivot table's subject columns follow too, since they share the same pivot.

How: teacher-reported-today renders lesson, teacher and class through a displayName || name FunctionField. The StudentAttendance pivot labels each lesson column with displayName || name. Absence tracking's class cards read a new base_klass_display_name column on the student_base_klass view (COALESCE(NULLIF(display_name, ''), name)). Migration was generated with typeorm:generate against a local MySQL, re-check shows zero diff, and revert/re-run works. Roadmap entry added.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LSyL41fKyfGybbVQ9CshnA

Lesson, teacher and class names fall back to name when no display name
is set. student_base_klass view gets a base_klass_display_name column
for the absence tracking class cards.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSyL41fKyfGybbVQ9CshnA
@buzz-code buzz-code self-assigned this Oct 14, 2026
Replaces the client-side lesson fetch in absence tracking with the
display name set on the pivot header label.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSyL41fKyfGybbVQ9CshnA
@buzz-code
buzz-code merged commit 7c72de0 into main Oct 14, 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.

2 participants