Skip to content

Studio and console: remove the form-view leftovers after the protocol-19 form switch (checklist) #39003

Todo

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

Filing gate: ② seat-filed, folded checklist card (filing-gate 折清单卡) from slice G of #37112 PR 2 (PR #38957, branch claude/project-thread-0tmkk6). Grading: area:ux · Task · p3 · domain:ui · reach: dead or unreachable code once a served view read holds lists only at protocol 19; no user-visible defect measured. Each item can land on its own. Wait for PR #38957 to merge before starting. Not claimed.

1. Studio view variant model still carries a form family

ui/packages/app-shell/src/views/studio-design/view-variant-model.ts still defines FORM_FAMILY and familyFromViewKind maps viewKind: 'form' to it. From protocol 19 (#37112) a served view read holds lists only, so a 19 read cannot reach that arm. The only way in would be a read that hands Studio a stored pre-19 viewKind: 'form' row unfiltered (not measured). In that case the inspector would open the form family, and a save would be refused at the view door (422, forms: prescription).
Done when: the form family is removed from the view variant model, or the unfiltered stored-row path is shown to exist and gets its own card. A test pins that no family other than list is derived for a served 19 view.

2. ViewVariantInspector form family and getFormVariantSchema calls

ui/packages/app-shell/src/views/studio-design/inspectors/ViewVariantInspector.tsx keeps a form-family branch that calls getFormVariantSchema, and the formViewType-30046 test covers it. It sits behind the same gate as card 1: a served 19 view never selects it, and ViewConfigPanel no longer feeds it a form family (#37112 PR 2 narrowed InspectorViewDraft.viewKind to 'list'). Form editing belongs to the form item designer.
Done when: the branch and its test are removed, or moved to the form item designer if it still lacks those features. Check whether #29676 (layout preview) and #29311 (warnings by section) are offered there.

3. ViewConfigPanel isFormFamilyKey is dead

ui/packages/app-shell/src/views/ViewConfigPanel.tsx calls isFormFamilyKey(draft.viewKind). Since #37112 PR 2, draft.viewKind is always 'list' (the view-config adapter no longer produces a form kind), so the check is always false.
Done when: the helper and its call site are removed, and the ViewConfigPanel tests stay green.

4. form-preview toInlineFormType is dead code

ui/packages/app-shell/src/views/studio-design/previews/form-preview.ts#toInlineFormType has no caller outside its own test. It converted a view-held form for the old view preview, which #37112 PR 2 removed (ViewPreview draws no form canvas at 19).
Done when: the function and its test are removed, and no import remains.

5. recordFormNavigation resolveFormViewChrome: named-form-view arm is dead

resolveFormViewChrome in recordFormNavigation.ts is live, but its only caller, resolveRecordFormChrome, always passes null for the named form view. So the arm that reads a named form view's chrome never runs. At 19 a named form is a form item, not a view.
Done when: the dead arm is removed (or re-pointed at the form item if record-form chrome should honour a named form; that is a product question, so ask first). Record-form navigation tests stay green.

6. Dead i18n key engine.viewPreview.formFailed

The key engine.viewPreview.formFailed (studio locales: en.ts ~3370, zh.ts ~3014) has no non-test reference since #37112 PR 2 removed the view preview's form canvas.
Done when: the key is removed from every studio locale, and the i18n key checks (check-i18n-keys, check-i18n-dead-keys) are green.

7. Stale rule id in a semantic migration

packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts lines ~8 and ~27 name the removed rule id. It yields to #38875 (which retires that id); fix after #38875 lands.

Activity

  1. added
    domain:ui
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-01T22:03Z

    定级:area:ux · Task · p3 · 协议 19 后 Studio/控制台留下的表单视图死代码与死词条,无用户可见缺陷 · 代码阅读(PR #38957 slice G)

  3. added
    pm:blocked
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-02T04:07Z

    Blocked-by PR #38957 已合并;第 7 项所等的 #38875 也已关闭 → pm:queue,分级不变(p3)。

  5. added
    pm:queue
    and removed
    pm:blocked
    on Dec 2, 2026
  6. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim: PM loop round 1 · 2026-12-03T14:28Z
    Session: session_01Utp6CbHNxjZcHJuqartB (card thread of zone ux-1203, session session_01Utp6CbFgiyGToVRBFwedwF)
    Account: os-bill
    Branch: claude/project-thread-k69ail
    Worktree: objectstack-k69ail
    Domain: domain:ui (+ one domain:spec text file, card item 7)
    Seat: repo:objectstack@os-bill
    Area: ux-1203
    File surface: ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx (+ its form test, formViewType-30046), ui/packages/app-shell/src/views/metadata-admin/view-schema.ts, ui/packages/app-shell/src/views/metadata-admin/view-schema.test.ts, ui/packages/app-shell/src/views/metadata-admin/spec-derivation-13459.test.ts, ui/packages/app-shell/src/views/ViewConfigPanel.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/form-preview.ts, ui/packages/app-shell/src/views/metadata-admin/previews/dataPreviews.i18n-10862-s3.test.tsx (comment), ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/utils/__tests__/formViewChrome-26843.test.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts, ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/DraftChangesPanel.tsx, ui/packages/layout/src/NavigationRenderer.tsx (TSDoc only), ui/packages/app-shell/src/hooks/useNavTargetLabel.ts, ui/packages/app-shell/src/hooks/useNavTargetIcon.ts (+ a new pin test beside it), and patch changesets for @object-ui/app-shell, @object-ui/layout, @objectstack/spec. Removing a studio i18n key is allowed only where nothing reads it; stop on any other breach and say so in the report.
    Container & model: S, mode:thread, model: default, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: Studio and console still carry form-view leftovers after the protocol-19 form switch (#39003), a dead package-less Studio scope hint (#38785), and an unstated nav-row resolver memo rule with the same stale-first-render race in the icon and colour resolvers (#38859); app-shell and layout (objectui); Studio authors, today.
    Thread-read: 7334581335
    Premise: holds at origin/main 850d240 per the card thread's read; #39003 item 5 is the removal of a dead arm, not a re-point, so no product question.
    Pre-claim lane: domain:ui p3; folded: #39003 + #38785 + #38859 in one PR (same app-shell surface). The PR says Fixes #39003, Fixes #38785, Fixes #38859.
    Pre-claim deps: none.
    Prior rulings read: none on these cards.
    Serial constraints cleared: check-handover.mjs --inflight --card=39003 → OVERLAP by directory only (packages/spec/src/migrations/entries/semantic/) with #39346, #39282 (cloud#5) and #38174; the claimed file 19.internal-record-forms-not-loaded.ts is none of theirs. The thread runs overlap-check.mjs before each push and queues per file only on a textual conflict (Notify: serial).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Paused · 2026-12-03T14:51Z
    Bill paused all p3 work at 2026-12-03T14:46Z. The folded work for #39003 + #38785 + #38859 is done in one commit and kept on branch claude/project-thread-k69ail at e18991ce (base origin/main 850d240; 34 files, +348/−1231; 18 targeted test files / 357 tests green; app-shell and layout build green). No PR yet, and the claims stand.
    Resume from that branch. Scope beyond the claimed surface, for the claim amendment: familyKey="list" was dropped from 6 inspector test files; requiredInGatedSection.ts and its two tests were deleted, with the engine.inspector.view.gatedRequired.* strings (only a view-held form reached them); FormViewDefinition was dropped from app-shell utils/index.ts. A follow-up card is owed: the gated-required Save gate has no equivalent on the form item yet.

  9. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Release: 2026-12-05T00:32Z · session session_01Utp6CaQsbKBMQtm6Tpsamd releases claim 7381514720 · because the maintainer hands this half-done card to the seat repo:objectstack@os-elon-musk (mailbox #39411) · into pm:queue, assignee cleared, for that seat to re-claim.
    Resume-from: claude/project-thread-k69ail@e18991ce
    Source: the maintainer (Bill), project chat of seat repo:objectstack@os-bill, 2026-12-05T00:26Z: 「你开发了一半的卡和 pr都交接给 elon,没处理的放回对立额,然后你就可以下班了」 (对立额 = 队列).

  10. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 5, 2026
  11. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cwiNRyb9B38wT2fjYj

    Claim: PM loop round 3 (zone em-bill takeover) · 2026-12-05T00:55Z · re-claims after os-bill's Release 7428367247; source: the maintainer (Elon), on the seat's card, 2026-12-05T00:48Z: 「接手,由 em-bill 专区做完」; os-bill's split knock 7428503319 on #39411 leaves this card.
    Session: session_016WV4cwiNRyb9B38wT2fjYj
    Account: os-elon-musk
    Branch: claude/issue-39003-wip
    Worktree: objectstack-issue-39003
    Domain: domain:ui (+ one domain:spec text file, card item 7)
    Seat: repo:objectstack@os-elon-musk
    Area: em-bill
    File surface: ui/packages/app-shell/src/views/metadata-admin/view-variant-model.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx (+ its form test, formViewType-30046), ui/packages/app-shell/src/views/metadata-admin/view-schema.ts, ui/packages/app-shell/src/views/metadata-admin/view-schema.test.ts, ui/packages/app-shell/src/views/metadata-admin/spec-derivation-13459.test.ts, ui/packages/app-shell/src/views/ViewConfigPanel.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/form-preview.ts, ui/packages/app-shell/src/views/metadata-admin/previews/dataPreviews.i18n-10862-s3.test.tsx (comment), ui/packages/app-shell/src/utils/recordFormNavigation.ts, ui/packages/app-shell/src/utils/__tests__/formViewChrome-26843.test.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, packages/spec/src/migrations/entries/semantic/19.internal-record-forms-not-loaded.ts, ui/packages/app-shell/src/views/metadata-admin/metadataAreaHost.ts, ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx, ui/packages/app-shell/src/views/metadata-admin/DraftChangesPanel.tsx, ui/packages/layout/src/NavigationRenderer.tsx (TSDoc only), ui/packages/app-shell/src/hooks/useNavTargetLabel.ts, ui/packages/app-shell/src/hooks/useNavTargetIcon.ts (+ a new pin test beside it), and patch changesets for @object-ui/app-shell, @object-ui/layout, @objectstack/spec. Removing a studio i18n key is allowed only where nothing reads it; stop on any other breach and say so in the report.
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier at 56bed066: no path-derived mandate), effort: high (reason: a 34-file fold a day behind main, conflicts expected on merge)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: Studio and console still carry form-view leftovers after the protocol-19 form switch (#39003), a dead package-less Studio scope hint (#38785), and an unstated nav-row resolver memo rule with the same stale-first-render race in the icon and colour resolvers (#38859); app-shell and layout (objectui); Studio authors, today.
    Thread-read: 7428367247
    Premise: holds at origin/main 850d240 per the card thread's read; #39003 item 5 is the removal of a dead arm, not a re-point, so no product question. Re-read by the dev at origin/main 56bed06 after merging main into the resumed branch.
    Pre-claim lane: domain:ui p3; folded: #39003 + #38785 + #38859 in one PR (same app-shell surface). The PR says Fixes #39003, Fixes #38785, Fixes #38859.
    Pre-claim deps: none.
    Prior rulings read: none on these cards.
    Serial constraints cleared: check-handover.mjs --inflight --card=39003 at 56bed06 → NO OVERLAP READ; the one unread surface is #38710 (os-tesla, knowledge segmenter in knowledge-turso/pgvector), read by hand: none of these files. The dev runs overlap-check.mjs before each push. Fold: #39003 + #38785 + #38859, one branch, one dev, one PR with three Fixes lines.
    Resume-from: claude/project-thread-k69ail@e18991ce

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions