Skip to content

fix(studio): kanban card click-to-open offers only Default and Don't open - #36257

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35936-kanban-open-mode
Nov 22, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-35936-kanban-open-mode

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #35936

Clause-②: no
Metadata-protocol: none

维护者速读

  • 在 Studio 里编辑看板视图的作者:卡片设置「点击打开」以前列出四种方式,现在只列「默认」和「不打开」;已经存了侧边抽屉、记录页或新窗口的视图会显示该值并标「已弃用」,选「默认」即可清掉。
  • 承接对象列表「打开记录」新规则(点名称进整页、悬停图标开侧边):列表视图上的打开方式已废弃,这里不再让作者选一个不生效的选项。
  • 出错的话只影响这个下拉的显示,不改任何已存数据,打开视图不写入;可以直接撤回。
  • 无

What changes

Read first (by risk):

  1. ObjectListViewInspector.tsx, the OFFERED_NAVIGATION_MODES constant and the click-to-open SelectContent: the only behaviour change.
  2. StudioDesignSurface.kanbanCardSelection-12725.test.tsx, the new top-level describe "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.tsx prints Tests 19 passed (19).

Tests

  • Rewritten: the case that picked drawer now picks none and expects navigation: { mode: 'none' }.
  • New, in the file's shared harness (a fourth view showcase_task.legacy storing navigation: { mode: 'drawer' }):
    • a view with no stored mode lists exactly Default, Don't open;
    • a stored drawer shows on the trigger as drawer (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;
    • picking Default saves the body without navigation (equal to the board's config) and it parses as ListViewSchema.

Readings on head 3bcbac0518 (shared box, all under scripts/pm/os-verify-lock.sh except the check:* 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), lock VERDICT 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.mjs re-offered drawer by adding { mode: 'drawer', … } to OFFERED_NAVIGATION_MODES (anchor 1 to 0, blob 222e503bd324 to dc45cfc280a8). 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 to 222e503bd324, git diff HEAD empty.

Acceptance notes

  • Wording: the card asks for a row marked 「已废弃」; the row uses the existing sourced flag engine.form.deprecated, which reads 「(已弃用)」 in zh. Same meaning; reusing it avoids a second deprecated-flag dialect in the studio catalogue.
  • The flagged row stays selectable (re-picking the current value changes nothing), as InspectorSelectField documents for every stale-value row, rather than disabled as the dispatch's suggested route proposed.
  • The card names 11 locale packs. The three keys lived only in the studio namespace, which ships en and zh (every other language falls back to en), so they were deleted from those two files.
  • Other Studio surfaces for an object list's navigation.mode (not page blocks): no other bespoke inspector offers the modes. The generic metadata form for a view labels navigation.mode from 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 --commands on this diff: 38 commands. All 38 ran locally with exit 0; pnpm check:type-check-debt first 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 --ran with 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 0 before each push.
  • The full farm (Lint & Repo Gates, Test UI, Type Check UI, …) is CI's.

Generated by Claude Code

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
@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 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

Final green head · area a4-D · 2026-11-22T04:14Z
Head: 3bcbac05187f3d7fa5fba1aab7ee794872825faa
CI: 45 success, 13 skipped, 0 failed; check-expected-skips.mjs --pr 36257 OK; mergeable clean; check-governed-merges: NOT governed, 142 changed lines; l1-face CLEAN.
Declarations: Clause-②: no · Metadata-protocol: none.
Owed: L1 (L1-b). Dev report on #35936. Points for L1: the stored deprecated value is shown first, flagged and still selectable (InspectorSelectField's objectui#8488 pattern) rather than disabled as the order suggested; zh flag reuses engine.form.deprecated 「(已弃用)」; the three label keys lived only in the studio namespace's en/zh (not 11 packs) and are deleted.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-22T04:15Z

席位核对 — ACCEPT · head 3bcbac0

  • Shape: l1-face.mjs --pr 36257 is clean at 3bcbac0: open, draft, base main.
    • The first line is Fixes #35936, and the PR delivers the whole card: the select change, the test rewrite and the label keys.
    • No closing keyword binds any other card.
    • The declarations are Clause-②: no · Metadata-protocol: none.
    • The changeset covers @object-ui/i18n, the one published package touched, plus app-shell and console.
  • Change: KanbanCardSection's click-to-open select lists the Default item (UNSET, which removes the key) and OFFERED_NAVIGATION_MODES = none only.
    • A stored value the select does not offer is drawn first: a spec mode gets the flag through flagUnknownValue(mode, engine.form.deprecated), and a non-spec string is shown raw, as before.
    • The spec and page-block navigation are untouched.
  • Deviation 1, the stored value is selectable rather than disabled: accepted.
    • The card asks that it be shown flagged and clearable, and does not ask for it to be disabled.
    • A Radix select needs an item for its current value, or the trigger goes blank. This is the same pattern InspectorSelectField uses for a stale value (objectui#8488).
    • Picking it again is a no-op, since it is already the value. Once Default clears it, it is gone from the list, so a deprecated mode can no longer be chosen fresh.
  • Deviation 2, the zh flag reuses engine.form.deprecated 「(已弃用)」 instead of the card's 「已废弃」: accepted. The card's wording is a filing note, not a ruling. Reusing the shared key keeps the flag the same as every other inspector's stale-value flag, and it adds no new key.
  • Keys: the three kanbanCard.mode.{page,drawer,newWindow} keys existed only in studio en / zh on main, not in 11 packs as the card estimated, and the select was their only reader. Both are deleted, and mode.none stays.
  • Pins: StudioDesignSurface.kanbanCardSelection-12725.test.tsx covers the following.
    • The old drawer case now writes none.
    • A view with no stored mode lists exactly Default and None.
    • A stored drawer reads drawer (deprecated) on the trigger and first in the list. With no edit, nothing is saved past the autosave debounce.
    • Default clears it, and the saved body equals the board config with no navigation, which is spec-valid.
  • Changeset, read sentence by sentence: Default plus "Don't open", stored values flagged, Default removes the key, opening writes nothing, the spec and page blocks unchanged, and the three dropped labels all match the diff.
  • Gates: 45 success, 13 expected skip, 0 unexpected skip, 0 failed and 0 pending. Lint & Repo Gates and TypeScript Type Check are both success. The PR is not governed.
  • Landing: not governed and not narrowing, so the area lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

席位核对

Landing · area a4-D · 2026-11-22T04:16Z · head 3bcbac05187f3d7fa5fba1aab7ee794872825faa

Reading Value
L1 ACCEPT 7074077032 (L1-b, this head); both deviations accepted
Contract none owed: Clause-②: no, no narrowing, no packages/spec/src/**, no governed path
Check-runs 45 success, 13 expected skip (check-expected-skips.mjs OK), 0 failed, 0 pending; mergeable clean
Governed check-governed-merges --pr 36257: NOT governed, 142 changed lines
Main K = 6 first-parent commits past base; git merge-tree against origin/main clean
Overlap overlap-check: merges cleanly with origin/main and #36236 (shares studio en.ts / zh.ts)

Ready + auto-merge now. Fixes #35936: merging closes the card.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 22, 2026 04:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 76cb366 Nov 22, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35936-kanban-open-mode branch November 22, 2026 04:37
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

1 participant