Skip to content

fix(console): full-height edge drawers have square corners - #35986

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-y8cwjy
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-y8cwjy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
Fixes #35411
Clause-②: no
Metadata-protocol: none

repo:objectstack#1 · os-sales · session_01L6bhgWpXbemoAH9WZiykjb

维护者速读

  • 控制台里从左右两侧整高滑出的抽屉(消息中心、表单抽屉等)四角从圆角变成直角,不再在屏幕边缘露出弧形缺口;记录抽屉是悬浮卡片,显示它自己的圆角;居中弹窗和手机底部面板仍是圆角。
  • 属于「控制台核心业务操作体验」专题,按你同意的界面意见修掉贴边抽屉的圆角。
  • 出错最坏是某个抽屉或弹窗的圆角和以前不同;只改一条样式,不动数据和流程,可以直接撤回。
  • 无

What changes

  • ui/apps/console/src/index.css: the console-wide rule that gives every role="dialog" surface a 1.25rem !important radius now reads [role="dialog"]:not(.inset-y-0). The Sheet's left and right variants are the ones that carry inset-y-0 (full height, pinned to three viewport edges), so they render square; centred dialogs, top and bottom sheets and the vaul bottom drawer keep the rounded corners exactly as before. role="alertdialog" was never matched by the rule and is untouched. Width, animation and content are unchanged.
  • ui/packages/components/src/ui/sheet.tsx is not edited. The suggested data-side marker would be an edit in the Shadcn No-Touch zone (ui/AGENTS.md Commandment Remove explicit pnpm version from workflows to fix version conflict #7), which needs a declared local patch in ui/scripts/shadcn-local-patches.mjs plus its registry fixture: outside the dispatch's file fence. The variant's own inset-y-0 class is the same fact (a full-height edge sheet) and needs no edit there.
  • The record drawer (NavigationOverlay drawer mode) is the exception the card names. Since the floating-card change on main, it is a right Sheet whose own classes add sm:inset-y-2 sm:right-2 sm:rounded-xl sm:border sm:shadow-2xl. It still carries the variant's inset-y-0, because tailwind-merge keeps an unprefixed class beside its sm: counterpart. So the rule does not match it, and from sm up its own rounded-xl applies. On main before this PR, the global 1.25rem !important overrode that class. Below sm the drawer is full width and flush with the edges, so it is square like the other edge sheets. No selector change was needed for it, and recordDrawerStack.tsx / navigation-overlay.tsx are untouched.
  • One changeset: '@object-ui/console': patch.

Right/left full-height drawers that render role="dialog"

Every one goes through SheetContent with side="right" / side="left" (or the default right) and none of the call sites overrides inset-y-0, so all are square now: the notification center (ActivityFeed), the side form drawer (ObjectView), the action-modal sheet (useActionModal), the metadata detail drawer, the Studio item tools, draft changes, commit timeline, permission-matrix and resource-edit side panels, access explain, build doctor, dashboard record/drill-down drawers, chart drill-down, flow runs, audit log, AI pending-actions inbox, the AI chat mobile sidebar (left) and the mobile app sidebar (left).

No full-height edge drawer renders role="dialog" without going through Sheet. The hand-rolled role="dialog" elements are a floating debug panel, a full-screen confirm overlay in the app-creation wizard, the map's mobile bottom card and the floating chatbot panel; the Studio right slot's overlay mode is an aside (no dialog role, already square). None of them changes here.

Tests

  • New pin ui/apps/console/src/__tests__/edgeSheetSquareCorners-35411.test.tsx: reads the selector of the one 1.25rem rule from the shipped index.css and matches it against the DOM the real SheetContent / DialogContent render. Left and right sheets are not matched; bottom and top sheets and a centred dialog are. A second describe renders the real NavigationOverlay record drawer: the rule does not match it, and it carries its own sm:rounded-xl. That radius is asserted on the className it ships, because the test DOM has no compiled Tailwind.
  • Reverse verification (fix committed first, mutation through scripts/ablation-replace.mjs, restored by its own leg and checked with git diff HEAD empty plus a HEAD-blob hash match): restoring the old [role="dialog"] { selector turns exactly the two edge-sheet cases and the record-drawer case red.
Readings
  • Pin at the fix commit: Test Files 1 passed (1), Tests 6 passed (6).
  • Ablation: anchor 1 -> 0, blob 303259ad4309 -> 0839540f24b8; × a left sheet is not matched, × a right sheet is not matched, Tests 2 failed | 4 passed (6); restore: diff empty, hash match.
  • Head da6a9568: pin + scripts/__tests__/check-hand-rolled-comment-mask.test.ts Tests 28 passed (28).
  • Head 6d88e59b (after merging origin/main f9f45d3, spec rebuilt): pin Tests 8 passed (8). Ablation of the selector: × a left sheet is not matched, × a right sheet is not matched, × is not matched by the global rounding rule, Tests 3 failed | 5 passed (8); restore: diff empty, hash match.

Acceptance notes

  • The record drawer's own radius wins only while it keeps the Sheet variant's inset-y-0. If a later edit replaces that class with an unprefixed inset, the !important rule matches the drawer again. The second describe in the pin catches that.
  • Observations, not measured in a browser and not filed: the floating chatbot's fullscreen mode sets rounded-none and the phone layout of the mobile dialog content is fixed inset-0; both are role="dialog", so the !important radius still rounds those full-viewport surfaces. Radix popovers also render role="dialog" and are rounded by the same rule. All of this is unchanged by this PR.
  • Before/after screenshots were skipped: booting the console with a backend is expensive in this container, and the pin above is the card's acceptance.

Verification

Two-minute check: open the console at 1280x800, click the bell; the notification center's computed border-radius is 0px; open any centred dialog and it still reads 20px; open a record from a list and the floating record drawer reads 12px (its own rounded-xl).

Local gates

Head 6d88e59b, after merging origin/main (f9f45d3) into the branch. node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived the same 37 families against merge base f9f45d3; all 37 ran on this head and exited 0. --ran reconciliation: 37 derived famil(ies) accounted for — 37 run, 0 NOT-MEASURED (a DERIVED zero — all 37 recorded an exit code and none of them is 3).

On the first head 15b149ca, one family was red: pnpm --dir ui exec vitest run scripts/. Its check-hand-rolled-comment-mask.test.ts refused the pin's regex comment strip, fixed in da6a9568. Its unit-registry-absence-collision.test.ts failed because @objectstack/client had no local dist. That family exits 0 on da6a9568 and on 6d88e59b.

  • eslint (console config) on the new test: exit 0.
  • Console tsc --noEmit: NOT MEASURED. This checkout has no built @object-ui/* declarations, so TS2307 errors appear across the console. Declared to CI's Type Check UI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWpXbemoAH9WZiykjb

The console's dialog corner rule skips left/right Sheets (they carry
inset-y-0), so drawers pinned to three viewport edges are square while
centred dialogs and bottom sheets keep the 1.25rem radius. A pin matches
the shipped selector against the DOM the real primitives render.

Claude-Session: https://claude.ai/code/session_01L6bhgWpXbemoAH9WZiykjb
Co-authored-by: Claude <noreply@anthropic.com>
…ent strip

The pin located the rule by stripping block comments with a regex, which the
hand-rolled comment-mask gate refuses. It now finds the one declaration and
slices back to the rule's selector.

Claude-Session: https://claude.ai/code/session_01L6bhgWpXbemoAH9WZiykjb
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s 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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWpXbemoAH9WZiykjb

Read at 2026-11-21T04:45Z. Final head for review: da6a95687d4a1826ac727aabdcca28f44644f7ed — every check-run on this head is completed: 32 success, 13 skipped, 0 failed; mergeable state clean. No further pushes planned; L1 is requested on this head (area b1-CX → L1-b).


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — ACCEPT (L1-b)

Head-sha: da6a956 · read 2026-11-21T04:47Z

维护者速读

Must-fix

None.

Should-fix

Checked

  • l1-face on da6a9568: clean (32 success, 13 expected skip, 0 failed, mergeable clean; @object-ui/console changeset present).
  • ① Is .inset-y-0 a stable discriminator? It is the left/right variants' own class in sheetVariants (top/bottom use inset-x-0), so it marks exactly the full-height edge sheets. Its stability comes from the pin: it renders the real SheetContent from @object-ui/components and matches the DOM against the selector read from the shipped index.css. If a Shadcn sync drops inset-y-0 from the variant, the left/right cases go red. Leaving sheet.tsx untouched is right: Commandment Remove explicit pnpm version from workflows to fix version conflict #7 makes it a No-Touch zone, and a data-side marker would need a declared local patch.
  • ② Record drawer: it is still a full-height right Sheet at this head, so it goes square here. That matches the rest of the card until 从列表打开记录:点名称进整页,悬停名称格的图标才开侧边;去掉「打开记录」设置和撑满的抽屉;整页带着列表来历;抽屉改悬浮卡片 #35854 lands, and the body says so (S1 above).
  • Card item 2: centred dialogs, top/bottom sheets and the vaul drawer keep the rule, pinned for top, bottom and the centred dialog.
  • Card item 3 ("no leftover rounded trace on border or shadow"): Sheet carries no radius of its own, so border and shadow follow the 0 radius. There is no browser reading, and the body says screenshots were skipped. The two-minute check in the body gives the computed-style reading a reviewer can take.
  • The selector reader in the pin finds the single 1.25rem !important declaration and fails if a second appears. After review it no longer uses a hand-rolled comment strip.
  • Changeset: patch; its sentences match the diff (the record drawer is named as square, which is true at this head).

Owed

  • L1 does not replace an L2.

The record drawer is a floating card that sets sm:rounded-xl; the pin now
proves the console's dialog corner rule does not match it, so its own radius
wins. The changeset no longer lists it among the square drawers.

Claude-Session: https://claude.ai/code/session_01L6bhgWpXbemoAH9WZiykjb
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m and removed size/s labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgWpXbemoAH9WZiykjb

Read at 2026-11-21T05:24Z. Final head for review (fix round 1): 6d88e59bf54593a76495fc30fe31b075433a314d — merges origin/main f9f45d3 (which carries the floating record drawer) and adds a pin that the record drawer is not matched by the global rounding rule and keeps its own sm:rounded-xl; no selector change was needed. Every check-run on this head is completed: 32 success, 13 skipped, 0 failed; mergeable state clean. PR body brought to this head. L1-b delta requested.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 6d88e59 · read 2026-11-21T05:25Z · delta from da6a9568 (ACCEPT 7057488172)

维护者速读

Delta

Must-fix / Should-fix

None.

Owed

  • CI at read: 33 success, 0 failed, 1 pending (Check Changeset). This L1 is final once that check is green on 6d88e59b.
  • L1 does not replace an L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T05:27Z · Area b1-CX's PR for #35411. After merging main (with #35910's floating record drawer), the card thread measured the floating drawer: it still carries inset-y-0, so the global [role="dialog"]:not(.inset-y-0) rule does not reach it and it keeps its own sm:rounded-xl. A second pin renders the real NavigationOverlay. Clause-②: no, so no contract L2 is owed. L1-b ACCEPT 7057488172 on da6a9568, and a delta ACCEPT 7057911259 on 6d88e59b (this head), whose S1 the new pin closes. check-governed-merges --pr 35986 reads NOT governed (+134/−2). landing-k could not answer (no Test Core shard ran in the last green run), so the seat read K by hand: K = 4, and the PR touches neither translations/ nor skills/. On this head, 34 check-runs are success, 15 are skipped and none failed; mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35411.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 05:27
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 549c9f5 Nov 21, 2026
50 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-y8cwjy branch November 21, 2026 05:46
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.

贴边的右侧整高抽屉四角是 20px 圆角;改成直角(记录抽屉除外,它改成悬浮卡片)

2 participants