Repository navigation
fix(mobile): drop the highlight a question jump lands on - #827
Merged
Merged
Conversation
A jump already puts the landed question at the top of the viewport, so the pale band that marked the row for 1.4 s was redundant — and it read as a background behind the question bubble rather than as a locator. - `useQuestionNav` no longer tracks `landedId` (and with it `LANDED_MS`, the landed-row timer and the `itemsRef` that only fed it). - `ChatScreen` renders each row without the conditional band style. - `qn-align-check` now locates the landed row by the question bubble itself (accent-filled, no vertical inset above it) instead of by the band, so the "12 px below the list viewport" assertion still holds and is still able to fail: verified by running the scenario through `cdp.mjs` against the harness (inset 12 with the jump, 401 without it).
huichen
enabled auto-merge (squash)
September 25, 2026 09:43
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.
What
Pressing ↑/↓ in the mobile transcript marked the row it landed on with a pale
accentSoftband for 1.4 s. The jump already aligns the question at the top of the viewport, so the band was redundant — and on a question bubble it read as a background behind the question rather than as a locator.Changes
useQuestionNav: the hook no longer exposeslandedId;LANDED_MS, the landed-row timer and theitemsRefthat only fed them are gone.ChatScreen: rows render without the conditional band style; thelandedRowstyle is deleted.scripts/screenshots/scenarios.json(qn-align-check): the landed row is now located by the question bubble itself (accent-filled, no vertical inset above it) instead of by the band.Verification
Rendered the real interface through the screenshot harness (
serve-mobile+cdp.mjs), before and after, on the same scenario:origin/main(with band)#e8f0ffband across the rowSo the alignment is unchanged and the band is gone. The
qn-align-checkassertion is still able to fail: with the ↑ click removed it throwsthe landed question sits 401px below the list viewport.Mobile checks in the worktree:
tsc --noEmit,eslint .,jest src/features/chat src/components→ 50 suites / 633 tests pass. The scenario's own eval output on this branch: