Skip to content

Add notes field to session log form and history grid - #1289

Open
kmannarbor wants to merge 2 commits into
wger-project:masterfrom
kmannarbor:feature/workout-log-notes
Open

Add notes field to session log form and history grid#1289
kmannarbor wants to merge 2 commits into
wger-project:masterfrom
kmannarbor:feature/workout-log-notes

Conversation

@kmannarbor

Copy link
Copy Markdown
  • WorkoutLog model: add notes property (string | null)
  • SessionLogsForm: add Notes text field with last-session hint
  • LogWidgets: add editable Notes column to history DataGrid
  • translations: add routines.lastSession key

Proposed Changes

Companion to wger-project/wger#2462 (Django PR).

Adds UI for the new notes field on WorkoutLog:

  • SessionLogsForm: text field below each log entry set; shows "Last session: [note]" helper text pulled from the most recent previous log for that exercise
  • LogWidgets: editable Notes column in the workout history DataGrid
  • WorkoutLog model: notes property added with full JSON serialization
  • translations: routines.lastSession key added to en/translation.json

Related Issue(s)

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)

kmannarbor and others added 2 commits August 2, 2026 21:33
- WorkoutLog model: add notes property (string | null)
- SessionLogsForm: add Notes text field with last-session hint
- LogWidgets: add editable Notes column to history DataGrid
- translations: add routines.lastSession key

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- WorkoutLog.test.ts: adapter fromJson/toJson and constructor tests for notes
- SessionLogsForm.test.tsx: mock useRoutineLogQuery, add tests for notes
  field rendering, last-session hint, and notes submission

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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