Skip to content

A platform for community discussion. Free, open, simple.

UX: Remind inviters to deploy their LiveKit agent before adding it to a call (#43914)

Gabriel Grubbae4f36e471be8
diff --git a/plugins/voice/assets/javascripts/discourse/components/modal/voice-invite-agent.gjs b/plugins/voice/assets/javascripts/discourse/components/modal/voice-invite-agent.gjs
index 74e4dcf8b44..9955d366767 100644
--- a/plugins/voice/assets/javascripts/discourse/components/modal/voice-invite-agent.gjs
+++ b/plugins/voice/assets/javascripts/discourse/components/modal/voice-invite-agent.gjs
@@ -84,6 +84,9 @@ export default class VoiceInviteAgentModal extends Component {
@title={{i18n "voice.agent.invite"}}
>
<:body>
+ <p class="voice-invite-agent-modal__hint">
+ {{i18n "voice.agent.deploy_hint"}}
+ </p>
<DConditionalLoadingSpinner @condition={{this.loading}}>
<Form
@data={{hash agent_name=""}}
diff --git a/plugins/voice/assets/stylesheets/common/voice.scss b/plugins/voice/assets/stylesheets/common/voice.scss
index 25c6182c78d..d02b90e1ee1 100644
--- a/plugins/voice/assets/stylesheets/common/voice.scss
+++ b/plugins/voice/assets/stylesheets/common/voice.scss
@@ -1299,6 +1299,12 @@
}
.voice-invite-agent-modal {
+ &__hint {
+ margin: 0 0 1em;
+ font-size: var(--font-down-1);
+ color: var(--primary-medium);
+ }
+
// The field content wrapper is a column flex box aligned to flex-start, so
// the row must stretch to the field width before its controls can share it.
&__picker {
diff --git a/plugins/voice/config/locales/client.en.yml b/plugins/voice/config/locales/client.en.yml
index a177af0e6d4..c5e4a7a3e69 100644
--- a/plugins/voice/config/locales/client.en.yml
+++ b/plugins/voice/config/locales/client.en.yml
@@ -300,6 +300,7 @@ en:
type_name: "Type a name instead"
pick_name: "Choose from the list instead"
refresh: "Refresh the agent list"
+ deploy_hint: "Ensure your agent is deployed before adding it to this call."
invited: "Agent invited. It will appear when LiveKit connects it. This can take about a minute."
admin:
title: "Voice"