Skip to content

Timeline destination: the same-spot photo strip (#162) - #167

Merged
wschenk merged 2 commits into
mainfrom
cursor/timeline-spot-strip-162
Aug 8, 2026
Merged

Timeline destination: the same-spot photo strip (#162)#167
wschenk merged 2 commits into
mainfrom
cursor/timeline-spot-strip-162

Conversation

@wschenk

@wschenk wschenk commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

The daily photo gets its destination (docs/desk.md, D2). Photo Captures from route = "timeline" Threads now cluster into spots — stable groups within ~25 m across days — with no manual setup:

  • lib/map-journal/timeline-spots.ts — pure clustering: frames join, in capture order, the nearest spot whose running-mean center is within 25 m, or found a new one. The moving mean keeps a slowly drifting cluster one spot while two gates 30 m apart stay two. Computes the day count and each frame's distance from the spot's settled center.
  • The map journal draws one day-counted ochre ring per spot; tapping it opens the strip (components/timeline-strip.tsx): frames in day order with day label and per-frame distance — the "morning cow, day 41" view from the /prototype/day-routing strip.
  • Removing a frame is the walker's one edit there (lib/map-journal/timeline-removals.ts, a device-local record): it leaves the strip — and retires the spot when it was the last frame — without touching the Thread, which keeps its Capture, photo, and Route.
  • When a tap lands on both a spot ring and a Capture marker underneath it, the strip wins; Capture markers are otherwise unchanged.

Side note: commit 9fbaa6e rescues .agents/skills/ask-matt/PHASE-BOUNDARIES.md, a pre-existing companion to the tracked ask-matt skill that was sitting uncommitted in the session workspace. It is unrelated to the Timeline work — drop the commit if it isn't wanted.

Closes #162

Test plan

  • Acceptance criteria from the ticket covered at the named seams:
    • tests/timeline-spots.spec.ts — same-spot Captures across days cluster into one strip; two spots 30 m apart stay separate; a drifting cluster stays one spot; only located photo Captures of Timeline-routed Threads become frames; removal recomputes the strip; spot markers carry the day count.
    • tests/map-journal-timeline.spec.ts — routing photo Threads to Timeline yields one spot on the map journal; the strip opens at the spot's location with day count and per-frame distances; removing a frame takes it off the strip (persisting across reload) while the Thread keeps its Capture.
  • pnpm exec tsc --noEmit, eslint on changed files, and the existing map journal suites (map-journal, map-journal-region, map-journal-desktop) green locally

#162)

Photo Captures from Timeline-routed Threads cluster into stable ~25 m
spots across days — no manual setup. Each spot renders on the map journal
as a day-counted ring; tapping it opens the strip: frames in day order
with per-frame distance from the spot's center. Removing a frame is the
walker's one edit there and never touches the Thread.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqXZLQTzQPxB8NJkSyaeT8
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
walking-thoughts Ready Ready Preview Aug 8, 2026 1:13am

Request Review

Pre-existing companion to the tracked .agents/skills/ask-matt skill,
found uncommitted in this ephemeral session workspace; committed
separately so it is not lost with the container. Unrelated to #162.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DqXZLQTzQPxB8NJkSyaeT8
@wschenk
wschenk merged commit 9176bbf into main Aug 8, 2026
4 checks passed
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.

Timeline destination: the same-spot photo strip

2 participants