Repository navigation
feat: capture UI v2 — frosted pill, pause/resume, review sheet and fly-in - #177
Merged
Merged
Conversation
…et and fly-in
The capture bar becomes a small frosted pill at the bottom centre that
follows the page's light or dark scheme: one line of text, a round shutter,
an ×, Enter to capture / Esc to cancel on desktop (only while nothing else on
the page has the focus), draggable as before, a full-width pill under 600px.
A short shutter flash follows a screenshot. While recording: pulsing dot,
m:ss / limit, the microphone toggle, Pause / Resume (MediaRecorder pause;
the timer, the limit and the timeline skip the pause) and Stop with a ring
that fills toward the limit. After Stop a "Send this recording?" sheet with
the first frame, Retake and Send; × discards.
Contract additions, all optional: capabilities pause + flyIn, recording
{paused}, done {thumbnail, durationSec, audio}, capture-fly from the
Messenger answered with capture-fly-done after the flight into the card.
Recordings default to 120 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The host side of the capture experience Lukas approved (mock:
design-handoffs/capture-ui/index.html, https://claude.ai/artifact/N7GbvfD86DADGEpmYcCQSP). It changesGleapCaptureUI.js,GleapCaptureManager.js,GleapCaptureRecorder.jsandGleapCaptureSettings.js.color-scheme, then the system setting).m:ss / limittimer.MediaRecorder.pause()/resume(). The timer, the limit, the recorded length (durationMs, the WebM duration fix) and the timeline (entries in a pause are dropped, later ones shifted) all skip the pause. Pause is offered for screen recordings only. Page (rrweb) recordings have no pause.from/srcarrive with the message).postMessage contract (additions only, documented at the top of
GleapCaptureManager.js)capture-capabilities:pause(screen recordings can pause) andflyIn: true.capture-state recording:paused: truewhile paused. While paused the SDK repeats the sameelapsedSecevery second.capture-state done(recordings):thumbnail(first frame, JPEG data URL ≤ 480px),durationSec(without pauses) andaudio.capture-fly {requestId, to, from?, src?, radius?}(toin frame coordinates). Answered with host → Messengercapture-fly-done {requestId}when it lands, or right away if it can't fly.srcmust be adata:image/(jpeg|png|webp)URL of at most 1 MB.barCaptureKeys,barStartKeys,barPause,barResume,barPaused,previewDiscard,previewPlay,previewWithAudio,previewNoAudio. The English defaults forbarScreenshotHint/barRecordHintare shorter now.Compatibility
capture-fly. Because the paused state repeats every second, the old card's timer stands still instead of counting on. Verified live against the sandbox Messenger atfeat/widget-kitbefore the merge: record, pause, resume, stop and send work, and the request completes.flyInorpause, so the card fades in and shows a neutral recording tile. Verified live with the sandbox's current SDK build.capture-startand its options are unchanged. The Messenger's longer translated hints still fit: they are clipped with an ellipsis and shown in full as a tooltip.Not in this PR
build/andpublished/are not rebuilt. The release does that.Screenshots
qa-artifacts/2026-10-12-capture-ui/(local, 153 shots incl. Messenger mock-modemock-*): the pill, recording, paused, review, flight and sent states at 1280 and 400px, light and dark, plus reduced motion and both compatibility directions.Verify
npm test(524) andnpm run buildpass. End to end in Chrome via Playwright: built SDK on a demo page, Messenger dev server, sandbox server, fake tab capture. Covered screenshot, recording with pause, stop and send, upload, Not now and Esc.Merge order
Messenger after #244 (capture UI v2 is folded into GleapSDK/Messenger-App#244). The SDK release is independent, but the new card needs both. The 2-minute default and the translated strings are on GleapSDK/Server#2157.
🤖 Generated with Claude Code