Repository navigation
fix(studio): kanban card click-to-open offers only Default and Don't open - #36257
Conversation
Object lists ignore navigation.mode drawer/page/new_window since the deprecation; the inspector stops offering them, draws a stored one flagged deprecated so it can be cleared, and drops the three labels. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 Final green head · area a4-D · 2026-11-22T04:14Z |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd 席位核对 — ACCEPT · head 3bcbac0
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 席位核对Landing · area a4-D · 2026-11-22T04:16Z · head
Ready + auto-merge now. |
Requested by Leehom · project thread
Fixes #35936
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
KanbanCardSectioninObjectListViewInspector.tsx) offersnavigation.modeas Default (no key) andnoneonly.drawer,pageandnew_windowparse on an object's list and change nothing since the deprecation in 从列表打开记录:点名称进整页,悬停名称格的图标才开侧边;去掉「打开记录」设置和撑满的抽屉;整页带着列表来历;抽屉改悬浮卡片 #35854, so they are no longer offered.engine.form.deprecatedflag throughflagUnknownValue(drawer (deprecated)/drawer(已弃用)), the same ruleInspectorSelectFieldapplies to a stored value its roster does not offer. Picking Default removes the key. Opening the view writes nothing. A value outside the spec union keeps its raw monospace row, as before.en,zh) dropsengine.studio.inspector.listView.kanbanCard.mode.drawer,.mode.pageand.mode.newWindow: the flagged row shows the stored value, not the old label, so nothing reads them.navigation.modestays as 从列表打开记录:点名称进整页,悬停名称格的图标才开侧边;去掉「打开记录」设置和撑满的抽屉;整页带着列表来历;抽屉改悬浮卡片 #35854 left it, and page blocks keep every mode.Read first (by risk):
ObjectListViewInspector.tsx, theOFFERED_NAVIGATION_MODESconstant and the click-to-openSelectContent: the only behaviour change.StudioDesignSurface.kanbanCardSelection-12725.test.tsx, the new top-leveldescribe"click to open offers only the default and none on an object's list".Two-minute check:
pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/StudioDesignSurface.kanbanCardSelection-12725.test.tsxprintsTests 19 passed (19).Tests
drawernow picksnoneand expectsnavigation: { mode: 'none' }.showcase_task.legacystoringnavigation: { mode: 'drawer' }):drawershows on the trigger asdrawer (deprecated), the list is that row then Default, Don't open, and no draft is saved after the 1.5 s autosave debounce has passed;navigation(equal to the board's config) and it parses asListViewSchema.Readings on head
3bcbac0518(shared box, all underscripts/pm/os-verify-lock.shexcept thecheck:*gates):Test and type-check readings
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/StudioDesignSurface.kanbanCardSelection-12725.test.tsx:Test Files 1 passed (1),Tests 19 passed (19), lockVERDICT command-exit 0.pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n/:Test Files 105 passed (105),Tests 1962 passed | 13 skipped (1975), exit 0.pnpm --filter @object-ui/app-shell run type-check: exit 0.pnpm --filter @object-ui/i18n run type-check: exit 0.pnpm --dir ui run check:i18n-keys,check:i18n-drift,check:i18n-dead-keys: exit 0 each.Ablation (one, then restored)
Committed first, then
node scripts/ablation-replace.mjsre-offereddrawerby adding{ mode: 'drawer', … }toOFFERED_NAVIGATION_MODES(anchor 1 to 0, blob222e503bd324todc45cfc280a8). The file went red:Tests 2 failed | 17 passed (19), the two failures being "a view with no stored mode is offered exactly the default and none" and "a stored drawer shows flagged deprecated, …". The tool restored the file: blob back to222e503bd324,git diff HEADempty.Acceptance notes
engine.form.deprecated, which reads 「(已弃用)」 in zh. Same meaning; reusing it avoids a second deprecated-flag dialect in the studio catalogue.InspectorSelectFielddocuments for every stale-value row, rather than disabled as the dispatch's suggested route proposed.enandzh(every other language falls back toen), so they were deleted from those two files.navigation.mode(not page blocks): no other bespoke inspector offers the modes. The generic metadata form for a view labelsnavigation.modefrom the spec's JSON Schema and its zh help text already says 「[已弃用]」; its select was not driven in a browser here (not measured), and it is not changed.Verification
Derived gate set and reconciliation
node scripts/pm/dispatch-gates.mjs --commandson this diff: 38 commands. All 38 ran locally with exit 0;pnpm check:type-check-debtfirst got no lock turn (exit 3, NOT MEASURED) and was re-run inside a lock hold: exit 0,check-type-check-coverage --re-measure: OK.dispatch-gates --ranwith exit codes:38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero …).node scripts/pm/overlap-check.mjs --branch=claude/issue-35936-kanban-open-mode:VERDICT clean exit 0before each push.Generated by Claude Code