{{-- Active-conversation header. Empty by default — JS fills it once the user picks a row from the queue, otherwise the empty state in #thread renders. --}} {{-- Quick label shortcuts — one-tap chips that apply a preset tag + priority combo. Visible only when a conversation is open. --}}
{{-- Initial placeholder while bootstrap is fetching workspace state. Shows a clean skeleton-shimmer "thread" so the page never flashes the bigger getting-started panel before we know whether the workspace actually has conversations. JS removes this on first render. --}}
{{-- Getting-started panel — only shown when bootstrap confirms the workspace has 0 conversations AND the user can manage. Hidden by default to avoid the flash on reload. --}} {{-- Empty state #2 — there ARE conversations in the workspace, but the current tab/filter combination has none. Tells the user where to look instead of leaving them stranded. --}}
{{-- Resolution banner — visible when inbox_status === 'resolved'. --}} {{-- Slim "open composer" tab. Shown only when the operator has closed the composer with the X — clicking it brings the full Reply / Note / Template composer back without losing the active thread. --}} {{-- AI assistant takeover picker — lists the workspace's voice assistants and pins one to the active conversation. The existing inbound message pipeline then auto-replies with that assistant's system prompt + provider/model on every customer message until the operator detaches it. --}}
{{-- ======== Invite teammate modal ============================ --}} {{-- ======== Edit team modal ================================== --}} {{-- ======== Create team modal ================================ --}} {{-- ======== Incoming WhatsApp call toast + slim panel ======= --}} {{-- Populated by the team-inbox poll bridge — every few seconds the JS hits /wa-calling/pending and renders any ringing call here. Accept routes the SDP offer to the WebRTC peer; Decline sends a reject to Meta. Hidden until a call is ringing. --}} {{-- ======== AI Agents Management Modal ==================== --}} {{-- ======== AI Agent Create / Edit Panel ================= --}} {{-- ======== API Keys Modal ================================ --}} {{-- ======== Routing Rules Modal ========================== --}} {{-- ======== Routing Rule Form Modal ====================== --}} {{-- ======== Business Hours Modal ========================= --}} {{-- ======== Team Performance Stats Modal ================= --}} {{-- ======== Quick Replies Management Modal ============== --}} {{-- ======== Saved Reply Create / Edit Form ============== --}}