Skip to content

Slide between weeks and jump to the last session - #580

Merged
jhodapp merged 3 commits into
mainfrom
feat/week-slide
Nov 25, 2026
Merged

jhodapp merged 3 commits into
mainfrom
feat/week-slide

Conversation

@jhodapp

@jhodapp jhodapp commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Description

Find the last session with someone without paging back a week at a time, and see which way you're moving when you page.

GitHub Issue: Closes #568

Changes

  • A new week slides in from the side it lies on (16px, fade, 220ms, ease-spring); the header holds still. No slide on first load or with reduced motion
  • An empty week shows a callout: "No sessions match this week." with a filter, "No sessions this week." without one, plus "Go to last session on Apr 14 →" when there is one. Coachees get it too
  • The jump opens that week (and day, on phones), flashes the card and focuses it
  • Callout uses the popover surface on desktop and a flat bg-well box in the phone agenda
  • The week grid is at least three cards tall, so paging keeps its height
  • --highlight-tint moves into globals.css; the tint now ends on the card's own fill (--highlight-rest), closing that Known gaps entry

Screenshots / Videos Showing UI Changes (if applicable)

Screenshot 2026-11-24 at 16 52 37

Testing Strategy

Unit tests for the slide hook, last-session hook, week helpers, store and panel. E2E covers slide direction, reduced motion and the jump (Chromium, WebKit). Checked against the dev backend: filter to an inactive person, use the link, confirm the card flashes and takes focus.

Concerns

"Last" is measured from the top of the hour so the fetch key holds; a session that started within the current hour is not yet counted.

@jhodapp jhodapp self-assigned this Nov 24, 2026
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label Nov 24, 2026
@jhodapp jhodapp added this to the 1.0.0-beta4 milestone Nov 24, 2026
@jhodapp
jhodapp marked this pull request as ready for review November 24, 2026 22:57
@jhodapp
jhodapp merged commit 65e0ad5 into main Nov 25, 2026
11 checks passed
@jhodapp
jhodapp deleted the feat/week-slide branch November 25, 2026 02:22
@github-project-automation github-project-automation Bot moved this from Review to ✅ Done in Refactor Coaching Platform Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves existing functionality or feature

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[Feature]: Easily find the last session for an inactive relationship

1 participant