Skip to content

feat: joint class history, session privacy and display name#146

Merged
ChristopherRotnes merged 2 commits into
masterfrom
feat/joint-class-history-138-139-141
May 6, 2026
Merged

feat: joint class history, session privacy and display name#146
ChristopherRotnes merged 2 commits into
masterfrom
feat/joint-class-history-138-139-141

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

@ChristopherRotnes ChristopherRotnes commented May 6, 2026

Summary

All three DB migrations applied to production. Translated to nb/en/fa.

Test plan

  • Log in as <account-1> (display name "Christopher"), expand a gym-linked session — colleague panel should be empty (no other session for that slot yet)
  • Log in as <account-2> ("Mr Røtnes"), log a session for the same gym class slot
  • Back as <account-1> — expand the same session, "Mr Røtnes" + their exercises should appear
  • Mark the second account's session private via the edit-mode Toggle and save — it should disappear from the colleague panel
  • Settings → Konto: update display name, reload, confirm it persists
  • Sessions with no gym_calendar_id show no colleague panel

🤖 Generated with Claude Code

#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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-146.westeurope.7.azurestaticapps.net

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