On this page

Admin inbox anatomy

Tên chuẩn cho từng vùng và khoảng cách của màn Inbox, để design, dev và QA gọi cùng một tên.

Copy page as MarkdownRead Markdown ↗

Standalone inbox map

Bản đồ concept của thiết kế dùng để chỉ vùng. Số đo và màu lấy theo guide. Bấm ảnh để mở bản gốc và dùng zoom của trình duyệt.

Standalone inbox with numbered regions

App layout map

Dashboard with App sidebar and Page area

Embedded inbox map

Embedded inbox with numbered regions

Mobile conversation list map

Mobile conversation list with numbered regions

Mobile thread map

Mobile conversation thread with numbered regions

Ảnh mobile có khổ gốc 390px, co xuống khi khung hẹp hơn.

Your inbox and Customize mode map

Your inbox with Customize mode and numbered regions

Ảnh Customize ghi Subject chuyển sang Thread header; Target trong Details sections vẫn giữ Email Subject ở đầu Details khi có emailSubject.

Embedded Inbox nav and Join bar map

Embedded Inbox nav open with AI answering and numbered Join bar

Key rules

  • Admin: gọi tên vùng theo bảng Anatomy, theo số trong mockup thiết kế Inbox; brief, review, bug report và i18n dùng đúng tên trong trang này.
  • Admin: Inbox nav (InboxSidebar) đứng ngoài lưới; lưới InboxDesktopLayout chia Conversation list, Thread pane và Details panel.
  • Admin: khe giữa hai pane gọi là pane gap, đang là biến --inbox-pane-gap; vạch trong một pane gọi là divider, là border 1px.
  • Admin: Shop switcher và User menu hôm nay nằm trong menu avatar của Polaris TopBar (AppFullLayout), chỉ có ở web app và PWA, không có khi app chạy embedded trong Shopify admin.
On this page

Use when / Avoid

Dùng trang này khi viết brief, review UI hoặc báo bug về bố cục Inbox: nói Thread header hay pane gap thay cho thanh trên chỗ tên khách hay khoảng trắng giữa hai cột. Không dùng để tra hàng hội thoại hay tin nhắn chi tiết; mỗi phần đó có trang riêng.

Use instead

Component Use when
InboxConversationItem Cần chi tiết một Conversation row: avatar, tên, preview, giờ.
ConversationDetail Cần chi tiết các Details section bên trong Details panel.

Entry points

Surface Owner
Admin InboxSidebar bọc màn Inbox; bên trong, InboxDesktopLayout dựng lưới trên desktop.

Flow

Surface Step Trigger UI shown Component Copy + i18n key Timing
Admin Chưa chọn hội thoại isBlank true Lưới bỏ Details panel, Thread pane rộng ra InboxDesktopLayout Not available Đồng bộ
Admin Mở hội thoại Chọn một Conversation row Thread pane hiện MainChat, Details panel hiện ConversationDetail MainChat, ConversationDetail Not available Đồng bộ
Admin Đổi độ rộng Kéo drag bar giữa hai pane Cột hai bên đổi độ rộng, con trỏ col-resize Drag bar Not available Theo chuột

Edge cases

Surface Case Behaviour
Admin Embedded trong Shopify Không có Top bar; topBarMarkup chỉ dựng khi không bị ẩn theo màn và trang.
Admin Details panel thu gọn Details panel còn một rail hẹp, thêm class --collapse.
Admin Inbox nav thu gọn Inbox nav còn rail icon.

Live preview

Admin

LightDarkDesktopMobile

Target: phạm vi Inbox dùng chatty-ui; khung App Bridge embedded do Shopify vẽ.

Show code
inbox-admin-rules.jsxWrap code linesCopy
import React from 'react';
const radii = {"container": "20px", "dialog": "20px", "popover": "12px", "control": "10px", "element": "8px", "tag": "6px", "checkbox": "4px", "avatar": "clamp(6px, 30%, 12px)", "action": "9999px", "chat-control": ".5rem", "option-item": ".5rem", "kbd": ".25rem"};
const themes = {"light": {"--chatty-color-bg": "#fff", "--chatty-color-bg-fill-caution-secondary": "oklch(.9167 .1785 98.00)", "--chatty-color-bg-fill-critical": "oklch(.9470 .0300 20.50)", "--chatty-color-bg-fill-info-secondary": "oklch(.8637 .1018 216.95)", "--chatty-color-bg-fill-inverse": "#1b1b1b", "--chatty-color-bg-fill-secondary": "#ebebeb", "--chatty-color-bg-fill-success": "oklch(.9672 .0599 131.73)", "--chatty-color-bg-fill-success-secondary": "oklch(.9053 .1942 133.49)", "--chatty-color-bg-fill-tertiary": "#ddd", "--chatty-color-bg-fill-tertiary-hover": "#d0d0d0", "--chatty-color-bg-surface": "#fff", "--chatty-color-bg-surface-critical": "oklch(.9470 .0300 20.50)", "--chatty-color-bg-surface-secondary": "#f7f7f7", "--chatty-color-bg-surface-secondary-selected": "#ebebeb", "--chatty-color-bg-surface-success": "oklch(.9672 .0599 131.73)", "--chatty-color-bg-surface-tertiary": "#f2f2f2", "--chatty-color-bg-surface-warning": "oklch(.9557 .0350 67.45)", "--chatty-color-border": "rgba(221,221,221,1)", "--chatty-color-border-secondary": "rgba(242,242,242,1)", "--chatty-color-border-tertiary": "rgba(192,192,192,1)", "--chatty-color-border-warning": "oklch(.9316 .0545 67.18)", "--chatty-color-icon-secondary": "#606060", "--chatty-color-text": "#101010", "--chatty-color-text-brand-on-accent": "#fff", "--chatty-color-text-caution": "oklch(.2708 .0638 90.28)", "--chatty-color-text-critical": "oklch(.2121 .0942 30.90)", "--chatty-color-text-info": "oklch(.2715 .0576 221.37)", "--chatty-color-text-link": "oklch(.4840 .2413 262.80)", "--chatty-color-text-link-inverse": "oklch(.7340 .1449 264.63)", "--chatty-color-text-on-accent": "#fff", "--chatty-color-text-secondary": "rgba(74,74,74,1)", "--chatty-color-text-success": "oklch(.2334 .0796 134.14)", "--chatty-color-text-warning": "oklch(.2475 .0726 51.49)"}, "dark": {"--chatty-color-bg": "#121212", "--chatty-color-bg-fill-caution-secondary": "#4f4700", "--chatty-color-bg-fill-critical": "#2f040b", "--chatty-color-bg-fill-info-secondary": "#003a5a", "--chatty-color-bg-fill-inverse": "#303030", "--chatty-color-bg-fill-secondary": "#373737", "--chatty-color-bg-fill-success": "#014b40", "--chatty-color-bg-fill-success-secondary": "#014b40", "--chatty-color-bg-fill-tertiary": "#414141", "--chatty-color-bg-fill-tertiary-hover": "#585858", "--chatty-color-bg-surface": "#1a1a1a", "--chatty-color-bg-surface-critical": "#5f0716", "--chatty-color-bg-surface-secondary": "#282828", "--chatty-color-bg-surface-secondary-selected": "#373737", "--chatty-color-bg-surface-success": "#073630", "--chatty-color-bg-surface-tertiary": "#2f2f2f", "--chatty-color-bg-surface-warning": "#412d00", "--chatty-color-border": "#ffffff17", "--chatty-color-border-secondary": "#ffffff0f", "--chatty-color-border-tertiary": "#ffffff2e", "--chatty-color-border-warning": "#956f00", "--chatty-color-icon-secondary": "#aaa", "--chatty-color-text": "#eee", "--chatty-color-text-brand-on-accent": "#121212", "--chatty-color-text-caution": "#ffeb78", "--chatty-color-text-critical": "#f78086", "--chatty-color-text-info": "#a8d8ff", "--chatty-color-text-link": "#c5d0ff", "--chatty-color-text-link-inverse": "#c5d0ff", "--chatty-color-text-on-accent": "#121212", "--chatty-color-text-secondary": "#aaa", "--chatty-color-text-success": "#2ced83", "--chatty-color-text-warning": "#ffc879"}};
const frameStyle = {
 ...themes.light,
 ...Object.fromEntries(Object.entries(radii).map(([role,value])=>['--chatty-radius-'+role,value])),
 '--chatty-type-family':'ShopifyInter, ui-sans-serif, system-ui, sans-serif',
 '--chatty-type-weight-regular':400,'--chatty-type-weight-medium':500,'--chatty-type-weight-semibold':600,
 '--chatty-type-body-medium-size':'13px','--chatty-type-body-medium-line':'20px',
 '--chatty-type-button-label-size':'12px','--chatty-type-button-label-line':'16px',
 '--chatty-type-badge-label-size':'12px','--chatty-type-badge-label-line':'18px',
 fontFamily:'var(--chatty-type-family)',fontSize:'var(--chatty-type-body-medium-size)',lineHeight:'var(--chatty-type-body-medium-line)',fontWeight:'var(--chatty-type-weight-regular)',
 color:'var(--chatty-color-text)',background:'var(--chatty-color-bg-surface)',padding:16
};
const box = {border:'1px solid #888',background:'#f7f7f7',padding:12,color:'#101010',font:'inherit'};
function Target({children}) { return <div data-inbox-target style={frameStyle}><link rel="stylesheet" href="https://cdn.shopify.com/static/fonts/shopifyinter/v0/styles.css"/><p style={{marginTop:0}}>Target · design fixture · phase 1b chưa ship</p>{children}</div>; }
function RadiusSample({role,value}) {
 const style={...box,borderRadius:`var(--chatty-radius-${role})`};
 if(role==='checkbox')return <input aria-label="Checkbox radius sample" type="checkbox" style={{...style,appearance:'none',width:24,height:24,padding:0}}/>;
 if(role==='avatar')return <span role="img" aria-label="Avatar initials" style={{...style,width:36,height:36,padding:0,display:'grid',placeItems:'center'}}>AB</span>;
 if(role==='tag')return <span style={{...style,padding:'0 8px',display:'inline-block'}}>Status</span>;
 if(role==='kbd')return <kbd style={{...style,padding:'0 6px'}}>A</kbd>;
 if(['action','control','chat-control','option-item'].includes(role))return <button type="button" style={style}>Action</button>;
 if(role==='dialog')return <dialog open aria-label="Dialog radius sample" style={{...style,position:'static',margin:0}}>Dialog</dialog>;
 return <section aria-label={`${role} radius sample`} style={style}>{role}</section>;
}
export function Scope() {
 return <Target><div style={{display:'grid',gap:12}}><section style={{...box,borderRadius:'var(--chatty-radius-container)'}}><strong style={{fontWeight:'var(--chatty-type-weight-semibold)'}}>Inbox · standalone + embedded</strong><p>chatty-ui Button · Badge · Avatar · Popover/Menu · Select · Tag input · Banner · TextField · picker · Tooltip</p><p>Token chatty-ui literal light/dark, weight400/500/600, radius theo vai; nguồn giá trị 2.0. Phase 1b gỡ lớp var(--p-*) trước khi chuyển component.</p></section><aside style={{...box,borderRadius:'var(--chatty-radius-popover)'}}><strong style={{fontWeight:'var(--chatty-type-weight-semibold)'}}>Shopify vẽ · embedded App Bridge</strong><p>s-app-nav · contextual save bar · toast · modal max</p></aside><p>Icon giữ quy tắc hiện hành: commerce, filter/sort dùng path Polaris; không cần component Polaris.</p></div></Target>;
}
LightDarkDesktopMobile

