Repository navigation
docs(spec): the compactToolbar describe and the userActions liveness note say which toolbar draws Refresh - #36872
Conversation
… say which toolbar draws Refresh The compactToolbar describe (and its form hint, pinned equal) now states the renderer default (compact unless false) and that the compact toolbar draws no Refresh, so userActions.refresh governs only the wide toolbar; pull-to-refresh is unaffected. The userActions liveness note gives the refresh sub-key its wide-toolbar scope and the current reader line. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
…dle, add the changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB
📓 Docs Drift CheckThis PR changes 2 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin fe3fb6c5a44d6bf46024fd3d8a1864a8995b5553 && git checkout fe3fb6c5a44d6bf46024fd3d8a1864a8995b5553
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 76bff41f451d3fa3d475384d8483905f49f6607f ca02fd3f89afbb29c51208859b7183818b5e5314 && git checkout -B drift-repro 76bff41f451d3fa3d475384d8483905f49f6607f && git merge --no-ff ca02fd3f89afbb29c51208859b7183818b5e5314
node scripts/docs-audit/affected-docs.mjs --json 76bff41f451d3fa3d475384d8483905f49f6607f
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract-review-claim: session_01WGufziwMkZG34d69p8BHb4 · head ca02fd3 · 2026-11-24T06:34Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 席位核对 — ACCEPT · repo:objectstack#3 · head ca02fd3 · 2026-11-24T06:35ZL1: ACCEPT Checklist
FindingsMust-fix: none. Should-fix: none.
Landing notesThe area lands once this ACCEPT and a PASS contract-review record on this head are both in place. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziwMkZG34d69p8BHb4 Contract reviewServed-tier: Inputs read: card #36353 with all five comments (triage 7076775316, unblock 7101079773, claim 7122783775, dev report 7123443977, claim amendment 7123463265), PR #36872 body, its 8-file list and the net diff against ① Derived judgments
② Semver levelClause-②: no. Correct: no accept set narrows or widens and no published type changes shape. The changeset is ③ Boundary flags
④ Design judgment
The new text also agrees with its sibling on Other readers of
No must-fix, no should-fix. Nits, none of which changes correctness or the contract on this head:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB Landing · 2026-11-24T06:39Z · ACCEPT 7124101951 (L1-b) at head ca02fd3
State: ready + auto-merge (area ux-D, not governed, ≤3000 lines). |
Requested by Yibo Wang · project thread
Fixes #36353
Clause-②: no
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
维护者速读
What changes
packages/spec/src/ui/view.zod.ts, thecompactToolbardescribe: the first sentence is kept and two are added. It now says the compact toolbar is on by default (omitted ortrue;falsedraws the wide toolbar, one button per control) and that the compact toolbar draws no Refresh button, souserActions.refreshgoverns only the wide toolbar; pull-to-refresh is unaffected by either key. The wording follows theuserActions.refreshdescribe that fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar #36339 landed ("Governs only the wide toolbar's Refresh button (compactToolbar: false): the default toolbar has no Refresh, so the toggle changes nothing there.").packages/spec/src/ui/view.form.ts: the view form'scompactToolbarhint mirrors the new describe. The hint == describe pin (src/ui/view-form-composite-children.test.ts, "top-level rows that gained a hint carry their schema description") requires it.packages/spec/liveness/view.json, theuserActionsnote: theuserActions.refreshsentence now says it drives only the wide toolbar's Refresh button and names the reader by line:showRefreshatui/packages/plugin-list/src/ListView.tsx:2710, the button at:8125behind!compactToolbar, measured at5c2e34cdb. The verdict stayslive.content/docs/references/{ui/view,data/object,api/protocol}.mdx(check:generated --fix, which found onlycheck:docsstale) andpackages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts(node scripts/check-i18n-bundles.mjs --write --filter=platform-objects; translated locales keep their wording)..changeset/36353-compact-toolbar-refresh-describe.md: patch for@objectstack/specand@objectstack/platform-objects.Description text only.
compactToolbarstaysz.boolean().optional()anduserActions.refreshis not touched, so no key, type, default or optionality changes and the accept set is the same.What the new sentences rest on, read on
origin/main5c2e34cdb(ui/packages/plugin-list/src/ListView.tsx):compactToolbar: schema.compactToolbar !== false(:2718). The plugin-list registry input already says "On by default;falsedraws one toolbar button per control" (ui/packages/plugin-list/src/index.tsx:236).toolbarFlags.showRefresh && !toolbarFlags.compactToolbar(:8125,data-testid="refresh-button").ViewSettingsPopovergets no refresh prop (theviewSettingsElementat:7548), andcomponents/ViewSettingsPopover.tsxhas norefreshhit at all.usePullToRefresh({ onRefresh: handlePullRefresh, enabled: !!dataSource && !!schema.objectName })(:3680), attached unconditionally to the list root (ref={pullRef},:7637). It reads neithercompactToolbarnoruserActions.refresh.Prior rulings:
check-prior-rulings --pathsover both files lists 146 hit lines. The ones near the edited lines (view.zod.ts:3710ruling 6095014058 letter A onsharing,:3733#15184 ruling B on composition order,:1935/:1946thehideFields/editInlinedefaults; view.json:236,:250,:254) are about other keys, and none governscompactToolbaror the refresh scope. No ADR namescompactToolbar. The scope sentence restates what #36339's describe already says (contract review record 7076152814, N2 and N3), and no ruling is reversed.Read first, by risk:
packages/spec/src/ui/view.zod.ts, thecompactToolbarline: this is the published schema text, and the contract review reads it.packages/spec/liveness/view.json, theuserActionsnote: the line numbers it cites.Tests
Final head:
ca02fd3f8. Every local reading below was taken against that head's tree.Local readings (builds and tests under scripts/pm/os-verify-lock.sh)
pnpm --filter @objectstack/spec build: VERDICT command-exit 0.pnpm --filter @objectstack/spec check:generated --fix: rebuilt the package first, and regenerated onlycheck:docs(content/docs/references/**), the one artifact it found stale. A re-run ofcheck:generatedthen exited 0.pnpm --filter @objectstack/spec test: Test Files 885 passed (885), Tests 28146 passed, 1 todo (28147), exit 0.pnpm --filter @objectstack/spec typecheck: exit 0.pnpm --filter @objectstack/platform-objects test: Test Files 125 passed (125), Tests 2126 passed (2126), exit 0.typecheck: exit 0.src/ui/view-form-composite-children.test.ts: Test Files 1 passed (1), Tests 20 passed (20), VERDICT command-exit 0. Withview-form-pagination.test.tsandview.test.ts: 3 files, 573 tests passed.node scripts/check-i18n-bundles.mjs: before the regeneration, "platform-objects: 1 bundle(s) drifted from the schema". After--write --filter=platform-objects: "OK (10 package(s), all bundles in sync)". This ran after the build of the@objectstack/cli+@objectstack/platform-objectsclosure (VERDICT command-exit 0).No ablation and no reverse verification: the diff changes description text, a ledger note and generated output, and no tested behaviour.
Acceptance notes
ListView.tsxonmain; form hint, regenerated docs and the hint == describe pin in step): done; see the three readings above. The pin passes.:2710reader,:8125button).ListView.tsx:374 toolbarFlags, an older objectui line, for the wholeuserActionsrow. Only the refresh sentence is in this card's scope. Today the memo is atui/packages/plugin-list/src/ListView.tsx:2700-2729.compactToolbarhints (andui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts:440) carry only the first sentence. They are still true, just less precise than English. Translating them is a translator's edit, as with fix(plugin-list): Refresh alone no longer draws the Display entry in the default list toolbar #36339'srefreshhint.node scripts/pm/overlap-check.mjsreports a textual conflict with feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement #36802 in the generatedcontent/docs/references/data/object.mdxonly. That file is routedmerge=os-regen(.gitattributes:159), so whichever PR lands second regenerates it withcheck:generated --fix. It merges cleanly againstorigin/main, feat(kanban): a lane's sum, avg, min and max cover every record of the lane, computed in the query #36857 (which sharesview.zod.ts) and feat(i18n): a design-mode menu rename outside the source language is stored as that language's translation #36858.Verification
Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/ui/view-form-composite-children.test.tsshows 20 passed.grep -n "compactToolbar: z" packages/spec/src/ui/view.zod.tsshows the new describe afterz.boolean().optional().Gates
node scripts/pm/dispatch-gates.mjs --commandson the final diff named 112 commands, and all of them ran locally. The--ranreconciliation reads "112 derived famil(ies) accounted for, 112 run, 0 NOT-MEASURED".node scripts/check-plugin-teardown-shape.mjs --self-test, because the shallow clone cannot reach its pinned fixture commit;pnpm check:dual-build-cjs-loads, because the whole-tree dist is absent;pnpm --filter @objectstack/spec run check:skill-examples, because some workspace dists are absent.pnpm check:platform-checklist, "ABSENT SYMBOLpackages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals" indocs/qa/platform-checklist/areas/access-security.json. This diff touches neither file. The symbol is absent from that source at the base5c2e34cdband at the currentorigin/maind9c799c10, so it is red independently of this PR, and it is reported to the seat.pnpm --filter @objectstack/spec check:generated: exit 0.node scripts/check-i18n-bundles.mjs: exit 0.node scripts/pm/overlap-check.mjs: see Acceptance notes.node scripts/check-dev-prereqs.mjs(a local-only family): exit 1, "the workspace is not built" (44 of 108 package dists absent in this container). This describes the machine and says nothing about the diff.node scripts/pm/dispatch-gates.mjs --tier: no path-derived mandate.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB