Repository navigation
fix(console): full-height edge drawers have square corners - #35986
Conversation
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>
|
repo:objectstack#1 · os-sales · session_01L6bhgWpXbemoAH9WZiykjb Read at 2026-11-21T04:45Z. Final head for review: Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — ACCEPT (L1-b)Head-sha: da6a956 · read 2026-11-21T04:47Z 维护者速读
Must-fixNone. Should-fix
Checked
Owed
|
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>
|
repo:objectstack#1 · os-sales · session_01L6bhgWpXbemoAH9WZiykjb Read at 2026-11-21T05:24Z. Final head for review (fix round 1): Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha: 6d88e59 · read 2026-11-21T05:25Z · delta from 维护者速读
Delta
Must-fix / Should-fixNone. Owed
|
|
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 |
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 everyrole="dialog"surface a1.25rem !importantradius now reads[role="dialog"]:not(.inset-y-0). The Sheet'sleftandrightvariants are the ones that carryinset-y-0(full height, pinned to three viewport edges), so they render square; centred dialogs,topandbottomsheets 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.tsxis not edited. The suggesteddata-sidemarker would be an edit in the Shadcn No-Touch zone (ui/AGENTS.mdCommandment Remove explicit pnpm version from workflows to fix version conflict #7), which needs a declared local patch inui/scripts/shadcn-local-patches.mjsplus its registry fixture: outside the dispatch's file fence. The variant's owninset-y-0class is the same fact (a full-height edge sheet) and needs no edit there.NavigationOverlaydrawer mode) is the exception the card names. Since the floating-card change onmain, it is a right Sheet whose own classes addsm:inset-y-2 sm:right-2 sm:rounded-xl sm:border sm:shadow-2xl. It still carries the variant'sinset-y-0, because tailwind-merge keeps an unprefixed class beside itssm:counterpart. So the rule does not match it, and fromsmup its ownrounded-xlapplies. Onmainbefore this PR, the global1.25rem !importantoverrode that class. Belowsmthe 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, andrecordDrawerStack.tsx/navigation-overlay.tsxare untouched.'@object-ui/console': patch.Right/left full-height drawers that render
role="dialog"Every one goes through
SheetContentwithside="right"/side="left"(or the defaultright) and none of the call sites overridesinset-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-rolledrole="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 anaside(no dialog role, already square). None of them changes here.Tests
ui/apps/console/src/__tests__/edgeSheetSquareCorners-35411.test.tsx: reads the selector of the one1.25remrule from the shippedindex.cssand matches it against the DOM the realSheetContent/DialogContentrender. Left and right sheets are not matched; bottom and top sheets and a centred dialog are. A second describe renders the realNavigationOverlayrecord drawer: the rule does not match it, and it carries its ownsm:rounded-xl. That radius is asserted on the className it ships, because the test DOM has no compiled Tailwind.scripts/ablation-replace.mjs, restored by its own leg and checked withgit diff HEADempty 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
Test Files 1 passed (1),Tests 6 passed (6).× a left sheet is not matched,× a right sheet is not matched,Tests 2 failed | 4 passed (6); restore: diff empty, hash match.da6a9568: pin +scripts/__tests__/check-hand-rolled-comment-mask.test.tsTests 28 passed (28).6d88e59b(after mergingorigin/mainf9f45d3, spec rebuilt): pinTests 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
inset-y-0. If a later edit replaces that class with an unprefixed inset, the!importantrule matches the drawer again. The second describe in the pin catches that.rounded-noneand the phone layout of the mobile dialog content isfixed inset-0; both arerole="dialog", so the!importantradius still rounds those full-viewport surfaces. Radix popovers also renderrole="dialog"and are rounded by the same rule. All of this is unchanged by this PR.Verification
Two-minute check: open the console at 1280x800, click the bell; the notification center's computed
border-radiusis0px; open any centred dialog and it still reads20px; open a record from a list and the floating record drawer reads12px(its ownrounded-xl).Local gates
Head
6d88e59b, after mergingorigin/main(f9f45d3) into the branch.node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commandsderived the same 37 families against merge base f9f45d3; all 37 ran on this head and exited 0.--ranreconciliation: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/. Itscheck-hand-rolled-comment-mask.test.tsrefused the pin's regex comment strip, fixed inda6a9568. Itsunit-registry-absence-collision.test.tsfailed because@objectstack/clienthad no localdist. That family exits 0 onda6a9568and on6d88e59b.tsc --noEmit: NOT MEASURED. This checkout has no built@object-ui/*declarations, so TS2307 errors appear across the console. Declared to CI'sType Check UI.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgWpXbemoAH9WZiykjb