Target: Button 28px, Badge 20px và primary light/dark từ token chatty-ui.

Show code
inbox-admin-rules.jsxWrap code linesCopy
import React from 'react';
const radii = {"container": "20px", "dialog": "20px", "popover": "12px", "control": "10px", "element": "8px", "tag": "6px", "checkbox": "4px", "avatar": "clamp(6px, 30%, 12px)", "action": "9999px", "chat-control": ".5rem", "option-item": ".5rem", "kbd": ".25rem"};
const themes = {"light": {"--chatty-color-bg": "#fff", "--chatty-color-bg-fill-caution-secondary": "oklch(.9167 .1785 98.00)", "--chatty-color-bg-fill-critical": "oklch(.9470 .0300 20.50)", "--chatty-color-bg-fill-info-secondary": "oklch(.8637 .1018 216.95)", "--chatty-color-bg-fill-inverse": "#1b1b1b", "--chatty-color-bg-fill-secondary": "#ebebeb", "--chatty-color-bg-fill-success": "oklch(.9672 .0599 131.73)", "--chatty-color-bg-fill-success-secondary": "oklch(.9053 .1942 133.49)", "--chatty-color-bg-fill-tertiary": "#ddd", "--chatty-color-bg-fill-tertiary-hover": "#d0d0d0", "--chatty-color-bg-surface": "#fff", "--chatty-color-bg-surface-critical": "oklch(.9470 .0300 20.50)", "--chatty-color-bg-surface-secondary": "#f7f7f7", "--chatty-color-bg-surface-secondary-selected": "#ebebeb", "--chatty-color-bg-surface-success": "oklch(.9672 .0599 131.73)", "--chatty-color-bg-surface-tertiary": "#f2f2f2", "--chatty-color-bg-surface-warning": "oklch(.9557 .0350 67.45)", "--chatty-color-border": "rgba(221,221,221,1)", "--chatty-color-border-secondary": "rgba(242,242,242,1)", "--chatty-color-border-tertiary": "rgba(192,192,192,1)", "--chatty-color-border-warning": "oklch(.9316 .0545 67.18)", "--chatty-color-icon-secondary": "#606060", "--chatty-color-text": "#101010", "--chatty-color-text-brand-on-accent": "#fff", "--chatty-color-text-caution": "oklch(.2708 .0638 90.28)", "--chatty-color-text-critical": "oklch(.2121 .0942 30.90)", "--chatty-color-text-info": "oklch(.2715 .0576 221.37)", "--chatty-color-text-link": "oklch(.4840 .2413 262.80)", "--chatty-color-text-link-inverse": "oklch(.7340 .1449 264.63)", "--chatty-color-text-on-accent": "#fff", "--chatty-color-text-secondary": "rgba(74,74,74,1)", "--chatty-color-text-success": "oklch(.2334 .0796 134.14)", "--chatty-color-text-warning": "oklch(.2475 .0726 51.49)"}, "dark": {"--chatty-color-bg": "#121212", "--chatty-color-bg-fill-caution-secondary": "#4f4700", "--chatty-color-bg-fill-critical": "#2f040b", "--chatty-color-bg-fill-info-secondary": "#003a5a", "--chatty-color-bg-fill-inverse": "#303030", "--chatty-color-bg-fill-secondary": "#373737", "--chatty-color-bg-fill-success": "#014b40", "--chatty-color-bg-fill-success-secondary": "#014b40", "--chatty-color-bg-fill-tertiary": "#414141", "--chatty-color-bg-fill-tertiary-hover": "#585858", "--chatty-color-bg-surface": "#1a1a1a", "--chatty-color-bg-surface-critical": "#5f0716", "--chatty-color-bg-surface-secondary": "#282828", "--chatty-color-bg-surface-secondary-selected": "#373737", "--chatty-color-bg-surface-success": "#073630", "--chatty-color-bg-surface-tertiary": "#2f2f2f", "--chatty-color-bg-surface-warning": "#412d00", "--chatty-color-border": "#ffffff17", "--chatty-color-border-secondary": "#ffffff0f", "--chatty-color-border-tertiary": "#ffffff2e", "--chatty-color-border-warning": "#956f00", "--chatty-color-icon-secondary": "#aaa", "--chatty-color-text": "#eee", "--chatty-color-text-brand-on-accent": "#121212", "--chatty-color-text-caution": "#ffeb78", "--chatty-color-text-critical": "#f78086", "--chatty-color-text-info": "#a8d8ff", "--chatty-color-text-link": "#c5d0ff", "--chatty-color-text-link-inverse": "#c5d0ff", "--chatty-color-text-on-accent": "#121212", "--chatty-color-text-secondary": "#aaa", "--chatty-color-text-success": "#2ced83", "--chatty-color-text-warning": "#ffc879"}};
const frameStyle = {
 ...themes.light,
 ...Object.fromEntries(Object.entries(radii).map(([role,value])=>['--chatty-radius-'+role,value])),
 '--chatty-type-family':'ShopifyInter, ui-sans-serif, system-ui, sans-serif',
 '--chatty-type-weight-regular':400,'--chatty-type-weight-medium':500,'--chatty-type-weight-semibold':600,
 '--chatty-type-body-medium-size':'13px','--chatty-type-body-medium-line':'20px',
 '--chatty-type-button-label-size':'12px','--chatty-type-button-label-line':'16px',
 '--chatty-type-badge-label-size':'12px','--chatty-type-badge-label-line':'18px',
 fontFamily:'var(--chatty-type-family)',fontSize:'var(--chatty-type-body-medium-size)',lineHeight:'var(--chatty-type-body-medium-line)',fontWeight:'var(--chatty-type-weight-regular)',
 color:'var(--chatty-color-text)',background:'var(--chatty-color-bg-surface)',padding:16
};
const box = {border:'1px solid #888',background:'#f7f7f7',padding:12,color:'#101010',font:'inherit'};
function Target({children}) { return <div data-inbox-target style={frameStyle}><link rel="stylesheet" href="https://cdn.shopify.com/static/fonts/shopifyinter/v0/styles.css"/><p style={{marginTop:0}}>Target · design fixture · phase 1b chưa ship</p>{children}</div>; }
function RadiusSample({role,value}) {
 const style={...box,borderRadius:`var(--chatty-radius-${role})`};
 if(role==='checkbox')return <input aria-label="Checkbox radius sample" type="checkbox" style={{...style,appearance:'none',width:24,height:24,padding:0}}/>;
 if(role==='avatar')return <span role="img" aria-label="Avatar initials" style={{...style,width:36,height:36,padding:0,display:'grid',placeItems:'center'}}>AB</span>;
 if(role==='tag')return <span style={{...style,padding:'0 8px',display:'inline-block'}}>Status</span>;
 if(role==='kbd')return <kbd style={{...style,padding:'0 6px'}}>A</kbd>;
 if(['action','control','chat-control','option-item'].includes(role))return <button type="button" style={style}>Action</button>;
 if(role==='dialog')return <dialog open aria-label="Dialog radius sample" style={{...style,position:'static',margin:0}}>Dialog</dialog>;
 return <section aria-label={`${role} radius sample`} style={style}>{role}</section>;
}
export function Buttons() {
 return <Target><div style={{display:'flex',gap:16,flexWrap:'wrap'}}>{['light','dark'].map(theme=><div key={theme} data-primary-theme={theme} style={{padding:16,background:theme==='dark'?'#1a1a1a':'#fff',color:theme==='dark'?'#eee':'#101010','--chatty-color-action-primary-bg':theme==='dark'?'#fcfcfc':'#101010','--chatty-color-action-primary-fg':theme==='dark'?'#121212':'#fff'}}><p>{theme} · Target</p><button data-admin-primary type="button" style={{font:'var(--chatty-type-weight-medium) var(--chatty-type-button-label-size)/var(--chatty-type-button-label-line) var(--chatty-type-family)',height:28,padding:'0 12px',borderRadius:'var(--chatty-radius-action)',border:0,background:'var(--chatty-color-action-primary-bg)',color:'var(--chatty-color-action-primary-fg)'}}>Assign to me <kbd style={{font:'inherit',borderRadius:'var(--chatty-radius-kbd)'}}>A</kbd></button><span data-admin-badge style={{display:'inline-flex',height:20,alignItems:'center',marginInlineStart:8,padding:'0 6px',fontSize:'var(--chatty-type-badge-label-size)',lineHeight:'var(--chatty-type-badge-label-line)',fontWeight:'var(--chatty-type-weight-medium)',borderRadius:'var(--chatty-radius-tag)',border:'1px solid currentColor'}}>Status</span></div>)}</div><p>BFS 4.1.1: nút chính đen/trắng; màu brand không đạt điều kiện. Giá trị 2.0, component chatty-ui.</p></Target>;
}

