Skip to content

fix(record-page): the record header's Edit is an outline button, and the desktop header row is 28 high - #36061

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-08k8f2
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-08k8f2

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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

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/components page-header* + panel-toggles suites: 31 files, 302 passed. New page-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 declared size keeps its height; panel toggles h-7). Two pins moved to the new face: page-header-primary-12617 ("with no app action, Edit is outline and nothing is filled") and page-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-shell DeclaredActionsBar* + RecordDetailView*: 98 files, 762 passed.
  • tsc --noEmit for @object-ui/components: clean. eslint on touched files: 0 errors.
  • Browser, app-crm (objectstack dev --seed-admin --fresh) + console on Vite, 1280, light and dark, measured with getBoundingClientRect:
Page Before After
Opportunity record (no header action) Edit 73×36 filled blue, ⋯ 34×36 Edit 75×28 outline, ⋯ 34×28, panel toggle 28; all three top 96 / bottom 124
Lead record (declares Convert Lead) Convert Lead 136×36 filled, Edit 36 outline Convert Lead 136×28 still filled (same colour), Edit 28 outline
Opportunity opened in the drawer from an account's related list Edit 73×36 filled Edit 75×28 outline, ⋯ 28
Opportunity, Edit pressed edit state edit state, Cancel 28 outline, Save 28 filled

Screenshots (before-* / after-*, light and dark, record page, lead, drawer, edit state) and *-measure.json in the project's evidence folder (build-seat1/36049/).

Clause-②: no
Metadata-protocol: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; eslint on the touched files is clean (the full pnpm lint is left to CI).
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTFnmxG5snBaBLNBei

…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
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
…danger-variant pins

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTFnmxG5snBaBLNBei
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

记录页顶部的「编辑」按钮改为描边样式,和「⋯」、右栏开关一起统一为 28 高、底边对齐;对象自己声明的主按钮(如「转换线索」)和编辑状态下的「保存」仍是实心。手机端不变(底部栏的编辑仍为实心 44 高)。L1 结论:接受,无需修改;这不是契约面,不需要 Fable L2。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head 82a8637d · 2026-11-21T12:43Z

Card: Fixes #36049 (epic #35590, b1-R2, S). Seat claim 7061925752 (Clause ② no, metadata protocol none, height scope = reading A).

Gates: CI 54 success · 10 skipped · 0 failed on 82a8637d; mergeable clean; l1-face CLEAN. Not a contract face (no packages/spec/src/**, no docs/adr/**): no L2 owed. The registry description edit is prose only, with sdui.manifest.json, scripts/sdui-manifest.record.json and page.mdx regenerated in step.

Code read (all 11 files):

  • containers.tsx PageHeaderActions: hostEditPick drops the filled face only when the pick is a host action (key not among the authored header actions), off the bar face, and not declared variant: 'primary'. An authored primary and the first authored page action keep default. sm:h-7 applies only when the action has no explicit size, so authored sizes win; the ⋯ trigger matches.
  • DeclaredActionsBar.tsx: header tone sm:h-8 → sm:h-7 on the action, override and more buttons, so the row reads at one height.
  • panel-toggles.tsx: default h-8/w-8 → h-7/w-7. The one call site (RecordDetailView.tsx) already passed h-7 via className, so the drawn toggle is unchanged; the default now agrees.
  • RecordDetailView.tsx: comment only.
  • Phones: every header height change is sm:-gated, and the right-column toggle is never drawn on the phone tier; page-header-phone-bar-27058 is untouched and green. I accept the changeset's "phones unchanged" on that basis; no 375 screenshot is owed for a change that does not reach the phone tier.

Tests: new page-header-edit-outline-36049 (5 cases: host Edit outline and 28 high; declared primary stays filled; first page action stays filled; explicit size kept; toggles h-7). page-header-danger-12764 and page-header-primary-12617 flip the old "Edit filled" expectation, each with a comment naming this card; that flip is the card's ask, not a weakened test.

Evidence (before/after at 1280, light and dark; opportunity, lead, drawer, edit state; measured JSON): opportunity Edit 75×28 outline (1px border, muted fill) beside ⋯ 34×28, same bottom edge; lead keeps Convert Lead 136×28 filled; the edit-state Save stays filled; drawer shots match.

Changeset: @object-ui/components + @object-ui/app-shell patch, user-facing wording, states the phone exemption.

Nit (no action needed): hostEditPick covers any host action that becomes the pick, not only Edit. Today Edit is the only host header action that can be picked, so behaviour equals the card; if a second host action is ever added it will also draw outline, which matches the new registry sentence.

Verdict: ACCEPT at 82a8637d. Any new head gets a delta read.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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 sm:-gated). The height scope (reading A) was reviewed by fable before the build. The card's "⋯ is 28" is corrected in the body: it measured 36. Clause-②: no, so no declaration-face L2 is owed. L1-c ACCEPT 7062769888 on 82a8637d (this head). check-governed-merges --pr 36061 reads NOT governed (+176/−19). The seat read K by hand: 7 first-parent commits since the merge base, under 15; main since then touches no translations/ bundle and three skills/ files this PR does not touch. On this head, 54 check-runs are success, 10 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #36049.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 12:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 493ad09 Nov 21, 2026
65 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-08k8f2 branch November 21, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

记录页右上角「编辑」按钮降一档:从实心蓝色 36 高改成描边 28 高

2 participants