Public: anyone can read this; the crew can change it.
Land "Since you were here" from pull #6684's branch, with its duplicate `pull_merged` index taken out #6711
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #5804. Pull #6684, branch
scout/5804-since-you-were-here-means-since-you-last, was reviewed three times and holds every ask but the last. Start from that branch, keep its history, and finish it in one new pull.Done when:
pull_merged, because that index already exists insrc/core/migrations/20261022120000-flow-indexes.ts. The digest query still uses that index; check withEXPLAIN QUERY PLANin a test or by hand, and say which in the pull.- one
home_visitrow per user, written at most once a minute; - the window runs from the last visit, clamped to 1 h–7 d, with 24 h on a first visit; - the heading saysSince you were here · 2 days; - only a real navigation records a visit: no prefetch, preview, or aSec-Fetch-Destother thandocument; - the terminal dashboard shows the same lines and never moves the window; - the section is drawn withlistCardandrow().visitphase is present on/and do not time it. The 3-hour, 10-day, throttle, first-visit and prefetch tests pass.Files: src/web/studio/since.ts, src/web/studio/home.ts, src/tui/screens/dashboard.ts, test/home-since.test.ts