Cột chatty-ui component (2.0 values) là lựa chọn Target theo thiết kế được duyệt; Source chứng minh Element hiện tại. Avatar ở User menu (5) và Conversation row (8) dùng chatty-ui custom theo thiết kế được duyệt.

Import / element

InboxSidebar

Component / element Import / file Scope root
InboxSidebar import InboxSidebar from '@assets/components/Sidebar/InboxSidebar.jsx'; class inbox-sidebar-layout

AppFullLayout

Component / element Import / file Scope root
AppFullLayout import AppFullLayout from '@assets/layouts/FullLayout/AppFullLayout.js'; Polaris Frame của web app

InboxDesktopLayout

Component / element Import / file Scope root
InboxDesktopLayout import InboxDesktopLayout from '@assets/pages/InboxManagement/Parts/InboxDesktopLayout.js'; class Avada-Faqs_Inbox-Desktop

Anatomy

InboxSidebar

Part Element chatty-ui component (2.0 values)
1 Inbox nav — cột view bên trái (All, Your inbox, Unassigned, Chatty AI, kênh), có số đếm. Target: chatty-ui custom — view tree, counts
2 Store logo — Target; hôm nay đầu Inbox nav chỉ có tiêu đề Inbox và Nav toggle. Target: chatty-ui custom — logo store, không dùng initials
3 Global search — Target; hôm nay chỉ có ô tìm trong Conversation list. Target: chatty-ui custom — icon Polaris Search
16 Nav rail — Inbox nav ở trạng thái thu gọn: cột icon hẹp, rộng bằng SIDEBAR_WIDTH_ICON. Gorgias: rail icon bên trái. Front: left sidebar thu gọn được. Target: chatty-ui custom — rail với icon Polaris
17 Rail shortcut — Retired: views moved to 30 Inbox views. Target: Retired: views moved to 30 Inbox views
23 Helpdesk shortcut — hôm nay là nút Open in Helpdesk ở chân Inbox nav khi shop bật Helpdesk. Target embedded đặt shortcut ngay trên avatar; standalone dùng App nav item Helpdesk. Target: chatty-ui custom — icon Polaris ClipboardChecklist
30 Inbox views — nhóm view của Inbox; hôm nay nằm trong Inbox nav. Cây con khi mở App sidebar và chỉ hiện trong View switcher khi thu thành rail là Target. Target: chatty-ui custom — tree và counts
19 Nav toggle — nút thu gọn và mở rộng Inbox nav, trạng thái được nhớ. Gorgias: nút ở rail. Front: nút ở left sidebar. Target: chatty-ui custom — icon Polaris LayoutSidebarLeft

