Repository navigation
feat(shadcn): add embed-popup-view-01 block to agents-ui - #1414
Merged
Merged
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
size-limit report 📦
|
thomasyuill-livekit
marked this pull request as draft
August 4, 2026 17:06
thomasyuill-livekit
force-pushed
the
ty/embed-popup-view-01-block
branch
from
August 4, 2026 19:27
ab82844 to
ccc2723
Compare
thomasyuill-livekit
marked this pull request as ready for review
August 13, 2026 15:40
Adds a floating chat-bubble trigger that expands into a compact agent session popup, ported from livekit/web's embed-popup components and adapted to be a portable block: token acquisition uses the registry's existing useSession/TokenSource pattern instead of cloud-specific plumbing, and it composes the existing AgentSessionProvider and AgentSessionView_01 block rather than duplicating them. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Give AgentSessionView-01 and EmbedPopupView-01 an explicit agents-ui/Blocks/* title and sort that group ahead of the rest of the agents-ui section so the composed blocks are easy to find. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Thread an optional onDisconnect callback through AgentSessionView_01 -> PopupView so AgentClient can pass its trigger's handleToggle, closing the popup the same way clicking the trigger bubble does when the user ends the call from inside it. Falls back to session.end when no override is supplied, so the standalone agent-session-view-01 block is unaffected. Also switches AgentSessionView_01's chat/camera/screenShare controls from separate supports* booleans to a single controls object, and moves the control bar's responsive breakpoints to container queries scoped to the control bar itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-view-01 Thread AgentClient's pre-connect/visualizer/theme props (previously only settable on the full-page agent-session-view-01) down through PopupView, and rename the trigger's color prop to triggerColor to disambiguate it from the visualizer color. Also simplifies Trigger's connecting/destructive ring styling to Tailwind utilities instead of a hand-rolled contrast/luminance calculation. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…torybook controls AgentClientProps documented themeMode but never forwarded it past AgentClient, so the aura visualizer inside the popup couldn't be theme-overridden like it can in agent-session-view-01. Thread it through AgentClient -> PopupView -> AgentSessionView_01. Also refreshes both blocks' Storybook stories to match the current controls-object API (replacing the stale supports*/color args), gives EmbedPopupView-01 the same visualizer/pre-connect controls already exposed on AgentSessionView-01, and fixes the audioVisualizerType select control (options belongs alongside control, not nested inside it, so the dropdown had no options). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Aligns the embed-popup-view-01 block's exported component/prop names with the agent-session-view-01 naming convention, and makes AgentSessionView_01's controls prop optional to match. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ners more Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sets text color directly on the trigger's connecting/destructive/idle icons instead of relying on the parent disc's background color, and picks the idle BotIcon's color via CSS contrast-color() against the brand color. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…mbed-popup-view-01 Split Trigger into a connection-aware TriggerProvider wrapper so the button itself stays a plain, prop-driven component (isPressed/isConnected/className), swap StartAudio for the local StartAudioButton, and rename popupOpen/error types (isPressed, isActive, EmbedPopupViewError) for clarity. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… tests
These tests still exercised removed props (supportsChatInput, color,
popupOpen, error={null}) and missing mocks (useAgent, AnimatePresence)
left over from earlier refactors, so they were failing outright. Update
them to match the current Trigger/PopupView/EmbedPopupView_01/
AgentSessionView_01 APIs (isPressed/isConnected, triggerColor, controls
object, optional error).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…d audioVisualizer config Collapse the nine flat audioVisualizerType/Color/BarCount/... props on AgentSessionView_01/EmbedPopupView_01 into a single audioVisualizer prop. Its type is a discriminated union keyed by `type` that extends each AgentAudioVisualizer*'s real prop type, so field names (barCount, rowCount/columnCount, radius, lineWidth, ...) and support (e.g. colorShift only for wave/aura) match the underlying components exactly instead of a hand-rolled flat shape. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t-session blocks
- AgentSessionView_01Props.audioVisualizer generated as type "any" in
prop-types.json because agent-session-block.tsx imported
AudioVisualizerConfig via a relative path instead of the @/ alias used
elsewhere; react-docgen-typescript fails to resolve the discriminated
union through that import style. Switch to the alias import and add an
explicit `{ type: 'bar' }` default (matching EmbedPopupView_01's own
audioVisualizer default) to fix doc generation and match the pattern.
- EmbedPopupViewProps.triggerColor doc claimed it colored the audio
visualizer and had a non-existent '#3b82f6' default; audioVisualizer.color
is now independent, so correct the description and default value docs.
- TriggerProps: the "Brand color..." doc comment was attached to `logo`
instead of `color`; add the missing doc to each field.
thomasyuill-livekit
force-pushed
the
ty/embed-popup-view-01-block
branch
from
August 13, 2026 15:49
f7b1158 to
3d78d7f
Compare
1egoman
approved these changes
Aug 25, 2026
thomasyuill-livekit
force-pushed
the
ty/embed-popup-view-01-block
branch
from
August 26, 2026 16:14
8468275 to
470c35f
Compare
thomasyuill-livekit
force-pushed
the
ty/embed-popup-view-01-block
branch
from
August 26, 2026 16:23
470c35f to
5379eb4
Compare
thomasyuill-livekit
force-pushed
the
ty/embed-popup-view-01-block
branch
from
August 26, 2026 16:25
5379eb4 to
6a89439
Compare
This branch was successfully deployed
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.
Summary
embed-popup-view-01, a compact floating popup block for agents-ui.agent-session-view-01visualizer and control configuration for reuse by the popup block.Session View Block
audioVisualizerconfig object.audioVisualizerasAudioVisualizerConfig.AudioVisualizerConfigby visualizertype.AgentSessionView_01default controls toleaveandmicrophoneonly.controlsoverrides merged onto the new defaults.smbar visualizer Tailwind sizing classes.Embed Popup Block
EmbedPopupView_01as a new agents-ui shadcn block.AgentSessionProvider,AgentSessionView_01, andStartAudioButton.Triggerfor custom previews and composition.@agents-ui/start-audio-buttonto the block's registry dependencies.Storybook and Registry
allregistry dependency forembed-popup-view-01.Testing
pnpm --filter @livekit/agents-ui testgit diff --check $(git merge-base origin/main HEAD) HEAD