Session 47: Change tags #222
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#222
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
47 · Change tags on the Plan calendar
Phase: UI polish · Branch:
session/47-change-tags· Depends on: 46 (the roadbook redesign)The roadbook redesign (46) put a re-plan line under Plan's stage strip: what the latest re-plan did and why, with Undo. The approved sketch also tags each session the re-plan moved, in place on its day: "CHANGED · WAS 2 × 15 TEMPO". This session builds those tags, so the rider sees which days moved without opening Plan history.
Read first
src/domain/replan/diff.ts(planDiff,SessionChange,summarise) and its tests: the diff already behind Plan history's "What changed"src/server/plan-views.ts(PlanSessionView, howgetPlanbuilds weeks) andsrc/server/replan/status.ts(ReplanRunView,RECENT_RUN_MS)src/components/plan/plan-calendar.tsx(SessionCard, day cells) andsrc/components/plan/replan-card.tsx(ReplanLine).impeccable/mocks/decision/rb-red.html: the approved sketch (the tag sits under the session's time · TSS)DESIGN.md,src/styles/tokens.stylex.tsGoal
RECENT_RUN_MS), diff it against its parent withplanDiffand attach the change to each affected session in the plan view:changedwith the session it replaced (title, and duration or TSS if that is what moved), oradded. A session that was removed has no cell; count it on the re-plan line instead ("2 sessions changed, 1 removed").fonts.displaywithdisplay.stretch,letterSpacings.label,colors.accent). An added session: "ADDED". The session's accessible name includes it ("Changed, was 2 × 15 tempo").athlete_edittrigger) tags what the review moved, and record why indocs/decisions.md.Rules
src/domain/with tests; the server function only joins versions the user owns.Tests
seed-replanfixture, Plan shows "CHANGED · WAS STRENGTH A" (or the fixture's real before) on today's session; after Undo, the tag is gone. Axe still passes.Out of scope
Change tags on Today's week list (note under Follow-ups if worth doing).
Done when
After a re-plan, every moved session on Plan says what it was, and Undo clears the tags. Unit, typecheck, lint, format, audit and e2e pass. End-of-session ritual in
CLAUDE.md.Moved from
prompts/47-change-tags.mdon 2026-11-08.