Skip to content

feat: session notes on bookings - #33

Merged
WFord26 merged 2 commits into
mainfrom
feat/session-notes
Apr 15, 2026
Merged

WFord26 merged 2 commits into
mainfrom
feat/session-notes

Conversation

@WFord26

@WFord26 WFord26 commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds freeform session notes to bookings, allowing PMs and engineers to capture session outcomes.

Changes

Database:

  • session_notes TEXT column added to bookings table

Backend:

  • New PUT /api/v1/bookings/:id/notes endpoint with RBAC
    • Admin: full access
    • PM: access to bookings in projects they own
    • Engineer: access to bookings in projects they're assigned to
  • updateSessionNotesSchema Zod validation (max 10,000 chars)
  • Project detail query now includes session_notes

Frontend:

  • Auto-save textarea in "Signed Up Clients" table
  • Debounced save on input (800ms), immediate on blur
  • Save status indicator (Saving.../Saved)
  • Read-only display for cancelled bookings
  • Placeholder: "Add notes about this session..."

Acceptance Criteria

  • Engineers and PMs can add/edit notes on bookings in their projects
  • Notes persist and display correctly
  • Auto-save with visual feedback
  • No public/client access to session notes
  • Max 10,000 characters with validation
  • Notes field renders only for active bookings (read-only for cancelled)

Closes #17

WFord26 added 2 commits April 14, 2026 21:02
- Add session_notes TEXT column to bookings table
- Add PUT /api/v1/bookings/:id/notes endpoint with RBAC
  (PM project owner, admin, or assigned engineer)
- Add updateSessionNotesSchema Zod validator (max 10000 chars)
- Add session_notes to Booking interface and project detail query
- Add auto-save notes textarea in Signed Up Clients table
  (debounced on input, immediate on blur, with save status)
- Notes read-only display for cancelled bookings

Closes #17
@WFord26
WFord26 merged commit d82fc65 into main Apr 15, 2026
1 check passed
@WFord26
WFord26 deleted the feat/session-notes branch April 15, 2026 03:53
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.

Session Notes (Basic Freeform)

1 participant