Repository navigation
docs(skills): objectstack-ui teaches the board's lane statistic and card settings - #37063
Conversation
…ard settings The kanban example writes kanban.summary, showFieldLabels and hideEmptyFields; one note names the six lane statistics and what the aggregates cover. Restating comments in the same file pay for the bytes. Claude-Session: https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract review brief — PR #37063 @
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Contract reviewServed-tier: PR #37063 (card #36422), one commit on main ① Derived judgments
② Semver level
Not graded (changesets are outside ④): the changeset says the example "sets ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. (a) The nine cuts. Each removed passage is still said in the file at the head; no rule an author needs is gone.
Cut 7 also removes a comment that was untrue of its own example, which sets (b) The board example and note against
Tried to break it: the example type-checks against
Nits only; the head is not moved. Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Landing · head
State: L1 ACCEPT 7140586925 on this head; every check-run green or expected skip. Ready and auto-merge in this stroke. On MERGED, |
repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr
Fixes #36422
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ui/rules/list-views.md, section "Configuring Kanban Views":kanban.summary({ type: 'sum', field: 'estimate_hours' }) in place ofsummarizeField, and setsshowFieldLabelsandhideEmptyFields, each with its default (true) in the trailing comment.summary.typevalues (none,count,sum,avg,min,max); the four aggregates take afieldand are computed by the query over every record of the lane, not only the loaded cards; the known gap the spec names (lanes over a lookup field, or a view with grouping:sumcovers one fetched page and the other three show nothing);summarytakes precedence over the older sum-onlysummarizeField.summarizeFieldis still an accepted key (KanbanConfigSchemainpackages/spec/src/ui/view.zod.tsdeclares it, no tombstone, no conversion), so it is named once as the older spelling and no longer taught as the way to write a lane statistic. No other file underskills/mentions it (git grep summarizeField -- skillsat this head: one hit, the new note).Every sentence was written from the spec's describe text and JSDoc for
KanbanLaneSummarySchema,summary,showFieldLabelsandhideEmptyFieldsat main a68b475.Paid for in the same file
The file had 4 bytes of token headroom, so the new teaching is paid by cutting restatement in
list-views.mditself. No ratchet row moves.searchableFields..."searchableFieldsline under itdropdown / tabs / togglerange applies only to page lists ..."tabsis page-only" in the same bulletgroupByFieldlanesnote under the examplelistand every other view untouched"listViewsentry that coexists with the views the object has"startDateField/endDateFieldSkills size readings
rules/list-views.mdlinesrules/list-views.mdbytes / tokensSKILL.mdfiles, linesNet lines in
skills/**: +2 (17 added, 15 removed), against a budget of +12.Tests
Head 7d7ca6d. Text only: no tested behaviour changes, so no ablation.
pnpm --filter @objectstack/spec run check:skill-examples(spec and the client-react closure built first, under the verify lock): exit 0, "350 prose examples type-check across 3 surface(s)". This is the gate that type-checks the board example againstListView.node scripts/check-skills-token-ratchet.mjs: exit 0, "skills/objectstack-ui/rules/list-views.md is 4444 tokens (ceiling 4448; headroom 4)".Acceptance notes
summary,showFieldLabels,hideEmptyFields); the scope addition's three statistics (avg,min,max) are named with what they cover.evals/views-apps-actions-pages.jsonexercises these keys, and a case was drafted, butscripts/pm/overlap-check.mjsanswered exit 1 against open PR docs(skills): objectstack-ui teaches the object's actionLayout #37043, which appends to the same file. The case was dropped so this branch does not queue behind that pull (overlap-check at this head:VERDICT clean exit 0). A case for the lane statistic can follow once that pull lands.showFieldLabels: falseandhideEmptyFields: false, the non-default values, so the keys are visible in the example; the comments carry the defaults.Verification
First files to read:
skills/objectstack-ui/rules/list-views.md(the hunk at "Configuring Kanban Views" is the teaching; every other hunk is a cut).Two-minute check: open the spec describe text for
summary,showFieldLabelsandhideEmptyFieldsinpackages/spec/src/ui/view.zod.tsbeside the new note. Expected: every clause of the note has a source sentence there.Local gate subset (derived by
dispatch-gates.mjs --commands, 48 families): 43 exit 0; 5 exit 3, PREREQUISITE NOT MET because the full workspace is not built here (check:doc-formula-expressions,check:dts-closure,check:dual-build-cjs-loads,check:lean-entry-closure,check:sourcemap-no-sources-content). Those five are NOT MEASURED locally and left to CI; none reads a skills file's prose.Generated by Claude Code