Skip to content

feat(inbox): show the contact's pages in the conversation header - #1802

Merged
viethung0o0 merged 1 commit into
mainfrom
feat/inbox-header-page-strip
Nov 27, 2026
Merged

viethung0o0 merged 1 commit into
mainfrom
feat/inbox-header-page-strip

Conversation

@viethung0o0

Copy link
Copy Markdown
Contributor

Summary

Agents had to hover a conversation in the list to see which page (inbox) a contact belongs to. The conversation header now shows it directly, and the header itself is more compact.

Header (message-head.tsx)

  • Row 1: contact name, with BizAI and the other actions moved onto the same row at a compact height (h-7, text-xs).
  • Row 2: "… joined the conversation" on the left, "Assigned to me" on the right (was two rows).

Page strip (conversation-page-strip.tsx), under the header:

  • Each page the contact talks to: page picture with the channel's mark in the corner, channel name, page name.
  • The most recently messaged page comes first and is highlighted when there are several; past 3 pages the rest fold into "+N" (names in a tooltip). On a narrow column (container query) only the first page keeps its chip.
  • Right side: the time of the last message (shared LastActivityAgo, moved out of conversation-item.tsx).
  • Channels without a page picture (WhatsApp, Telegram, Zalo…) show their brand mark.

Page pictures

  • New publishDestinationService.listInboxAvatars: same publish-destination rows and URLs as Posts (stored copy, else the signed /media/destination-avatar route). Missing bindings are created idempotently, like list does, so a page has its picture before Posts was ever opened. Capped at 50 inboxes per call.
  • Public API (invariant 23): inboxes.listAvatars → GET /v1/inboxes/avatars?inboxIds=… (scope inbox), CLI chatbotx inboxes avatars. The builder uses an RPC-only session procedure that calls the same service method.

Test plan

  • packages/business unit test inbox-avatars.test.ts (dedupe, cap, stored vs on-view URL, disconnected inbox) + existing destination-list-avatar.test.ts
  • public-spec-operations snapshot updated (only inboxes.listAvatars added); public-spec-mcp, edge-instrumentation-graph pass
  • pnpm --filter builder lint (i18n parity, keys added to all 21 locales), check:invariants, ultracite
  • Type check: builder, business and the 17-package pre-commit typecheck
  • Manual check in the inbox, not done locally: a contact on 1 page, on 2+ pages (highlight, "+N"), a narrow column, a WhatsApp-only contact, light and dark theme
  • GET /v1/inboxes/avatars?inboxIds=<id> with a workspace token returns the page picture URL

@github-actions github-actions Bot added the feature New feature or request label Nov 27, 2026
- Add a page strip under the conversation header: each page (inbox) the
  contact talks to as avatar + channel + page name, the page of the latest
  message first and highlighted, extra pages folded into "+N", and the exact
  local time of the last message on the right. Both follow realtime
  messages through the conversation's latest message.
- Page pictures come from the same publish-destination rows and URLs as
  Posts (new publishDestinationService.listInboxAvatars), exposed as the
  public inboxes.listAvatars (GET /v1/inboxes/avatars) and a session RPC.
- Compact the header: BizAI and the other actions move onto the name row at
  a smaller height; "Assigned to me" (left) and "joined the conversation"
  (right, now with the members' avatars) share one row.
- Move LastActivityAgo into its own component so it can be shared.
@viethung0o0
viethung0o0 force-pushed the feat/inbox-header-page-strip branch from 57c2671 to b90f642 Compare November 27, 2026 07:46
@viethung0o0
viethung0o0 merged commit d2d70a5 into main Nov 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants