Skip to content

docs(setup,studio): correct the two overview pages and add three Setup manual pages - #39735

Merged
os-elon-musk merged 4 commits into
mainfrom
claude/issue-39733-wip
Dec 5, 2026
Merged

os-elon-musk merged 4 commits into
mainfrom
claude/issue-39733-wip

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #39733

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:管理员在系统设置的帮助里多了三页(上线清单、谁能看到什么、安装与升级应用),原有两页概览里的错误说法已改正;中英双语。
  • 为什么做:平台管理员帮助第一波,替新管理员解决“先配什么、为什么看不到记录、升级会不会丢定制”这三类问题。
  • 出错会怎样:帮助页写错只会误导读者,不改任何数据或权限;合并后可以直接撤回。
  • 要你做什么:英文稿已于 2026-12-04T23:20Z 确认,中文已按确认稿翻译;剩下审阅与合并。

What changes

  • Setup overview (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.
  • App Studio overview (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.
  • Three new Setup pages, registered by SetupAppPlugin and claimed by SETUP_MANUAL_BOOK through the setup_ prefix (audience setup.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.
  • Language state: English and Chinese. All five pages carry translations.zh, translated from the English the maintainer confirmed (tapped 「确认,开始翻译」, 2026-12-04T23:20Z); both manual-claims-docs.test.ts files pin the menu paths and action labels in both languages.

Authoring, per the maintainer's ruling on the card:

「用 fable 写英文版,然后用 opus 翻译成其他语言。」 then 「是不是翻译的话 sonnet也可以」

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.ts files, each a top-level describe:

  • every menu path a Setup page names (written app, group, entry) resolves to a group and an entry of the Setup app's navigation labels, and an entry this package's own contributions declare sits in the group the page names;
  • the going-live page names Create User, Ban User, Unban User, Invite User, Resend Invitation, Copy Invite Link, the Pending list and the Role field by the labels the object bundle carries;
  • a link from one page to another names a registered page; the Studio overview links to no page outside its package;
  • no Setup page teaches a role hierarchy.

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

  • What the pins cannot hold. Statements about the marketplace and Studio screens (under 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.
  • Dropped for want of a trace: how long an invitation stays valid; "holders added on Position Holders carry no business-unit anchor"; "teams receive sharing and never carry capability"; who downstream reads Company Information; whether an uninstall followed by a reinstall brings grants back. None is stated on any page.
  • Changed from the card's wording, to match code: the card says "deactivation"; the product's action is Ban User, offered to platform administrators only. The card says the off state reads "Marketplace is off"; the screen's title is App Marketplace is turned off, and with the marketplace off Setup has no Browse Marketplace entry at all. The earlier overview said visibility is "never silently narrowed"; that sentence is not carried over, since row-level policies narrow.
  • The English names the builder app App Studio, the label its screens carry.

Verification

Read first, by risk:

  1. packages/apps/setup/src/setup-install-upgrade.doc.ts: the Editions note and "There is no going back to an earlier version".
  2. packages/apps/setup/src/setup-access.doc.ts: "Three separate questions".
  3. 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.ts prints 7 passed.

https://claude.ai/code/session_016WV4cyCTeavBDbQmtMEQeS


Generated by Claude Code

…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>
@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 Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

6 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): node scripts/docs-audit/affected-docs.mjs --json 9aabb7e082f00fb8a6cf30d26dc68ded96863dad → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 07b7d9c55d96e1b3ee33d9f6f263b3c607799938 — the merge of head 4e3cd7b5f337436ed6e59a76d85432123a4fbee4 into base 9aabb7e082f00fb8a6cf30d26dc68ded96863dad, 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 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

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

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>
@os-elon-musk
os-elon-musk marked this pull request as ready for review December 4, 2026 23:43
@os-elon-musk
os-elon-musk added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 56bed06 Dec 5, 2026
62 checks passed
@os-elon-musk
os-elon-musk deleted the claude/issue-39733-wip branch December 5, 2026 00:11
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

Development

Successfully merging this pull request may close these issues.

Platform admin help, wave 1: fix the Setup/Studio overviews and add three in-product Setup pages (go-live, who sees what, install & upgrade)

2 participants