@gemboss/ui 0.66.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,75 @@
2
2
 
3
3
  Versions up to 0.9.0 are described in the README, each in the section that introduced it.
4
4
 
5
+ ## 0.67.0 (09/11/2026)
6
+
7
+ **A question in the viewer's language, all of it** (09/11/2026; GemCommunity asks in en / vi / zh, gemcommunity #451). `ConfirmDialog`
8
+ `retryLabel`: the refused button's words (default "Try again"), and `closeLabel`: the ✕'s name (default "Close", passed to the
9
+ kit's Dialog). Without them nothing changes. confirm-buttons.ts takes `retryLabel` too (not shown once a refusal is final:
10
+ `canRetry={false}` keeps the action's words, off).
11
+
12
+ **The Items control opens an item picked elsewhere** (09/11/2026, Items editor PR 2: the canvas ↔ row link).
13
+ - `ItemsField` `open` (`{ index, field?, seq }`): that item's row opens alone and comes into view, and the field that shows the part picked
14
+ is marked (`data-canvas-focus`, outlined in editor-repeater.css), the focus left where the seller is. Read once per `seq`: moving or
15
+ removing rows afterwards opens no other row. `index` and `onActive` speak the STORED list's places (a row the host holds unsaved sits
16
+ among the shown ones and is heard as null).
17
+ - `ItemsField` `keepDraftsAs`: unsaved rows kept by name, so they outlive the control (a panel drawn again) and show in every control of
18
+ the same list.
19
+ - `RepeaterList` `openRequest` (`{ key, seq }`) opens a row from outside; with `single`, `onActive` now hears each row opened by hand or
20
+ by itself (added, duplicated) and the open one folded (null), inline as in a popover, so a host shows that item on its page.
21
+
22
+ **The Items control: every list setting, one control** (09/11/2026; Chris "one shared control set", fast and handy, clicks before typing).
23
+ - `ItemsField` (`@gemboss/ui/editor`), on `RepeaterList` + `useKeyedRows`: each item one line (its picture or its words, a ⋯ with Move
24
+ up / Move down / Duplicate / Remove), its grip drags it, Alt+↑ / ↓ moves it; a click opens that item's fields in place, one item at a
25
+ time, drawn by `FieldRows` so each label sits where the label-side table says; "+ Add <item>" puts in the list's `starter` row, opens it
26
+ and focuses its first field; `min` / `max` turn Remove / Add and Duplicate off, each saying why; `rowHolds` keeps a row the host cannot
27
+ save yet as a draft, unsaved. ONE write per change: the whole list. Remove asks nothing (every host draws it with an Undo).
28
+ - FieldSpec `repeater` is drawn with it (FieldControl): it was boxes per row, keyed by index, no reorder, a write per key typed and an
29
+ object drawn as "[object Object]". New on the spec: `fields` (a row's fields, any kind a form draws; `from`: older keys a value is
30
+ stored under), `noun`, `min`, `max`, `starter`, `title`, `thumb`. `item` stays, and without `starter` "+ Add" still puts in every key
31
+ empty, so a list's stored rows keep their shape.
32
+ - `editor/items.ts` (`@gemboss/ui/editor/items`, no React): a row read and written as stored. One field's write keeps every other key, a
33
+ picture's alt text (`{ url, altText }`), an older key's name, a string row as a string; emptying a field the row does not hold changes
34
+ nothing; a value its control cannot show is kept and named, never drawn as words.
35
+ - `RepeaterList` `single` (one row open at a time), `canRemove` / `removeWhy`; `FieldRows` `shopId` (an app's kinds in every field of a run).
36
+ - A text box's or a text area's count ("2/4", `maxLength`) sits under its box, at the box's end (`.gemboss-ei-count`), wherever it is drawn:
37
+ in a row it ran across the field like a note, so it stood under the label. A number's bounds and a field's help still run across.
38
+
39
+ **A SecretField box is never filled with a saved login** (09/11/2026; GemPersonalizer's Gearment keys, #7102). Its box says
40
+ `autocomplete="new-password"`, not `"off"`: Chrome ignores "off" on a password box and can fill the seller's saved admin.gemboss.ai
41
+ password into it, which a save then stores as a partner's key and sends to that partner (the admin's own gate,
42
+ a-secret-field-is-not-a-login-form.test.ts, measured it 07/10/2026). "new-password" is the value Chrome never fills; it may offer to
43
+ suggest a password, a nuisance, not a leak. Every SecretField takes it (no prop sets it back), and `password-autocomplete.test.tsx` holds
44
+ it: each state that draws the box renders "new-password", and a scan of packages/ui fails on any password box (a literal
45
+ `type="password"`, a `type={…}` that can be one, or an HTML string) that says "off". Markup change: a host that read the box's
46
+ `autocomplete` as "off" reads "new-password".
47
+
48
+ **A text box names the phone's keypad** (09/11/2026; one control set, GemPersonalizer's orders tab). `FieldSpec` text `inputMode`
49
+ (`decimal` | `numeric`): the keypad for a value kept as typed text (a cost typed as "12.50"); a `number` field keeps its own. Text
50
+ `verbatim`: an ID typed as written elsewhere (Gearment's store ID) is not spell-checked, corrected, capitalised or filled from the
51
+ browser's remembered entries, as the raw box it replaces was not (unlike `code`, it keeps the text face and its label beside it).
52
+ `Checkbox` `labelHidden`: its words read only, the box alone in the middle of a 44px square (`.gemboss-ei-check--bare`, editor.css,
53
+ which travels with the Checkbox); a tick on a print file's tile was 26px wide under a finger. A worded checkbox is unchanged (a min-width on it would
54
+ undo its min-content floor in a row and split its words). The orders tab's Gearment keys (SecretField), routing lists, sample state,
55
+ partner settings, mockup cost box and print-file tick are the kit's: the admin's one-control-set list 46 → 40 files.
56
+
57
+ **`Board` `autoMore`: a server-paged column reads on as it is scrolled** (09/11/2026; Chris on content-radar's Ideas board: "scroll
58
+ xuống dưới là infinite loop luôn chứ nhỉ"). `<Board autoMore …>` (or `autoMore={{ max, margin }}`): when a column's `ui-more` row comes
59
+ within 400px of the bottom of the scrolling area (the nearest scrolling ancestor, else the viewport) the row's own control is pressed, at
60
+ most 4 times a column, then the button is left for the reader, so what is under the board stays reachable. Only a press handled in place
61
+ counts: `onLoadMore`'s button or a router link (`linkAs` + `scroll: false`); a plain `<a>` (its navigation is cancelled, it would reload the
62
+ page at the top again and again) and kit-plain's `fetchMore` link (it moves focus and speaks) are left to the reader. One press in flight for the
63
+ whole document (a router keeps only the last of several navigations, so three columns ending together and pressed at once loaded one:
64
+ content-radar's Ideas, 09/11/2026): a press is over when its cards grow, its navigation has landed, its button is back after "Loading…",
65
+ its column is gone, or after 20 s (link) / 8 s (button); a press that added nothing rests that column 8 s while the others go on. A row the
66
+ reader has passed counts as reached while the reader is still beside the board, so a short column whose end went by while another page
67
+ loaded still reads on; below the whole board nothing loads; a column scrolled out sideways loads when shown. The column with the fewest
68
+ automatic loads goes first. A
69
+ column drawn anew with fewer cards (a new filter) starts over. Its client half is
70
+ an island the board draws inside itself (board-auto-more.tsx, `data-gb-auto-more`), so the board stays plain and needs no id.
71
+ board-auto-more.test.ts in Chromium (test:ui-browser): both ways, 1280 and 390, max, the plain link, fetchMore, a filter, a failed load, a
72
+ scrolling panel, negative controls without `autoMore`.
73
+
5
74
  ## 0.66.0 (09/11/2026)
6
75
 
7
76
  **The icon set for surfaces without React: `@gemboss/ui/icons-plain.js`** (09/11/2026; GemNews' side rail and widget panel are plain
@@ -18,6 +87,38 @@ JavaScript, and a hand-copied path drifts). A classic script that adds to `globa
18
87
  hourglass), `target`.
19
88
  - Weight ceiling: `packages/ui/src/icons-plain.js` in weight-budget.json.
20
89
 
90
+ **A CSS value that runs long is read whole: the text field's `code`** (09/11/2026; §9.1, measured on prod in Theme editor › Global
91
+ styles at 1366: Mono font, Subtle and Strong border were 174px one-line boxes beside their labels in a 330px panel, the stack 172px and
92
+ the strong border 270px out of sight).
93
+ - `FieldSpec` text `code?: boolean`: a line of code or a CSS value that runs long (a condition's expression, a font stack, a border, a
94
+ shadow), the one `code` (the element panel's "Show when" expression, which drew a one-line monospace box, is drawn by it too). `controlOf` names it the `code`
95
+ control, so its label is above (LABEL_SIDE, unchanged) and every surface that declares such a field gets it.
96
+ - `FieldControl` draws it as `CodeLine`: one line of text in a monospace box across the field that wraps and grows with it
97
+ (`textarea.gemboss-ei-code-line` in `editor-grow.css`, its own entry since editor.css had no room; `field-sizing: content`; where a browser lacks that, the component sets the height, again when the
98
+ box's width changes). Enter commits (it leaves the box, as a text box's Enter does), not the Enter that ends an input method's
99
+ composition; a line break typed or pasted becomes a space, the caret staying where it was. No spell check, no autocorrect. Not with
100
+ `prefix` or `inputType` (not drawn with `code`).
101
+ - Chromium test `editor-code-line-browser.test.tsx`: a value over 420px all in sight at 280 / 330 / 400 and a phone's 390, the
102
+ fallback without `field-sizing`, Enter, paste and the caret, an input method's Enter, a short value one line; the same value in a
103
+ text box beside its label (as on main) as its negative control.
104
+
105
+ **The Items control: every list setting, one control** (09/11/2026; Chris "one shared control set", fast and handy, clicks before typing).
106
+ - `ItemsField` (`@gemboss/ui/editor`), on `RepeaterList` + `useKeyedRows`: each item one line (its picture or its words, a ⋯ with Move
107
+ up / Move down / Duplicate / Remove), its grip drags it, Alt+↑ / ↓ moves it; a click opens that item's fields in place, one item at a
108
+ time, drawn by `FieldRows` so each label sits where the label-side table says; "+ Add <item>" puts in the list's `starter` row, opens it
109
+ and focuses its first field; `min` / `max` turn Remove / Add and Duplicate off, each saying why; `rowHolds` keeps a row the host cannot
110
+ save yet as a draft, unsaved. ONE write per change: the whole list. Remove asks nothing (every host draws it with an Undo).
111
+ - FieldSpec `repeater` is drawn with it (FieldControl): it was boxes per row, keyed by index, no reorder, a write per key typed and an
112
+ object drawn as "[object Object]". New on the spec: `fields` (a row's fields, any kind a form draws; `from`: older keys a value is
113
+ stored under), `noun`, `min`, `max`, `starter`, `title`, `thumb`. `item` stays, and without `starter` "+ Add" still puts in every key
114
+ empty, so a list's stored rows keep their shape.
115
+ - `editor/items.ts` (`@gemboss/ui/editor/items`, no React): a row read and written as stored. One field's write keeps every other key, a
116
+ picture's alt text (`{ url, altText }`), an older key's name, a string row as a string; emptying a field the row does not hold changes
117
+ nothing; a value its control cannot show is kept and named, never drawn as words.
118
+ - `RepeaterList` `single` (one row open at a time), `canRemove` / `removeWhy`; `FieldRows` `shopId` (an app's kinds in every field of a run).
119
+ - A text box's or a text area's count ("2/4", `maxLength`) sits under its box, at the box's end (`.gemboss-ei-count`), wherever it is drawn:
120
+ in a row it ran across the field like a note, so it stood under the label. A number's bounds and a field's help still run across.
121
+
21
122
  **A colour row is ONE field, and its hex is never cut** (09/11/2026; §9.1, measured on prod in Theme editor › Global styles at 1366:
22
123
  a 330px panel, the label-beside row's 174px control column left the hex box 62px between the swatch and a 64px % box, and 8 of 9 hex
23
124
  values were cut, "#6b7280" scrollWidth 80 in 60).
@@ -42,6 +143,79 @@ values were cut, "#6b7280" scrollWidth 80 in 60).
42
143
  Sans) and a wide one (Verdana / DejaVu Sans), so macOS and CI measure the same widths; main's markup and CSS, and main's insertion
43
144
  (on "#DDDDDD", the widest hex), as its negative controls.
44
145
 
146
+ **What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
147
+ element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
148
+ Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
149
+ kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
150
+ - `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
151
+ Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
152
+ target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
153
+ - `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
154
+ shop · Shared library). Chips draw none.
155
+ - `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
156
+ One `code` since its merge with the CSS-value line (below): drawn as `CodeLine`, which wraps and grows; no one-line monospace box.
157
+ - `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
158
+ (`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
159
+ - A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
160
+ its floor; each step is a draft like a key typed, written when the box is left.
161
+ - `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
162
+ - A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
163
+ typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
164
+
165
+ **ChoiceCards: a card shown but not choosable** (09/11/2026; one control set, the plugin kernel's Uninstall dialog: Erase my data stays
166
+ in sight for a member who is not the store's Owner, off, its line saying why). `ChoiceCard` `disabled`: its radio off, the card faded
167
+ (`data-disabled`, the group's own look); the other cards stay choosable. The plugin kernel's last Polaris and hand-built controls (Show in
168
+ the menu, a widget's Theme, a library row's name and live tick, each theme's live look, Uninstall's Keep / Erase and its tick, a review
169
+ card's tick) are the kit's now: the admin's one-control-set list 46 → 40 files.
170
+
171
+ **What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
172
+ element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
173
+ Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
174
+ kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
175
+ - `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
176
+ Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
177
+ target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
178
+ - `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
179
+ shop · Shared library). Chips draw none.
180
+ - `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
181
+ - `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
182
+ (`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
183
+ - A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
184
+ its floor; each step is a draft like a key typed, written when the box is left.
185
+ - `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
186
+ - A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
187
+ typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
188
+
189
+ **What the Studio's own controls needed** (09/11/2026; one control set: the Studio's moments, run-funnel checks, holiday skin, media import,
190
+ canvas prompt bars, go-live link, cart-canvas switch and insert menu drew Polaris fields or raw boxes of their own; the admin's one-control-set
191
+ list 46 → 38 files). Added once, here:
192
+ - `CopyField` (`@gemboss/ui`, its own entry `copy-field.css`): a value to take away. Its read-only box (focus selects it), Copy link (Copied
193
+ for two seconds, or "Copy it by hand" with the box selected when the browser refuses the clipboard) and the host's actions after it, one row.
194
+ - `Switch` (`@gemboss/ui/editor`, its own entry `editor-switch.css`): on / off in place where a field's On / Off does not fit (a part's switch
195
+ on a canvas tag). The plain kit's `.ui-switch` numbers for a host without kit-plain.css; 44px under a finger, at least 24px under a mouse.
196
+ - `SelectOption` `disabled`: a list's option shown and not pickable ("Removed from the library", "This page has no sections").
197
+ - `PickSearch` and `PickerSearch` exported from `@gemboss/ui/editor`: the pickers' own search box for a host's combobox (the insert menu).
198
+ `editor-insert.css` no longer sizes a bare `input.gemboss-editor-insert-search` (the box is PickSearch's).
199
+ - No change to `ChatComposer`: with no chips it is already one row, the box and Send on it (both canvas prompt bars draw it so).
200
+
201
+ **What the theme editor's last hand-built controls needed** (09/11/2026; one control set, Chris 08/11: "một bộ control dùng chung"). The
202
+ element panel's Style and Show when, the POD buy box's pickers and print area, a theme section's words, Layout style and Custom CSS, and
203
+ Global styles' menus, form set, Quick view and style pack drew their own `<select>` / `<input>` / `<textarea>` / radio cards; they are the
204
+ kit's now (the admin's one-control-set list: 53 → 46 files). Added once, here:
205
+ - `ChoiceCards` (`@gemboss/ui/editor`): one choice of a few where each needs its words and a picture to be told apart before it is picked.
206
+ Real radios in one group (`name`): Tab enters at the one picked, the arrow keys move the pick; each card is its radio's label, one 44px
207
+ target at every width; the picture before the words or after them (`pictureAt`). Its look is in editor.css (`.gemboss-ei-choice*`).
208
+ - `SelectOption` `group`: a list draws a heading (`<optgroup>`) for each run of choices naming the same group (an element's styles: This
209
+ shop · Shared library). Chips draw none.
210
+ - `FieldSpec` text `code`: a line of code (a condition's expression), monospace, not spell-checked, its label above (the table's `code`).
211
+ - `FieldControl` `note`: a line in sight under a select or a switch, inside its field (a row's note spans it), the control described by it
212
+ (`<id>-note`). `listId`: a `<datalist>` the host draws once for many text boxes (a menu's addresses).
213
+ - A number box steps with ↑ / ↓ as the browser's own number box does: by its `step` (1 by default), held to its bounds, an empty box from
214
+ its floor; each step is a draft like a key typed, written when the box is left.
215
+ - `describedBy` reaches On / Off and chips (on their group), as FieldControl's doc already said; `Seg` and `Segmented` take `describedBy`.
216
+ - A text or number box keeps what is typed when a host hands its draft back as the value (a host that shows each draft at once): a "0"
217
+ typed in a box held to 1 stays "0" until the box is left, then it is 1. Any other value from outside replaces the draft, as before.
218
+
45
219
  **`ListToolbar`: the row over a list** (09/11/2026; Chris 08/11: one control set, audit row 8). A search that grows to fill the row
46
220
  and, at its right, the list's choices as selects (filters, then sort), its view switch and what acts on the same list (`tools`). One
47
221
  row; on a phone the search keeps its line and the rest wraps under it. Built from the kit's own parts: the one text field
@@ -57,7 +231,6 @@ landed on a nav tab). `overflow: clip` cuts the same overflow without being a sc
57
231
  `embedded-editor-under-sticky-nav-browser.test.ts`, with `hidden` restored as its negative control.
58
232
 
59
233
 
60
-
61
234
  - `FieldFrame` / `PartsFrame` `labels` (`FrameClusterLabels`): a host's own name for a cluster where the kit's (Look · Layout · Visibility ·
62
235
  Code) would say the wrong thing; the plugin kernel's settings name theirs Look and Behavior (one control set 08/11/2026).
63
236
 
@@ -77,6 +250,17 @@ cannot load kit-plain.css, drew five of its own in its publish review).
77
250
  an 18px box in the kit's accent, the words at the host's size, faded and not-allowed while off), for a host without kit-plain.css; a kit
78
251
  test holds the two to the same numbers.
79
252
 
253
+ **A number box takes the decimal keypad, and reads a comma as its point** (09/11/2026; one control set: GemPersonalizer's print widths in
254
+ inches, its print box in percent and a size chart's measurements were Polaris number boxes and raw `inputmode=decimal` cells).
255
+ `FieldSpec` `number` takes `inputMode` (`decimal` | `numeric`), the text box's option: default `numeric`, which on an iPhone has no point,
256
+ so "12.5" could not be typed there; `decimal` opens digits and a point. Every kit number box reads a comma typed for its point as one: the
257
+ decimal keypad of a comma locale (vi, de) has a "," and no ".", and "31,25" read as no number left the box empty (a commit of ""). For each
258
+ key, the commit, the echo check and ↑ / ↓. Chromium cases in editor-field-control-browser.test.tsx, with the decimal keypad and without.
259
+ - A refused field is painted in the admin too: `.gemboss-field[aria-invalid="true"]` (and a field group holding one) moved from
260
+ kit-plain.css to gemboss-field.css, the field's own sheet. The admin loads no kit-plain.css, so a FieldControl given `invalid` (quiz's
261
+ page address, cookie-consent's answer id, GemPersonalizer's print numbers) set `aria-invalid` and drew a plain box. Plain pages load
262
+ both sheets, the field's first: the same look. The plain list and text area (`.ui-select`, `.ui-textarea`) keep theirs in kit-plain.css.
263
+
80
264
  **SecretField: a secret the seller gives** (09/11/2026; one control set: every admin surface that takes a token or a key drew its own
81
265
  password box, Polaris' or a raw input, each with its own words for "it is stored").
82
266
  - `SecretField` (`@gemboss/ui/editor`): the masked box (autocomplete off, no spell check, 1Password and LastPass told to stay out; a
@@ -2576,7 +2760,6 @@ Changed
2576
2760
  - The phone topbar with a switcher in it: under 360px the search's floor drops from 96 to 56px (the bar has no other
2577
2761
  room: ☰, mark, button, search, assistant, account). A bar without the switcher is unchanged.
2578
2762
 
2579
-
2580
2763
  ## 0.35.7 (15/10/2026)
2581
2764
 
2582
2765
  **The rail's scrollbar runs down the rail's edge.** The 12px side gutter was padding on `.icon-nav`, so the scroll box
package/README.md CHANGED
@@ -2137,10 +2137,14 @@ import { Avatar, Dialog, Leaderboard, Podium, SearchDialog, ThemeToggle, themeSc
2137
2137
  chriskoh26/gemboss-www, published on npm): the whole site kit (tokens from one `system.json`, header with the mega
2138
2138
  menu, footer, sections, the rules Claude Code follows in `AGENTS.md`, and a CLI that checks a site and reports gaps).
2139
2139
  Chris chose it on 24/10/2026 so GemPages, Gemians and every other GemCommerce website follow one kit. This layer stays
2140
- until the pages still on it (news.gemboss.ai, the community home) move over; do not adopt it on a new page.
2141
-
2142
- **Which layer.** A PUBLIC page (gemboss.ai, the docs, news, a product's home page before sign-in) uses this layer. An APP
2143
- surface (the admin, a portal behind sign-in, GemFeedback's board) keeps `Topbar` + `BrandLockup`. Chris 20/10/2026: "có gemboss
2140
+ until the pages still on it (the community home) move over; do not adopt it on a new page. **GemNews is not one of them**
2141
+ (Chris 09/11/2026: "đồng bộ style của gemnews và gemcommunity và theo gemboss ui"): the GemNews new tab and news.gemboss.ai
2142
+ are an APP surface, like GemCommunity's member pages, and follow `@gemboss/ui` (tokens, `theme-dark.css`, the plain kit,
2143
+ `icons-plain.js`), not `@gemboss/website-ui`.
2144
+
2145
+ **Which layer.** A PUBLIC page (gemboss.ai, the docs, a product's home page before sign-in) uses this layer. An APP
2146
+ surface (the admin, a portal behind sign-in, GemFeedback's board, GemCommunity's member pages, the GemNews new tab and
2147
+ news.gemboss.ai) keeps `Topbar` + `BrandLockup` and the rest of `@gemboss/ui`. Chris 20/10/2026: "có gemboss
2144
2148
  ui thì có gemboss website ui"; measured the same day, the public pages had drifted on the same detail: the logo name 18px on
2145
2149
  gemboss.ai and the docs, 16px on news, 13.3px on the community home; the bar 65 / 57 / 69 / 56px.
2146
2150
 
@@ -3558,6 +3562,7 @@ node packages/ui/scripts/collections-gate.mjs --url https://partner-radar.ops.ge
3558
3562
  |---|---|---|
3559
3563
  | A work list: items with an #ID, filters, a review queue, links people send each other (GemFactory board) | **Pages**, `ui-pager` with numbers, position in the URL (`?p=3`) | Back returns to the same place, a link opens the same page, the total is visible. Infinite scroll loses all three. |
3560
3564
  | One column of a Kanban (GemFactory), or a feed read top to bottom | **Load more**, `ui-more` | Nobody jumps to page 9 of one column or of a feed. |
3565
+ | The same, where the reader scans down a long column (content-radar Ideas) | **Load more** that loads itself: a server-paged `Board` with `autoMore` (09/11/2026) | The column reads on; after 4 automatic loads the button is back, so the footer and the next column stay reachable. Only loads handled in place (onLoadMore, a router link) are pressed. |
3561
3566
 
3562
3567
  `ui-pager`: `<a rel="prev">` · page links · `<span class="ui-pager__gap" aria-hidden="true">…</span>` · the current page as
3563
3568
  `<a aria-current="page">` (filled) · `<a rel="next">` · `<span class="ui-pager__range">201–250 of 655</span>` (pushed right).
@@ -8,7 +8,7 @@
8
8
  .cat-code summary{padding:10px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text-muted);border-top:1px solid var(--gemboss-divider);min-height:24px}
9
9
  .cat-code pre,.cat-api{margin:0;padding:12px 16px;overflow:auto;background:#0f1012;color:#e8e8e6;font-size:12px;line-height:1.5;border-radius:0}
10
10
  .cat-api{border-radius:12px;margin:0 0 16px}</style></head><body><div class="cat">
11
- <h1>@gemboss/ui 0.66.0 · Editor</h1>
11
+ <h1>@gemboss/ui 0.67.0 · Editor</h1>
12
12
  <p>Khung của mọi editor: <code>EditorFrame</code> (cột trái · khe kéo · preview · cột phải dock trên mép phải preview) và <code>EditorTopbar</code> (← · tiêu đề · cụm giữa · cụm phải · dòng trạng thái). Là đúng khung của theme / page / section editor trong admin. Gói chỉ vẽ KHUNG; chat, Configure, canvas, page picker, menu, Publish là của editor, đi vào bằng slot. Trang HTML thuần nạp <code>editor.css</code> + <code>editor-plain.js</code> rồi gọi <code>gembossUI.initEditorFrame()</code>: kéo khe (chuột, chạm, phím mũi tên / Home / End), đổi thiết bị, mở ⋯ và Publish ▾, ẩn cột trái, Chat | Preview trên điện thoại. <a href="index.html">← Catalog</a></p>
13
13
  <h2>React</h2><pre class="cat-api"><code>import &quot;@gemboss/ui/editor.css&quot;;
14
14
  import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs, EditorSaveState, DeviceToggle } from &quot;@gemboss/ui/editor&quot;;
@@ -27,7 +27,7 @@ body{margin:0;background:var(--gemboss-app-bg,#f1f1f1);color:var(--gemboss-text)
27
27
  @media (max-width:760px){.cat{grid-template-columns:1fr;padding:16px}.cat-nav{position:static;flex-direction:row;flex-wrap:wrap}}
28
28
  </style></head><body>
29
29
  <div class="cat"><nav class="cat-nav" aria-label="Mục"><a href="#tokens">Token</a><a href="#buttons">Nút</a><a href="#fields">Ô nhập</a><a href="#choice">Tab, nhóm nút, thẻ</a><a href="#surfaces">Thẻ, số liệu, bảng, trạng thái trống</a><a href="#report">Báo cáo</a><a href="#collections">Bảng, list, lưới, board</a><a href="#resizer">Thanh kéo giữa hai cột</a><a href="#modal">Hộp thoại, toast, menu (JS thuần)</a><a href="#sheet">Ngăn trượt cạnh phải</a><a href="#reader">Hộp đọc tài liệu</a><a href="#settings">Hộp cài đặt</a><a href="#switcher">Chuyển dịch vụ</a><a href="#shell">Khung app</a><a href="#nav">Chờ điều hướng</a><a href="#page">Bề rộng nội dung</a><a href="#portal">Cổng công khai: tab trên topbar, tìm kiếm, sáng / tối, người dẫn đầu</a><a href="#site">Trang công khai: thanh trên, logo cỡ site, nút, chân trang</a><a href="#auth">Đăng nhập</a><a href="#setup">Hướng dẫn thiết lập</a><a href="#chat">Thân chat</a><a href="#reactions">Reactions</a><a href="#team-chat">Chat đội</a><a href="#action-card">Thẻ hành động</a><a href="#assistant-engine">Trợ lý: chọn engine</a><a href="#assistant-bridge">Trợ lý: cầu nối trên máy (0.32.0)</a><a href="#assistant-chat">Trợ lý: khung chat (0.29.0)</a><a href="#assistant">Trợ lý: cột phiên</a><a href="#icons">Icon</a><a href="#editor">Editor</a></nav>
30
- <main><header class="cat-head"><h1>@gemboss/ui 0.66.0</h1><p>Ngôn ngữ thiết kế chung của các công cụ GemBoss. Markup dưới mỗi ví dụ là đúng thứ package render ra; bề mặt không dùng React (HTML tĩnh, Python) chép markup này và nạp <code>gemboss-ui.css</code>. Dựng từ gemboss <code>cafd55c395ce</code>.</p></header>
30
+ <main><header class="cat-head"><h1>@gemboss/ui 0.67.0</h1><p>Ngôn ngữ thiết kế chung của các công cụ GemBoss. Markup dưới mỗi ví dụ là đúng thứ package render ra; bề mặt không dùng React (HTML tĩnh, Python) chép markup này và nạp <code>gemboss-ui.css</code>. Dựng từ gemboss <code>3f53bf08d763</code>.</p></header>
31
31
  <section id="tokens"><h2>Token</h2><p>Đổi giao diện một bề mặt bằng cách đặt lại token, không viết đè class. Tên và giá trị đọc thẳng từ gemboss-ui.css.</p><div class="cat-swatches"><div class="cat-swatch"><i style="background:var(--gemboss-primary)"></i><code>--gemboss-primary</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-dark)"></i><code>--gemboss-primary-dark</code><span>#000000</span></div><div class="cat-swatch"><i style="background:var(--gemboss-primary-soft)"></i><code>--gemboss-primary-soft</code><span>#f2f3f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent)"></i><code>--gemboss-accent</code><span>#5661f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-strong)"></i><code>--gemboss-accent-strong</code><span>#3a44de</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-soft)"></i><code>--gemboss-accent-soft</code><span>#eef0fe</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-wash)"></i><code>--gemboss-accent-wash</code><span>#f7f8ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-tint)"></i><code>--gemboss-accent-tint</code><span>#dfe2ff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-accent-mid)"></i><code>--gemboss-accent-mid</code><span>#c9cffd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-strong)"></i><code>--gemboss-text-strong</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text)"></i><code>--gemboss-text</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-text-muted)"></i><code>--gemboss-text-muted</code><span>#686b71</span></div><div class="cat-swatch"><i style="background:var(--gemboss-surface)"></i><code>--gemboss-surface</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-canvas)"></i><code>--gemboss-canvas</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-preview-canvas)"></i><code>--gemboss-preview-canvas</code><span>#eceef1</span></div><div class="cat-swatch"><i style="background:var(--gemboss-rail-bg)"></i><code>--gemboss-rail-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-panel-bg)"></i><code>--gemboss-panel-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider)"></i><code>--gemboss-divider</code><span>#e5e7ea</span></div><div class="cat-swatch"><i style="background:var(--gemboss-divider-soft)"></i><code>--gemboss-divider-soft</code><span>#edeff2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-hover)"></i><code>--gemboss-hover</code><span>#eceef2</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-bg)"></i><code>--gemboss-active-bg</code><span>#f0f1f4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-active-fg)"></i><code>--gemboss-active-fg</code><span>#1b1c1e</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger)"></i><code>--gemboss-danger</code><span>#d72c0d</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-strong)"></i><code>--gemboss-danger-strong</code><span>#b42318</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-soft)"></i><code>--gemboss-danger-soft</code><span>#fff0e9</span></div><div class="cat-swatch"><i style="background:var(--gemboss-danger-border)"></i><code>--gemboss-danger-border</code><span>#f5c9bc</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success)"></i><code>--gemboss-success</code><span>#007f5f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-strong)"></i><code>--gemboss-success-strong</code><span>#0a6a4c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-soft)"></i><code>--gemboss-success-soft</code><span>#e3f1df</span></div><div class="cat-swatch"><i style="background:var(--gemboss-success-border)"></i><code>--gemboss-success-border</code><span>#b7dfcd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning)"></i><code>--gemboss-warning</code><span>#9a6700</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-soft)"></i><code>--gemboss-warning-soft</code><span>#fff8e0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-warning-border)"></i><code>--gemboss-warning-border</code><span>#f5d569</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-bg)"></i><code>--gemboss-dark-bg</code><span>#0a0a0c</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-rail)"></i><code>--gemboss-dark-rail</code><span>#0e0e11</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface)"></i><code>--gemboss-dark-surface</code><span>#16161a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-surface-2)"></i><code>--gemboss-dark-surface-2</code><span>#1e1e24</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-divider)"></i><code>--gemboss-dark-divider</code><span>#2a2a31</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-text)"></i><code>--gemboss-dark-text</code><span>#ededf0</span></div><div class="cat-swatch"><i style="background:var(--gemboss-dark-muted)"></i><code>--gemboss-dark-muted</code><span>#9a9aa4</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg)"></i><code>--gemboss-field-bg</code><span>#fdfdfd</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-bg-hover)"></i><code>--gemboss-field-bg-hover</code><span>#fafafa</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-ink)"></i><code>--gemboss-field-ink</code><span>#303030</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-placeholder)"></i><code>--gemboss-field-placeholder</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line)"></i><code>--gemboss-field-line</code><span>#8a8a8a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-hover)"></i><code>--gemboss-field-line-hover</code><span>#616161</span></div><div class="cat-swatch"><i style="background:var(--gemboss-field-line-active)"></i><code>--gemboss-field-line-active</code><span>#1a1a1a</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-ink)"></i><code>--gemboss-chip-ink</code><span>#303633</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line)"></i><code>--gemboss-chip-line</code><span>#cfd6ce</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-line-hover)"></i><code>--gemboss-chip-line-hover</code><span>#aab4ad</span></div><div class="cat-swatch"><i style="background:var(--gemboss-chip-bg-hover)"></i><code>--gemboss-chip-bg-hover</code><span>#f6f7f5</span></div><div class="cat-swatch"><i style="background:var(--gemboss-on-primary)"></i><code>--gemboss-on-primary</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-app-bg)"></i><code>--gemboss-app-bg</code><span>#ffffff</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary)"></i><code>--gemboss-fill-tertiary</code><span>#2a2b33</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-hover)"></i><code>--gemboss-fill-tertiary-hover</code><span>#33353f</span></div><div class="cat-swatch"><i style="background:var(--gemboss-fill-tertiary-active)"></i><code>--gemboss-fill-tertiary-active</code><span>#3a3c46</span></div></div><table class="ui-table cat-scale"><thead><tr><th>Token</th><th>Giá trị</th><th>Mẫu</th></tr></thead><tbody><tr><td><code>--gemboss-fs-micro</code></td><td>11px</td><td style="font-size:var(--gemboss-fs-micro)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-caption</code></td><td>12px</td><td style="font-size:var(--gemboss-fs-caption)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body</code></td><td>14px</td><td style="font-size:var(--gemboss-fs-body)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-body-lg</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-body-lg)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h3</code></td><td>16px</td><td style="font-size:var(--gemboss-fs-h3)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h2</code></td><td>20px</td><td style="font-size:var(--gemboss-fs-h2)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-h1</code></td><td>24px</td><td style="font-size:var(--gemboss-fs-h1)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-fs-display</code></td><td>30px</td><td style="font-size:var(--gemboss-fs-display)">Ngôn ngữ thiết kế chung</td></tr><tr><td><code>--gemboss-radius-xs</code></td><td>4px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xs)"></i></td></tr><tr><td><code>--gemboss-radius-sm</code></td><td>6px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-sm)"></i></td></tr><tr><td><code>--gemboss-radius-md</code></td><td>8px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-md)"></i></td></tr><tr><td><code>--gemboss-radius-lg</code></td><td>12px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-lg)"></i></td></tr><tr><td><code>--gemboss-radius-xl</code></td><td>16px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-xl)"></i></td></tr><tr><td><code>--gemboss-radius-2xl</code></td><td>20px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-2xl)"></i></td></tr><tr><td><code>--gemboss-radius-full</code></td><td>999px</td><td><i class="cat-radius" style="border-radius:var(--gemboss-radius-full)"></i></td></tr><tr><td><code>--gemboss-shadow-resting</code></td><td class="cat-small">0 1px 2px rgba(31, 30, 29, 0.04), 0 2px 6px rgba(31, 30, 29, 0.06)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-resting);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-raised</code></td><td class="cat-small">0 4px 16px rgba(31, 30, 29, 0.10)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-raised);border:0"></i></td></tr><tr><td><code>--gemboss-shadow-overlay</code></td><td class="cat-small">0 16px 48px rgba(31, 30, 29, 0.18)</td><td><i class="cat-radius" style="box-shadow:var(--gemboss-shadow-overlay);border:0"></i></td></tr></tbody></table></section>
32
32
  <section id="buttons"><h2>Nút</h2><p>Một lớp <code>ui-btn</code>, ba biến thể, tông đỏ, một cỡ nhỏ. Cao 28px dưới chuột như Button của Polaris (ô nhập và ô chọn 32, như TextField), 44px dưới ngón tay và ở khổ điện thoại, cỡ nhỏ cũng vậy. Dùng được trên <code>&lt;button&gt;</code> lẫn <code>&lt;a&gt;</code> (căn giữa sẵn).</p><figure class="cat-demo"><figcaption>Mặc định · chính · ghost · nhỏ · tắt</figcaption><div class="cat-live"><div class="cat-row"><button type="button" class="ui-btn">Lưu nháp</button><button type="button" class="ui-btn ui-btn--primary">Xuất bản</button><button type="button" class="ui-btn ui-btn--ghost">Huỷ</button><button type="button" class="ui-btn ui-btn--sm">Nhỏ</button><button type="button" class="ui-btn ui-btn--primary" disabled>Đang lưu…</button><a class="ui-btn" href="#buttons">Link dạng nút</a></div></div><details class="cat-code"><summary>Markup</summary><pre><code>&lt;div class=&quot;cat-row&quot;&gt;
33
33
  &lt;button type=&quot;button&quot; class=&quot;ui-btn&quot;&gt;Lưu nháp&lt;/button&gt;
@@ -13032,7 +13032,7 @@ document.querySelector(&quot;.gb-tc-body&quot;).append(tc.jumpToLatest({ count:
13032
13032
  &lt;/section&gt;
13033
13033
  &lt;/div&gt;
13034
13034
  &lt;/div&gt;</code></pre></details></figure></section>
13035
- <section id="assistant"><h2>Trợ lý: cột phiên</h2><p><code>SessionRail</code> (React). Khung toàn màn hình / cửa sổ nổi / cột phải cao hết màn (<code>allowSide</code>) / thanh là <code>AssistantHost</code>, cần React vì có trạng thái.</p><figure class="cat-demo"><figcaption>SessionRail</figcaption><div class="cat-live"><div style="height:360px;display:flex"><aside class="gemboss-assistant-rail"><div class="gemboss-assistant-rail-top"><button type="button" class="gemboss-assistant-newchat" title="Phiên mới"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16h9a1.5 1.5 0 0 0 1.5-1.5V9"></path><path d="M14.5 3.5l2 2L10 12H8v-2z"></path></g></svg><span>Phiên mới</span></button><button type="button" class="gemboss-assistant-collapse" aria-label="Collapse sidebar" title="Collapse"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5l-5 5 5 5"></path></g></svg></button></div><div class="gemboss-assistant-search gemboss-field gemboss-field--group"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="5"></circle><path d="M13 13l3.5 3.5"></path></g></svg><input class="gemboss-field__bare" placeholder="Tìm phiên…" aria-label="Search history" value=""/><kbd class="gemboss-assistant-kbd">/</kbd></div><div class="gemboss-assistant-threads"><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Đã ghim</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="So sánh advertorial với listicle"><span class="gemboss-assistant-thread-titlerow"><svg viewBox="0 0 20 20" class="gemboss-assistant-pin-dot" aria-hidden="true" focusable="false"><path d="M8 3.5h4l-.5 5 2.5 2.5H6l2.5-2.5z" fill="currentColor"></path><path d="M10 11v5.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg><span class="gemboss-assistant-thread-title">So sánh advertorial với listicle</span></span><span class="gemboss-assistant-thread-meta">30/9/2026</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Hôm nay</div><div class="gemboss-assistant-thread active"><button type="button" class="gemboss-assistant-thread-main" title="Store nào đang dựng loạt landing?"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Store nào đang dựng loạt landing?</span></span><span class="gemboss-assistant-thread-meta">3 giờ trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Hôm qua</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="Landing điểm cao nhất của corpus"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Landing điểm cao nhất của corpus</span></span><span class="gemboss-assistant-thread-meta">1 ngày trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div></div></aside></div></div><details class="cat-code"><summary>Markup</summary><pre><code>&lt;div style=&quot;height:360px;display:flex&quot;&gt;
13035
+ <section id="assistant"><h2>Trợ lý: cột phiên</h2><p><code>SessionRail</code> (React). Khung toàn màn hình / cửa sổ nổi / cột phải cao hết màn (<code>allowSide</code>) / thanh là <code>AssistantHost</code>, cần React vì có trạng thái.</p><figure class="cat-demo"><figcaption>SessionRail</figcaption><div class="cat-live"><div style="height:360px;display:flex"><aside class="gemboss-assistant-rail"><div class="gemboss-assistant-rail-top"><button type="button" class="gemboss-assistant-newchat" title="Phiên mới"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H5.5A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16h9a1.5 1.5 0 0 0 1.5-1.5V9"></path><path d="M14.5 3.5l2 2L10 12H8v-2z"></path></g></svg><span>Phiên mới</span></button><button type="button" class="gemboss-assistant-collapse" aria-label="Collapse sidebar" title="Collapse"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5l-5 5 5 5"></path></g></svg></button></div><div class="gemboss-assistant-search gemboss-field gemboss-field--group"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="5"></circle><path d="M13 13l3.5 3.5"></path></g></svg><input class="gemboss-field__bare" placeholder="Tìm phiên…" aria-label="Search history" value=""/><kbd class="gemboss-assistant-kbd">/</kbd></div><div class="gemboss-assistant-threads"><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Đã ghim</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="So sánh advertorial với listicle"><span class="gemboss-assistant-thread-titlerow"><svg viewBox="0 0 20 20" class="gemboss-assistant-pin-dot" aria-hidden="true" focusable="false"><path d="M8 3.5h4l-.5 5 2.5 2.5H6l2.5-2.5z" fill="currentColor"></path><path d="M10 11v5.5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg><span class="gemboss-assistant-thread-title">So sánh advertorial với listicle</span></span><span class="gemboss-assistant-thread-meta">1/10/2026</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Hôm qua</div><div class="gemboss-assistant-thread active"><button type="button" class="gemboss-assistant-thread-main" title="Store nào đang dựng loạt landing?"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Store nào đang dựng loạt landing?</span></span><span class="gemboss-assistant-thread-meta">3 giờ trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div><div class="gemboss-assistant-group"><div class="gemboss-assistant-group-label">Previous 7 days</div><div class="gemboss-assistant-thread"><button type="button" class="gemboss-assistant-thread-main" title="Landing điểm cao nhất của corpus"><span class="gemboss-assistant-thread-titlerow"><span class="gemboss-assistant-thread-title">Landing điểm cao nhất của corpus</span></span><span class="gemboss-assistant-thread-meta">1 ngày trước</span></button><div class="gemboss-assistant-thread-actions"><button type="button" class="gemboss-assistant-thread-act" aria-label="Options"><svg viewBox="0 0 20 20" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="10" r=".8"></circle><circle cx="10" cy="10" r=".8"></circle><circle cx="15" cy="10" r=".8"></circle></g></svg></button></div></div></div></div></aside></div></div><details class="cat-code"><summary>Markup</summary><pre><code>&lt;div style=&quot;height:360px;display:flex&quot;&gt;
13036
13036
  &lt;aside class=&quot;gemboss-assistant-rail&quot;&gt;
13037
13037
  &lt;div class=&quot;gemboss-assistant-rail-top&quot;&gt;
13038
13038
  &lt;button type=&quot;button&quot; class=&quot;gemboss-assistant-newchat&quot; title=&quot;Phiên mới&quot;&gt;
@@ -13081,7 +13081,7 @@ document.querySelector(&quot;.gb-tc-body&quot;).append(tc.jumpToLatest({ count:
13081
13081
  &lt;/svg&gt;
13082
13082
  &lt;span class=&quot;gemboss-assistant-thread-title&quot;&gt;So sánh advertorial với listicle&lt;/span&gt;
13083
13083
  &lt;/span&gt;
13084
- &lt;span class=&quot;gemboss-assistant-thread-meta&quot;&gt;30/9/2026&lt;/span&gt;
13084
+ &lt;span class=&quot;gemboss-assistant-thread-meta&quot;&gt;1/10/2026&lt;/span&gt;
13085
13085
  &lt;/button&gt;
13086
13086
  &lt;div class=&quot;gemboss-assistant-thread-actions&quot;&gt;
13087
13087
  &lt;button type=&quot;button&quot; class=&quot;gemboss-assistant-thread-act&quot; aria-label=&quot;Options&quot;&gt;
@@ -13100,7 +13100,7 @@ document.querySelector(&quot;.gb-tc-body&quot;).append(tc.jumpToLatest({ count:
13100
13100
  &lt;/div&gt;
13101
13101
  &lt;/div&gt;
13102
13102
  &lt;div class=&quot;gemboss-assistant-group&quot;&gt;
13103
- &lt;div class=&quot;gemboss-assistant-group-label&quot;&gt;Hôm nay&lt;/div&gt;
13103
+ &lt;div class=&quot;gemboss-assistant-group-label&quot;&gt;Hôm qua&lt;/div&gt;
13104
13104
  &lt;div class=&quot;gemboss-assistant-thread active&quot;&gt;
13105
13105
  &lt;button type=&quot;button&quot; class=&quot;gemboss-assistant-thread-main&quot; title=&quot;Store nào đang dựng loạt landing?&quot;&gt;
13106
13106
  &lt;span class=&quot;gemboss-assistant-thread-titlerow&quot;&gt;
@@ -13125,7 +13125,7 @@ document.querySelector(&quot;.gb-tc-body&quot;).append(tc.jumpToLatest({ count:
13125
13125
  &lt;/div&gt;
13126
13126
  &lt;/div&gt;
13127
13127
  &lt;div class=&quot;gemboss-assistant-group&quot;&gt;
13128
- &lt;div class=&quot;gemboss-assistant-group-label&quot;&gt;Hôm qua&lt;/div&gt;
13128
+ &lt;div class=&quot;gemboss-assistant-group-label&quot;&gt;Previous 7 days&lt;/div&gt;
13129
13129
  &lt;div class=&quot;gemboss-assistant-thread&quot;&gt;
13130
13130
  &lt;button type=&quot;button&quot; class=&quot;gemboss-assistant-thread-main&quot; title=&quot;Landing điểm cao nhất của corpus&quot;&gt;
13131
13131
  &lt;span class=&quot;gemboss-assistant-thread-titlerow&quot;&gt;