Skip to content

studio: the view and page-block filter builder drops each field's options, so a picklist column gets a free-text value box #36216

Description

@objectstack-fleet

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

Filing gate ① · Source: fleet · found by the #36169 dev (recorded on #36169, comment 7069111477), outside that card's surface.

What happens

objectCatalogOf, ViewVariantInspector and PageBlockInspector (Studio metadata-admin) build the filter builder's field list without each field's options, so on a select (picklist) field the value control is a free-text box instead of the option picker. An author can type a value that is not one of the options, and the saved filter then matches nothing, with no error.

Done when

These three builders pass the field's options like the editors fixed in #36165 / #36182, so a picklist offers its options; a pin on a select field with a text-field control.

reach: Studio form (a saved view variant or page-block filter on a picklist field), by code reading; to be measured once by the claimant.
Business reason: a list view or page block filtered on a picklist in Studio can silently show no rows because of a typed value that is not an option.
Reader: a domain:ui lane (Studio metadata-admin widgets).
Dedupe: objectCatalogOf options → 0 hits.
Grade: p2 — silently empty results from a common authoring path; same family as #36169.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    area:studio
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (Studio metadata-admin filter builders) · pm:queue; rationale: area:studio · Bug · the view and page-block filter builders drop each field's options, so a picklist column gets a free-text value box and an author can type a value no option has; found on #36169 → p2 as filed · size S.

  3. added and removed
    area:studio
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

    Claim: PM loop round 1
    Session: session_011y7As6kDA9BVrMsBR9rmrJ
    Account: os-alice
    Branch: claude/issue-36216-filter-builder-field-options
    Worktree: objectstack-issue-36216
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: o7-studio
    File surface: ui/packages/app-shell/src/views/metadata-admin/** (objectCatalogOf in ResourceEditPage.tsx, inspectors/ViewVariantInspector.tsx, inspectors/PageBlockInspector.tsx), a new test file named for this card, one changeset (stop on breach; explain in the report)
    Container & model: S (not mechanical: three builders, one shape), mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/app-shell Studio filter-builder field lists (objectstack) | the editors fixed in #36165 / #36182 already pass options; these three builders do not | builders filtering a view variant or page block on a picklist in Studio, today
    Thread-read: 7071118192
    Premise: holds — read at origin/main e343ab7: objectCatalogOf (ResourceEditPage.tsx) maps each field to { name, label, type, multiple? } with no options; PageBlockInspector.tsx FilterRulesField maps { name, label, type, multiple? } with no options.
    Pre-claim lane: domain:ui, row o7-studio of #35557; every path above is ui/packages/app-shell/**.
    Pre-claim deps: the card names #36169 (closed), #36165 and #36182 (merged); no Blocked-by:. PR #36688 (this area, #35650) adds one prop line to ResourceEditPage.tsx and is in the merge queue; no other open PR touches these files.
    Prior rulings read: check-prior-rulings.mjs --card 36216 at 9348f02: thread 0 rulings; surface grep 0 hits → no ruling.
    Fold-or-serial: not folded — #35650 (PR #36688) is a different defect; this card was queued serially behind it for ResourceEditPage.tsx and starts now that #36688 is in the merge queue. #36725, #36733, #36734 are different defects and wait for triage.
    Serial constraints cleared: PR #36688 (in queue, ResourceEditPage.tsx one prop line, a different function); in-flight domain:ui claims read 2026-11-23: none names these files (#36366 declares ui/packages/app-shell/** at area level for the design-mode shell and nav); overlap-check runs before each push.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ
    os-dev-report

    {
      "issue": 36216,
      "status": "done",
      "branch": "claude/issue-36216-filter-builder-field-options",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36772",
      "session": "session_011y7As6kDA9BVrMsBR9rmrJ",
      "premise_still_valid": true,
      "summary": "Premise held at e343ab7c: objectCatalogOf (ResourceEditPage.tsx), ViewVariantInspector's widget context and PageBlockInspector's FilterRulesField built the filter-builder field list without options, while FilterBuilderField already forwards options (the list-view inspector's picklist fix) and ObjectFieldOption.options already existed. The precedent shape is the list-view inspector's `...(f.options ? { options: f.options } : {})`, and useObjectFields already normalises a raw field's options in declaredFieldOptions; that function is now exported and is the one reading for the two raw-definition builders (objectCatalogOf, and mapObjectFields in ViewConfigPanel.tsx), while the two useObjectFields-fed inspectors forward f.options. mapObjectFields is outside the claim's file surface: it is the override catalog the view-variant inspector reads in the in-app panel, fixed under the bounded in-place exemption (all four conditions hold) and declared in the PR body; the seat should add ui/packages/app-shell/src/views/ViewConfigPanel.tsx to the claim's surface. The changeset was already written and committed (c8a45c6e5) before the usage-limit pause, so the resume started at the gates.",
      "tests": "At head c8a45c6e5. New file ui/packages/app-shell/src/views/metadata-admin/widgets.filterBuilderOptions-36216.test.tsx: `pnpm --dir ui exec vitest run --maxWorkers=2 <file>` under os-verify-lock -> VERDICT command-exit 0, Test Files 1 passed (1), Tests 9 passed (9). Ablation, one per site via scripts/ablation-replace.mjs --delete (anchor 1->0, blob moved, restored blob == HEAD, git diff HEAD empty; modules imported by relative src path, no dist between): objectCatalogOf 2 failed/7 passed; mapObjectFields 2 failed/7 passed; ViewVariantInspector 2 failed/7 passed; PageBlockInspector 1 failed/8 passed; every text CONTROL green under every mutation. Affected suites (metadata-admin/widgets*, ResourceEditPage*, ViewConfigPanel*, PageBlockInspector*, ViewVariantInspector*, previews/useObjectFields*, studio-design/ObjectListViewInspector*): VERDICT command-exit 0, Test Files 105 passed (105), Tests 552 passed (552). `pnpm --filter @object-ui/app-shell run type-check` (src + tsconfig.test.json), after the `@object-ui/app-shell^...` closure build (turbo, 68/68 tasks): VERDICT command-exit 0.",
      "gates": "Local, all at c8a45c6e5: the 39 families from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` each exited 0 (exit captured before any pipe); `--ran` reconciliation: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN, a derived zero (all 39 carry an exit code). ui/scripts/check-new-cross-file-line-citations.mjs: 0 new, exit 0. overlap-check: VERDICT clean exit 0 at origin/main 0d727b70 (after #36688 merged; no merge of main needed). Control-byte self-scan of the new files: 0 hits. check-platform-checklist not owed (no export renamed or removed; one export added). CI check-runs on PR #36772 at c8a45c6e5 when read: in_progress/queued (Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards); skipped: 18.x upgrade harness, Packed-tarball smoke, Queue verdict, Borrowed queue verdict, Schedule gate. NOT MEASURED: every CI family's conclusion, reason: not yet concluded at report time (in_progress is the honest value).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes, 3 REST requests: pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft; POST /repos/objectstack-ai/objectstack/issues/36772/assignees [os-alice]); os-dev-report (POST /repos/objectstack-ai/objectstack/issues/36216/comments via post-stamped.mjs). git push x2 (empty branch, then c8a45c6e5), not REST",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the filter-builder field-list builders (objectCatalogOf, mapObjectFields, ViewVariantInspector, PageBlockInspector, ObjectListViewInspector) each hand-copy the same name/label/type/options/multiple projection, so the next field fact can again be dropped in some of them; observation only, no further defect measured. Recorded in this report only: the PR body is written once at pr_create and not patched by the dev, so the seat may carry it into Acceptance notes. Dedupe words: filter-builder field projection, ObjectFieldOption copy, options multiple projection"
      ]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

    File surface revised, 2026-11-23T19:45Z (claim 7104480009, same round): add ui/packages/app-shell/src/views/ViewConfigPanel.tsx (mapObjectFields, the override field catalog the view-variant inspector reads in the in-app panel). The dev fixed it under the bounded in-place exemption, measured in os-dev-report 7112054699 and declared in the PR #36772 body: same defect (a filter-builder field list built without options), mechanical, no other claim on it, same gate family. Revised file surface: ui/packages/app-shell/src/views/metadata-admin/** (objectCatalogOf in ResourceEditPage.tsx, inspectors/ViewVariantInspector.tsx, inspectors/PageBlockInspector.tsx, previews/useObjectFields* for the exported normaliser), ui/packages/app-shell/src/views/ViewConfigPanel.tsx, a new test file named for this card, one changeset.

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As6kDA9BVrMsBR9rmrJ

    Close-out, 2026-11-24T00:57Z.

    Delivered by PR #36772 (merged 2026-11-24T00:57Z, merge commit 4c93f88): the view and page-block filter builders carry each field's options, so a picklist column offers its options instead of a free-text value box. State: pm:dispatched off this closed card.

  9. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:buildbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions