Redesign student profile screen and add avatar/attendance backend req… - #46
Merged
Abdulmajidkhan007 merged 1 commit intoSep 9, 2026
Conversation
…uests - Avatar: add fallback="silhouette" prop (neutral inline-SVG bust) alongside the existing initials fallback; all five existing call sites unchanged. - AttendanceTable: add plannedLessonCount prop so unattended lessons planned for the group render as fully empty columns (no header text, no cell marks). Move useGroupInfo from features/teacher/hooks into shared/hooks (feature api call added to shared/api/attendanceApi.ts) so the attendance feature can use it without a cross-feature import; teacher's hook now re-exports it. AttendancePage passes lessonCount from group level info into the table. - StudentDashboardPage: rebuild around a centered ProfileHeader (silhouette avatar, name, phone, level/group + schedule), balance card, and three collapsible sections (group+attendance open by default, personal info and settings link collapsed) ending in a sign-out button. BalanceCard no longer takes hasGroup — balance belongs to the student, not the group. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EmY9pxEEATJkQzaoKJn12d
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.
…uests
Claude-Session: https://claude.ai/code/session_01EmY9pxEEATJkQzaoKJn12d