8000 feat(chat): map sent messages onto the scroll bar by aorumbayev · Pull Request #187 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

feat(chat): map sent messages onto the scroll bar - #187

Closed
aorumbayev wants to merge 7 commits into
mainfrom
feat/chat-scroll-map
Closed

aorumbayev wants to merge 7 commits into
mainfrom
feat/chat-scroll-map

Conversation

@aorumbayev
@aorumbayev aorumbayev commented Dec 3, 2026 •
Copy link
Copy Markdown
Member

What

The ticks no longer make a column. At rest one accent mark stands for the group holding the turn being read; hovering the strip or scrolling fades the rest in for a moment, merged where they crowd. A mark's dash keeps to the 4 points of the track toward the words, so nothing paints over the kit's thumb, and its 12-point band is what the person presses: while the bar is quiet a press takes that message; while it is up, which on macOS is about two seconds after a scroll, the bar owns the track and drags the thumb or pages. The thumb follows the platform's scroll bar setting, so at rest the accent is the one thing there.

before: 120 turns, the ticks grew a ladder beside the thumb
after, scrolling: the marks up, the accent at the group in view, the thumb beside them
after, true rest: only the accent, the kit's bar has gone
after, hover: the strip's marks come up for a moment
6x crop, scrolling: dashes left of the thumb, the accent below it
6x crop, rest: no thumb, one accent
a short chat: no marks at all

Why

A long thread drew a 12-point row per message, so the ticks outgrew the transcript and read as a zipper beside the thumb.

How

The kit's bar exposes neither marks nor per-row extents, so the strip overlays the track and places a mark at its row's share of the list; hover is read from the pointer with a canvas, not a hit box. The bar still claims a press on its track while it shows, and its own show mode follows the platform, so a thumb at rest and a press that always wins would each need the kit to carry the marks; neither is taken here.

Test plan

  • cargo t --workspace --locked (2,688 pass)
  • sh scripts/smoke.sh --keep
  • kg ui click chat-tick-band-<seq> on an isolated 120-turn chat, the bar faded: the message came to the top
  • Open a long thread: hover the strip for the rest, drag the thumb, click a mark.

The tick column stood beside the scroll bar as one 12-point row per
message, so a long thread grew a ladder taller than the transcript and
read as a zipper next to the thumb. The marks now sit on the bar's own
track, each at its message's row share of the list, and merge closer than
6 points apart with a tooltip that names the first and the count. The
whole strip is the hit area, the turn in view takes the accent, and a
click still scrolls that message to the top.

The kit's bar has no mark API, so the strip overlays its thumb lane; the
track's height comes from the rows' own prepaint. A 1,000-message thread
draws 125 marks instead of 1,000 elements.
Renumbers nothing: 306 is still the last decision. The merged count is
95,864 product lines, so the size budget records main's 95,768.
Main trimmed 89 product lines before the merge, so the ceiling now names
95,864 and decision 306 costs from 95,768.
aorumbayev added a commit that referenced this pull request Dec 3, 2026
aorumbayev added a commit that referenced this pull request Dec 3, 2026
aorumbayev added a commit that referenced this pull request Dec 3, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
A mark's band was 4 points wide although nothing but the dash needed to stay
out of the kit's thumb lane, so the person aimed at a 4-point dash: the review
had already rejected 6. The band is now the strip's 12 points and the dash
keeps its 4 toward the words, so a press anywhere on the strip takes its
message while the bar is quiet, and the kit's own drag still wins while it is
up. `a_mark_and_its_target_leave_the_thumb_alone` measures the band and fails
with the old width.

The rest are the review's truth fixes: the accent is the group holding the
turn in view, not an exact row (one merged-transcript test now proves the
group boundary); the kit's thumb is there while it shows after a scroll, not
at rest; the decision says both and carries one Cost sentence; the 700 ms
reveal-down has a wait that fails when the timer goes; the dead hover
handler, the stale "tick column" words and the 12 px lane claim are gone.
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
aorumbayev added a commit that referenced this pull request Dec 4, 2026
@aorumbayev aorumbayev closed this Dec 4, 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

0