Skip to content

style(native-chat): make message history rail ticks subtler at rest - #51164

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/rail-whisper-impl
Nov 28, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/rail-whisper-impl

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The message history rail on the right edge of native chat now stays quiet and thin while you read and scroll, and expands to full contrast when you hover over it, focus it with the keyboard, or open its preview/list.

What Changed

  • Updated the tick marks in NativeChatMessageRail.tsx to a subtler hairline style at rest (h-[2px], w-2 at 18% opacity for inactive ticks; w-2.5 at 30% opacity for the active scroll tick) instead of fading the entire rail container.
  • Expanded ticks to full contrast (w-3 at 50% opacity, active/previewed tick w-5 at 100% opacity) when hovering the rail (group-hover/rail), focusing a tick via keyboard (group-has-focus-visible/rail), or while the preview card (group-data-[state=open]/rail) or long-chat message list (group-data-list-open/rail) is open.
  • Scrolling the transcript no longer brightens the rail; removed the now-unused useNativeChatRailWake hook (use-native-chat-rail-wake.ts), its dataset.awake scroll writes in NativeChatMessageList.tsx, and the stale railRef doc comment.
  • Replaced the container's 700ms fade-out delay with per-tick 150ms ease-out width and color transitions (motion-reduce:transition-none).
  • Adjusted tick button vertical padding from py-1 to py-[4.5px] so each 2px tick keeps the same 11px hit-target height as the previous 3px tick (py-1).
  • Kept pending (aria-busy) ticks at bg-foreground/50 at rest so the loading pulse remains clearly visible while older history pages in.
  • Added a shortChatRest component fixture in NativeChatMessageRail.fixture.tsx for visual verification of the resting rail state.

Checked against how comparable products handle this.

Why

At rest, the previous 3px ticks and scroll-triggered brightening were visually prominent beside the chat transcript. Thinning and softening the resting ticks keeps the reading area calm while preserving clear position feedback and full contrast as soon as the user interacts with the rail.

Visual Proof

Rest — Dark

Before After
Rest dark before Rest dark after

Rest — Light

Before After
Rest light before Rest light after

Hover / Preview Open — Dark

Before After
Hover dark before Hover dark after

Hover / Preview Open — Light

Before After
Hover light before Hover light after

Testing

  • I manually tested these changes locally (captured and inspected before/after component fixture screenshots for rest and preview/hover states in both light and dark themes on macOS)
  • Automated tests added/updated, or explained why not below (styling and dead-hook removal only; existing NativeChatMessageRail.test.tsx suite passes)
  • pnpm check:changed passed (all 32 checks, including typecheck, format, oxlint, unit tests, and :has() restyle scope ratchet)

Performance

Expected minor improvement (unmeasured, reasoned from code), because removing useNativeChatRailWake removes its pane-lifetime disposal cleanup, its reader-scroll wake/timer/dataset.awake mutations, and its conditional scroll-sustain check on transcript scroll events. Styling changes apply CSS width/color transitions to at most 20 already-rendered <span> ticks inside a fixed-size rail container (w-6), adding no JavaScript execution, React renders, listeners, I/O, or memory allocations.

Risk

Level: Low

Scoped to NativeChatMessageRail.tsx, removing the unused useNativeChatRailWake hook from NativeChatMessageList.tsx, and adding a dev-only fixture. No data, settings, IPC, remote SSH, mobile, or keyboard/click behavior changed; tick hit targets remain 11px tall. Reversible with a plain git revert.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm check:changed passes locally

@orca-remote-automation orca-remote-automation Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of head 18e17cce0c07 (source read; the app and fixtures were not run): changes requested, one P2 and three P3. The tick styling itself meets the stated requirements: the opacity values are valid in this repo's Tailwind, the hover, focus-visible, preview-open and list-open states all fire, the active/previewed precedence is unchanged, reduced motion is kept, and the fixture is correct.

P2: scroll lighting is removed without being mentioned. NativeChatMessageRail.tsx:237 drops every data-awake style, so scrolling the transcript no longer brightens the rail (before, about 300 ms and up to a 1.5 s sustain). useNativeChatRailWake still sets and clears dataset.awake on every scroll, so it is now dead work, and the doc comment at :50 still says scrolling lights the rail. The PR body does not mention this. Either keep the behavior by adding group-data-awake/rail: variants that match the hover state, or remove the hook, fix the comment at :50, and say in the PR body that scrolling no longer lights the rail. Whether scroll should light the rail is a design call.

P3:

  • The 700 ms fade-out delay is gone, so ticks snap back in 150 ms when the pointer briefly leaves. Restore a resting-direction delay or note it.
  • h-[3px] to h-[2px] makes each hit target 1 px shorter (up to 20 px over the rail), which contradicts "hit targets unchanged". Fix the body or keep 11 px with py-[4.5px].
  • The pending tick pulses to about 9% alpha at rest, so the "loading older history" cue is nearly invisible unless the rail is hovered or focused. Optionally give it a rest floor.

@orca-remote-automation
orca-remote-automation Bot force-pushed the orca-remote-automation/rail-whisper-impl branch from 18e17cc to 7c4ba27 Compare November 28, 2026 09:17
@orca-remote-automation
orca-remote-automation Bot merged commit 723a66d into main Nov 28, 2026
57 checks passed
2SinceJuly added a commit to 2SinceJuly/orca that referenced this pull request Nov 28, 2026
main removed useNativeChatRailWake in stablyai#51164 and now builds railRef from a plain useRef. Both sides converged on that, so only the import line conflicted: the hook no longer exists and NativeChatMessageRail moved into NativeChatTranscriptOverlays, leaving neither import used here.
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.

0 participants