AppFullLayout

Part Element chatty-ui component (2.0 values)
4 Shop switcher — danh sách shop của member để chuyển shop, dòng đang mở có dấu check. Hôm nay nằm trong menu avatar của Polaris TopBar. Target: chatty-ui custom — logo và check trong shop menu
5 User menu — avatar member, trạng thái Away mode, My account, Log out. Hôm nay là menu avatar của Polaris TopBar. Gorgias và Front: avatar member nằm trong nav dọc. Target: chatty-ui custom — chatty-avatar 28px
28 App sidebar — nav chính của web app, hôm nay là Polaris Navigation. Đầu có Store logo, Global search, Nav toggle và User menu ở đáy; mặc định mở ở trang app, thu thành Nav rail khi vào Inbox là Target. Embedded dùng app nav của Shopify. Target: chatty-ui custom; s-app-nav qua App Bridge chỉ embedded
29 App nav item — một mục nav của app, ví dụ Contacts. Danh sách Dashboard, Inbox, Helpdesk, Contacts, FAQs, Chatbox, AI agent, Proactive chat, Analytics, Subscription, Settings và màu brand cho mục đang chọn thuộc Target. Target: chatty-ui custom — Polaris React icons như AppFullLayout
31 Page area — thân trang app ngoài Inbox, bên phải App sidebar; hôm nay nội dung nằm trong Polaris Frame. Tiêu đề trang ở đầu và title bar của Shopify khi embedded theo Target. Target: s-page (ngoài Inbox)

