feat: joint class history, session privacy and display name#146
Merged
Conversation
#141) - #138: RLS policy allows same-gym instructors to read each other's shared sessions; fetchClassHistory(gymCalendarId) returns co-instructor sessions for a class slot; History expanded panel shows a lazy-loaded colleague exercise list with display name header - #139: sessions.visibility column (shared/private, default shared); cross-gym RLS policy excludes private sessions; History edit mode adds a Carbon Toggle to mark a session private; updateSession persists the flag - #141: profiles.display_name column (max 50 chars) with same-gym SELECT RLS; fetchDisplayName/updateDisplayName in db.js; Settings Konto section adds a TextInput to set/update display name; colleague sessions show display name with Instruktør fallback All translated to nb/en/fa; docs updated (CLAUDE.md, README.md, CHANGELOG.md). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-146.westeurope.7.azurestaticapps.net |
- Move "Del med andre instruktører" toggle out of edit mode — it now shows whenever a session is expanded and auto-saves on click (no need to enter edit mode); reverts after network error - Add 24px margin below toggle so it's not flush against the body map - Show own display_name as a header above your exercise list in read mode (same accent-left-strip style as colleague rows), consistent with the class history panel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-146.westeurope.7.azurestaticapps.net |
This was referenced May 6, 2026
As an instruktør I want a display name shown next to shared sessions so I know who trained what
#141
Closed
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
gym_calendar_id, read-only panel with display name + exercise list per co-instructor.sessions.visibilitycolumn (defaultshared). Edit mode Toggle marks a session private; private sessions are excluded from the cross-gym RLS policy and fromfetchClassHistory.profiles.display_name(max 50 chars). Settings → Konto TextInput to set/update it. Same-gym RLS lets co-instructors read each other's display names. Shown next to colleague sessions in the class history panel.All three DB migrations applied to production. Translated to nb/en/fa.
Test plan
<account-1>(display name "Christopher"), expand a gym-linked session — colleague panel should be empty (no other session for that slot yet)<account-2>("Mr Røtnes"), log a session for the same gym class slot<account-1>— expand the same session, "Mr Røtnes" + their exercises should appeargym_calendar_idshow no colleague panel🤖 Generated with Claude Code