Timeline destination: the same-spot photo strip (#162) - #167
Merged
Conversation
#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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The daily photo gets its destination (
docs/desk.md, D2). Photo Captures fromroute = "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.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-routingstrip.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.Side note: commit
9fbaa6erescues.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
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