Repository navigation
docs(setup,studio): correct the two overview pages and add three Setup manual pages - #39735
Conversation
…p manual pages The Setup overview taught the retired role model and the Studio overview said a draft is visible only to its author until published. Both are rewritten from the code: positions and business units, and a Save that is live at once. Three administrator pages join the Setup manual under the setup_ prefix its book claims: going live, who can see and do what, and installing and upgrading apps. English and zh in each item. Claude-Session: https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS Co-authored-by: Claude <noreply@anthropic.com>
… show Each Setup menu path a page names is resolved against the Setup app's navigation labels in English and in Chinese, and the two languages must name the same entries in the same order. The going-live page's actions, the Pending list and the Role field are read from the object label bundles. Links between pages must name a registered page. Claude-Session: https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS Co-authored-by: Claude <noreply@anthropic.com>
…ion is confirmed The three new Setup pages carry no zh yet, and the two overviews keep the zh text they had, marked as pending. The pins read the English bundle alone until then. Adds the changeset. Claude-Session: https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check6 anchor(s) derived from 2 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 0 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 07b7d9c55d96e1b3ee33d9f6f263b3c607799938 && git checkout 07b7d9c55d96e1b3ee33d9f6f263b3c607799938
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9aabb7e082f00fb8a6cf30d26dc68ded96863dad 4e3cd7b5f337436ed6e59a76d85432123a4fbee4 && git checkout -B drift-repro 9aabb7e082f00fb8a6cf30d26dc68ded96863dad && git merge --no-ff 4e3cd7b5f337436ed6e59a76d85432123a4fbee4
node scripts/docs-audit/affected-docs.mjs --json 9aabb7e082f00fb8a6cf30d26dc68ded96863dad |
The maintainer confirmed the English. Each page now carries translations.zh, translated from that English with the product's own zh labels as glossary, and the claim tests pin both languages again. Claude-Session: https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS Co-authored-by: Claude <noreply@anthropic.com>
Requested by Elon · project thread
Fixes #39733
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
setup-overview.doc.ts): the roles and role-hierarchy wording is gone, from the page and from the file's doc comment. It now states positions (flat, hand out permission sets) and the business-unit tree, and links the three new pages.studio-overview.doc.ts): the "a draft is visible only to you until you publish" section is replaced. A Save is live at once; a Save that removes or retypes a published field asks first; a Save over an item somebody else published since asks to reload or overwrite; only the AI assistant's drafts wait, on the package Overview's Pending tab; Revert to last publish discards unpublished changes and takes back no publish.SetupAppPluginand claimed bySETUP_MANUAL_BOOKthrough thesetup_prefix (audiencesetup.access, no book change):setup_go_live,setup_access,setup_install_upgrade. Each opens with an Editions note where open edition, ObjectOS Cloud and enterprise differ.translations.zh, translated from the English the maintainer confirmed (tapped 「确认,开始翻译」, 2026-12-04T23:20Z); bothmanual-claims-docs.test.tsfiles pin the menu paths and action labels in both languages.Authoring, per the maintainer's ruling on the card:
The English was written by the dev agent this card was dispatched to, at the tier the ruling names for English. The zh was translated from the confirmed English by a sub-agent at the tier the ruling names for translation, given the product's own zh labels as the glossary.
Tests
On head
1237cce3, under the verify lock:pnpm --filter @objectstack/setup --filter @objectstack/studio test: setup 7 passed, studio 4 passed.pnpm --filter @objectstack/setup --filter @objectstack/studio typecheck: both Done.New pins in the two
manual-claims-docs.test.tsfiles, each a top-leveldescribe:Checked that the path pin can fail: with one menu label changed on disk the test went red (
Setup has no entry labelled ..., 1 failed, 8 passed, on the earlier two-language form of the pin), then the file was restored from the commit.Acceptance notes
ui/) and about the security, sharing and approvals plugins are read off code these two packages do not depend on. Pinning them from here needs a declared cross-package test radius (scripts/cross-package-test-inputs.mjs,turbo.json), which is outside this card's file surface. Each doc's header names the files its statements were read from.Verification
Read first, by risk:
packages/apps/setup/src/setup-install-upgrade.doc.ts: the Editions note and "There is no going back to an earlier version".packages/apps/setup/src/setup-access.doc.ts: "Three separate questions".packages/apps/studio/src/studio-overview.doc.ts: "A Save is live for everyone at once".Two-minute check:
pnpm --filter @objectstack/setup exec vitest run src/manual-claims-docs.test.tsprints 7 passed.https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS
Generated by Claude Code