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.
App layout map
Embedded inbox map
Mobile conversation list map
Mobile thread map
Ảnh mobile có khổ gốc 390px, co xuống khi khung hẹp hơn.
Your inbox and Customize mode map
Ả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
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ướiInboxDesktopLayoutchia 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- |
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 -. |
| Admin | Inbox nav thu gọn | Inbox nav còn rail icon. |
Live preview
Admin
Target: phạm vi Inbox dùng chatty-ui; khung App Bridge embedded do Shopify vẽ.
Show code
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>;
}Target: Button 28px, Badge 20px và primary light/dark từ token chatty-ui.
Show code
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/ |
class inbox- |
AppFullLayout
| Component / element | Import / file | Scope root |
|---|---|---|
AppFullLayout |
import AppFullLayout from '@assets/ |
Polaris Frame của web app |
InboxDesktopLayout
| Component / element | Import / file | Scope root |
|---|---|---|
InboxDesktopLayout |
import InboxDesktopLayout from '@assets/ |
class Avada- |
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- |
| 2 | Store logo — Target; hôm nay đầu Inbox nav chỉ có tiêu đề Inbox và Nav toggle. | Target: chatty- |
| 3 | Global search — Target; hôm nay chỉ có ô tìm trong Conversation list. | Target: chatty- |
| 16 | Nav rail — Inbox nav ở trạng thái thu gọn: cột icon hẹp, rộng bằng SIDEBAR_. Gorgias: rail icon bên trái. Front: left sidebar thu gọn được. |
Target: chatty- |
| 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- |
| 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- |
| 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- |
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- |
| 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- |
| 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- |
| 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- |
| 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- |
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- |
| 7 | List header — đầu Conversation list: tìm kiếm, lọc, chọn nhiều. Gorgias: view header. Front: list header. | Target: chatty- |
| 18 | View switcher — Target; hôm nay List header chỉ có thanh lọc. | Target: chatty- |
| 8 | Conversation row — một hàng hội thoại trong list, cao bằng ROW_ |
Target: chatty- |
| 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- |
| 21 | Online dot — chấm xanh ở góc dưới trái avatar khi khách đang online. | Target: chatty- |
| 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- |
| 9 | Workspace — phần bên phải list, gồm Thread pane và Details panel. Gorgias: ticket view. Front: conversation view. | Target: chatty- |
| 10 | Thread header — đầu Thread pane: tên khách, kênh, giao cho ai, Resolve. Gorgias: ticket header. Front: conversation header. | Target: chatty- |
| 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- |
| 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- |
| 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- |
| 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- |
| 13 | Composer — ô soạn trả lời ở đáy Thread pane. Gorgias: reply editor. Front: composer. | Target: chatty- |
| 14 | Details panel — pane thông tin khách bên phải. Gorgias: customer sidebar. Front: contact details plugin. | Target: chatty- |
| 15 | Details section — một khối trong Details panel: đơn hàng, tag, ghi chú. Gorgias: sidebar widget. Front: plugin section. | Target: chatty- |
| 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- |
| 25 | Drag handle — Target; hôm nay chưa có điều khiển kéo Details section. | Target: chatty- |
| 26 | Visibility toggle — Target; hôm nay chưa có điều khiển ẩn Details section. | Target: chatty- |
| 27 | Pinned sections — hôm nay Email Subject, Hand- |
Target: chatty- |
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- |
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_ 220 |
| Thu gọn | Toàn chiều cao | Not available | Not available | Not available | Not available | Not available | Rộng SIDEBAR_ 48 |
| Khe giữa pane | Not available | Not available | - 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- |
| Khe trên đỉnh | Not available | Not available | Margin trên 6px qua - |
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 | - |
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 | - |
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-, 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 - 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/ |
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 -. |
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- |
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 |
|---|---|---|
| - |
48px | Target: Rail width |
| Pane gap | 8px | Target: Khoảng cách giữa các pane |
| Divider | 1px — - |
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- |
Not available | Có handoffContext | Không | Có | HandoffCard | Hand- |
| 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.