InboxDesktopLayout

Part Element chatty-ui component (2.0 values)
6 Conversation list — pane danh sách hội thoại của view đang chọn. Gorgias: ticket list. Front: conversation list. Target: chatty-ui custom — virtualized list, keyboard
7 List header — đầu Conversation list: tìm kiếm, lọc, chọn nhiều. Gorgias: view header. Front: list header. Target: chatty-ui custom — filter pills và menus
18 View switcher — Target; hôm nay List header chỉ có thanh lọc. Target: chatty-ui custom — title, count; Popover + Menu chưa có bản Inbox (Target)
8 Conversation row — một hàng hội thoại trong list, cao bằng ROW_HEIGHT, hai dòng: tên và giờ, rồi tin nhắn cuối. Gorgias: ticket row. Front: conversation item. Target: chatty-ui custom — chatty-avatar 36px và overlays
20 Channel badge — icon kênh nhỏ ở góc dưới phải avatar của Conversation row. Gorgias: channel icon trên ticket row. Target: chatty-ui custom — channel overlay
21 Online dot — chấm xanh ở góc dưới trái avatar khi khách đang online. Target: chatty-ui custom — presence overlay
22 State glyph — hôm nay là AI badge ở góc trên phải avatar; vị trí và dấu theo AI Processing, AI Handover, Your inbox là Target. Gorgias: màu của channel icon. Target: chatty-ui custom — chatty-ui state icons
9 Workspace — phần bên phải list, gồm Thread pane và Details panel. Gorgias: ticket view. Front: conversation view. Target: chatty-ui custom — layout
10 Thread header — đầu Thread pane: tên khách, kênh, giao cho ai, Resolve. Gorgias: ticket header. Front: conversation header. Target: chatty-ui custom — Status badge dùng chatty-badge (Target)
32 Primary action — nút chính trên Thread header; hôm nay có Resolve hoặc Reopen. Một nút đổi theo trạng thái, gồm Assign to me khi handover và không có khi AI đang trả lời (Join bar là nút chính), là Target. Target: chatty-button primary
33 Language bar — thanh dịch tin đến, hôm nay có nhãn Detected language. Đặt ngay dưới Thread header khi ngôn ngữ khách khác agent, có nút dịch sang ngôn ngữ agent và thay Translate trên header là Target. Target: chatty-ui custom — strip 36px; s-banner không phù hợp
11 Thread — dòng tin nhắn của khách, AI và nhân viên. Gorgias: ticket messages. Front: message thread. Target: chatty-ui custom — chat parts theo guide roles
12 Join bar — thanh thay Composer khi AI đang trả lời, nút Join để nhân viên nhận hội thoại. Gorgias và Front: không có tên riêng. Target: chatty-ui custom — strip và text link
13 Composer — ô soạn trả lời ở đáy Thread pane. Gorgias: reply editor. Front: composer. Target: chatty-ui custom — Send dùng chatty-button primary
14 Details panel — pane thông tin khách bên phải. Gorgias: customer sidebar. Front: contact details plugin. Target: chatty-ui custom — layout và drawer
15 Details section — một khối trong Details panel: đơn hàng, tag, ghi chú. Gorgias: sidebar widget. Front: plugin section. Target: chatty-ui custom — order badges dùng chatty-badge
24 Customize mode — Target; mở từ Customize details trong ⋮ của Thread header hoặc link Customize sections cuối panel, Done để thoát; hôm nay thứ tự Details section cố định. Target: chatty-ui custom — Done dùng chatty-button primary
25 Drag handle — Target; hôm nay chưa có điều khiển kéo Details section. Target: chatty-ui custom — sortable handle
26 Visibility toggle — Target; hôm nay chưa có điều khiển ẩn Details section. Target: chatty-ui custom — eye control
27 Pinned sections — hôm nay Email Subject, Hand-off, Profile (gồm Verified), Assignee ở đầu theo thứ tự cố định. Target giữ Email Subject, Hand-off, Profile ở Details; Assignee chỉ là chip trên Thread header. Target: chatty-ui custom — Details sections

Placement / order

InboxSidebar

