Skip to content

Improved Transcript View experience#1150

Merged
yujonglee merged 2 commits intomainfrom
improve-transcript-view
Jul 22, 2025
Merged

Improved Transcript View experience#1150
yujonglee merged 2 commits intomainfrom
improve-transcript-view

Conversation

@ComputelessComputer
Copy link
Collaborator

Changes made:

  • Move up/down easily through and across sections
  • Speaker selection button design

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

📝 Walkthrough

"""

Walkthrough

The changes update the styling and structure of the speaker selector popover trigger in the transcript view, replacing a styled span with a Button component. Additionally, keyboard navigation within the transcript editor is enhanced, allowing users to move between speaker sections using the Up and Down arrow keys, with cyclic navigation and improved key handling.

Changes

File(s) Change Summary
apps/desktop/src/components/right-panel/views/transcript-view.tsx Updated speaker selector popover trigger from a styled span to a Button component with new styling and event handling.
packages/tiptap/src/transcript/extensions.ts Added smart keyboard navigation between speaker sections using Up/Down arrows; improved key event handling.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant TranscriptEditor
    participant SpeakerSection

    User->>TranscriptEditor: Press ArrowUp/ArrowDown
    TranscriptEditor->>SpeakerSection: Identify current section and all speaker nodes
    alt At section edge
        TranscriptEditor->>SpeakerSection: Move selection to adjacent section (wrap if needed)
        TranscriptEditor->>TranscriptEditor: Dispatch new selection and scroll into view
    else Not at section edge
        TranscriptEditor-->>User: No navigation, default behavior
    end
Loading

Possibly related PRs

  • Transcript editor styling #873: Refactors speaker selector logic and adds new UI components, directly modifying the same SpeakerSelector component in transcript-view.tsx.
  • Client side binary diarization #1105: Refactors the transcript view component, removing React Query hooks and updating speaker label logic, overlapping with changes to speaker display and interaction.
    """

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d1f3539 and d4706ee.

📒 Files selected for processing (2)
  • apps/desktop/src/components/right-panel/views/transcript-view.tsx (1 hunks)
  • packages/tiptap/src/transcript/extensions.ts (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/desktop/src/components/right-panel/views/transcript-view.tsx
  • packages/tiptap/src/transcript/extensions.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: ci (macos, macos-latest)
  • GitHub Check: ci (windows, windows-latest)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8bfe117 and d1f3539.

📒 Files selected for processing (2)
  • apps/desktop/src/components/right-panel/views/transcript-view.tsx (1 hunks)
  • packages/tiptap/src/transcript/extensions.ts (3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,ts,tsx,rs}

Instructions used from:

Sources:
⚙️ CodeRabbit Configuration File

🧬 Code Graph Analysis (2)
apps/desktop/src/components/right-panel/views/transcript-view.tsx (2)
packages/ui/src/components/ui/popover.tsx (2)
  • Popover (85-85)
  • PopoverTrigger (85-85)
packages/ui/src/components/ui/button.tsx (1)
  • Button (37-89)
packages/tiptap/src/transcript/extensions.ts (1)
packages/tiptap/src/transcript/nodes.ts (1)
  • SPEAKER_NODE_NAME (8-8)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: ci (windows, windows-latest)
  • GitHub Check: ci (macos, macos-latest)
🔇 Additional comments (4)
packages/tiptap/src/transcript/extensions.ts (2)

159-160: LGTM! Clean navigation experience.

Adding !e.shiftKey to the checkKey function is a good improvement. This prevents the navigation logic from interfering with Shift+Arrow selection behavior, which is the expected user experience.


114-116: Confirm section boundary detection handles nested content

The logic at packages/tiptap/src/transcript/extensions.ts (lines 114–116) only checks the immediate parent’s offsets (parentOffset === 0 / parentOffset === parent.content.size). If speaker sections can contain nested nodes (e.g. inline marks, child blocks), this may miss edge cases where $from is inside a deeper node.

Please verify or extend the logic to cover nested boundaries—for example by comparing against the section’s absolute start/end positions (using $from.start(depth) / $from.end(depth) or similar) or by walking up through ancestor offsets.

apps/desktop/src/components/right-panel/views/transcript-view.tsx (2)

380-380: LGTM! Improved visual spacing.

Increasing the margin from mt-2 to mt-4 provides better visual separation for the speaker selector component.


382-392: Excellent improvement! Better semantics and accessibility.

Replacing the styled span with a proper Button component significantly improves:

  • Semantic HTML structure
  • Accessibility (proper button role and keyboard navigation)
  • Consistency with the design system
  • User experience with proper hover/focus states

The use of asChild prop with PopoverTrigger is correct, and preserving the onMouseDown handler maintains the existing interaction behavior.

Modifies the transcript view component to enhance the user display and
interaction. The key changes are:

- Increases the top margin of the sticky header to 4 units (from 2)
- Replaces the underlined span with a button component for better
  accessibility and styling
- Adds a variant, size, and hover styles to the button for a more
  polished appearance
- Prevents the default mouse down behavior on the button to maintain
  the Popover functionality

These changes aim to improve the overall user experience and visual
consistency of the transcript view.
This commit adds support for navigating between speaker sections using the
up and down arrow keys. When the cursor is at the edge of a speaker
section, pressing the up or down arrow key will move the cursor to the
previous or next speaker section, respectively. This provides a more
intuitive way to navigate long transcripts with multiple speakers.
@yujonglee yujonglee merged commit a144172 into main Jul 22, 2025
9 checks passed
@ComputelessComputer ComputelessComputer deleted the improve-transcript-view branch December 14, 2025 15:18
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.

2 participants