feat(inbox): show voice badge on channel cards when voice is enabled

Adds an audio-waveform badge overlay on the WhatsApp and Voice (Twilio)
channel cards in the new-inbox selector when the channel_voice feature
flag is enabled on the account.
This commit is contained in:
Tanmay Deep Sharma
2026-05-13 15:02:28 +05:30
parent ddc863c6f7
commit a985010a40
2 changed files with 24 additions and 4 deletions
@@ -81,6 +81,13 @@ const isBeta = computed(() => {
return ['tiktok', 'voice'].includes(props.channel.key);
});
const hasVoiceBadge = computed(() => {
return (
['voice', 'whatsapp'].includes(props.channel.key) &&
!!props.enabledFeatures.channel_voice
);
});
const onItemClick = () => {
if (isActive.value) {
emit('channelItemClick', props.channel.key);
@@ -95,6 +102,7 @@ const onItemClick = () => {
:icon="channel.icon"
:is-coming-soon="isComingSoon"
:is-beta="isBeta"
:has-voice-badge="hasVoiceBadge"
:disabled="!isActive"
@click="onItemClick"
/>