Skip to content

feat(i18n): a design-mode menu rename outside the source language is stored as that language's translation - #36858

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-36504-menu-rename-translation
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/issue-36504-menu-rename-translation

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #36504
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #36873 (skills/objectstack-i18n/SKILL.md:387 names GET /api/v1/i18n/locales but not its answer, so it does not name the sourceLocale member this PR adds)

repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU

维护者速读

  • 管理员在设计布局模式下改菜单名称时,用非源语言(例如中文界面、英文源语言)改的名字只对该语言生效,其他语言仍显示原名称;以前在非默认语言下改名会被禁止,或在默认语言下改名会覆盖所有语言。
  • 属于设计布局(应用内直接调整菜单)专题,补上“菜单改名按语言落地”这一半,并让服务端告诉控制台哪种语言是源语言。
  • 出错时最坏情况是某个语言下的新名称没有生效(显示原名称),原有名称不会被改坏;改动可通过在 Studio 删除对应的翻译条目直接撤回。
  • 无

The contract widening (for the contract-tier review)

GetLocalesResponseSchema gains one optional member, sourceLocale: string (packages/spec/src/api/protocol.zod.ts). It is the declared i18n.sourceLocale, else the default locale: the collapse every metadata-document translator already makes (getSourceLocale?.() ?? getDefaultLocale?.(), the caller's to make per the II18nService.getSourceLocale contract). It is absent only when the server knows neither. The name follows its config key (i18n.sourceLocale, translation.zod.ts), the precedent being the body's own isDefault mark named for i18n.defaultLocale. The shard moved, measured: packages/spec/authorable-surface/api.json gains api/GetLocalesResponse:sourceLocale (regenerated, not hand-edited), so Metadata-protocol: added and @objectstack/spec minor. The one producer is the dispatcher's /i18n domain (packages/runtime/src/domains/i18n.ts); service-i18n serves no body of its own for this route (its ledger row points at the SDK).

What changes

  • GET /api/v1/i18n/locales names the source locale (above).
  • Design mode, 「Rename and icon」: the name field is open in every language. Where the name lands is the save's rule (labelGoesToTranslation, designModeMenuModel.ts):
    • typed in the source language over an entry shown by its stored label: the stored label, as before;
    • typed in any other language, or in the source language over a translation the reader was shown: that language's translation, and the stored label is kept.
      The dialog says so when the name will be a translation.
  • The translation write (designModeMenuSave.ts): the translation item APP_menu_LOCALE (crm_menu_zh_cn), key apps.APP.navigation.ID.label (the key translateApp reads), in the package the menu is written to: the app's own when writable, else its .custom pair (ADR-0146 D2). The item as stored is read through /layers, its other keys kept, and written by the menu's confirmed-save rule (first-write pin, publish pinned to the row read, a refused publish discards the draft). It is written before the menu; a translation-only save writes no app.
  • N5 (comment 7083013814): a link added outside the source language is stored without a label, its typed name written as that language's translation, keyed by the id the entry is stored under (rebaseMenuEdits now reports a fresh id through writtenAs). Measured: AppSchema accepts a label-less url entry, so no placeholder is invented; a source-language reader sees the URL until someone names it there.
  • Unknown languages (the locales read failed): every typed name is a translation, which never changes what another language reads.
  • Strings: designMode.menu.renameSourceOnly is replaced by renameTranslation, and translationPendingDraft is added, in all eleven packs (zh-Hant regenerated).
  • Docs: the two route tables that list /i18n/locales say it names the source locale; content/docs/references/api/protocol.mdx regenerated.

Done-when, item by item

  1. GET /i18n/locales exposes the source locale, pinned: packages/runtime/src/i18n-supported-locales.test.ts (real AppPlugin + memory i18n + dispatcher; defaultLocale: 'zh-CN', sourceLocale: 'en' answers sourceLocale: 'en'; no declaration answers the default) and protocol.test.ts (the parse keeps the member).
  2. A zh-CN rename over an English source writes the zh-CN translation and leaves the stored label; read back through translateApp, zh-CN shows the new name and an English reader the base label (designModeMenuSave-36363.test.ts, and end to end in DesignModeMenu-36363.test.tsx).
  3. The guard is relaxed: both former guard pins are rewritten to the new behaviour.
  4. Object and field labels: not served by this path. The console edits no object or field label in design mode today, and a translation of those lives under objects.OBJECT... and is read by translateObject with its own packaged-base and field-patch ranks (ADR-0146 D10), so it needs its own split rule rather than this menu's. The locale read (fetchDeploymentLocales, labelLanguageOf) is shared and reusable.

Server-side reach, measured before building the console half

A translation row in the .custom pair is served at rank 1 on the override (getPairTranslationBundle → pairBundle, labelCatalogs), for nodes the override changed and nodes it left alone; the real-boot pin is packages/objectql/src/protocol-custom-override-bare-slot-envelope.test.ts (the #30504 describe: a node on the pair's override reads the pair's translation). An own-package app's row reaches the deployment catalog through the authored-translation sync.

Tests

Local readings (head after the last fix commit)
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/api/protocol.test.ts src/system/i18n-resolver.test.ts: Test Files 2 passed, Tests 811 passed.
  • pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/i18n-supported-locales.test.ts src/i18n-success-envelope.conformance.test.ts src/domains/i18n-anonymous-deny.test.ts: the anonymous-deny literal needed the new member (fixed in this PR); see the report comment for the final reading.
  • ui: vitest run --maxWorkers=2 packages/app-shell/src/layout/__tests__/ packages/i18n/src/__tests__/ plus the two RecordTabsConfig suites (which share the locales read): 271 files, one stale zh-Hant catalogue (regenerated in this PR); final reading in the report comment.
  • pnpm --filter @objectstack/spec check:generated: 14 of 14 current after --fix (check:docs regenerated protocol.mdx; authorable-surface regenerated over the merged tree).
  • pnpm --filter @objectstack/runtime typecheck: tsc --noEmit clean; check:test-typecheck names three files this diff does not touch (boolean-written-spelling-row-scope.test.ts, meta-object-publish-column-changes.test.ts, organization-ownership-boot-guard.turso-remote.kernel.test.ts), left to CI's reading.
  • type-check of @object-ui/app-shell and @object-ui/i18n: NOT MEASURED locally (the ui project references need every ui package's dist); CI's Type Check UI carries it.
Ablations (one per tested behaviour, restored by `git checkout HEAD`, restore proven by an empty `git diff HEAD`)
  • The producer stops emitting sourceLocale (ablation-replace.mjs on domains/i18n.ts): i18n-supported-locales.test.ts red (exit 1); restored clean.
  • labelGoesToTranslation answers "stored" outside the source language: designModeMenuSave-36363.test.ts and DesignModeMenu-36363.test.tsx red (exit 1); restored clean.

Acceptance notes

  • Overlap: fix(console): report editing is its own entry, mutually exclusive with design mode #36848 (report editing, this area, draft) conflicts textually in DesignModeMenu.tsx (its removal of the report-slot block meets this PR's labels argument on the report save) and designModeMenuCreate.ts (imports). Mechanical; the second to land resolves.
  • File surface: designModeMenuCreate.ts is touched for one type line (AppMenuSaveInput & { item }) so a dashboard or report created from the picker carries the label language too; without it a zh rename staged before 「New dashboard…」 would be written to the stored label.
  • A translation item of another name for the same locale in the pair that keys the same navigation id merges by item name order (readAuthoredTranslationLayer); the design mode writes and reads only its own APP_menu_LOCALE item.
  • In the source language, a rename over a stored inline locale map (label: { en, zh-CN }) still replaces the whole map with a string, as before this PR; noted, not changed here.
  • RecordTabsConfig's tab-rename gate still compares the session with the default locale (fetchDefaultLocale, unchanged behaviour); with sourceLocale now served it can compare with the source locale. Reported to the seat, not changed here.

Verification

First read (by risk): ui/packages/app-shell/src/layout/designModeMenuSave.ts (prepareAppMenuSave label split and writeMenuTranslation), ui/packages/app-shell/src/layout/designModeMenuModel.ts (labelGoesToTranslation, splitLabelEdits, writtenAs), packages/runtime/src/domains/i18n.ts (the locales body).

Two minutes: cd ui && pnpm exec vitest run packages/app-shell/src/layout/__tests__/designModeMenuSave-36363.test.ts — expect the objectstack#36504 describes green, including "a rename under zh-CN over an English source: the zh-CN translation is written and published, the stored label is not".


Generated by Claude Code

…is stored as that language's translation

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
… for sourceLocale

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/runtime, @objectstack/spec, touching 2 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/api.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/permissions/system-context.mdx (via handleI18nRequest (symbol, a top-level function))
What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/authorable-surface/api.json) — pages documenting those are invisible to this run
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 180 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 5c2e34cdb2b436f356ebba523e284e239f6ea351 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7742278970ec0164a60d3bd306e28ad1ac515b2b — the merge of head 2561fd5e28d735caf4367ec82a73cf68960c424c into base 5c2e34cdb2b436f356ebba523e284e239f6ea351, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7742278970ec0164a60d3bd306e28ad1ac515b2b && git checkout 7742278970ec0164a60d3bd306e28ad1ac515b2b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5c2e34cdb2b436f356ebba523e284e239f6ea351 2561fd5e28d735caf4367ec82a73cf68960c424c && git checkout -B drift-repro 5c2e34cdb2b436f356ebba523e284e239f6ea351 && git merge --no-ff 2561fd5e28d735caf4367ec82a73cf68960c424c

node scripts/docs-audit/affected-docs.mjs --json 5c2e34cdb2b436f356ebba523e284e239f6ea351

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 5c2e34cdb2b436f356ebba523e284e239f6ea351 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract-review-claim: session_01WGufzesUz1Y8VZuKJRhVL8 · head 2561fd5 · 2026-11-24T06:00Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2561fd5e28d735caf4367ec82a73cf68960c424c
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/runtime/src/domains/i18n.ts, packages/spec/authorable-surface/api.json, packages/spec/src/api/protocol.test.ts, packages/runtime/src/i18n-supported-locales.test.ts, packages/runtime/src/domains/i18n-anonymous-deny.test.ts, content/docs/references/api/protocol.mdx

Inputs read: card #36504 (body and all four comments, the claim 7120866660 and the os-dev-report 7123427766 included), PR #36858 (body, 28-file list, net diff against merge-base f46ce5b4af), and the check-runs on this head (63 success, 11 skipped, none failing or pending). The console files (ui/packages/app-shell/**, ui/packages/i18n/**) are the lane seat's remainder at its own tier; they were read here only to judge the declared deviations and the consumer of the new member.

① Derived judgments

  • GetLocalesResponseSchema gains optional sourceLocale: z.string(): a widening, right. The body is a z.object (strips unknown keys), so the accept-set grows by one optional member and nothing that parsed before stops parsing. The input type GetLocalesResponse (re-exported by @objectstack/client, the return type of client.i18n.getLocales and of ObjectStackProtocol.getLocales) gains an optional member: no producer and no consumer breaks. Clause-②: yes (widening) is the right declaration.
  • packages/spec/authorable-surface/api.json gains api/GetLocalesResponse:sourceLocale and nothing else: right. One added row, matching the one added member; Metadata-protocol: added is the right kind.
  • Runtime accept-set: GET /i18n/locales body gains sourceLocale when the i18n provider reports a source or a default locale: right. The value is getSourceLocale?.() else getDefaultLocale?.(), which is the collapse II18nService.getSourceLocale assigns to the caller (contracts/i18n-service.ts: the provider reports only what was declared). The member is omitted, not emitted empty, when neither is known, which is what the schema's description says. No other producer of this body exists: toLocaleDescriptors has this one call site, and service-i18n's ledger row is disposition: 'sdk'. The discovery document's locale block is a different shape and is untouched.
  • No narrowing anywhere in the diff. The only removal is the UI string key designMode.menu.renameSourceOnly in the eleven @object-ui/i18n packs; its one reader (DesignModeMenu.tsx) is removed in the same diff, and designMode.recordTabs.renameSourceOnly (still read by RecordTabsConfig.tsx) is a different key and stays.
  • Console exports: fetchDefaultLocale and isSameLanguage keep their signatures (recordTabsConfigIo.tsx still imports both); rebaseMenuEdits gains an optional fourth parameter; the save input type gains optional labels. All additive.

② Semver level

  • Changeset .changeset/36504-menu-rename-translation.md: @objectstack/spec minor, @objectstack/runtime patch, @object-ui/app-shell patch, @object-ui/i18n patch. Every published package the diff touches is listed (content/docs/** is not a package). Spec minor is right for an added optional response member. The other three sit in the same fixed group as spec in .changeset/config.json, so they are released at the group's level whatever the line says; patch on them is not wrong.
  • Clause-②: yes (widening) — on the PR body and in the changeset body, and it matches the diff.
  • Metadata-protocol: added is on both as well. Check Changeset is green on this head.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviation: designModeMenuCreate.ts outside the claim's file list — accepted. One type line (AppMenuSaveInput & { item }) and the matching import. Without it the dashboard and report saves from the picker could not carry labels, and a label staged in a non-source language before 「New dashboard…」 would land in the stored label, which is the defect the card closes. It is the same save path the claim names, not a new surface.
  • Deviation: Done-when item 4 (object and field labels) — satisfied by its second arm; Fixes #36504 is right. The card's item reads "the same path serves object and field labels if the console later edits them, or a note says why not". The PR body gives the note, and it holds against the code: the console edits no object or field label in design mode, and those translations live under objects.… and are read by translateObject, not by the apps.APP.navigation.ID.label key translateApp reads (i18n-resolver.ts:2142). Items 1 to 3 and the thread's N5 (comment 7083013814) are each implemented and pinned. Part of would leave the card open with nothing left to build under it.
  • Deviation: two pushes while overlap-check exited 1 against fix(console): report editing is its own entry, mutually exclusive with design mode #36848 — noted. The overlap is textual, named in the PR body, and is the seat's to sequence; it changes nothing in this record's scope.
  • Skills-docs: follow-up #36873 — acceptable, and the right arm. The rule (pm-dispatch SKILL.md:321) allows skills/** edits only on domain:skills PRs and sends every other PR to follow-up #N; this is a domain:ui PR. skills: objectstack-i18n names GET /api/v1/i18n/locales but not the sourceLocale member PR #36858 adds to its answer #36873 is open and names the file and lines. No skill text is made false: skills/objectstack-i18n/SKILL.md:387 names the route without its answer, and :44 lists the tooling that reads the config key; neither says the server does not serve it. In content/docs the two hand-written route tables that list /i18n/locales are updated in this PR and references/api/protocol.mdx is regenerated; no page describes the old rename guard.
  • Security — the runtime change does not change who may read the endpoint. handleI18nRequest still refuses an anonymous caller in its first statement, ahead of the service probe and of the /locales arm; the new lines sit below that gate. The i18n-anonymous-deny.test.ts hunk changes one literal, the body a signed-in caller is served on the locale-list face (it gains sourceLocale: 'en'); no deny assertion is touched. The new member is a deployment config value served on the same floor as the locale list beside it. security_findings: none agrees with the diff.
  • SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join. The runtime reads two in-memory accessors; the console reads one translation item by name through /layers.
  • Out-of-scope items the report lists with carrier: none — escalated to the seat. (a) RecordTabsConfig's tab-rename gate still compares the session with the default locale, the same gap this card closes for menus, and sourceLocale is now there to close it; (b) a source-language rename over an inline locale-map label replaces the map with a string. Neither is introduced here and neither blocks this head, but each needs a card or a stated reason before ACCEPT (filing-gate).
  • Author: the PR's user.login is objectstack-fleet[bot]; no off-relay author to name.

④ Design judgment

  • packages/spec/src/api/protocol.zod.ts — holds. Against the card: Done-when item 1 asks that GET /i18n/locales expose the source locale. A top-level sourceLocale beside locales, not an isSource mark on a row, is the right place: the declared source locale need not be one of the supported locales the rows list, so a row mark could have nothing to mark. z.string() matches the sibling code. Optional is right: a provider that implements neither accessor leaves the server with nothing true to say. The name follows the config key i18n.sourceLocale. The jsdoc's claims were checked against the code it cites: the collapse it describes is the one II18nService documents, and the first consumer (fetchDeploymentLocales in designModeMenuSave.ts) reads the member and falls back to the default locale when an older server omits it, so the member is optional on both ends.
  • packages/runtime/src/domains/i18n.ts — agrees with the contract. It emits exactly what the schema describes. i18n-supported-locales.test.ts pins both arms through a real AppPlugin, memory i18n and the dispatcher, parsing the body with the schema itself; the dev's ablation of the spread turned that file red.
  • packages/spec/authorable-surface/api.json, content/docs/references/api/protocol.mdx — regenerated rows that match the member; the generated-artefact gates are green on this head.
  • First consumer, read not reviewed: the translation item the console writes (name, locale, apps.APP.navigation.ID.label) is a shape TranslationItemSchema accepts and the key translateApp reads, so the member has a consumer whose write resolves.

No must-fix, no should-fix.

Nits (no effect on correctness or the contract):

Implemented-by: claude/issue-36504-menu-rename-translation
Reviewed-by: session_01WGufzesUz1Y8VZuKJRhVL8

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head 2561fd5 · 2026-11-24T06:05Z

L1 read of #36858 against card #36504. Head 2561fd5e28d735caf4367ec82a73cf68960c424c; dev report 7123427766. Contract-review claim 7123487532. CONTRACT_REVIEW_TIER L2 record 7123562177: PASS, clean round.

Face. l1-face.mjs --pr 36858: every item ok. All checks are now green at this head (Check Changeset was pending on the first read and has since passed); mergeable_state clean. check-governed-merges.mjs says NOT governed (0 of 28 paths; 995 changed lines). Clause-②: yes (widening), Metadata-protocol: added. Skills-docs: follow-up #36873: true. skills/objectstack-i18n/SKILL.md:387 names the endpoint, not its body, so no skill text is made false, and the two hand-written route tables in content/docs are updated here.

Read and sound.

  • Server: handleI18nRequest answers sourceLocale = declared i18n.sourceLocale, else the default locale, and leaves it out when neither is known. The anonymous deny is still the handler's first statement, so who may read the endpoint is unchanged. The spec member is optional on a stripping object, with one api.json row. The changeset levels are right: spec minor; runtime, app-shell and i18n patch.
  • Console: splitLabelEdits and labelGoesToTranslation send a label edit to the stored label only when the reader is in the source language and the entry is shown by its stored label. Every other edit becomes labels for APP_menu_LOCALE at apps.APP.navigation.ID.label, which is the key translateApp reads, and the entry keeps its served label. writeMenuTranslation reads the layered item and merges per id (a cleared name deletes it), then drafts with ifNoneMatch: '*', then publishes with the publish pin. A refused publish resets the draft, and a pending draft is said in the new translationPendingDraft text. When the locales read fails, labelLanguageOf sets source to false, so the failure falls on the safe side: a translation, never an overwrite of the base label.
  • Done-when items 1-3 are pinned (endpoint pin, zh-CN over English source with the English reader keeping the base label, guard relaxed). Item 4 is met by its "or a note says why not" arm, so Fixes is right.
  • designModeMenuCreate.ts changes by one type line (AppMenuSaveInput & { item }) so that picker-created items carry the label language. This is a mechanical adjacent change outside the claim list, declared in the report; accepted.

Changeset, read sentence by sentence. Every sentence matches the diff except the declaration line noted in N1.

No must-fix, no should-fix.

Out of scope, for the seat (cards to file at landing; neither is touched by this diff). These are the report's two carrier: none items, which the L2 escalated:

Notes (nit, no action required):

  • N1. The changeset's declaration line still reads Skills-docs: follow-up owed — skills/objectstack-i18n/SKILL.md, while the PR body says follow-up #36873. The changeset text ships into the CHANGELOG, so #36873 would read better there.
  • N2. The Done-when item 4 note lives only in the PR body. One sentence in the designModeMenuSave.ts module doc would keep it next to the code.
  • N3. fetchDeploymentLocales caches a failed read (null) for the rest of the page load. That is safe, since every rename then goes to a translation, but a source-language rename made after a transient failure lands in that locale's translation rather than the base label. Retrying on the next save would avoid it.
  • N4. isSameLanguage matches a region-less tag to any region (zh = zh-TW). That is by design for en/en-US; recorded for a zh/zh-TW deployment.
  • N5. The textual overlap with fix(console): report editing is its own entry, mutually exclusive with design mode #36848 in DesignModeMenu.tsx and designModeMenuCreate.ts is known; whichever PR lands second rebases.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU

Landing · 2026-11-24T06:06Z · ACCEPT 7123581719 at head 2561fd5

reading value
check-governed-merges.mjs --pr 36858 NOT governed · +895/−100 (995 ≤ 3000)
landing-k.mjs --pr 36858 OK · K = 7 < 15 (main 76bff41) · no new locale pack under a label PR · no shared book moved under this PR's
contract review PASS 7123562177 at 2561fd5 (contract tier, clean round)
checks at 2561fd5 63 success, 11 expected skip, 0 failed or pending; mergeable clean

Open findings: nits only (L1 N1–N4). Two out-of-scope carrier: none items (RecordTabsConfig tab-rename gate still compares with the default locale; a source-language rename over an inline locale-map label replaces the map) go to the seat for cards. Skills-docs: follow-up #36873. Textual overlap with #36848 (DesignModeMenu.tsx, designModeMenuCreate.ts): the one that lands second rebases. State: ready + auto-merge (Tier S). On MERGED, #36504 closes by Fixes; area ux-A removes pm:dispatched.

@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36504-menu-rename-translation branch November 24, 2026 06:43
os-support-ai pushed a commit that referenced this pull request Nov 24, 2026
…port-editing-own-entry

Conflicts with #36858 (menu rename translation), resolved so both survive:
- designModeMenuCreate.ts: keep this branch's dashboard-only creator (no
  report kind, no saveAndPublishInPackage); take #36858's input type
  `AppMenuSaveInput & { item: NewMenuItem }` and its import, dropping the
  now-unused `Menu` import, so the dashboard path carries `labels`.
- DesignModeMenu.tsx: drop the report-slot block #36858 had edited to pass
  `labels`; the dashboard save keeps #36858's `labels`.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants