Add a “Jump to latest” button to the Transcript panel

Open
#876 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
70/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start by reading the implementation and tests for transcript auto-following from issue #592 and PR #615, then locate the Transcript panel and its scroll position checks. Add the button visibility and interaction described here, and extend tests for keyboard use, preserved reading position, tab switching, and narrow viewports. Done means the button appears only when away from the bottom and returns the panel to the latest turn while resuming following.

Written by the indexing model from the issue text.

Description

Problem description

During a solo interview, users may open the Transcript tab and scroll up to review Jim’s earlier questions or their own answers.

The transcript currently pauses automatic following when the user scrolls up, preserving their reading position. This behavior is appropriate, but users must manually scroll to the bottom when they want to return to the latest conversation. There is no direct action for doing so.

As the interview continues and the transcript grows longer, returning to the latest conversation requires additional interaction. It is also less apparent that automatic following is currently paused.

Steps to reproduce

  1. Start a solo interview and open the Transcript tab.
  2. Continue the conversation until the transcript exceeds the panel height.
  3. Scroll up to read earlier turns.
  4. After new turns arrive, try to return to the latest conversation.
  5. The user must manually scroll to the bottom to see the latest turns and resume automatic following.

Current behavior

  • The transcript follows the latest conversation by default.
  • Scrolling up preserves the user’s reading position.
  • Manually scrolling back to the bottom resumes automatic following.
  • The panel has no Jump to latest button.

Expected behavior

  • Show a Jump to latest button when the transcript is scrollable and the user is away from the bottom.
  • Activating the button scrolls the Transcript panel to the bottom, resumes automatic following, and hides the button.
  • Manually scrolling to the bottom also resumes automatic following and hides the button.
  • New turns preserve the user’s position while they are reading earlier content, allowing them to choose when to return.
  • The button supports keyboard interaction and remains usable at narrow viewport widths.

Proposed solution

Add a button near the Transcript panel that remains visible while the user is away from the bottom. Reuse the existing bottom-position checks and automatic-following mechanism to control its visibility.

Activating the button should scroll only the Transcript panel and resume following subsequent turns. Its placement should avoid covering conversation content, and it should have clear text and an accessible name.

Planned tests

New feature tests: button visibility and interaction
  • The button is hidden when the transcript is empty, does not overflow, or is already at the bottom. Scrolling up away from the bottom shows the button.
  • Activating the button reaches the bottom and hides it. The panel continues following subsequent turns.
  • The button can be reached with Tab and activated with Enter or Space.
  • At narrow viewport widths, the button remains visible and usable when needed, without covering conversation content.
Regression tests: reading position and automatic following
  • New turns preserve the user’s position while they are reading earlier content.
  • Manually scrolling to the bottom resumes automatic following and hides the button.
  • Switching between the Problem and Transcript tabs preserves the existing reading position or automatic-following state, with button visibility matching the current position.
  • Returning to the latest conversation scrolls only the Transcript panel, without scrolling the whole page.

Relationship to existing work

#592 and PR #615 already implemented automatic transcript following, pausing when the user scrolls up, and resuming when they return to the bottom.

This proposal builds on that behavior by adding an explicit Jump to latest action, allowing users to return directly and resume following.

If this scope is acceptable, I would like to take this issue and implement the interaction and tests described above.

Dominant language
Rust
Stars
236
Forks
153
Avg merge
1d 9h
Merged PRs (30d)
187

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sysprog21/codetrial

All issues in sysprog21/codetrial

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.