Context Order
Desktop Inbox nav trước, rồi vùng nội dung chứa lưới Inbox.

AppFullLayout

Context Order
Web app, PWA Top bar nằm trên mọi trang, kể cả Inbox.

InboxDesktopLayout

Context Order
Desktop Lưới năm cột: Conversation list, drag bar, Thread pane, drag bar, Details panel.
Thread pane Thread header, Thread, rồi Join bar hoặc Composer.

Props

InboxSidebar

Prop Type Values Default Notes
children node Lưới Inbox Caller Hiện bên phải Inbox nav.
isPreviewPage boolean true hoặc false Caller Truyền xuống InboxSidebarContent.

AppFullLayout

Prop Type Values Default Notes
children node Trang đang mở Bắt buộc Nằm dưới Top bar.

InboxDesktopLayout

Prop Type Values Default Notes
widthCol string Chuỗi grid-template-columns Caller Độ rộng cột đã kéo, lưu theo session.
isBlank boolean true khi chưa có hội thoại Caller Đổi lưới sang bản không có Details panel.
isMixedTable boolean true ở bảng Inbox + Helpdesk Caller Chỉ còn Conversation list toàn chiều rộng.

Sizes

InboxSidebar

Size Height Padding Gap Radius Font role (px/rem) Hit target Breakpoint / mechanism
Mở Toàn chiều cao Not available Not available Not available Not available Not available Rộng SIDEBAR_WIDTH 220
Thu gọn Toàn chiều cao Not available Not available Not available Not available Not available Rộng SIDEBAR_WIDTH_ICON 48
Khe giữa pane Not available Not available --inbox-pane-gap 6px Not available Not available Not available Biến CSS trên layout

AppFullLayout

Size Height Padding Gap Radius Font role (px/rem) Hit target Breakpoint / mechanism
Top bar Theo Polaris TopBar Theo Polaris Not available Not available Theo Polaris Theo Polaris Ẩn khi embedded hoặc fullscreen mobile

InboxDesktopLayout

Size Height Padding Gap Radius Font role (px/rem) Hit target Breakpoint / mechanism
Lưới mặc định Not available Not available Drag bar 6px giữa các pane Not available Not available Not available grid-template-columns: 2fr 6px 6fr 6px 2fr
Khe trên đỉnh Not available Not available Margin trên 6px qua --inbox-pane-gap Not available Not available Not available Biến CSS
Thread pane Not available Not available Not available 16px Not available Not available Card riêng có border 1px
Thread header Theo nội dung 8px 12px Not available Not available Not available Not available Sticky trên đỉnh Thread pane
Details panel Not available Not available Not available 16px 16px 0 0 Not available Not available Card riêng có border 1px

Tokens

InboxSidebar

Part Token Light Dark
Khe giữa pane --inbox-pane-gap 6px No Dark skin

AppFullLayout

Part Token Light Dark
Top bar Polaris TopBar Theo Polaris theme No Dark skin

InboxDesktopLayout

Part Token Light Dark
Viền pane --p-color-border Theo Polaris theme No Dark skin
Nền Conversation list Not available #fff No Dark skin
Divider dưới Thread header Not available #e3e3e3 No Dark skin

States

InboxSidebar

State Trigger Visual change (values) ARIA/attribute
Thu gọn Sidebar store đóng Class sidebar--collapsed, rộng về rail icon Not available

AppFullLayout

State Trigger Visual change (values) ARIA/attribute
Away mode Bật Toggle trong user menu Avatar của Top bar mất trạng thái active Toggle của Polaris

InboxDesktopLayout

State Trigger Visual change (values) ARIA/attribute
Chưa chọn isBlank Lưới không có Details panel Not available
Details thu gọn Details panel collapse Class --collapse trên Details panel Not available

Behaviour

InboxSidebar

Interaction Result
Mở / thu gọn Độ rộng chuyển có transition, nội dung mờ trước khi thu.

AppFullLayout

Interaction Result
Bật/tắt Away mode Cập nhật Away mode của member đang đăng nhập.

InboxDesktopLayout

Interaction Result
Kéo drag bar Đổi độ rộng cột hai bên, lưu theo session.

Copy

InboxSidebar

String i18n key Where
Not available Not available Layout không sở hữu chuỗi; nhãn view thuộc danh sách nav.

AppFullLayout

String i18n key Where
Away mode Không có i18n key Nhãn Toggle trong user menu

InboxDesktopLayout

String i18n key Where
Joining stops the AI and assigns this conversation to you. t literal Join bar

Source

InboxSidebar

File Evidence
Inbox nav và layout bọc màn Inbox.
Biến --inbox-pane-gap.

AppFullLayout

File Evidence
TopBar và user menu có Away mode.

InboxDesktopLayout

File Evidence
Lưới Conversation list, Thread pane, Details panel.
Cột lưới, drag bar, viền và radius pane.
Thread header, Thread, Join bar, Composer.

