Skip to content

fix(native): add minimap keyboard and preview interactions - #128

Merged
rynfar merged 3 commits into
nativefrom
nw/70-minimap-gaps
Nov 3, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/70-minimap-gaps

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

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.tsx and 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:

  • Browser-defined smooth jumps across GPUI's unmeasured rows. Jumps remain discrete until a bounded estimated-height strategy can match them.
  • A single selection spanning both user and assistant preview paragraphs.
  • Shared-tooltip warm-up/grace/arbitration, scroll and reference-press dismissal, and exact popup slide/scale transitions. The implemented popup fade does not claim those transitions.

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 on fork/native at 7b7e814967 (#129). The only manual conflict was in snapshot.rs, preserving both ChatGPT fixture setup and minimap render-count instrumentation; main.rs and the ledger merged automatically. No implementation changes beyond conflict resolution.

Local evidence per factory policy (no uploads):

  • Before: /private/tmp/native-factory-2f5f764a/evidence-70/before-long.png; original-head tooltip presentation: /private/tmp/native-factory-2f5f764a/evidence-70/after-focus.png.
  • Entry through actual Tab presses from the header's adjacent document controls, with no --focus: /private/tmp/native-factory-2f5f764a/evidence-70/review2/tab-entry.png.
  • Focused navigation before/after Escape: /private/tmp/native-factory-2f5f764a/evidence-70/review1/focused-nav.png, /private/tmp/native-factory-2f5f764a/evidence-70/review1/escape-dismissed.png.
  • Edge placement and selection: /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.
  • Motion: /private/tmp/native-factory-2f5f764a/evidence-70/finite-minimap.mp4.
  • Render counts: /private/tmp/native-factory-2f5f764a/evidence-70/review2/hover-counts.json and /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.
  • Latest full gates after the feat(native): add managed ChatGPT setup and accounts #129 rebase: /private/tmp/native-factory-2f5f764a/evidence-70/rebase-129/.
  • Failing/passing descendant-layout regression and prior gate logs: /private/tmp/native-factory-2f5f764a/evidence-70/review2/. Original Tab/Escape regression logs remain in review1/.

Captures read the existing 14658 Replay thread mcp:5fa7c56f-8c79-46cb-a665-7aa90f62ee3d through 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

@rynfar
rynfar force-pushed the nw/70-minimap-gaps branch from 3a75e99 to 1f68b65 Compare November 3, 2026 14:59
@rynfar
rynfar merged commit c9e9c08 into native Nov 3, 2026
@rynfar rynfar mentioned this pull request Nov 3, 2026
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.

1 participant