Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to Workout Lens are documented here.

## [1.2.6] — 2026-05-13

### Fixed
- **Exercise list missing in History on mobile** — when a day with a single session was loaded, `loadSession` auto-expanded it by setting `expandedIds` but never called `initSessionEdit`. The body map rendered correctly (reads directly from raw session data) but the exercise list stayed hidden because `edit.exercises` was `undefined`. Fixed by calling `initSessionEdit` alongside `setExpandedIds` in the single-session auto-expand branch.

## [1.2.5] — 2026-05-13

### Fixed
Expand Down
7 changes: 6 additions & 1 deletion app/src/components/History.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ export default function History({ initialDate }) {
return new Date(ta) - new Date(tb);
});
setDaySessions(results);
setExpandedIds(results.length === 1 ? new Set([results[0].id]) : new Set());
if (results.length === 1) {
setExpandedIds(new Set([results[0].id]));
initSessionEdit(results[0]);
} else {
setExpandedIds(new Set());
}
} catch (err) {
logDevError("History/loadSession", err);
} finally {
Expand Down
Loading