Do / Don't

Accessibility

Surface Role / name Keyboard / focus Live region Contrast pair / ratio
Admin Các pane là div, chưa có landmark hay aria-label theo vùng. Drag bar chỉ kéo bằng chuột, không focus được. Không có live region ở cấp layout. Không đo: viền pane theo Polaris theme

Target

Inbox standalone và embedded dùng thuần chatty-ui, Polaris 2.0 chỉ là nguồn giá trị. Source hiện tại vẫn bọc var(--p-*); gỡ lớp bọc là phase 1b và phải xong trước khi chuyển component. Theo BFS 4.1.1, nút chính giữ giá trị đen/trắng 2.0; đổi sang màu brand sẽ không đạt điều kiện này. Icon giữ quy tắc commerce, filter/sort dùng path Polaris; không cần component Polaris.

Layout tokens

Kích thước và avatar Target theo thiết kế được duyệt. Source chỉ chứng minh owner hiện tại, không phải số đo đã ship.

Token Value Notes
--chatty-layout-rail 48px Target: Rail width
Pane gap 8px Target: Khoảng cách giữa các pane
Divider 1px — --chatty-color-border Target: Vạch trong pane
Header height 56px Target: List header và Thread header
Inset 16px Target: Mép chữ trong pane
Conversation row 64px; Avatar 36px Target: Avatar custom theo thiết kế được duyệt
Standalone 1440 48 / 320 / 728 / 320px Target: Rail / List / Thread / Details
Standalone 1280 48 / 312 / 608 / 288px Target: Rail / List / Thread / Details
Embedded 1440 — app frame 1226px 48 / 320 / 834px Target: Rail / List / Thread; Details drawer
Embedded 1280 — app frame 1066px 48 / 312 / 682px Target: Rail / List / Thread; Details drawer

Details sections

Bảng này đặt tên chuẩn và cấu hình Target theo mockup thiết kế Inbox. Key chỉ là key bố cục trong mockup, chưa phải field lưu trên member; các section cố định chưa có key trong mockup. Assignee giữ dòng để đối chiếu prod, nhưng Target chuyển lên Thread header và bỏ block trong Details. Cột Source chứng minh component hôm nay, không chứng minh API tùy chỉnh đã có. Khi panel gập hoặc hội thoại không khả dụng, nội dung section không hiện. Bỏ tiêu đề nhóm Shopping activity và More info là Target.

Name Key Visibility Default collapsed (Target) Pinned (Target) Current component Prod label
Email Subject Not available Có emailSubject Không Có ConversationDetail (inline) Email Subject
Hand-off Not available Có handoffContext Không Có HandoffCard Hand-off
Profile (gồm Verified) Not available Khi nội dung Details panel khả dụng; Verified theo danh tính đã xác minh Không Có Profile → ProfileContent → VerifiedBadge Không có tiêu đề Profile
Assignee Not available Hôm nay trong Details; Target chỉ còn chip trên Thread header Không áp dụng — chuyển lên Thread header Không — chuyển lên Thread header Assignee Assignee
Visitor device device Khi nội dung Details panel khả dụng Không Không VisitorDevice Visitor device
Recent orders orders Không phải CS mode hay hội thoại gắn app tag Không Không Orders Recent orders
17Track track Khách có shipment; hiện tại cần advanced tracking, customerId; ẩn khi fetch xong không có tracking Không Không TrackingBlock 17Track
Browsed pages pages Khi nội dung Details panel khả dụng Có Không BrowsedPages Browsed pages
Tags tags Khi nội dung Details panel khả dụng Không Không Tags Tags
Participants part Target: chỉ chat email; hôm nay component kiểm tra có email Không Không ParticipantEmails Participants
Checklist check Khi nội dung Details panel khả dụng Không Không Note Checklist
Related conversation related Khi nội dung Details panel khả dụng Không Không RelatedConversations Related conversation
Joy: Reward & Loyalty Program joy Shop bật Joy và có customerId; không phải hội thoại gắn app tag Không Không JoyCustomerBlock Joy: Reward & Loyalty Program
Satisfaction survey survey Khi nội dung Details panel khả dụng; trạng thái khảo sát quyết định nội dung Không Không SatisfactionSurvey Satisfaction survey
Custom attributes attrs Khi nội dung Details panel khả dụng Có (hôm nay mở) Không CustomAttribute Custom attributes

Customization controls

Customize mode là trạng thái chỉnh bố cục; Customize details là mục trong ⋮ của Thread header, Customize sections là link cuối panel để mở trạng thái đó; Drag handle đổi thứ tự; Visibility toggle ẩn hoặc hiện section; Reset to default khôi phục bố cục; N hidden đếm section bị ẩn. Tất cả là Target, hôm nay chưa có control tương ứng.