Skip to content

Commit a3c229e

Browse files
docs(adr): ADR-0084 records the ~org Changes + Publish home in the homes table (#37927)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoTeY72VoWMktEtuwWvY1yGw)_ Fixes #37685 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:没有。只是把已经上线的做法写进 Studio 的设计文档:组织级(不属于任何软件包)没有「概览」页,它的待发布变更和发布入口是左栏那一行「变更 N」。 - 为什么做:App Studio 改版专题的一处记账,避免以后有人照文档把这一行删掉。 - 出错会怎样:只改文档,不影响运行;不对可直接撤回。 - 要你做什么:审阅并合并这条设计文档修改(受管面,需你亲手合并)。 ## What changes One file, `docs/adr/0084-application-builder-information-architecture.md`, +3 lines, nothing removed: - One row in the homes table of `#amendment-2026-11-26-homes` ("Where the top bar's controls go"), directly under the pending-changes row: on the package-less `~org` scope, which draws no 概览 Overview, the pending-changes button and Publish live in a 变更 Changes row with its count in the left column (`StudioTopLeft.tsx#StudioScopePendingRow`), drawn only while that scope has something pending; it opens the existing changes sheet, which holds Publish. Its "By" column reads `not ruled`. - One dated mark under that table, in the ADR's own `*(Amended 2026-11-27, card #37685: …)*` form: why the row exists (the pick sends Changes + Publish to 概览, `~org` has none), that it was built first by the top-bar removal (#37456, PR #37579) and is recorded after the fact as that change's contract review asked (comment 7202356468, finding S3), and that no other row changes. Not in this PR: the seat's widening comment also asked to turn the type → group table's `datasource` row into a no-row entry. That half is withdrawn (claim comment 7217220011): `studioMenuPlacement.test.ts` ties each table row to the code's placement list, so the row moves with the code card that removes the menu row, as #37564 did. ## Why ADR-0084's 2026-11-26 amendment sends Changes + Publish to 概览's Pending tab. The package-less scope has no 概览, so the shipped code gave it a row of its own, and the ADR did not record that home. A later reader following the ADR could remove the row. ## Tests Read at `origin/main` `73d5e347`, the code the row is written from: - `ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx:84` `StudioScopePendingRow`: a button labelled `engine.studio.changes` (en "Changes", zh 变更) with a count pill; drawn under the package row (:169) and as an icon on the rail (:160). - `ui/packages/app-shell/src/views/studio-design/StudioSurfaceFrame.tsx:210-219`: passed only when `packageId === null && !allScope && shownPendingCount > 0`, so on `~org` alone and only while something is pending; it opens the changes sheet (`DraftChangesPanel`, :243-256) with Publish. Local gates on head `062fc62c`, exit codes captured before any pipe: <details><summary>ADR gates</summary> - `node scripts/check-adr-symbol-anchors.mjs` → 0 (4475 anchors across 164 records resolve; both new symbol anchors resolve as declarations) - `node scripts/check-adr-links.mjs` → 0 (1263 relative links resolve) - `node scripts/check-adr-anchors.mjs` → 0 - `node scripts/check-nul-bytes.mjs` → 0 - ADR index `--check` → 0 (drafter's run) - The pin test's row regex (`ADR_ROW` in `studioMenuPlacement.test.ts`) matches 33 lines before and after the edit, the same rows byte for byte; the new lines match 0 times. </details> NOT MEASURED locally: `studioMenuPlacement.test.ts` itself and the doc-authoring families (no `node_modules` in this container). CI runs them; the regex reading above is why the pin test is expected green. ## Acceptance notes - Noted, not filed (carrier: the code card that rewrites the `datasource` row of the same table): the dated notes under the type → group table still read "33 entries" and "AI 4", while the table now has 34 rows and AI 5; the `knowledge_source` row (added by #37676) cites item 6, which names only `ai_context`, and carries no dated mark. - Left for the seat: the Status line and the section's Refs line do not name #37685 (as with #37564 and #37360, recorded only in their in-place marks); the row's retirement (with Studio's `~org` entry) is not written, since no ruling says it. ## Verification Read first: the new row under the pending-changes row in `#amendment-2026-11-26-homes`, then the dated mark under the table. Two-minute check: `node scripts/check-adr-symbol-anchors.mjs` prints the green line; open Studio on `~org` with a pending flow draft and see the Changes row in the left column open the changes sheet with Publish. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (none added) - [x] 3. No formatter ran; `pnpm lint` passes. (CI) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (`docs/adr/**` does not publish: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. (the 速读 block is the maintainer's Chinese channel) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibzqYghcpTQ2yaJPJbE --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibzqYghcpTQ2yaJPJbE)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 544a946 commit a3c229e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎docs/adr/0084-application-builder-information-architecture.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,14 @@ The top bar is drawn by `ui/packages/app-shell/src/views/studio-design/StudioDes
407407
| The way back to the app, with the app's name | The first control of the package row; the name is shown by the switcher beside it | the pick |
408408
| The ⋯ package menu (`ui/packages/app-shell/src/views/studio-design/StudioPackageMenu.tsx#STUDIO_PACKAGE_MENU_ITEMS`) | The header of 概览 Overview, moved as it is | the pick |
409409
| The pending-changes button with its count, and Publish | The Pending tab of 概览 Overview. The count is a badge on the menu's 概览 row, and one click on it opens that tab | the pick |
410+
| The same button and Publish on the package-less scope (`~org`), which draws no 概览 | A 变更 Changes row with its count, in the left column under the package row (`ui/packages/app-shell/src/views/studio-design/StudioTopLeft.tsx#StudioScopePendingRow`), drawn only while that scope has something pending. It opens the changes sheet that exists, and Publish is in that sheet | not ruled — the note below |
410411
| Save and Cancel, drawn while a page has unsaved edits | The action slot of the item's header (`ui/packages/app-shell/src/views/studio-design/StudioItemHeader.tsx#StudioItemHeader`) | the pick |
411412
| The AI assistant button, and the toggle of the right-hand panel | The right end of each page's title row — a list's title row, an item's header — where an app's page carries its own (`ui/packages/app-shell/src/layout/ShellPageActions.tsx#ShellPageActions`) | the pick |
412413
| The control that shows and hides the menu | Studio's row | decision 3 |
413414
| For a package with no app: the "create app" button, or the label that says its app waits for a publish | None — [item 5](#amendment-2026-11-26-silent) | not ruled |
414415

416+
*(Amended 2026-11-27, card [#37685](https://github.com/objectstack-ai/objectstack/issues/37685): the table gains its fourth row — where Changes and Publish live on the package-less scope. The pick sends them to 概览, and `~org` draws no 概览 ([item 1](#amendment-2026-11-26-silent)), so card [#37456](https://github.com/objectstack-ai/objectstack/issues/37456), which removed the top bar, gave that scope a row of its own. The row is written from the code, read at `origin/main` `73d5e347`: it is drawn on `~org` alone, it counts the drafts of the organization's own flows, the rail keeps it as an icon, and the sheet it opens is `ui/packages/app-shell/src/preview/DraftChangesPanel.tsx#DraftChangesPanel`. No ruling gives this home: it was built first and is recorded after the fact, as that change's contract review asked ([comment 7202356468](https://github.com/objectstack-ai/objectstack/pull/37579#issuecomment-7202356468), finding S3). Merging this note accepts it. The top bar still held seven things: the row is a second home for the third, on a scope where its first is not drawn. No other row changes.)*
417+
415418
Decision 3 says the ⋯ menu "is removed". It is read with decision 9 and the pick: the menu leaves the top left, and its rows live on in 概览's header.
416419

417420
### 概览 Overview {#amendment-2026-11-26-overview}

0 commit comments

Comments
 (0)