Skip to content

fix(dashboard): Make outline drags follow the pointer and clicks land at once - #3655

Merged
BYK merged 1 commit into
mainfrom
fix/outline-drag-and-jump
Nov 18, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/outline-drag-and-jump

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3563 and #3593. Fixes two bugs in the outline when it replaces the scrollbar.

A drag along the ticks did not scroll the transcript. Every item that the drag passed, if it was not loaded, started a new ?event= page read. Each read replaced the one before it, so no read landed until the pointer rested. Now, while a jump waits for its page, the drag keeps only the latest item. It jumps there when the page lands or when the press ends, so the transcript follows the pointer one page at a time. While a jump waits, the preview does not prefetch.

A click took a long time to reach its message. A click on an item that was not loaded waited for the page read and the render. Now, when a preview stays open for 100ms, it reads the page of its item into a short-lived start-page query. useHistoryAround opens from that cached page, and its first-page read joins a prefetch that is still loading. This keeps the existing jump and load path, reads one page, and never chains pages. The jump also aligns again after the next frame, because rows that render with a cached page measure and the transcript moves back to its old place.

Drag mid-way, with the transcript following the pointer through pages that load slowly:

Drag mid-way

Preview of a far message while its page prefetches:

Preview prefetch

After the click, with no new request:

After click

via @BYK.

--

View Session [Sentry]

… at once

A drag past messages that are not loaded started a page read at each item,
and each read replaced the last before it landed, so the transcript did not
move until the pointer rested. While a jump waits for its page, the drag now
keeps only its latest item and goes there when the page lands or the press
ends.

A preview that stays 100ms reads the page of its message, so a click on it
needs no read. A jump aligns again after the next frame, because rows that
render with it measure and the transcript restores its old place.

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 18, 2026 11:35am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

12 screenshot changes — 12 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automations Expanded Row · Desktop
Automations Expanded Row · Desktop
Changed
Automations Expanded Row · Mobile
Automations Expanded Row · Mobile
Changed
Automations Expanded Row Light · Desktop
Automations Expanded Row Light · Desktop
Changed
Automations Expanded Row Light · Mobile
Automations Expanded Row Light · Mobile
Changed
Show 6 more changed screenshots
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Question Stepper · Desktop
Conversation Question Stepper · Desktop
Changed
Inbox Row Answer · Desktop
Inbox Row Answer · Desktop
Changed
Inbox Row Answer Light · Desktop
Inbox Row Answer Light · Desktop
Changed
Person Profile · Desktop
Person Profile · Desktop
Changed

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 18, 2026 11:49
@sentry-junior
sentry-junior Bot requested a review from BYK November 18, 2026 11:49
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 18, 2026
@BYK
BYK merged commit 3a2e503 into main Nov 18, 2026
48 checks passed
@BYK
BYK deleted the fix/outline-drag-and-jump branch November 18, 2026 12:15
BYK added a commit that referenced this pull request Nov 19, 2026
…page loads (#3767)

Follow-up of #3655. With "Scroll conversations with:
Outline", a click or drag to a message whose page is not loaded waited
for the page read and the transcript render before anything moved
(0.4–0.8s at production latency).

Now the outline item stands in for its message, YouTube-thumbnail style:

- A click or drag to a message that is not mounted draws the outline
item (message and start of its reply) over the transcript, at the place
the message lands. The transcript renders the page in a transition,
aligns the row, and only then drops the stand-in, so the swap does not
move the message. No page read sits between the input and the first
frame.
- A drag scrolls mounted rows directly and shows stand-ins for the rest.
It renders no transcript and reads no page per move. The release jumps
to the last item through the usual path.
- Hover prefetch starts at once, not after a dwell. It reads the pages
of the pointed item and its two neighbours, one read at a time, and a
newly pointed item replaces the reads that have not started. There is no
idle crawl.
- A jump reuses any cached page that holds the target, not only a page
read around that exact message.

The default Scrollbar mode jump is unchanged.

| While the page loads | After it lands |
|---|---|
|
![stand-in](https://junior-prod.sentry.dev/public/artifacts/040796a5-71e5-4510-ac62-924a0c5f3ad6.png)
|
![landed](https://junior-prod.sentry.dev/public/artifacts/a2803d76-f8bb-4e2d-a9cc-b903643a0450.png)
|

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Ae72044902af8a5cf6d26294a3c2e2222 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Ae72044902af8a5cf6d26294a3c2e2222)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ae72044902af8a5cf6d26294a3c2e2222/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — b15f2870 Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant