Skip to content

ui: conditional formatting accepts == on a list field, so the rule is stored and never matches #36459

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36219 (PR #36441, the Studio CEL editor refuses == / != on a list field while typing). The PR left this editor out of scope by the card's inspector ruling; L1 (7079169862) asked for a card. Filed by the seat. Parent: #36219.

What happens

The view's conditional formatting editor (ConditionalFormattingEditor.tsx, scope="record") lints record.FIELD expressions but is not given the object's multi-value fields. A rule such as record.tags == 'vip' on a list field is accepted, stored, and then never matches any row, because a list never equals a string. No save-side check refuses that shape for conditional formatting either, so the author gets no word at any point.

To do

  1. Feed the editor the object's field definitions the same way fix(app-shell): the Studio CEL editor refuses == / != on a list field while typing #36441 feeds the Studio inspectors, so it refuses == / != between a list field and a scalar while typing, with the same rewrite hint.
  2. Decide with the seat whether the view save should refuse the same shape, so a rule written outside the editor is caught too.

Acceptance

  • In the conditional formatting editor, record.LISTFIELD == 'x' is flagged while typing with the rewrite, and a rule that does match (for example a membership test) is accepted.

Blocked-by: #36441

Grade

p2 · area:ux · domain:ui. A stored rule that silently never applies.


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:blocked and p2 stand as filed; rationale: area:ux · Bug · conditional formatting accepts == on a list field, so the rule is stored and never matches; same class as #36167 · size S.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Unblock · 2026-11-23T12:21Z: this card's only Blocked-by:, #36441, closed at 2026-11-22T13:38Z (merged or completed). The pm:blocked label was stale, so the card goes back to pm:queue. The grade is unchanged. Whoever picks it up re-reads the premise on a base that contains #36441.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 10 · 2026-11-23T21:34Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36459
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36459 (w9-36459)
    Dispatch: p2 area:ux, non-epic conditional-formatting bug; its Blocked-by target #36441 is closed (unblocked 12:21Z). The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z and restated it at 2026-11-23T21:23:47Z (「area ux 任务继续处理, p1 p2 专题任务优先」); p1+p2, epic children first, under the 15-thread cap.
    File surface: ConditionalFormattingEditor.tsx and the rule operators it offers per field type under ui/packages, tests, a changeset; a change to the stored rule shape in packages/spec is out of surface and is reported as a fork (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7100950849
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: #36441 closed; no open PR names the card

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T21:41Z · same session as claim 7114646915, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbXAtnodnKm6tuyEbxU
    Account: os-warren
    Branch: claude/project-thread-miceok
    Worktree: objectstack-issue-36459
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36459 (w9-36459)
    File surface: ui/packages/app-shell/src/views/metadata-admin/ConditionalFormattingEditor.tsx (fieldDefs passed through), metadata-admin/inspectors/ViewVariantInspector.tsx and studio-design/ListViewMoreSection.tsx (the two mounts), one new test, a changeset; no save-side lint (card item 1 only)
    Container & model: S, mode:thread, served opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: holds on origin/main e0f0e9f
    Serial constraints cleared: no open PR names the card

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXAtnodnKm6tuyEbxU
    os-dev-report

    {
      "issue": 36459,
      "status": "done",
      "branch": "claude/project-thread-miceok",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36785",
      "session": "session_01JQwxbXAtnodnKm6tuyEbxU",
      "premise_still_valid": true,
      "summary": "Premise held on e0f0e9f7: CelPredicateField already takes fieldDefs (type + multiple) and hands list-valued fields to the lint, but ConditionalFormattingEditor never passed them, so record.LISTFIELD == 'x' linted clean. ConditionalFormattingEditor now takes an optional fieldDefs prop and passes it to every rule; both mount sites (ViewVariantInspector, Studio ListViewMoreSection) build it from the field catalog they already read. The refusal is an error, so it holds Save / autosave through the existing blocking count. Card item 2 (save-side refusal) not done: a view's conditionalFormatting conditions are not CEL-linted at save at all on main, so it is a new save-door lint site; left to the seat. No spec or rule-shape change; ConditionalFormattingEditor is not a published export (Clause-2 no).",
      "tests": "New ConditionalFormattingEditor.listEquality-36459.test.tsx (real @objectstack/formula): 6 cases (== and != refused on a multiple:true select with the in rewrite and 1 blocking; 'vip' in record.tags clean; == on a single select clean; both mount sites show the finding). Under the verify lock at 7c65f8b9: the new file + ConditionalFormattingEditor.test.tsx + .celGate.test.tsx: Test Files 3 passed, Tests 36 passed, VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (fieldDefs pass-through deleted; anchor 1 -> 0, blob changed; restored blob == HEAD, git diff HEAD empty): 4 failed | 2 passed, the two clean cases as expected. pnpm --filter @object-ui/app-shell run type-check: VERDICT command-exit 0.",
      "gates": "Local: dispatch-gates --commands derived 38 families at 7c65f8b9, each run, all exit 0; --ran reconciliation: 38 run, 0 NOT-MEASURED (derived zero, every line with an exit code). overlap-check before push: VERDICT clean exit 0 (origin/main and #36772 merge cleanly). CI families (Test UI, Type Check UI and the rest): in_progress at report time; PR check-runs are the verdict.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 GitHub MCP calls",
      "api_writes": "2 — fleet-write relay pr_create (POST pulls + assignees leg) creating #36785; this os-dev-report comment via post-stamped",
      "open_questions": [
        { "question": "Should a view save refuse a conditional formatting condition that compares a list field with a scalar (card item 2)?", "options": ["A: separate card adding view conditionalFormatting[].condition to the save-time CEL lint (new lint site, likely Clause-2 narrowing review)", "B: no save-side check; the editor is the door"], "recommendation": "A as its own card if hand-written or AI-written view metadata matters; it is a new door, not part of this editor fix" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: seat · view conditionalFormatting conditions get no save-time CEL lint at all (not only list-equality); noted, not filed"]
    }
  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T23:31Z: closed by the merge of #36785. The seat takes pm:dispatched and its assignee off.

  10. removed
    pm:dispatched
    on Nov 23, 2026
  11. added a commit that references this issue on Dec 1, 2026
    12ccffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions