Repository navigation
fix(native): add minimap keyboard and preview interactions - #128
Merged
Merged
Conversation
rynfar
force-pushed
the
nw/70-minimap-gaps
branch
from
November 3, 2026 14:31
4bd5fac to
63fafab
Compare
rynfar
force-pushed
the
nw/70-minimap-gaps
branch
from
November 3, 2026 14:59
3a75e99 to
1f68b65
Compare
Open
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.
The native timeline minimap required a pointer, its preview text could not be selected, and hover changes snapped. This ports keyboard and preview interactions from
TimelineMinimap.tsxand keeps TV-MINIMAP partial under #70.The minimap now supports document-order Tab entry, Previous turn → rail → Next turn navigation with disabled endpoints skipped, Arrow Up/Down, Home/End, and Enter/Space. Keyboard jumps retain focus; pointer jumps blur. All jumps still cancel disclosure tail maintenance through the existing #124 path. Preview paragraphs support selection, including an ellipsized visible prefix; presses on them cannot jump the transcript. First/last previews hang from the corresponding edge and intermediate cards center using their measured height.
Strip scale, visible-strip opacity, gutter reveal, navigation-button opacity and tooltip opacity use finite 150ms CSS easing at at most 30fps. Settled values schedule nothing and reduced motion adopts targets immediately. Navigation labels have a 600ms hover delay, top/bottom placement with a 4px offset, tooltip shadows and the light/dark control bevel. Escape dismisses a focused or hovered navigation tooltip until its hover/focus trigger changes, including across re-renders or delayed hover work. Navigation focus reveals the whole rail.
The minimap and virtualized rows use separate cached entities. The outer thread shell stays uncached because GPUI rebuilds every descendant of a dirty cached ancestor. Hover/motion invalidates the minimap, while the rows follow thread-data invalidation. A post-list-layout measurement probe now also invalidates the minimap when descendant-only resizes change its visible range, current item or gutter. It compares derived measurements and schedules only on change, without notifying the transcript owners or adding idle frames. Zero-opacity rails return before constructing/scanning per-strip animation targets or painting strips. Snapshot-only focus, motion-frame and render-count flags support verification.
Review regressions failed before their fixes: real GPUI forward/reverse Tab entry from an adjacent control, including disabled endpoints; and the pure tooltip Escape state surviving repeated renders, delayed hover readiness and later trigger changes. All five original review findings were accepted and fixed. The later descendant-layout regression also failed before the fix: a row grew from 40px to 200px while the cached minimap kept its old visible range. The passing GPUI regression now verifies expansion and contraction, the visible strips and current Previous/Next item, no owner notifications, and no extra frames after settling.
Remaining web behavior, also recorded in TV-MINIMAP's ledger row:
Validation: all 1,164 native workspace tests; Clippy with warnings denied; snapshot build; theme generation check; 42 parity sync tests; conformance generation check;
vp run check:changed fork/native. Existing disclosure/tail-follow tests pass. Rebased onfork/nativeat7b7e814967(#129). The only manual conflict was insnapshot.rs, preserving both ChatGPT fixture setup and minimap render-count instrumentation;main.rsand the ledger merged automatically. No implementation changes beyond conflict resolution.Local evidence per factory policy (no uploads):
/private/tmp/native-factory-2f5f764a/evidence-70/before-long.png; original-head tooltip presentation:/private/tmp/native-factory-2f5f764a/evidence-70/after-focus.png.--focus:/private/tmp/native-factory-2f5f764a/evidence-70/review2/tab-entry.png./private/tmp/native-factory-2f5f764a/evidence-70/review1/focused-nav.png,/private/tmp/native-factory-2f5f764a/evidence-70/review1/escape-dismissed.png./private/tmp/native-factory-2f5f764a/evidence-70/after-top.png,/private/tmp/native-factory-2f5f764a/evidence-70/after-bottom.png,/private/tmp/native-factory-2f5f764a/evidence-70/after-selected.png./private/tmp/native-factory-2f5f764a/evidence-70/finite-minimap.mp4./private/tmp/native-factory-2f5f764a/evidence-70/review2/hover-counts.jsonand/private/tmp/native-factory-2f5f764a/evidence-70/review1/idle-counts.json. Hover produced 20 minimap renders; all 14 transcript renders corresponded to 14 thread-owner notifications. Idle produced 12 transcript renders for 12 owner notifications. Motion added no row renders beyond data invalidation./private/tmp/native-factory-2f5f764a/evidence-70/rebase-129/./private/tmp/native-factory-2f5f764a/evidence-70/review2/. Original Tab/Escape regression logs remain inreview1/.Captures read the existing 14658 Replay thread
mcp:5fa7c56f-8c79-46cb-a665-7aa90f62ee3dthrough a copied smoke home. Clipboard writes, real-window/OS reduced-motion behavior, fresh streaming turns, the side-chat nonpersistent gutter, and a real embedded MCP app resize/close were not exercised. The descendant-layout regression uses real GPUI list layout and cached sibling entities on the test platform. No server, contract, provider, web/mobile or connection-mode changes.Built with GPT-6.1 Sol in Codex