Skip to content

fix(console): "customized" means overrides + extensions everywhere; Setup → Packages names arrangements apart - #37351

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-37236-customized-meaning
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-37236-customized-meaning

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37236

Clause-②: no
Metadata-protocol: none

维护者速读

  • 管理员在 设置 > 软件包 打开一个应用的详情时,「已定制」只数改过和新增的条目;只调整了排列的应用现在显示「已定制 0 项,调整排列 2 处,已停用 0 项」,不再显示「已定制 2 项」,排列明细照常列出。
  • 属于 Studio 改版:按维护者裁定,「已定制」在设置详情、全部元数据页头和列表筛选里只有一个意思(覆盖 + 扩展)。
  • 出错时管理员只会看到这一行数字或措辞不对,不碰任何数据,可直接撤回。
  • 无。

What changes

  • Setup → Packages detail (PackageCustomizationsPanel.tsx): the 「已定制」 / "customized" count is now customizationTotal (overrides + extensions), the one number the All metadata header and both lists' 「customized」 filter already read. Arrangements are named in their own segment, engine.packages.customizations.arranged (en {count} rearranged, zh-CN 调整排列 {count} 处), drawn only when the count is above 0. The "No changes" line now needs all three counts at 0, so an arrangement-only app never reads "No changes".
    • Arrangement-only app: 0 customized, 2 rearranged, 0 switched off / 已定制 0 项,调整排列 2 处,已停用 0 项.
    • No arrangement: unchanged, 1 customized, 0 switched off.
    • The rows (customizationRowsOf) and the 「布局」 tab are unchanged; arrangements are still listed.
  • customizedCountOf is retired, not fixed to delegate. Its only job was the second meaning of 「已定制」. Keeping a second name for customizationTotal would leave two doors to the same number, and the drift this card fixes came in through that second door. Its one caller and its one test go with it.
  • customizationTotal is unchanged, and so are the header (DirectoryPage.tsx) and both filters (ResourceListPage.tsx, useListOrderedNames.ts). They gain pins, not code.
  • i18n: one additive key in en and zh-CN. No key is removed and no released key changes meaning (engine.packages.customizations.customized keeps its text, and it has not been released yet: it arrived with feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's unreleased changeset).
  • DELIBERATE CORRECTION of an existing changeset, .changeset/36908-remove-studio-home.md (unreleased). Its sentence "The count now includes tab, field-group and action-layout arrangements, so an app whose only change is a tab arrangement shows as customized." would ship false after this change. It now reads: "Tab, field-group and action-layout arrangements are named on their own in that line, not counted as customized."
  • No server, spec or route change.

Tests

One pin per surface, each on an arrangement-only base fixture (two arrangements, no override, no extension):

Surface Pin
Setup detail, en PackageCustomizationsPanel.test.tsx: arrangement-only app reads exactly 0 customized, 2 rearranged, 0 switched off, both rows listed
Setup detail, zh-CN same file: exactly 已定制 0 项,调整排列 1 处,已停用 0 项
All metadata header metadataAreaHost.customizations-28568.test.tsx: no directory-customizations-total, no tile, no failure line
ResourceListPage filter same file: no metadata-only-customizations on the arrangement-only base's list
useListOrderedNames filter same file: with ?customized=1, the ‹ › names keep the row (the filter is not offered), with a HotCRM control that keeps only its customized row

Also: no arrangement means no arrangement segment, and the mixed fixture now reads 2 customized, 1 rearranged, 1 switched off.

Targeted run (head c9c1d9e)
$ cd ui && pnpm exec vitest run PackagesPage.installedAppsUpdates-34722 PackageCustomizationsPanel metadataAreaHost.customizations-28568 customizationMarks
 Test Files  4 passed (4)
      Tests  77 passed (77)
os-verify-lock: VERDICT command-exit 0

# every app-shell test that reads the changed code (45 files, grep of the panel, rows, marks, header, both filters and the detail sheet), on 08fe4e46, the same diff before the last rebase over #37338
 Test Files  45 passed (45)
      Tests  661 passed (661)
Ablations: each pin red alone when its own surface counts arrangements

Each mutation adds + counts.arrangements at one call site through scripts/ablation-replace.mjs (anchor x1 → x0, blob changed, restored to the HEAD blob with an empty git diff HEAD). The tests import source, so there is no dist/ leg.

A1 PackageCustomizationsPanel.tsx   customized: customizationTotal(read) + read.counts.arrangements
   × lists one row per change ... counts them
   × objectstack#37236: an arrangement-only app reads 0 customized beside its arrangement count ...
   × zh-CN: ... an arrangement-only app is 已定制 0 项 beside 调整排列
   Tests  3 failed | 10 passed (13)
A2 DirectoryPage.tsx header   customizationTotal(...) + counts.arrangements > 0
   × the directory header draws no total for a base whose only change is an arrangement
   Tests  1 failed | 12 passed (13)
A3 ResourceListPage.tsx showCustomizedFilter   same mutation
   × the list offers no "customized" filter to a base whose only change is an arrangement
   Tests  1 failed | 12 passed (13)
A4 useListOrderedNames.ts customizedOffered   same mutation
   × the detail ‹ › names: "only customizations" is not offered to it, so it filters nothing out
   Tests  1 failed | 12 passed (13)
each: "ok restored: blob == HEAD and `git diff HEAD` is empty"
Package suite and type-check
pnpm --filter @object-ui/app-shell type-check     VERDICT command-exit 0
pnpm check:type-check-debt                        re-measure: OK, 0 raw tsc errors

NARROWED, declared: the package's full `pnpm test` (2430 test files) was stopped after 70 minutes on the shared box,
26 files in. The 45-file scoped set above replaces it locally; CI's `Test UI` runs the whole package.

Acceptance notes

  • Wording choice: en reads {count} rearranged, matching the line's other participles ("customized", "switched off") and avoiding "1 arrangements". zh-CN reads the ruling's own 调整排列 {count} 处. The new segment uses the line's existing separator (, / ,), not the ruling example's ·, so the line has one separator.
  • "Don't show a 0-count segment" is applied to the new segment only. The customized and switched-off segments keep feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's behaviour (both always drawn once anything is non-zero), so an arrangement-only app still shows 0 customized, as the card asks.

Verification

Read first: PackageCustomizationsPanel.tsx (the summary line), then the new describe at the end of metadataAreaHost.customizations-28568.test.tsx.

Two-minute check: from ui/, pnpm exec vitest run packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.test.tsx. Expect 13 passed, including "an arrangement-only app reads 0 customized beside its arrangement count".

Gates

Derived union (dispatch-gates.mjs --commands), run on the final head c9c1d9e: 38 derived, 38 run, 0 NOT-MEASURED (--ran reconciliation exit 0).

  • 37 exit 0, plus check:changeset-fixed (outside the derivation, run because .changeset holds its roster) exit 0.
  • 1 exit 1, expected: check-empty-changeset.mjs --base origin/main refuses the edit to .changeset/36908-remove-studio-home.md. This is the DELIBERATE CORRECTION declared above, not a collision. The gate stays red until the dispatching seat confirms the correction by its own record.
  • Push gates: check:test-source-alias exit 0, check:i18n-keys exit 0, overlap-check.mjs VERDICT clean exit 0, check:nul-bytes exit 0.

Generated by Claude Code

… extensions, names arrangements apart (WIP)

Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye
Co-authored-by: Claude <noreply@anthropic.com>
…h filters and the Setup detail; changeset

Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye
Co-authored-by: Claude <noreply@anthropic.com>
…rt from customized

Claude-Session: https://claude.ai/code/session_01QSeKYngAThmzrAhkac86ye
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: c9c1d9e422e98ef60267030df7bbfb07b7f61a87
Local-runs: probe — the seat's L1 pin and ablation run at this head (vitest, three app-shell test files, throwaway worktree); every judgment below rests on the diff, the card and the head's check-runs
Scope: none (no reviewFace hits: no published schema, no governed path; the review is owed for the DELIBERATE CORRECTION and read on the declaration face) + .changeset/36908-remove-studio-home.md, .changeset/37236-customized-means-one-thing.md, the PR body's Clause-②: no / Metadata-protocol: none lines, and the diff files those sentences describe: ui/packages/app-shell/src/views/studio-design/PackageCustomizationsPanel.tsx, ui/packages/app-shell/src/views/studio-design/packageCustomizationRows.ts, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts

① Derived judgments

  • DELIBERATE CORRECTION — confirmed. The note is .changeset/36908-remove-studio-home.md, feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's pending (unreleased) changeset. It is the only foreign note the diff touches. Check Changeset job 139509776058 names only this file. One sentence changes, in the "What this environment changed on an installed app" bullet:
    • Before: "The count now includes tab, field-group and action-layout arrangements, so an app whose only change is a tab arrangement shows as customized."
    • After: "Tab, field-group and action-layout arrangements are named on their own in that line, not counted as customized."
    • The old sentence would ship false once this PR lands. At this head PackageCustomizationsPanel.tsx sets customized: customizationTotal(read), and customizationTotal is read.counts.overrides + read.counts.extensions (customizationMarks.ts:97-98). An arrangement-only app therefore reads "0 customized", not customized.
    • I judge the new sentence TRUE at this head, clause by clause:
      • "named on their own in that line": the summary <p> joins engine.packages.customizations.arranged (en {count} rearranged, zh 调整排列 {count} 处) between the customized and switched-off segments. It uses the line's own separator.
      • "not counted as customized": see the customizationTotal reading above.
      • The segment is drawn only when state.arranged > 0. The sentence says arrangements are named, not that a zero is named, so it is not overstated.
    • No other sentence in the note becomes false. "The 'n customized, m switched off' line" still names that line, and the panel, the 「Customize in Studio」 link and the one-app-at-a-time list are unchanged.
    • The correction is minimal: one line, +1/−1.
  • The PR's own note, .changeset/37236-customized-means-one-thing.md, read sentence by sentence. True at head.
    • "counts as customized only … overrides and extensions": true.
    • "the same number the All metadata header shows and the same rule its lists' 「customized」 filter uses": true. DirectoryPage.tsx:246/249, ResourceListPage.tsx:741 and useListOrderedNames.ts:173 all read customizationTotal.
    • "named on their own … only when there are any": true.
    • The example "3 customized, 2 rearranged, 1 switched off" / 「已定制 3 项,调整排列 2 处,已停用 1 项」 matches the two catalogues and the separator.
    • "reads '0 customized, 2 rearranged, 0 switched off' instead of '2 customized'": true. It is pinned exactly in PackageCustomizationsPanel.test.tsx.
    • "still lists both arrangements under the section's 「布局」 tab": true for zh-CN (tab.arranged = 布局). In English the tab reads "Layouts" (nit N1 in the seat's L1).
  • Clause-②: no holds. No packages/spec/src/** path is touched.
    • customizedCountOf is removed, but @object-ui/app-shell is private: true, and packageCustomizationRows.ts is not re-exported from its entry.
    • The one new key goes into the studio namespace of @object-ui/i18n, whose catalogues are typed Record<string, string>. The key adds a runtime entry, not a type, so nothing reachable from the package's declarations widens.
    • The claim (7171285434), the PR body and the changeset all read Clause-②: no through readClause2Line (declared, value no, no arm).
  • Metadata-protocol: none holds. No metadata key, value or type changes. The UI reads the existing served counts.arrangements. All three carriers read none through readMetadataProtocolLine.
  • i18n. released-keys-removed.mjs against @object-ui/i18n@18.6.0 lists the same 77 keys at this head as at the merge base f339060f, so the PR removes no released key. No engine.packages.customizations.* key exists at the tag. The new key is in both of the packs the studio namespace carries, en and zh, with {count} in each.

② Semver level

patch on @object-ui/app-shell and @object-ui/i18n is correct for a non-protocol UI fix with one additive string. CI's Guard against accidental major bumps and Require an ADR-0087 disposition steps are success on job 139509776058. The job's one red step, Reject an empty-frontmatter changeset added by this PR, is the DELIBERATE CORRECTION refusal this record confirms. It is not a level failure.

③ Boundary flags

  • The dev's three open questions are answered by the zone's rulings (7175439691), each A, and each is consistent with ruling B (7158100447):
    • Q1, wording and separator: the ruling's 「·」 example was introduced with "for example".
    • Q2, only the arrangement segment hides at 0: 「已定制 0 项」 stays, as the ruling's example implies.
    • Q3, keep the correction: confirmed above.
  • The dev's out-of-scope note (the full app-shell suite cannot finish inside a dev turn) is carried as noted, not filed. It changes nothing here.
  • SQL push-down: the diff only changes client UI arithmetic over the already-served customization read. It adds no id materialisation and no in-app join. Nothing to record.
  • The author is objectstack-fleet[bot] (relay).
  • This record covers this head only.

Implemented-by: claude/issue-37236-customized-meaning
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head c9c1d9e422e98ef60267030df7bbfb07b7f61a87 · 2026-11-25T22:05Z

  • What was read.

  • Shape.

    • Draft against main, authored by objectstack-fleet[bot].
    • First line Fixes #37236, the only closing keyword in the body, and right: the PR delivers the card's whole "Done when".
    • 9 files, +152/−45. Nothing under content/docs/releases/.
    • check-governed-merges --pr 37351: NOT governed, 197 lines, so Tier S.
    • Two files sit outside the claim's literal surface, and both are accepted:
  • Ruling B → code. 「已定制」 is now one number on every surface: customizationTotal (overrides + extensions, customizationMarks.ts:97-98, unchanged).

    • The Setup detail reads it at PackageCustomizationsPanel.tsx.
    • The header reads it at DirectoryPage.tsx:246/249, the list filter at ResourceListPage.tsx:741, and the ‹ › filter at useListOrderedNames.ts:173.
    • customizedCountOf is gone with its one caller and one test. There are zero references at head.
    • Arrangements get their own segment, shown only above 0. The "No changes" line now needs all three counts at 0. Rows and the 「布局」 tab are unchanged. Held.
  • Pins at head: pass, and red on ablation. Seat run, throwaway worktree at this head.

    • Three files pass: PackageCustomizationsPanel.test.tsx, metadataAreaHost.customizations-28568.test.tsx and PackagesPage.installedAppsUpdates-34722.test.tsx, 69 of 69 tests.
    • Each ablation was applied alone, and each file was restored to the HEAD blob with an empty git diff HEAD:
    # Mutation Red
    A1 Setup detail customized + counts.arrangements 3 of 13: mixed, en arrangement-only, zh-CN
    A2 header gate + arrangements 1 of 13: header pin
    A3 ResourceListPage filter gate + arrangements 1 of 13: list filter pin
    A4 useListOrderedNames gate + arrangements 1 of 13: ‹ › names pin (its HotCRM control stays green)
    A5 drop state.arranged === 0 from the "No changes" test 2 of 13: en and zh arrangement-only
    A6 always draw the arrangement segment 1 of 13: "no arrangement, no arrangement segment"
    A7 customizationTotal itself + arrangements 7 of 69, across all three files

    A1–A4 reproduce the PR's own ablations. A5–A7 are the seat's own.

  • DELIBERATE CORRECTION. It is justified, minimal (+1/−1, one sentence) and declared in the PR body with the old and new sentence. The diff changes code, so the confirmation is the same-head TIER_DEFAULT contract-review PASS (references/landing-operations.md). That record is posted beside this one and judges the sentence TRUE clause by clause.

  • Check Changeset red, accepted as red by design. Job 139509776058 fails only at the step Reject an empty-frontmatter changeset added by this PR. Its error names .changeset/36908-remove-studio-home.md and the DELIBERATE CORRECTION class. The ADR-0087 and major-bump steps are success. All three 〈路径分叉〉 conditions hold:

    • (1) The source says the red is by design on the pushed branch. check-empty-changeset.mjs prints the correction remedy ("the dispatching seat confirms it by its own record"). pr-automation.yml (the "Past a designed red" block) names the foreign-changeset refusal on a PR that corrects a note and adds its own as RED BY DESIGN, left standing.
    • (2) The job does not run on merge_group: pr-automation.yml triggers on pull_request only, and Check Changeset is not a required context.
    • (3) This comment names the gate and the reason. No PR comment carried it before this one, because the zone's note 7175439691 is on the card.
  • i18n.

    • released-keys-removed.mjs against @object-ui/i18n@18.6.0 finds the same 77 keys at head as at the merge base, so no released key is removed. engine.packages.customizations.* is absent at the tag.
    • The new engine.packages.customizations.arranged is in both packs the studio namespace carries (en, zh), with {count} in each.
    • check:i18n-keys is green in the push gates, and Lint UI and Test UI are success.
  • Clause-②. no is right: app-shell is private, and the studio catalogues are Record<string, string>.

    • The card's newest Claim: (7171285434), the PR body and the new changeset each read Clause-②: no through readClause2Line: declared, value no, no arm.
    • Each reads Metadata-protocol: none through readMetadataProtocolLine.
    • The claim matches the body. Skills-docs: is not owed.
  • Check-runs at head. 58 runs: 44 success, 13 skipped (all expected), 1 failure (Check Changeset, above).

    • Lint & Repo Gates, TypeScript Type Check, Type Check UI, Lint UI, all 16 Test UI shards, Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Governed Surface Queue Guard are success.
    • l1-face.mjs --pr 37351 flags only that red.
  • K = 6, merge-tree clean. The merge base is f339060f, and origin/main is 134b71db. main moved one commit (test(runtime): get_record_context answers one caller with the same bytes on the /mcp and stdio doors over a real kernel #37350) since the zone read K = 5. git merge-tree --write-tree origin/main c9c1d9e4 exits 0, and so does the same check against Version Packages chore: version packages #35129 at 62818bba.

  • 维护者速读. Four lines of Chinese business prose:

    • who, where, before and after;
    • the topic (Studio 改版) and the one meaning;
    • display-only risk, which can be reverted;
    • 「无」.
      There are no code names, paths, ruling letters or bare card numbers. The example 「已定制 0 项,调整排列 2 处,已停用 0 项」 matches the en pin's two-arrangement fixture and the zh catalogue. Accurate.
  • N1 — The new changeset says the arrangements are listed "under the section's 「布局」 tab". In English that tab reads "Layouts" (tab.arranged). "the section's Layouts tab (「布局」)" would read right in both languages. This is prose only and needs no new head.

  • N2 — The os-dev report (7175069802) quotes the zh-CN pin as 「…调整排列 2 处…」. The test pins a one-arrangement fixture, 「已定制 0 项,调整排列 1 处,已停用 0 项」, which the PR body's table states correctly. This is a report wording slip only.

No must-fix, no should-fix.

  • Landing. The zone lands it: Tier S, not governed, under 3,000 lines. K = 6 < 15, so no main merge is owed first.
    • Post the same-head TIER_DEFAULT record and this comment on the PR, then run pr_ready + automerge_enable.
    • The DELIBERATE CORRECTION is confirmed by the same-head record. The seat accepts the red-by-design Check Changeset, so the PR enters the queue carrying it.
    • On MERGED, Fixes #37236 closes the card. The zone then removes pm:dispatched and the assignee, and leaves an ACCEPT → PR #37351 comment pointer line on the card that names this comment's id.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

Landing · 2026-11-25T22:06Z · head c9c1d9e4 · zone a4-S (#37236)

  • L1 ACCEPT from seat repo:objectstack#4 at c9c1d9e4 (7175934679), with no must-fix and no should-fix. TIER_DEFAULT PASS (7175924037) confirms the DELIBERATE CORRECTION of the unreleased .changeset/36908-remove-studio-home.md.
  • Carried red: Check Changeset is red by design. The seat's L1 records its gate and reason: the correction is source-declared, and the check runs on pull_request only, not on merge_group. The seat ruled to land with it carried.
  • Nits, recorded and not blocking:
    • N1: 「布局」 in the changeset reads "Layouts" in en.
    • N2: the report's zh pin count.
  • check-governed-merges.mjs --pr 37351: NOT governed; 197 changed lines, under 3,000.
  • Checks on the head, newest run of each: 44 success, 13 expected skips, 1 red (the carried Check Changeset above).
  • K: GitHub compare puts the head 6 commits behind main, under 15. merge-tree with origin/main is clean.
  • Clause-②: no, Metadata-protocol: none. Final report 7175069802; finalized-head note on 「已定制」有两种算法:Setup 详情计入排列调整,全部元数据页头和列表筛选不计 #37236.
  • Action: ready, then auto-merge through the merge queue.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 22:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 84a27e7 Nov 25, 2026
58 of 59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37236-customized-meaning branch November 25, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

「已定制」有两种算法:Setup 详情计入排列调整,全部元数据页头和列表筛选不计

2 participants