Repository navigation
fix(app-showcase): scope the command center work queue to in-review tasks - #25534
Merged
objectstack-fleet[bot] merged 1 commit intoOct 23, 2026
Merged
Conversation
…asks The bottom panel cc_queue_g is titled as a review queue and badged as pending approval, but its object-grid carried no filter and listed every task, done ones included, while the KPI tile cc_k3 above it counts the in_review set. Both blocks now read one IN_REVIEW rule array through the key object-grid declares and reads, `filter`. The command-center test pins the queue's filter, holds it equal to the tile's, and parses the grid's properties against its ComponentPropsMap row. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016g7nYP9wdNx1GDa5XDr7Uy
Contributor
Author
席位核对 · ACCEPT · 2026-10-23T20:46Z
Generated by Claude Code |
objectstack-fleet
Bot
deleted the
claude/issue-25503-showcase-review-queue-filter
branch
October 23, 2026 21:02
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #25503
Clause-②: no
Metadata-protocol: none
What changed
On the showcase command center (
examples/app-showcase/src/ui/pages/command-center.page.ts), the bottom panelcc_queue_gis titled 待审核列表 · Work Queue and carries the badge 审批中, but itsobject-gridhad no filter and listed all 10 seeded tasks, done ones included. The KPI tilecc_k3(待复审 Review) above it counts onlystatus = in_review.Both blocks now read one module constant,
IN_REVIEW = [{ field: 'status', operator: 'equals', value: 'in_review' }]. The tile passes it tokpi()as before, and the grid getsfilter: IN_REVIEW, so the panel lists the set the tile counts (2 rows on the stock seed).Landing: the file the claim names. No
packages/specedit.Which key object-grid reads
filter, singular, as aViewFilterRulearray:ObjectGridPropsSchemainpackages/spec/src/ui/component.zod.ts(thefilter: z.array(ViewFilterRuleSchema, …)member, line 5055 at base1ff43b67ea) is described as "lowered to the wire$filter. THE key, singular — not the plural misspelling".filtersis declared only as an alias offilter(FILTERS_TO_FILTER), anddefaultFiltersis a retired key.sdui.manifest.json, generated from objectui's built tree at the.objectui-shapin6fb31dc, listsfilter(typearray) amongobject-grid's inputs. It has nofiltersinput.examples/app-showcase/src/ui/pages/my-work.page.tsfilters itsobject-gridthe same way. That page is the one showcasemy-work: the personal work queue authorsfilters:(plural) and no$filterever reaches the wire — the grid lists every row #7750 was about: the pluralfilters:was written there but never read.The renderer's own read point (objectui
plugin-grid/src/ObjectGrid.tsxreadingschema.filter) is cited from that page's comment. This session can only read this repository, so I did not open it at the pin myself.Pin
examples/app-showcase/test/command-center-metric-filter.test.tsgains adescribeblock. It findscc_queue_gandcc_k3anywhere in the page as authored, helpers included, and asserts four things:filterequals the in_review rule array;filterequals the tile'sfilter;objectName;cc_queue_gproperties bag passesComponentPropsMap['object-grid'].safeParse.Tests (head
15ef279240)pnpm --filter @objectstack/example-showcase exec vitest run --maxWorkers=2 test/command-center-metric-filter.test.ts: Test Files 1 passed, Tests 7 passed.pnpm --filter @objectstack/example-showcase test: Test Files 38 passed (38), Tests 465 passed (465), lock VERDICT command-exit 0.pnpm --filter @objectstack/example-showcase typecheck: exit 0.tsc --listFilesincludes the test file (count 1).pnpm --filter @objectstack/example-showcase validate(os validate): Validation passed, exit 0.node scripts/ablation-replace.mjsreplaced the anchor'due_date'], filter: IN_REVIEW } },with'due_date'] } },(anchor x1 to x0, blob a98af74d6112 to 8af132bc2407).filter" and "carries the same rules as the tilecc_k3".git diff HEADempty.src.Gates
node scripts/pm/dispatch-gates.mjs --commandsderived 45 commands at15ef279240. 44 exited 0.pnpm check:dual-build-cjs-loadsexited 3 with PREREQUISITE NOT MET because the worktree built only the showcase's dependency closure, so that one is NOT MEASURED locally and CI's Lint & Repo Gates covers it.--ranreconciliation: "45 derived famil(ies) accounted for — 44 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".Changeset
None, with
skip-changeset.@objectstack/example-showcaseisprivate: true, so nothing in this diff publishes.Acceptance notes
cc_k3's filter is now read through the shared constant rather than written inline. The value it counts is unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_016g7nYP9wdNx1GDa5XDr7Uy