Repository navigation
Add "מעקב חיסורים" absence tracking page - #208
Merged
Merged
Conversation
…t per student New client-only page (/student/absence-tracking, menu: מעקב חיסורים) built on the existing StudentAttendance pivot, kept separate from the pivot table. Fetches all pivot pages, groups students by base class, shows how many unapproved absences each student has left before a user-typed threshold, summary tiles that filter over/near students, the subject behind most of a class's absences, and a per-student drill-down from att_report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T5Hdg7cKavdUKRf9T4FPnP
- StudentAttendance pivot also sends lessons per subject (lessons_<id>), with no header, so the existing pivot table and export are unchanged. - The class insight now picks the subject with the highest absence rate against the class's overall rate, instead of the most absences. - Pages load in parallel and show as they arrive with a progress bar; each page shows only with its base classes, so students never flash under "no class". Page 1's classes load before the other pages start. - Clickable tiles use CardActionArea; row text says "לא מאושרים". Verified in a browser against a local server with 600 students / 32k reports: class grouping, threshold counts (match SQL), and drill-down totals matching the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T5Hdg7cKavdUKRf9T4FPnP
Loading the whole school (1,050 students, 11 pivot pages) took ~26s, so the page now loads only the current page (100 students by default) with the usual pagination, like the existing pivot table. When there are more students than shown, a note says the summary covers the shown students only and suggests choosing a class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T5Hdg7cKavdUKRf9T4FPnP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Feedback: the teachers-reported report is clear and easy to read, the student attendance pivot is hard to use. This adds a separate page, מעקב חיסורים (
/student/absence-tracking, in the reports menu next to the pivot), in the same visual language. The existing pivot is unchanged.att_report, last absence dates, and a link to all her reports.Server change
StudentAttendancepivot now also sends lessons per subject aslessons_<lessonId>, without a header, so the pivot table and its export are unchanged (covered by a spec assertion). Needed for the per-class subject rate.Testing
vite buildpasses.Notes
ShowMatchingRecordsButton,CommonReferenceInputFilter).🤖 Generated with Claude Code
https://claude.ai/code/session_01T5Hdg7cKavdUKRf9T4FPnP
Generated by Claude Code