Repository navigation
feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 (#36047 slice 1) - #36093
Conversation
… badge 500 Claude-Session: https://claude.ai/code/session_01L6bhgVDwx4yqxWdY3Rurnk Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgVDwx4yqxWdY3Rurnk Co-authored-by: Claude <noreply@anthropic.com>
…-o4uuda # Conflicts: # ui/packages/fields/src/widgets/LookupField.tsx # ui/scripts/shadcn-local-patches.mjs
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — REWORK (L1-a)维护者速读代码本身没有问题:圆角、白底、侧边栏、标签字重都按卡和裁定做了,改在主题变量和公共组件上,没有逐页覆盖。标签字重的改动登记成了对 shadcn 原件的本地补丁。我按 PR 写的提交号从 GitHub 原文件重新下载核对,补丁依据的原件内容逐字节一致。 要补的只是 PR 正文的说明,不用改代码、不用重新推送。正文要写清「哪些页面的底色会变」,现在有遗漏,也有一处说多了:
正文改好后我再看一遍,代码没变就直接给通过,不需要重跑 CI。不属于受管面,不需要 L2。 Head reviewed: S1 (body only, no push): the list of pages whose background changes is incomplete in one direction and over-broad in the otherThe seat asked for this list to be exact, and the ruling of record (7063106408) is "the whole console", so the body is where a reader learns the reach.
Suggested wording: add a bullet "the public form page ( N1 (body only): "popovers keep their corner" holds for
|
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — delta ACCEPT (L1-a)维护者速读上一轮只要求改正文,现在已经改好,代码没有变动,可以通过:
不属于受管面,不需要 L2,按普通队列落地。正文改动触发的两项检查(正文规则检查、changeset 检查)还在重跑,要等它们变绿再落地。 Head reviewed: S1: cleared
N1: cleared
Landing terms
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T13:46Z · Slice 1 of #36047 (b1-CX): console controls take radius 8 (small 6) while cards keep 14/16 and dialogs 20; the content background is white across the whole console (the maintainer's ruling 7063106408), with the sidebar on a light grey; badges drop to weight 500 through a declared shadcn patch (fixture provenance checked by L1-a byte for byte); lookup, grid and list-condition chips take radius 8. The body lists every page whose background changes, the public form and share pages included. |
…bottom-sheet sort, filter and view panels that apply on ✓ (objectstack-ai#36024) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3cWtmKPZ5QYDKwmF13UfAe)_ repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde Fixes objectstack-ai#35883 Fixes objectstack-ai#35884 Clause-②: yes (widening): new optional `BulkActionBar.open` (`@object-ui/plugin-grid`); new exports `PhonePanelSheet`, `useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` (+ types `PhonePanelSheetProps`, `ListPhonePanels`) from `@object-ui/plugin-list` and `requestListSelection`, `useListPageSelecting`, `useListPageSelectable` from `@object-ui/plugin-grid`; new keys in every `@object-ui/i18n` locale (`listConditions.phone.*`, `sortBuilder.levelOptions` / `.changeField`, `console.objectView.select`); nothing removed or renamed. (`FilterPanel.advancedOffered` is internal to plugin-list: `FilterPanel` is not a package export.) Metadata-protocol: none Flow: card thread builds itself (maintainer 2026-11-20 09:22:50Z rule); both cards are p1/p2 children of epic objectstack-ai#35880 (Sales 2026-11-20 16:41Z), one PR as the seat dispatched them. ## 维护者速读 - 手机上打开对象列表(例如「客户」),顶部一行变成:返回、对象图标和名字、「⋮ 更多」;通知和头像不在这一行。 - 下面一行全是胶囊按钮:视图名加条数、排序、筛选、搜索。有排序或筛选时按钮上带数字并高亮。手机上不再单独占一行显示排序筛选标签。 - 点排序、筛选、视图名,都从底部弹出面板。排序和筛选面板里改的是一份副本:点「✓」才生效,点「×」或下滑就丢掉。生效时走的是电脑端同一个写入,没有第二条保存路径。 - 排序面板每一级两行(字段在上、方向在下),可以用手指按住把手拖动排顺序;每级有「⋯」菜单(换字段、升降序、删除)。筛选面板列出每个条件;没有条件时是一句说明加「添加筛选」。视图用的是「或」组合这类高级筛选时,面板只提示「请在电脑上修改」。 - 「视图设置」进了视图名面板的最后一项,打开后内容和电脑端一样。 - 面板里弹出屏幕键盘时,面板会缩到键盘上方,「✓」和正在输入的框都不会被挡。没改任何东西就点「✓」,不会写入。 - 长按一张卡片进入选中状态,这张被选中;「⋮ 更多」里的「选择」也能进入。「选择」只在能多选的卡片列表上出现,看板、日历、不可选或只能单选的列表上不显示。选中时点卡片是加选或取消,右下角「+」隐藏;取消到一张不剩就退出。 - 选中时用的是 objectstack-ai#35678(已合并)的底部浮动操作条:「已选 N 条」、×、操作;从「选择」进来还没勾卡片时显示「已选 0 条 ×」,点 × 就退出。选中期间右下角「+」不显示,不会压住操作条。 - 工具行右边的「保存」按钮和它的菜单(保存、放弃、另存先起名、保存后的提示、临时视图设置)由 objectstack-ai#35955 提供(席位在 objectstack-ai#35883 评论 7061423282、objectstack-ai#35884 评论 7061428301 记下了这一分工;这里已经留好位置,objectstack-ai#35955 的 PR objectstack-ai#36026 合并后会自动出现)。 - 出错时用户在手机上会看到旧的工具行消失但新面板打不开;改动只在界面上,撤回这个 PR 就恢复原样,不动任何已存数据。 - 要你做的:无。 ## What changes Below `sm` (`useBelowSm`, `(max-width: 639.98px)`) the object list keeps its desktop content and changes only its containers (ruling record 7045325067 on objectstack-ai#35880). **The page's top row** (app-shell `layout/PhonePageBar.tsx`, new): a page publishes `{ icon, title, end }` into a small store `ConsoleLayout` mounts; `AppHeader` draws it in place of the app pill, the phone title, the search, the bell, the assistant/help group and the avatar while the page is on screen (phone only, never on a phone tab page). `ObjectView` publishes 「‹ · object colour tile (`ObjectIconTile`, as objectstack-ai#36042 draws it on desktop) · object name · ⋮ More」. ⋮ More is `ObjectViewMoreMenu` (extracted from `ObjectViewPageBarActions`, which now uses it), with 「Select」 first. **One row of pills** (`PhoneListToolbar`, plugin-list `phone/PhoneListPanels.tsx`): the host's `toolbarLeading` (the view switcher's phone face: the view's name, its count, the caret), Sort N, Filter N, the list's search (now a 44 px pill), then the host's `conditionRowEnd`. The desktop toolbar row and the condition row are not drawn below `sm`. A count highlights its pill; with none the pill is the icon alone. `userActions.sort/filter/search: false` withhold their pills, as on desktop. **Bottom sheets** (`PhonePanelSheet`, a vaul `Drawer`, full height less 40 px, swipe-down closes): header 「× · title · ✓」 or 「‹」 on a sub-step. `100dvh` does not shrink for the on-screen keyboard (iOS Safari; Chrome on Android's default `resizes-visual`), so the sheet reads `visualViewport` (`useKeyboardInset`): while the keyboard is up its bottom is the keyboard's top and its height is the visible area's less the 40 px strip, so 「✓」 and the focused field stay in view; vaul's own `repositionInputs`, which would also write the height, is off. 「✓」 on an untouched copy writes nothing. - **Sort**: the levels in `PhoneSortLevels` (plugin-list): two lines each (field over direction), a handle a finger drags (pointer events, since HTML5 drag does not fire on touch; `touch-none`, `data-vaul-no-drag`, and the pointer events stop at the handle so the sheet's swipe never sees them) or ArrowUp / ArrowDown moves (the handle keeps focus at the level's new place), and a ⋯ menu per level (change field, direction, remove); 「Add sort」 and 「Change field」 step to `SortPanel` / `FieldList`. The sheet edits a copy (`useStaged`) and 「✓」 hands it to `applySort`, the write the desktop sort chip calls (which ends in `onSortChange`); 「×」 drops it. - **Filter**: the conditions with a ⋯ menu (edit, remove); 「Add filter」 and edit step through `FilterPanel` (`advancedOffered={false}`). 「✓」 hands the copy to `applyPanelFilters`, the desktop chips' write. A filter that is not a flat AND of conditions (an `or` group, nesting) shows 「This view uses an advanced filter. Change it on a computer.」 and edits nothing. - **Views**: `ObjectViewSwitcherMenu` with `phone` (search at the bottom, no list height cap) and its footer's last row 「View settings」, which opens… - **View settings**: `ViewSettingsContent` with the desktop popover's own props; it applies each change as on desktop, so it has 「×」 only. **`@object-ui/components` is not changed** (only a census test row is deleted). The phone levels started as a `layout="stacked"` in `SortBuilder`; after main moved, the eager `ui-components` chunk sat at its 347,000-byte ceiling (`check:eager-closure`: main alone measures what this head measures, 347,610 gzipped in a local build, which CI reads about 600 bytes lower), so any phone-only bytes there fail the gate. The phone face therefore lives in plugin-list, which no per-chunk ceiling weighs, and the desktop `SortBuilder` is byte-identical to main. Its touch reorder is not added for desktop (a desktop on a touch screen keeps mouse, keyboard and HTML5 drag as before). **Card selection** (`ObjectGrid` card renderer, plugin-grid `listPageScope.ts`): a 500 ms long press held within 10 px starts selecting with that card ticked, and the click that ends the press is swallowed; while selecting a tap ticks or unticks, unticking the last ends it; `requestListSelection(pageColumn)` (the More menu's 「Select」) starts it with none ticked. The selection is the grid's one `selectedRows`, shown in objectstack-ai#35678's floating `BulkActionBar`; its new optional `open` keeps the bar up at 0 (「0 selected ×」, no actions) while a selection opened by 「Select」 has nothing ticked, and draws nothing new for any other host. The 「Select」 request, the "is a selection open" read and the "would 「Select」 open one" read live in `listPageScope.ts` (`requestListSelection`, `usePublishListSelecting` / `useListPageSelecting`, `usePublishListSelectable` / `useListPageSelectable`); the page hides its 「+」 FAB while one is open, and draws 「Select」 only while the grid says a request would open one (cards whose rows take more than one tick; not a kanban, a calendar, or a list with no or single selection). The grid's `selectionAvailable` in the action context is not enough for that: it is also true for a single-select list, where 「Select」 does nothing. The card scroller carries the grid's root ref, so the cards are inside the list page's scope too. A card is a keyboard control (`role="button"`, `tabIndex={0}`, Enter / Space on its own key, `aria-pressed` while selecting): Enter opens it, and while selecting Enter or Space toggles it. Every pointer-down clears the long press's swallow flag first, so a long press the browser ends with no click (a finger that slid off, Android after its context menu) never eats the next tap. ## Shared with desktop | Phone part | Shared component | Notes | |---|---|---| | Sort sheet levels | the list's `SortItem[]` (what `SortBuilder` edits) | drawn by `PhoneSortLevels`; see "Separate" | | Sort sheet 「Add sort」 / 「Change field」 | `SortPanel`, `FieldList` | unchanged | | Sort ✓ | `applySort` → `onSortChange` | the desktop chip's write | | Filter sheet add / edit | `FilterPanel` | `advancedOffered={false}` (internal prop) only drops its footer link | | Filter ✓ | `applyPanelFilters` → `onFilterChange` | the desktop chips' write | | Views sheet | `ObjectViewSwitcherMenu` | `phone` moves the search last; `footerEnd` adds View settings | | View settings sheet | `ViewSettingsContent` | the popover's own props, spread | | ⋮ More | `ObjectViewMoreMenu` | extracted from the desktop's `ObjectViewPageBarActions` | | Save (from objectstack-ai#35955) | the host's `conditionRowEnd` | drawn at the pill row's end | | Selection bar | `BulkActionBar` (objectstack-ai#35678) | `open` added for an empty open selection | Separate, and why: - `PhoneListToolbar`: the desktop bar is two rows of mixed controls; the phone row is pills only, by the card. - `PhonePanelSheet` and the staging copy (`useStaged`): the container and the 「✓」 layer the ruling asks for. It keeps a copy and nothing else. - `PhonePageBar`: the app bar has no slot a page fills on desktop, and the desktop draws the object name in the view bar. - The filter sheet's list of conditions: on desktop each condition is a chip in the condition row, which the phone does not draw. - `PhoneSortLevels`: the phone's two-line level face with a touch handle. It edits the same `SortItem`s through the same `applySort` on 「✓」; it is separate from `SortBuilder` only because the eager components chunk has no headroom for phone-only bytes (above). ## Scope with objectstack-ai#35955 objectstack-ai#35883's Save, discard, save-as (name first), the toast after saving, and the temporary-view-settings rows move to objectstack-ai#35955 (seat comment 7061423282 on objectstack-ai#35883, 7061428301 on objectstack-ai#35884): objectstack-ai#36026 draws 「Save ▾」 at the phone pill row's end through the host's `conditionRowEnd`. Until it lands, `conditionRowEnd` draws today's 「Personalized · Reset」 there. ## Follow-ups - A tap on a card's link cell (a URL or lookup link) while selecting opens the link instead of ticking the card: the cell stops the click from reaching the card (objectstack#33548's rule). The seat opens a small card. - Not taken from the L2 nits: the filter count counts top-level entries (a nested group counts as one); a card stays a focusable `role="button"` even on a list whose rows open nothing and take no tick. ## Overlap `overlap-check.mjs` against main and open PRs: clean. objectstack-ai#36021 (objectstack-ai#35678) landed first, as the seat ordered; main is merged here (c884e47, again at 6aef25a): `listPageBarSlot.ts` and `SelectionPageBar` are gone, and the cards' selection is objectstack-ai#36021's bar. ## Verification - On bea8fe0 (the L1-b delta S1): `ListView.phonePanels-35884` 12 tests pass, with a new case: ArrowDown on the first level's handle moves it and the handle keeps focus at the new place, then ArrowUp from it moves it back. jsdom keeps focus on a moved node where a browser drops it, so the case blurs the handle right after each key, as a browser would; ablated, it fails without the refocus. Type-check and eslint (0 errors) on plugin-list. - Unit, on 74cf9d8 (main 7dd1a2f merged at 3fe3dd6, with objectstack-ai#36069, objectstack-ai#36026, objectstack-ai#36054, objectstack-ai#36093 and objectstack-ai#36097; full `pnpm build`): plugin-grid + plugin-list + the click census + components `custom/` 483 files / 4,622 tests; the app-shell subset 138 files / 1,240 tests; type-check of plugin-list and app-shell, eslint (0 errors), `check:i18n-keys` and overlap-check clean. `check:eager-closure` locally: `ui-components` 347,610 gzipped bytes, the same as main with this branch's components change removed. e2e `list-*` on chromium: 49 of 51 pass; the 2 that failed are `list-no-actions-column-35554`'s "side record" cases (objectstack-ai#35678's), which fail only when the drawer face is a worker's first mount: the first-mount wait `getByText('商机 1')` then also matches the side record's heading (strict mode). This branch does not touch them. On a re-run of the three side-record cases, dark and 375 passed and light failed again for the same reason. - Unit, on f6a0264 (the L1-b round, main 1647fb3 merged at 6aef25a, full `pnpm build`): grid + list 481 files / 4,607 tests; the app-shell subset 137 files / 1,225 tests; type-check of plugin-grid, plugin-list, app-shell and components, eslint (0 errors), `check:test-source-alias`, `check:i18n-keys` and overlap-check (main and 6 open PRs) clean. - Unit, on 7bea6cb (the L2 round): `pnpm exec vitest run packages/plugin-grid packages/plugin-list` passes, 481 files and 4,602 tests; app-shell, the 137 files that import `ObjectView`, the phone page bar, the title switcher or the selection reads pass, 1,224 tests; type-check of plugin-grid, plugin-list and app-shell, eslint on the changed files (0 errors), `check:test-source-alias`, `check:i18n-keys` and overlap-check (main and 7 open PRs) are clean. - Unit, after the merge: `pnpm exec vitest run packages/plugin-grid packages/plugin-list packages/i18n` plus the click census pass, 587 files and 6,559 tests. app-shell: the 160 files that import or drive the changed modules (the switcher, the switcher menu, the page header, `AppHeader`, `ObjectView`, the FAB, the selection bar, the phone viewport) pass, 1,259 tests. The whole package (2,357 files) is left to CI's shards. - New tests: - `plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx` (11): the pill row and no condition row; `userActions.sort: false`; sort 「✓」 writes once through `onSortChange` and the count turns 1; 「×」 writes nothing and the sheet reopens from the list's sort; the empty filter state; the `or` group notice; an untouched 「✓」 writes nothing (sort, and the advanced-filter notice); with a stand-in `visualViewport` 300 px short the sheet's bottom is 300 px and its height the visible area less 40 px, and both clear when it grows back (ablated: fails without the inset style); the levels' two lines, handle and ⋯ name; a finger drags the second level above the first and 「✓」 writes that order (ablated: fails without the move). - `plugin-grid/src/__tests__/cardSelection-35883.test.tsx` (8): a long press with no click after it, then one tap on another card ticks that card (ablated: fails with the flag reset after the early return); 「Select」 is offered (`useListPageSelectable`) for `multiple` and not for `single` or `none` (ablated: fails when it follows `rowsSelectable`); long press ticks and opens nothing, a tap adds, unticking the last ends; a press that moves starts nothing; 「Select」 starts with none ticked and the bar reads 0 with 「×」 alone, which ends it; a long press floats the bar after the cards reading 1; Enter opens a card and Space toggles it while selecting; no selection without `selection`. - Rewritten tests: - `ListView.phoneSortSearch-28911`: the phone search trigger's size is now the pill's `h-11 min-w-11`. - `ListView.phoneWidth-29074`: the same for the phone search trigger; the Display trigger's assertion is unchanged. - e2e `list-toolbar-view-name-phone` (objectstack-ai#33833's pin): re-pointed from the retired phone toolbar row at the pill row. At 375 and 390, 「全部客户」 and 「All Customers」 are whole on one row with three 44 px pills. At 320, 「全部客户」 is whole and a longer name truncates while the pills stay on screen. A viewport meta is added so the mobile projects lay out at the viewport's width. `tagClass` also reads `cn(CONSTANT, '…')`. - `app-shell/src/views/ObjectView.phoneFabSelecting-35883.test.tsx` (3): the phone 「+」 is drawn, is not drawn while a list publishes an open selection, and is drawn again after; ⋮ More has no 「Select」 until the list publishes that one would open, then has it (ablated: the old `titleSwitcher` gate fails the first). - `components/src/__tests__/clickableNonControlCensus-13461`: the mobile card list's BACKLOG row is deleted. The card is repaired (a control with `role="button"`, `tabIndex={0}`, Enter / Space on its own key, `aria-pressed` while selecting), as the backlog's deletions-only rule asks; `cardSelection-35883` pins the keyboard path. - i18n: `listConditions.phone.sortCount` / `.filterCount` are count families with every CLDR slot their pack selects and a base key (objectui#11445), in all packs and the English fallbacks. - e2e `list-frame-geometry-35548`: the switcher's source-order check reads the desktop trigger inside `<PopoverTrigger>`, since the phone pill comes first in the file and draws no type icon. - e2e, chromium, run locally: `list-toolbar-view-name-phone` (both chromium projects), `list-frame-geometry-35548`, `list-condition-row-35549`, `list-no-actions-column-35554`, `list-left-edge-35663` and `list-header-narrow-35446` all pass; after the merge every `e2e/list-*` spec passes (50). - Browser, own backend and console, CRM 「客户」 list, 375 and 390, light and dark: the top row, the pill row, the sort, filter and views sheets, ⋮ More, and a long press into selection. After the merge, at 375 light and dark: 「Select」 with none ticked (「0 selected ×」), two ticked (「2 selected × Delete」), the 「+」 gone. Screenshots went to the seat. - Keyboard, SIMULATED in Chromium at 375, light and dark (`window.visualViewport` replaced by a stand-in 336 px shorter, a grey block drawn where a keyboard would be): the filter value step with its field focused and the views sheet with its search focused. Both sheets read `data-keyboard-inset=336`, span y 40–476 (the keyboard's top), with 「✓」 at y 73–117 and the focused field above 476 (the filter value at 172–204, the views search at 355–400). Not a real device reading. 「Select」 checked in the same console: offered on the CRM 「客户」 list and opens the bar. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No spec change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (0 errors). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. (Two cards, dispatched as one PR.) - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…wo weights, 400 and 500 (objectstack-ai#36183) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuAYvjHzALCM1EMkMFJVSe7r)_ repo:objectstack#1 · os-sales · session_01L6bhgUUrNKCZdu79ooP61V Fixes objectstack-ai#36047 Slice 2 of 2. Slice 1 (objectstack-ai#36093, merged `3ae62acd`) set the theme tokens and shared controls: the 8px control corner, the white content area and the badge weight. This slice sweeps the per-site text sizes and weights on the console's pages. Clause-②: no Metadata-protocol: none ## 维护者速读 - 控制台运行时页面只剩两种字号:正文 14(列表单元格、字段值、输入框、菜单项、工具栏按钮、单元格编辑框),次要信息 12(字段标签、表头、计数、时间、提示、小块里的字)。页面里不再有 13;原来的 10、11 和 11.5、12.5 这些零碎字号也收到 12 或 14。 - 字重只剩 400 和 500:记录名称、页签、按钮、分区标题、表头是 500,正文 400。600/700 只留在 18 号以上的页面和弹框大标题上。下拉菜单的分组标题也从 600 改成 500。 - 记录页的页签选中和未选中现在都是 14。 - 没设宽度的列表列按内容自动变宽,14 号字下会宽约 8%;视图里写死宽度或用户拖过的列宽度不变,每列少显示约 8% 的字,悬停可看全文。客户列表 1440 宽一屏可见列数前后都是 5(5 列全部放得下)。 - 单选/多选的彩色标签保持全圆(标签形状未改)。 - 不改的:Studio 和元数据管理内部、设置页、开发者工具、手机专用布局(另有 objectstack-ai#35880 专题)、头像里的缩写字母、作者写的 markdown 和 SDUI 标题、文档阅读页的正文字号。 ## What changes **The mapping** (run as a script, re-run after every merge of `main`; conflicts are resolved by taking `main` and re-running it, never by hand): | Before | After | Where | |---|---|---| | `text-[13px]` | `text-sm` (14) | body text, cells, field values, inputs, menu items, toolbar and bar buttons, condition chips, the in-cell editor (`EDITOR_DENSITY_CLASS` and the cell input layer in `@object-ui/components`) | | `text-[13px]` | `text-xs` (12) | the same class run carries `text-muted-foreground`, `uppercase`, `tabular-nums` or `tracking-wide`, or it is a column header: labels, headers, counts, times, empty-state hints | | `text-[12.5px]`, `text-[15px]` | `text-sm` (14) | record-page panel heads and rows, the comment composer, home section headings | | `text-[9px]` … `text-[11.5px]` | `text-xs` (12) | captions, counts, kbd hints, chip text, badges | | `font-semibold`, `font-bold` | `font-medium` (500) | everything except a class run that also sets `text-lg` or larger | Kept on purpose, each named in the script's exception list: avatar initials and the one-letter record-link mark (glyphs sized to their circle), phone-only branches (`isMobile` rows, `Phone*` files, the phone search keyword, the phone sidebar app name), authored content typography (markdown `strong` and headings, SDUI `h1`–`h6` presets), and the docs reader's prose size. Directories not swept: `views/studio-design`, `views/metadata-admin`, the settings pages, `pages/developer`, `views/item-tools`, the draft-preview bar, and dev-only harnesses. The home page's first-run checklist lives under `pages/settings` but is drawn on the console home, so it is swept. **Shared parts beyond the class sweep** - `DropdownMenuLabel` (`@object-ui/components`, Shadcn-synced) is `font-medium` instead of `font-semibold`, through a declared local patch `dropdown-menu-label-medium-weight` in `ui/scripts/shadcn-local-patches.mjs`, anchored on the already vendored `dropdown-menu.registry.txt`. `shadcn-components.json` names it. `ContextMenuLabel`, `MenubarLabel` and `SelectLabel` are not patched: no console runtime page renders them. - The list view bar: the object name is 14 (it was 13), the `/` separator after it is 14 (it inherited 16). **Counts**, on the branch merged with `main` (`a2dc8589`): 386 sizes and weights changed in 123 source files; 110 kept by the rules above (76 titles 18px and larger, 25 named exceptions, 9 avatar initials). A dry re-run of the script on the merged branch changes nothing. ## Why objectstack-ai#36047 items 1 and 2 (maintainer-approved Attio comparison): two text sizes, 14 and 12, and two weights, 400 and 500, with page titles excepted. The card's own measurement found 12, 13 and 14 and 400, 500 and 600 on one page. ## Verification Measured in a real browser (CRM example, console dev server against it), 1440 and 375, light and dark, before and after: list (account), record page (opportunity), kanban (opportunity pipeline), create dialog, console home. Font size and weight of every visible text node outside the sidebar. | page, 1440 light | sizes before | sizes after | weights before | weights after | |---|---|---|---|---| | list | 10, 12, 13, 14, 16 | 12, 14, 16¹ | 400, 500, 600 | 400, 500 | | record | 10, 11, 12, 13, 14, 16 | 12, 14, 16² | 400, 500, 600 | 400, 500 | | kanban | 10, 11, 12, 13, 14, 16 | 10³, 12, 14, 16¹ | 400, 500, 600 | 400, 500 | | create dialog | 10, 11, 12, 13, 14, 16 | 12, 14, 16⁴ | 400, 500, 600 | 400, 500, 600⁴ | | home | 10, 11, 12, 13, 14, 15, 16, 24 | 12, 14, 16, 24⁵ | 400, 500, 600 | 400, 500, 600⁵ | ¹ the visually hidden skip link. ² the record name (16/500). ³ avatar initials. ⁴ the dialog title (16/600, objectstack-ai#35980). ⁵ the greeting (24/600) and the checklist title (16/500). Dark is identical. At 375 the phone faces are unchanged by design (15px record rows, the 17px phone title). Visible columns on the account list at 1440: 5 before, 5 after (all five fit). Record tabs: selected and unselected are both 14px. Tests, local, on the branch merged with `main` (`146b6f9b`): the full vitest suites of `components`, `fields`, `plugin-grid`, `plugin-list`, `plugin-detail`, `plugin-kanban`, `plugin-form`, `app-shell` and `console`, plus `ui/scripts/__tests__`, all pass; eslint on every changed file: 0 errors. After the second merge with `main` (`a2dc8589`, which brought the comment panel and the list draft buttons): the 175 test files that import a re-mapped file pass (2,608 tests) and eslint on every changed file has 0 errors. Pins moved with the values: ten unit-test assertions and three e2e specs (`list-frame-geometry-35548`, `narrow-drawer-time-34614`, `record-tabs-rail-35595`; 20 passed locally against a production build). ## The mapping script Not committed: it is a one-off for this sweep and the follow-up re-run. All four files, as run: <details><summary><code>s2map.mjs</code>: the mapping: `node s2map.mjs <ui-dir> <files.txt> <overrides.tsv> [--apply] [--table=out.tsv]`</summary> ```js #!/usr/bin/env node // objectstack-ai#36047 slice 2 mapping script: text sizes -> 14/12, weights 600/700 -> 500, on the console's runtime pages. // // node s2map.mjs <ui-dir> <files.txt> <overrides.tsv> [--apply] [--table=out.tsv] // // files.txt ui-relative paths to sweep (one per line). // overrides.tsv `path<TAB>anchor<TAB>token<TAB>result` rows: the anchor is a substring of the line // (so a row survives line moves on a main merge); result is a replacement token or // `keep`. A row whose token is `*` applies to every token on that line. // Without --apply it only prints the table (path:line, before, after, rule, excerpt). import fs from 'node:fs'; import path from 'node:path'; const [uiDir, filesTxt, overridesTsv, ...rest] = process.argv.slice(2); const apply = rest.includes('--apply'); const tableOut = (rest.find((a) => a.startsWith('--table=')) || '').slice(8); const overrides = []; if (overridesTsv && fs.existsSync(overridesTsv)) { for (const raw of fs.readFileSync(overridesTsv, 'utf8').split('\n')) { if (raw.startsWith('#') || !raw.trim()) continue; const [file, anchor, token, result] = raw.split('\t'); overrides.push({ file, anchor, token, result, id: overrides.length }); } } const usedOverrides = new Set(); // A Tailwind token with optional variant prefixes (md:, [&_input]:, before:, !). const TOKEN = /(?<![\w\-\[])((?:[^\s"'`{}]*?:)?)(!?)(text-\[(\d+(?:\.\d+)?)px\]|font-(?:semibold|bold|extrabold))(?![\w\-])/g; const BIG = /\btext-(?:lg|xl|[2-9]xl)\b|text-\[(?:1[7-9]|[2-9]\d)px\]/; const SECONDARY = /text-muted-foreground|\buppercase\b|tabular-nums|tracking-wide|<th\b|TableHead|thead/; function decide(rel, lineNo, lineText, prefix, bang, body, px) { const hit = overrides.find((o) => o.file === rel && lineText.includes(o.anchor) && (o.token === '*' || o.token === body || o.token === `${prefix}${bang}${body}`)); if (hit) { usedOverrides.add(hit.id); return hit.result === 'keep' ? { after: null, rule: 'override:keep' } : { after: hit.result, rule: 'override' }; } // Initials inside an avatar are a glyph sized to its circle, not text. if (/AvatarFallback/.test(lineText)) return { after: null, rule: 'avatar:keep' }; if (body.startsWith('font-')) { if (BIG.test(lineText)) return { after: null, rule: 'big-title:keep' }; return { after: 'font-medium', rule: 'weight' }; } const n = Number(px); if (n === 13) { return SECONDARY.test(lineText) ? { after: 'text-xs', rule: '13→12 secondary' } : { after: 'text-sm', rule: '13→14 body' }; } if (n === 12.5) return { after: 'text-sm', rule: '12.5→14' }; if (n < 13) return { after: 'text-xs', rule: 'small→12' }; if (n === 15) return { after: 'text-sm', rule: '15→14' }; return { after: null, rule: 'big:keep' }; } const files = fs.readFileSync(filesTxt, 'utf8').split('\n').map((s) => s.trim()).filter(Boolean); const rows = []; let changedFiles = 0; for (const rel of files) { const abs = path.join(uiDir, rel); if (!fs.existsSync(abs)) { rows.push([`${rel}:-`, '-', '-', 'missing', '']); continue; } const src = fs.readFileSync(abs, 'utf8'); const lines = src.split('\n'); let touched = false; for (let i = 0; i < lines.length; i++) { const text = lines[i]; if (!TOKEN.test(text)) continue; TOKEN.lastIndex = 0; lines[i] = text.replace(TOKEN, (m, prefix, bang, body, px) => { const { after, rule } = decide(rel, i + 1, text, prefix, bang, body, px); rows.push([`${rel}:${i + 1}`, m, after ? `${prefix}${bang}${after}` : '(keep)', rule, text.trim().slice(0, 160)]); if (!after) return m; touched = true; return `${prefix}${bang}${after}`; }); } if (touched) { changedFiles++; // A `text-sm md:text-sm` pair left by the swap collapses to one token. let out = lines.join('\n').replace(/\b(text-(?:xs|sm)) md:\1\b/g, '$1'); if (apply) fs.writeFileSync(abs, out); } } const tsv = rows.map((r) => r.join('\t')).join('\n') + '\n'; if (tableOut) fs.writeFileSync(tableOut, tsv); else process.stdout.write(tsv); const unused = overrides.filter((o) => !usedOverrides.has(o.id)).map((o) => `${o.file} ${o.anchor.slice(0, 40)}`); const counts = rows.reduce((a, r) => ((a[r[3]] = (a[r[3]] || 0) + 1), a), {}); console.error(JSON.stringify({ sites: rows.length, changedFiles, apply, counts, unusedOverrides: unused }, null, 1)); ``` </details> <details><summary><code>s2-files.sh</code>: the file list: `s2-files.sh <ui-dir> cat.sh > files.txt`</summary> ```bash #!/bin/bash # Regenerate the slice 2 sweep file list from the current tree. usage: s2-files.sh <ui dir> <cat.sh> > files.txt cd "$1" SCOPE="packages/app-shell/src packages/plugin-grid/src packages/plugin-list/src packages/plugin-detail/src packages/plugin-kanban/src packages/plugin-form/src packages/fields/src packages/components/src/renderers packages/components/src/custom packages/components/src/share packages/components/src/notifications apps/console/src" git ls-files $SCOPE | grep -E '\.(tsx?|css)$' | grep -vE '(\.test\.|\.spec\.|__tests__|\.stories\.|/test/|/e2e/)' | grep -vE 'views/(studio-design|metadata-admin)/' \ | xargs grep -lE 'text-\[(9|10|10\.5|11|11\.5|12\.5|13|15|17)px\]|font-(semibold|bold|extrabold)\b' \ | while read f; do [ "$("$2" "$f")" = sweep ] && echo "$f"; done ``` </details> <details><summary><code>cat.sh</code>: which paths are swept</summary> ```bash #!/bin/bash # classify a ui-relative path f="$1" case "$f" in apps/console/src/pages/settings/FirstRunChecklist.tsx) echo sweep;; # drawn on the console home apps/console/src/dev/*|apps/console/src/*-preview.tsx|apps/console/src/preview-gallery.tsx|apps/console/src/dev-*) echo devonly;; */Phone*|*/Mobile*|*/phone/*|*/mobile/*) echo phone;; apps/console/src/pages/settings/*|*/console/organizations/*|*/console/notification-settings/*|*/views/setup/*|*/console/cloud-connection/*|apps/console/src/pages/system/ProfilePage.tsx) echo settings;; apps/console/src/pages/developer/*|*/views/item-tools/*|*/views/MetadataInspector.tsx|*/preview/*) echo devtools;; *) echo sweep;; esac ``` </details> <details><summary><code>s2-overrides.tsv</code>: the named exceptions and hand-picked sizes, anchored by line content so they survive a `main` merge</summary> ```tsv # objectstack-ai#36047 slice 2 per-site overrides: path<TAB>line anchor<TAB>token (or *)<TAB>replacement or keep # --- 13px muted controls / menu items are body controls -> 14 packages/plugin-list/src/conditions/FilterValuePanel.tsx className="ml-auto h-7 w-auto min-w-0 gap-1 border-0 px-2 text-[13px] text-muted-foregroun text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="flex h-8 w-full items-center gap-2 rounded-sm px-2 text-left text-[13px] text-m text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx 'flex h-7 flex-1 items-center justify-center gap-1 rounded-sm text-[13px] text-muted-foreg text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="flex h-8 w-full items-center gap-2 rounded-sm px-2 text-left text-[13px] text-m text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx 'max-sm:h-11 max-sm:min-w-11 inline-flex h-6 shrink-0 items-center gap-1 rounded-md border text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx className="ml-auto h-6 shrink-0 gap-1 px-1.5 text-[13px] text-muted-foreground" text-[13px] text-sm packages/plugin-list/src/components/ViewSettingsPopover.tsx 'flex w-full items-center gap-1.5 rounded-sm px-2 py-1.5 text-left text-[13px] text-muted- text-[13px] text-sm packages/plugin-list/src/ListView.tsx "hidden sm:inline-flex h-7 text-muted-foreground hover:text-foreground text-[13px] transit text-[13px] text-sm packages/plugin-list/src/listToolbarRow.ts 'h-7 min-w-7 gap-1 px-1.5 sm:px-2 text-[13px] font-normal text-muted-foreground hover:text text-[13px] text-sm packages/app-shell/src/views/ListDraftActions.tsx px-1.5 text-[13px] font-normal text-muted-foreground shadow-none text-[13px] text-sm # --- 12.5px panel heads, rows and the composer look-alike input are body -> 14 packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-11 sm:h-8 w-full items-center rounded-md border border-input bg-backgrou text-[12.5px] text-sm packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-8 items-center gap-2 border-t border-border px-3 text-[12.5px]" text-[12.5px] text-sm packages/plugin-detail/src/RecordActivityTimeline.tsx className="flex h-8 w-full items-center border-t border-border px-3 text-left text-[12.5px text-[12.5px] text-sm packages/plugin-detail/src/RelatedList.tsx className="group/panel-head relative flex h-11 sm:h-9 items-center gap-1.5 px-3 text-[12.5 text-[12.5px] text-sm packages/plugin-detail/src/RelatedList.tsx className="flex min-h-11 sm:h-8 sm:min-h-0 items-center justify-between gap-2 border-t bor text-[12.5px] text-sm packages/plugin-detail/src/RecordTimelinePanel.tsx className="group/panel-head relative flex h-11 sm:h-9 items-center gap-1.5 px-3 text-[12.5 text-[12.5px] text-sm # --- glyphs in fixed tiny boxes (avatar initials, record-link initial, chevron): not text, keep packages/plugin-grid/src/ObjectGrid.tsx '[&_td_a[data-record-link]]:before:flex [&_td_a[data-record-link]]:before:h-3.5 [&_td_a[da * keep packages/plugin-kanban/src/KanbanImpl.tsx className={cn("text-[10px] transition-transform shrink-0", collapsed ? "" : "rotate-90")} * keep packages/plugin-detail/src/RichTextCommentInput.tsx <div className="h-5 w-5 rounded-full bg-muted flex items-center justify-center text-[10px] text-[10px] keep packages/components/src/custom/config-field-renderer.tsx {opt.icon ?? <span className="text-[10px]">{opt.label.charAt(0)}</span>} * keep # --- phone-only branches (the card leaves phone sizes alone, epic objectstack-ai#35880) packages/plugin-detail/src/DetailSection.tsx <span className="text-[15px] text-muted-foreground shrink-0">{fieldLabelText}</span> * keep packages/plugin-detail/src/DetailSection.tsx <span className="text-[15px] text-foreground text-right break-words min-w-0 leading-snug"> * keep packages/app-shell/src/layout/UnifiedSidebar.tsx <span className="flex-1 truncate text-[15px] font-semibold"> * keep packages/app-shell/src/console/home/HomePage.tsx <h1 className="px-5 pb-2 text-[17px] font-semibold"> * keep packages/app-shell/src/layout/AppSwitcher.tsx <span data-testid="app-switcher-phone-name" className="truncate whitespace-nowrap text-[17 * keep packages/plugin-list/src/ListView.tsx <span className="max-w-[5rem] truncate text-[11px]" data-testid="phone-search-active-keywo * keep packages/plugin-grid/src/ObjectGrid.tsx <div data-testid="grid-card-title" className="truncate text-sm font-semibold"> * keep packages/plugin-grid/src/ObjectGrid.tsx className="ml-auto shrink-0 whitespace-nowrap text-sm font-semibold tabular-nums" * keep packages/app-shell/src/views/ObjectView.tsx <span className="flex min-w-0 max-w-full items-center gap-1.5 max-sm:text-base max-sm:font * keep packages/plugin-detail/src/renderers/record-path.tsx const PHONE_SUMMARY_STAGE_CLASS = 'min-w-0 font-semibold [overflow-wrap:anywhere]'; * keep # --- the docs reader's prose size (objectstack-ai#35424) is a reading face, keep apps/console/src/pages/DocPage.tsx className: '!text-[15px]', * keep # --- authored content typography (markdown / SDUI headings and bold): keep packages/components/src/renderers/basic/elements.tsx h6: 'text-base font-semibold tracking-tight', * keep packages/components/src/renderers/basic/elements.tsx strong: 'font-semibold', * keep packages/components/src/renderers/basic/text.tsx h6: 'text-base font-semibold tracking-tight', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx strong: 'font-semibold text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h2: 'mt-3 text-base font-semibold tracking-tight', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h3: 'mt-2 text-sm font-semibold tracking-tight text-foreground/80', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h1: 'text-sm font-semibold tracking-tight text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx h2: 'text-xs font-semibold tracking-tight text-foreground', * keep packages/app-shell/src/console/marketplace/MarkdownText.tsx <th key={c} className={`border-b px-3 py-2 font-semibold text-foreground ${alignClass(c)}` * keep packages/app-shell/src/views/objectViewPageHeader.tsx data-testid="list-view-bar-object-name" text-[13px] text-sm packages/plugin-list/src/conditions/ListConditionControls.tsx h-6 shrink-0 gap-1 px-1.5 text-[13px] font-normal text-muted-foreground shadow-none text-[13px] text-sm ``` </details> ## Follow-ups owed - **A re-run of the mapping script on `main` after this merges.** PRs that land after this one may bring new `text-[13px]`, `font-semibold` or `font-bold` into the swept areas. The re-run belongs to a new session; anything it finds becomes a small follow-up PR. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (eslint on every changed file locally; CI's Lint UI is the full reading). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUUrNKCZdu79ooP61V --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgVDwx4yqxWdY3Rurnk
Part of #36047 (slice 1 of 2: theme tokens and shared controls; slice 2, the per-site text sizes and weights, lands last and carries
Fixes).Clause-②: no
Metadata-protocol: none
维护者速读
/f/:slug)、公开分享的记录页(/s/:token)的底色也一起变白(它们的布局不动);设备授权页和首次安装设置页自己用另一种灰,仍是灰底;卡片、弹框本来就是白的,靠描边分开。What changes
Theme tokens (
ui/apps/console/src/index.css, the iOS theme layer)--radius-md: 0.5remand--radius-sm: 0.375remare set on:root, instead of being derived from--radius(calc(var(--radius) - 2px)/- 4px, which gave 12px and 10px).--radiusstays 0.875rem, sorounded-lgcards keep their 14px corner. The checkbox's own--radius-smoverride is unchanged.TooltipContent) and hover cards (HoverCardContent) arerounded-md, so they go 12 → 8px; select and command lists and their rows followrounded-md/rounded-sm; the dialog and sheet close buttons (rounded-sm) go 10 → 6px.Popovercontent keeps 20px through the console's popper-wrapper rule, so the combobox and lookup pickers are unchanged.--backgroundis white (0 0% 100%, was240 24% 97%). The sidebar is240 12% 96%(was240 24% 98%), drawn at 70% by the frosted rule, so it reads as a light grey beside white; its existing 1px border is the hairline. Dark:--backgroundstays240 6% 6%, the sidebar is240 6% 11%(was 8%), one step lighter.Every page whose content background changes (Sales chose the whole console, ruling of record 7063106408 on #36047, over list and record pages only).
--backgroundis the console's page canvas, so every page drawn on it goes from the grouped grey to white:--backgroundat 72%);AuthShell/OAuthConsentPagedraw onbg-background); the device-authorization and first-run setup pages draw onbg-muted(240 18% 94%, unchanged) and stay grey;/f/:slug,FormPage mode="public", which draws no canvas of its own) and the shared-record page (/s/:token,SharedRecordPageonbg-background); the internal/forms/:nameis an app page;bg-backgroundand now match the page they sit on.Cards (
--card), popovers and dialogs were white already and are unchanged; they are told apart from the page by their border. The sidebar is the one surface that stays grey. In the dark theme the canvas value is unchanged (240 6% 6%); only the sidebar moves one step lighter.Shared controls
Badge(@object-ui/components, Shadcn-synced) isfont-mediuminstead offont-semibold, through a declared local patchbadge-medium-weightinui/scripts/shadcn-local-patches.mjs. The upstream registry file is vendored asscripts/__tests__/fixtures/shadcn-registry/badge.registry.txt(pinned sha256, captured at the same shadcn-ui/ui commit as the other fixtures). Round-trip equality is pinned unavailable with its reason: the file already ships the undeclaredwhitespace-nowrapedit.shadcn-components.jsonnames the patch.OBJECT_GRID_TABLE_DENSITYin@object-ui/plugin-grid):rounded→rounded-md.LookupFieldand the selection tray chip (@object-ui/fields):rounded-full→rounded-md.ListConditionControls,@object-ui/plugin-list):rounded-full→rounded-md.Why
#36047 items 3 and 4 (maintainer-approved Attio comparison): one corner value for controls, and a white content area with the grey left only to the sidebar, changed on theme variables and shared components rather than page by page. Items 1 and 2 (two text sizes, two weights) are slice 2.
Verification
Measured in a real browser (CRM example, console dev server against it) before and after, 1440 and 375, light and dark: list (account), record page (opportunity), kanban (opportunity pipeline), create dialog. Computed values, screenshots and the script:
/mnt/project-files/build-seat1/36047/(before/,after/,measure.json,shots.cjs).Tests:
scripts/__tests__/shadcn-local-patches.test.ts(the newbadgefamily: fixture present, hash, anchors apply to registry bytes, marker, round-trip pinned), and every test file that mentions the changed classes or tokens, pluspackages/plugin-list/src(192 files, 2180 tests, all pass). eslint on the changed files: 0 errors.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses (eslint on every changed file locally; CI's Lint UI is the full reading).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVDwx4yqxWdY3Rurnk