Repository navigation
fix(plugin-list, plugin-kanban, plugin-grid, app-shell): cards whose click opens nothing draw no pointer, and an authored none row opens no tab on a modifier click - #33671
Conversation
…card faces, and an authored none row opens no tab on a modifier click Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
…rows open nothing; docs and changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
…-face pin Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
|
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD Contract reviewServed-tier: Inputs: card #33548 (body, claim 6889048768, os-dev-report 6889796521, claim amendment 6889808575), PR #33671 (body, 16 files, net diff against merge-base ① Derived judgmentsPublic surface the diff publishes:
Accept-set and behaviour:
Findings:
Gates: on the head, 16 check-runs succeeded, 14 were skipped and 28 are still in progress (Type Check, Lint, Test UI and Test Core shards, Build & E2E UI, Build Docs, Check Changeset). None has failed. "Check PR Size", "Check Documentation Links", "PR-body guards", "Governed Surface Queue Guard", "Spec property liveness" and "Dogfood Regression Gate" are green. This record judges the contract, and landing still waits for the remaining runs, which the queue enforces. ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
…ontrol: no button role, tab stop, key activation or title hover Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
… button, without the reserved word Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT
|
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD Contract reviewServed-tier: Inputs: card #33548 (body, claim 6889048768, os-dev-report 6889796521, claim amendment 6889808575), PR #33671 (body, 16 files, net diff against merge-base ① Derived judgmentsRound-1 should-fix: fixed, and fixed right. In
Every other combination is byte-identical to round 1.
Pins. The board block of
Read against the round-1 code, the new non-control assertions fail there (the attributes and Public surface: unchanged. Round-1 ① judgments stand unchanged for the phone card, the gallery, the Findings:
Gates. On the head: 8 succeeded, 10 skipped and 18 are in progress. None has failed.
This record judges the contract. Landing still waits for the remaining runs, which the queue enforces. ② Semver levelUnchanged and still right.
③ Boundary flagsThe delta raises no new dev flag and no new
Implemented-by: VERDICT: PASS |
|
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD 席位核对Verdict: ACCEPT · head
|
|
domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD Landing · head
State: ready + auto-merge. |
Requested by Leehom · project thread
domain:ui#1 · os-project-manager · session_01FEkQ5mW5PFQoLHxgbsuizT
Fixes #33548
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
navigation.mode: 'none',或对象只开放list),手机卡片、画廊卡片、看板卡片不再显示手型指针和悬停浮起效果;卡片上的操作(手机卡片的「⋮」)照旧。另外,视图写了none时,⌘/Ctrl+点击或中键点击行也不再在新标签页打开记录。rowOpensRecord(与表格同名),不传时与之前完全一样;能打开记录的列表(抽屉、页面)行为不变,⌘+点击照旧开新标签页;可拖动的看板卡片保留抓手光标和拖动语义;既不能拖也打不开的看板卡片不再是按钮、不占 Tab 停留位、不响应 Enter/空格。回滚即 revert 本 PR。ui/packages/app-shell/src/views/objectViewRecordNavigation.ts的handleRowClick里新加的overlay.mode === 'none'一行;ui/packages/plugin-list/src/ListView.tsx的ROW_OPENS_RECORD_VIEW_TYPES;ui/packages/plugin-kanban/src/KanbanImpl.tsx的KanbanCardsOpenRecord。pnpm --dir ui exec vitest run packages/app-shell/src/views/ObjectView.cardFacesOpenNothing-33548.test.tsx packages/app-shell/src/views/ObjectView.rowOpensNothing-33317.test.tsx,预期 21 个用例全绿。What changes
Measured on
origin/maind95ddebc(#33544 included) before the fix, each face on a list whose rows open nothing:mainmainmaincursor-pointerandhover:bg-accent/50, unconditionalonRowClick, which opens nothingObjectGridbuildMobileCardRenderer: thedata-testid="grid-mobile-card"div's literal class string. The grid already receivedrowOpensRecordbut the card never read itcursor-pointerplus the hover lift (hover:shadow-lg hover:-translate-y-0.5)ObjectGalleryrenderCard:(props.onCardClick || props.onRowClick || schema.navigation) && 'cursor-pointer', andListViewhandedrowOpensRecordtoobject-gridonlycursor-pointeron a card that cannot be dragged (cursor-grabon one that can), plus the hover liftKanbanImplSortableCard:movable ? "cursor-grab active:cursor-grabbing" : "cursor-pointer"nonegrid rowobjectViewRecordNavigationhandleRowClickhands a modifier click tonavOverlay.handleClick;useNavigationOverlayhandleClickopensnew_windowonevent.metaKey || event.ctrlKey || event.button === 1before it readsmode === 'none'No face failed to reproduce, so nothing is pinned as already fixed.
The fix (every face reads #33544's
rowOpensRecord; no second name):ListViewhands itsrowOpensRecordtoobject-grid,object-galleryandobject-kanban(ROW_OPENS_RECORD_VIEW_TYPES), on the same host channel fix(plugin-grid): a list row whose click opens nothing draws no record link and no Open item #33544 used for the grid.@object-ui/plugin-grid).rowOpensRecord === falsedropscursor-pointerand the hover wash. The "⋮" stays; the click still reachesonRowClick, as on the desktop row.@object-ui/plugin-list).ObjectGalleryPropsgainsrowOpensRecord?: boolean;falsedrops the pointer and the hover lift. Links inside a card stay links.@object-ui/plugin-kanban).ObjectKanbanComponentPropsgainsrowOpensRecord?: boolean, forwarded through the internalKanbanBoardCoreandKanbanBoardto everySortableCardby context (the waycardsMovablealready travels). A card that cannot be dragged and opens nothing is no control at all (control = movable || opensfalse inSortableCard): the wrapper gets no dnd-kit attributes (notabindex,aria-roledescriptionoraria-describedby), norole="button"and noaria-label, Enter and Space activate nothing, and the face drops the pointer, the hover lift and thegroupclass that drives the title'sgroup-hover:text-primary. Its click still reachesonCardClick, which the host routes to nothing. A draggable card keeps its grab cursor, hover and drag semantics, because a drag is still something it does.@object-ui/app-shell). The card's ruling: an authorednonerow opens no record by any click.handleRowClicknow returns onoverlay.mode === 'none'before it reads the modifier, beside the existing list-only return. The shareduseNavigationOverlayhook is unchanged: itsnonecheck sits on one line withpreventNavigation, which card console: a drawer list view with navigation.preventNavigation still opens the record drawer on row click #33549 owns.rowOpensRecord⇒ every face is what it was.Docs.
plugin-list,plugin-kanbanandplugin-gridREADMEs and the matchingcontent/docs/frontend/plugins/pages say which faces read the prop and what they drop.Changeset.
.changeset/33548-card-faces-open-nothing.md(patch for plugin-grid, plugin-list, plugin-kanban, app-shell and console). It carries a sentence superseding the pending #33317 note's "still opens the record in a new tab, as before"; that note is not edited.Tests
ObjectView.cardFacesOpenNothing-33548.test.tsx(12 cases), through the realObjectView,ListView, gallery, board and grid and the realMePermissionsProvider; one differential per case, only the view'snavigation, the served operations or the edit grant differ:noneand list-only: no pointer, no hover lift; a click and a ⌘-click change no location and open no tab. CONTROL (default drawer): pointer, a click opens?recordId=c1, a ⌘-click opens one tab.noneand list-only: no pointer, no hover lift; click, Enter and Ctrl-click open nothing; and the card is no control: norole="button", notabindex="0", no title hover. A draggable card undernonekeepscursor-grab, the button role and the tab stop, and gains no pointer. CONTROL (default drawer, not draggable): pointer, button role, tab stop and title hover; Enter opens the drawer, and so does a click.grid-card-actions) stays, a tap opens nothing. CONTROL (served object): pointer, a tap opens/record/c1.ObjectView.rowOpensNothing-33317.test.tsx. The pin that expected a new tab on ⌘-click under authorednonenow expects none for ⌘, Ctrl andbutton: 1; new: a list-only object opens no tab on ⌘ or middle click; new CONTROL: the default drawer opens a tab on each of the three.A real middle click fires
auxclick, which no row handler listens to; the pins driveclickwithbutton: 1, the shapehandleRowClickreads.Ablation (legs A1b–A5 on head
98ef7bee, leg A6 one22e358e;scripts/ablation-replace.mjs, each leg restored to the HEAD blob withgit diff HEADempty; ui vitest resolves@object-ui/*fromsrc/, so nodist/is in the path):98ef7bee, 21 ate22e358e)ObjectGrid.tsxrowOpensRecord !== false && 'cursor-pointer hover:bg-accent/50',→(rowOpensRecord !== false || true) && …ObjectGallery.tsxconst cardOpens = props.rowOpensRecord !== false;→Boolean(props) || …none, gallery list-onlyKanbanImpl.tsxconst opens = React.useContext(KanbanCardsOpenRecord)→true || …none, board list-onlyListView.tsxROW_OPENS_RECORD_VIEW_TYPES.has(viewComponentSchema.type)→ the old grid-only testobjectViewRecordNavigation.tsif (overlay.mode === 'none') return;deletednone(their ⌘/Ctrl clicks)KanbanImpl.tsxconst control = movable || opens→true || movable || opensnoneand list-only, both the face pins and the no-control pinsEvery leg:
ablation-replace: ok mutation landed: anchor 1 -> 0, thenok restored: blob == HEAD … and git diff HEAD is empty; all CONTROL cases stayed green on every leg. The first tries of A1 and A3 were refused by the tool before running (the replacement count moved 1 -> 1/the anchor count moved 1 -> 1: the replacement and anchor were substrings of each other), so they measured nothing; A1b and A3b are the rerun with distinct replacements.Acceptance notes
none: rows still open the record page. On a phone the console resolves every served object's rows topage"whatever the view or the object declares" (objectstack#27058's rule inobjectViewRecordNavigation), so an authorednonelist opens records there, and its phone cards correctly keep the pointer. Probed through the realObjectViewat 375 px on this branch: a tap went to/apps/setup/demo_credential/record/c1. This contradicts the spec's "No navigation (read-only list)" and this card's ruling; it is reported to the seat as an open question, not changed here.ListViewCompactRows,ListViewCappedRows) draw their rows as buttons / pointer rows and are not handedrowOpensRecord; the console's object list does not mount them. Reported to the seat, not changed.Verification
Head
6ae0b07a(the board-control fixe22e358eplus a docs rewording for the reserved-word gate). Runs on98ef7beethat this head does not move are kept and marked.Pins: 21/21 green (12 new, 9 in the updated #33317 file)
Typecheck and package suites (each under scripts/pm/os-verify-lock.sh, VERDICT command-exit 0)
The full app-shell suite (about 75 minutes on the shared box) was narrowed to the files that mount the changed hosts and faces; CI runs it whole.
Derived gates on 6ae0b07: 69 derived, 69 run, 0 NOT-MEASURED
Also on
98ef7bee:pnpm --dir ui check:new-line-citations→0 new citation(s);eslinton the 9 touched source and test files → 0 errors, warnings only.Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses. (CI runs the repo lint.)main, one pull request.packages/spectouched: not touched.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5mW5PFQoLHxgbsuizT