Skip to content

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

Merged
rolandgeider merged 10 commits into
wger-project:masterfrom
kmannarbor:feature/workout-log-notes
Nov 7, 2026
Merged

rolandgeider merged 10 commits into
wger-project:masterfrom
kmannarbor:feature/workout-log-notes

Conversation

@kmannarbor

Copy link
Copy Markdown
Contributor
  • 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>
@rolandgeider
rolandgeider merged commit 0c7bd45 into wger-project:master Nov 7, 2026
7 checks passed
@rolandgeider

Copy link
Copy Markdown
Member

merged as well 🕺🏻

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 84.27% (+0.1%) from 84.149% — kmannarbor:feature/workout-log-notes into wger-project:master

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.

3 participants