Repository navigation
fix(record-page): the record header's Edit is an outline button, and the desktop header row is 28 high - #36061
Conversation
…desktop header row 28 high The host's Edit no longer draws as the filled primary when the object declares no header action; the page's own actions keep their pick and faces, the edit state's Save stays filled, the phone bar is unchanged. Every desktop header-row button, the ⋯, the approval levers there and the trailing panel toggles are 28 high (`sm:h-7`); a declared `size` wins. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTFnmxG5snBaBLNBei
…danger-variant pins Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTFnmxG5snBaBLNBei
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读记录页顶部的「编辑」按钮改为描边样式,和「⋯」、右栏开关一起统一为 28 高、底边对齐;对象自己声明的主按钮(如「转换线索」)和编辑状态下的「保存」仍是实心。手机端不变(底部栏的编辑仍为实心 44 高)。L1 结论:接受,无需修改;这不是契约面,不需要 Fable L2。 席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T12:45Z · The b1-R2 card-thread PR for #36049: on the desktop record page and record drawer, the header's Edit button is now outlined, and the whole header action row (Edit, page actions, ⋯, the approval bar's buttons in the header, the row-end panel toggle) is 28 high with one bottom edge. Edit is the only button whose face changes. Explicit sizes keep theirs, and phones are unchanged (every height change is |
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTFnmxG5snBaBLNBei
Fixes #36049
Part of epic #35590 (area b1-R2). Seat claim 7061925752. Height scope reviewed by fable before the build: reading A, the whole desktop header row is 28 high and only Edit changes face; "keeps its style" on the card means colour and rank, not height. Flow: dev-thread rule (the card thread builds itself; L1 at L1-c).
What changes
page:header,containers.tsxrenderButton). The primary pick is unchanged; when the pick is a host button that does not declarevariant: 'primary'(the record page's Edit, which is the pick only when the object declares no header action of its own), it drawsoutline. The page's own actions keep their pick and faces: a declaredvariant: 'primary'is filled, and with none the first page action still is. The edit state's Save (a host button declaringvariant: 'primary', 记录页编辑状态:「取消」是蓝色主按钮、「保存」是描边,主次反了;有默认值的必填列在新行上显示红框 #35816) stays filled. The phone's bottom bar (face: 'bar') is unchanged and still draws Edit filled at 44.sm:h-7): the row's buttons, the⋯, the approval levers a record under approval draws in that row (DeclaredActionsBarheader parts: 32 → 28), and the trailing panel toggles (PanelToggles, 32 → 28; the record page is its one consumer). An action that declares its ownsizekeeps it. Phone rows keep 36 (size: 'sm'below thesmbreakpoint).page:headeris a shared block, so a custom page's header actions are 28 high on desktop too.⋯was already 28. On main it was 36, like Edit (measured below); since feat(record-page): two-row record header — navigation over the record, up to three actions #35983 the 28-high previous/next switch sits on the header's first row, not beside Edit.maxVisible's registry description gains one sentence ("The host's Edit is always an outline button…");sdui.manifest.json, its record andcontent/docs/ui/components/page.mdxregenerated (gen-sdui-manifest-node.mjs,gen:sdui-reference).plugin-detail's standaloneDetailViewEdit (the console record page does not draw it).Why
Item 10 of the maintainer-approved Attio comparison: the solid blue 36-high Edit was the loudest thing on the record page, louder than the record's name and stage, though fields already edit in place, so Edit is not the page's main action.
Verification
@object-ui/componentspage-header*+panel-togglessuites: 31 files, 302 passed. Newpage-header-edit-outline-36049.test.tsx(5 cases: no app action → Edit outline + 28 and⋯28; declared primary stays filled at 28; first page action without a variant still filled; a declaredsizekeeps its height; panel togglesh-7). Two pins moved to the new face:page-header-primary-12617("with no app action, Edit is outline and nothing is filled") andpage-header-danger-12764(Edit still leads beside a lone danger action, now outline).page-header-phone-bar-27058(Edit filled in the bar) unchanged and green.@object-ui/app-shellDeclaredActionsBar*+RecordDetailView*: 98 files, 762 passed.tsc --noEmitfor@object-ui/components: clean. eslint on touched files: 0 errors.objectstack dev --seed-admin --fresh) + console on Vite, 1280, light and dark, measured withgetBoundingClientRect:⋯34×36⋯34×28, panel toggle 28; all three top 96 / bottom 124⋯28Screenshots (
before-*/after-*, light and dark, record page, lead, drawer, edit state) and*-measure.jsonin the project's evidence folder (build-seat1/36049/).overlap-check.mjsclean before push (sharesRecordDetailView.tsxwith feat(ui): the object's colour tile replaces its line icon in list headers, search, recents, pointers, hover cards, related lists and the studio #36042: merges cleanly).Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintis left to CI).main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTFnmxG5snBaBLNBei