agent-native icon indicating copy to clipboard operation
agent-native copied to clipboard

Add timestamped comment button to video player

Open SajalChaplot opened this issue 5 months ago • 20 comments

Summary

Replaces the editable title in the reactions row with a "Comment" button that opens an overlay composer docked to the bottom of the video, capturing the exact playback timestamp when the comment is made.

Problem

The recording title was displayed in the bottom metadata row alongside reactions, which was not the intended location. There was also no way for viewers to leave a comment tied to a specific moment in the video.

Key Changes

  • New TimestampedCommentButton component – a small trigger button (shown only when comments are enabled) that captures the current video timestamp and opens the comment composer.
  • New TimestampedCommentBar component – an overlay composer that renders absolutely at the bottom of the video container, showing the captured timestamp, a resizable textarea, mention (@) and emoji shortcuts, and a "Comment at X:XX" submit button. Supports Cmd/Ctrl+Enter to submit and Escape to dismiss.
  • r.$recordingId.tsx updates:
    • Added commentOpen and commentAtMs state to track composer visibility and the pinned timestamp.
    • Made the video wrapper relative so the overlay positions correctly.
    • Replaced the EditableRecordingTitle in the reactions row with TimestampedCommentButton.
    • On successful comment submission, switches the side panel to "comments" and refetches player data.

https://github.com/user-attachments/assets/0ecc2e26-de1d-421a-bacb-057e074ddf4d


Edit in Builder  Preview


To clone this PR locally use the Github CLI with command gh pr checkout 1641

You can tag me at @builderio for anything you want me to fix or change

SajalChaplot avatar Jun 29 '26 09:06 SajalChaplot

Deploy Preview for agent-native-scheduling ready!

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-scheduling/deploys/6a42602bf7e7d30008e09e06
Deploy Preview https://deploy-preview-1641--agent-native-scheduling.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for nutritrack-daily-calories canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/nutritrack-daily-calories/deploys/6a42602b10fc4a0008757ee9

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-voice ready!

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-voice/deploys/6a42602b5e66130007bc0246
Deploy Preview https://deploy-preview-1641--agent-native-voice.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-meeting-notes ready!

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-meeting-notes/deploys/6a42602c86ee0400096f6067
Deploy Preview https://deploy-preview-1641--agent-native-meeting-notes.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-design ready!

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-design/deploys/6a42602c389d9a0007479fd9
Deploy Preview https://deploy-preview-1641--agent-native-design.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-brain canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-brain/deploys/6a42602b03d243000893dd6d

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-content canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-content/deploys/6a42602cebcd710008356396

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-images canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-images/deploys/6a42602bd4c06500093bc0e9

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-dispatch canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-dispatch/deploys/6a42602b168d200008e4de0f

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-macros canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-macros/deploys/6a42602cdbe78600085fef50

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-calendar canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-calendar/deploys/6a42602b5eddc70008693e94

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-starter canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-starter/deploys/6a42602c03d243000893dd72

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-forms canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-forms/deploys/6a42602ca06c4400082bf1f0

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-slides canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-slides/deploys/6a42602c32f1e500097de411

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-videos canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-videos/deploys/6a42602c9607850008f747d3

netlify avatar Jun 29 '26 09:06 netlify

Deploy Preview for agent-native-mail canceled.

Name Link
Latest commit 6d7bd33a7d8e2e3eea757a92fa8b6e2486bd2640
Latest deploy log https://app.netlify.com/projects/agent-native-mail/deploys/6a42602c7aefef0008045bae

netlify avatar Jun 29 '26 09:06 netlify

Here's a visual recap of what changed:

Visual recap

Open the full interactive recap

github-actions[bot] avatar Jun 29 '26 09:06 github-actions[bot]

@builderio-bot look at latest PR feedback and fix anything you agree with. Be skeptical. Reply to every comment (directly on the comment thread of each comment) if you fixed it or not and why. then check back every 2 minutes on a loop and see if any new feedback posted, until at least 20 minutes go by without any new feedback posted we want to address, including making sure CI passes too and no merge conflicts (make sure code is mergeable)

SajalChaplot avatar Jun 29 '26 11:06 SajalChaplot

Thanks for the review — addressed the items and the failing CI:

🟡 MEDIUM #1 — compact/mobile: comments tab selected but sheet not opened after submit — Fixed. onAdded now also calls setSidePanelOpen(true) when isCompactLayout, so the Activity sheet opens and the new comment is visible as confirmation (desktop already showed the persistent side panel).

CI — Lint & format (oxfmt --check) — Fixed. Ran oxfmt --write on the changed files (import ordering + button formatting).

CI — Security guards (guard:i18n-catalogs) — Fixed. The composer had raw visible strings. Moved them to i18n: added commentsPanel.commentButton, composerPlaceholder, mentionSomeone, addEmoji to the en-US source catalog (reusing common.cancel and commentsPanel.commentAt), wired them via useT(), and added translations to all 10 non‑English catalogs. pnpm guards now passes.

Typecheck passes. Pushed in 5fce19b2.

Note: the review summary appears truncated mid-sentence, so I could only see the first MEDIUM finding in full. If there's a second finding (e.g., from the browser-testing pass), please post it and I'll address it.

builder-io-integration avatar Jun 29 '26 11:06 builder-io-integration

There was a problem with your request, please try again later. Error id: 34414109a3984fa6ba8ca0716dca3e49

builder-io-integration avatar Jun 29 '26 12:06 builder-io-integration