Skip to content

Timeline navigation: previous/next turn on the minimap and PageUp/PageDown from the composer #176

Closed

Description

@mubeda

Summary

Two small navigation gaps make long threads slow to move through from the keyboard:

  1. No previous/next turn buttons on the minimap. BiBCode's minimap has hover previews and click-to-jump (apps/web/src/components/chat/MessagesTimeline.tsx L661-L870, logic in MessagesTimeline.logic.ts L14-L65 at c48c647f). It has no way to step to the previous or next turn. T3 Code added this in pingdotgg/t3code#8531.
  2. PageUp/PageDown do nothing while the composer has focus. To scroll the chat, the user has to move focus or use the mouse. T3 Code handles PageUp/PageDown from the composer in a scroll controller (pingdotgg/t3code#9315, pageScrollController.ts, about 300 lines). Under Reduce Motion, programmatic scrolls jump instead of gliding (#16014).

Scope

  • Previous/next turn controls on the minimap, keyboard reachable, with an accessible name.
  • PageUp/PageDown in the composer scroll the timeline by about one viewport.
    • They do not interfere with cursor movement inside a multi-line draft: when the cursor is not on the first or last line, the key belongs to the editor.
    • Scrolling respects prefers-reduced-motion.
  • Both work with the virtualized list (LegendList) and with folded turns.

Acceptance

  • Logic tests for the target turn index at the start, middle and end of a thread.
  • Tests that PageUp/PageDown scroll the timeline from an empty or single-line composer, and do not when the editor needs the key.
  • No new scroll jank on long threads, checked with the profiler's client.interaction findings.
  • UI.md and vercel-react-best-practices reviews are recorded. Profiler coverage: none applies (client-only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions