Skip to content

fix(dashboard): hide empty text bubble on attachment-only messages - #1316

Merged
kmonsoe merged 1 commit into
mainfrom
fix/hide-empty-image-bubble
Nov 27, 2026
Merged

kmonsoe merged 1 commit into
mainfrom
fix/hide-empty-image-bubble

Conversation

@kmonsoe

@kmonsoe kmonsoe commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

When a visitor sends only an image, the inbox drew an empty text bubble above the image. The message has attachments but no text, and MessageBubble always rendered the body bubble.

The bubble is now skipped when the message has attachments and its text (or the translated text, if one is shown) is empty or whitespace. The chat widget already does this (apps/chat-widget/src/ui.ts).

The bubble still renders for:

  • messages with text, with or without attachments
  • messages without attachments
  • voice placeholders (voicePending, voiceNoSpeech)

Tests

  • New showsBodyBubble cases in inbox-message-bubble.test.ts: attachment-only, whitespace-only, text plus attachment, no attachments, voice placeholder, and a translated body that is empty.
  • Not checked in a running dashboard.

🤖 Generated with Claude Code

A visitor who sends only an image got an empty bubble above the image
in the inbox. Skip the body bubble when the message has attachments and
no text, as the chat widget already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kmonsoe
kmonsoe merged commit e42accd into main Nov 27, 2026
7 checks passed
@kmonsoe
kmonsoe deleted the fix/hide-empty-image-bubble branch November 27, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant