Repository navigation
feat(console): org basics in one form, optional rows, 「Get started」 sidebar pill - #36791
Conversation
…t-started pill Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
…idebar pill (#36739) The first-run checklist folds the organization's name, language and country, timezone and currency into one required form that saves once; mail, invitations and both AI rows become optional. An admin-only 「Get started n/m」 pill opens the list from every app's sidebar (after the app menu on a phone's app home); Setup's first page keeps the full list. Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
…t export (#36739) Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
…app home (#36739) Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
…-3ypdpe # Conflicts: # ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: Everything below comes from reading the diff and the tree at the head. Nothing was run. The PR body, card #36739 and the maintainer's 15:21Z ruling it quotes were read for context. The head matches the PR's ① Derived judgmentsThe widening declaration is right, and complete once the removed keys are counted in.
The slot API works for consumers.
② Semver level
③ Boundary flags
④ Design judgmentThis PR's surfaces are the Findings:
Implemented-by: VERDICT: PASS |
…ery unset setting (#36739) L1 review on #36791: - In the pill's popover the X closes it; 「Hide on this device」 is its own labelled action under the list (new `hideHere` key in all packs). - Save in the basics form requires a setting the server holds no value for and the browser offered none for, like the name, so it never reports 「saved」 while the row stays undone. - UnifiedSidebar's two slot lines are pinned by a test each. - The popover closes on navigation without an effect; the changeset names the removed pack keys and the icon-rail behaviour as it is. Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: Everything below comes from reading the delta and the tree at the head. Nothing was run. The head matches the PR's ① Derived judgmentsThe one new published key is well formed.
The changeset now lists the pack movement exactly. Added under ② Semver level
③ Boundary flags
④ Design judgmentNot required: the delta adds one pack key and doc text, and includes no published schema, governed rule text or narrowing. Previous findings
Findings:
Implemented-by: VERDICT: PASS |
L2 delta read on #36791: R2, the pill kept the page it was opened on, so Back to that page reopened the popover with no press. The record is now cleared while rendering any other page; a test follows a row's link and goes Back. R3: `hideHere` takes each pack's quote style. Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: Everything below comes from reading the delta and the tree at the head. Nothing was run. The head matches the PR's ① Derived judgmentsThe contract face is unchanged apart from quote style.
② Semver level
③ Boundary flags
④ Design judgmentNot required. The delta adds no published schema, governed rule text or narrowing. Previous findings
Findings:
Implemented-by: VERDICT: PASS |
…-3ypdpe # Conflicts: # ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
Claude-Session: https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读管理员的初始设置清单只剩一项必填:「组织基本信息」,一张表单一次保存。其余几项改为可选。每个应用的侧栏底部有「开始使用」小胶囊,只有管理员看得到;手机上它放在应用首页菜单的最后。你 19:39Z 同意的三条方案都按原样保留。 席位核对 — ACCEPT (L1, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: The head matches the PR's ① Net diff unchanged in substance
② The merge resolution
③ Interaction with main
④ Declarations
⑤ CI and landing
Previous findings
Findings:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读管理员的初始设置清单只剩一项必填:「组织基本信息」,一张表单一次保存。其余几项改为可选。每个应用的侧栏底部有「开始使用」小胶囊,只有管理员看得到;手机上它放在应用首页菜单的最后。你 19:39Z 同意的三条方案都按原样保留。 Hand-off: same-head L2 PASS (this thread's latest Contract review) · ACCEPT 7143364122 · head |
…h design mode (objectstack-ai#36848) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_ Fixes objectstack-ai#36692 Clause-②: no Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU ## 维护者速读 - 管理员在应用里点「设计布局」时,添加菜单项的「报表」一栏只列已有报表,不再有「新建报表…」;新建报表改在报表列表页右上角的「新建报表」按钮;仪表盘或报表正在编辑时点「设计布局」会提示先保存或取消,设计布局开着时仪表盘和报表的「编辑」按钮不出现。 - 落实维护者「照 Twenty 分开」的裁决:报表和仪表盘的编辑与设计布局是两个入口,屏幕上任何时候只有一套保存/取消。 - 出错时管理员会看到两套保存按钮或点不出新建报表;本改动不碰任何已保存的数据,合并后可直接撤回。 - 无 ## What changes The maintainer's ruling on the decision card (2026-11-23 11:55Z): 「照 Twenty 分开」. Report and dashboard editing are their own entries, mutually exclusive with design mode, so the screen shows one Save/Cancel set at a time. 1. **Design mode stops hosting the report builder.** The `Reports` list in 「Add menu item」 only links reports that exist. Removed: its 「New report…」 row, the cross-mode hand-off module `designModeReportSlot.ts` (deleted, not left unused), the slot block in `DesignModeMenu`, the slot branch in `ReportNewPage`, and the `report` kind of `designModeMenuCreate.ts` (a dashboard is again the one kind made from a name). 「New dashboard…」 is unchanged (change item 4). 2. **A report is created from its own entry.** The reports index (`AppReportIndexView`) header offers 「New report」, linking to the app's `reports/new`. It is gated as the builder is (`useWorkspaceAdminStatus`: workspace admin, resolved) and shown on an empty index too. The builder's Save and Close in its own header are the only Save/Cancel set; Close goes back to the index. 3. **Two-way exclusion, through one hold on the shell's design-mode store** (`designMode.tsx`): - `useHoldDesignModeOut(open)`: a dashboard's or report's own editor holds the mode out while it is open (or opening). Wired into `useDashboardInPageEdit`, `ReportView` (builder and inspector panel) and `ReportNewPage`. - The mode's `enter` now answers `boolean`: while anything holds the mode out, it refuses with a toast, "Save or cancel your dashboard or report changes before designing the layout." (zh-Hans 「请先保存或取消仪表盘、报表的修改,再设计布局。」). 「Design layout」 in the app menu stays drawn and refuses through it. - While the mode is on, `useDesignModeActive()` hides the dashboard's Edit (`useDashboardEditOffered`), the report page's Edit, and the index's 「New report」. - `ReportNewPage` reached while the mode is on (an in-app navigation keeps the mode) draws no builder: an Empty says "Finish designing the layout first" / "A report is built outside the design mode. Save or cancel the layout, and the builder opens here." It holds the mode out only while it draws the builder, so the bar's Save or Cancel opens the builder in place (L1-a S1, 7122753474). - This also closes the path the card measured: the bar's Cancel ending design mode while a dashboard stays in edit. The bar can no longer appear while an editor is open. 4. **Strings:** `designMode.editorOpen`, `console.reportIndex.newReport`, `report.builder.designModeOnTitle` and `report.builder.designModeOn` were added to all 11 packs (zh-Hant regenerated with `gen:zh-hant`). `designMode.menu.newReport`, `designMode.menu.newReportLeft` and `report.builder.addsToMenu` were removed from all 11 packs. The de quote-pair ledger drops 134 to 133 because `newReportLeft` is gone. Untouched rulings: objectstack-ai#36363 ruling (4) (menu labels) and `designModeMenuCreate.ts` ruling C / ADR-0146 D2 「定制都进 .custom」. Docs and skills: neither `content/docs` nor `skills/` teaches "New report… from design mode". The one `New report` hit, `content/docs/data-modeling/analytics.mdx`, is about Studio's dataset picker, so nothing is owed. **Read first (by risk):** 1. `ui/packages/app-shell/src/layout/designMode.tsx`: the `heldOut` counter, `enter`'s refusal and `useHoldDesignModeOut`. 2. `ui/packages/app-shell/src/views/DashboardInPageEditor.tsx`: `useDashboardEditOffered` now also reads the mode. The design mode's 「New dashboard…」 landing (`dashboardEditArrival`) still opens the edit state, because `saveWith` leaves the mode before it navigates and the arrival effect waits on `editOffered`. 3. `ui/packages/app-shell/src/layout/DesignModeMenu.tsx`: the removed report block and picker row. **Two-minute check:** as admin in the showcase app, open Reports. 「New report」 is at the top right. Open a dashboard, press Edit, then choose app menu, then 「Design layout」: a red toast says to save or cancel first, and no purple bar appears. ## Tests New pins go into each component's existing harness as a top-level `describe` where there is one (`designMode-36362`, `SidebarAppMenu-36112`, `DesignModeMenu-36363`, `designModeMenuCreate-36364`, `DashboardView.inPageEdit-36372`). New card-named files were added where the component has only per-card files: `ReportView.designModeExclusion-36692`, `ReportNewPage-36692` and `AppReportIndex.newReport-36692`. - Exclusion while an editor is open: `enter` refuses with the prompt and the mode stays off. This is pinned on the store, on the 「Design layout」 door, on the dashboard edit state (no bar, so no bar Cancel), on the report builder, on the report inspector panel, and on the new-report builder. Two editors hold the mode out until both close, and an editor unmounted while open lets go. - Exclusion while the mode is on: no dashboard Edit, no report Edit, no 「New report」 on the index; each comes back once the mode is left. - The picker: `Reports` lists existing reports not yet in the menu and has no 「New report…」 row. Picking a report stages it with the mode, writes nothing and navigates nowhere. - `ReportNewPage` under the mode (round 2, `ReportNewPage-36692`): mode on at the index, then `reports/new`: the mode stays on, no builder, no Save, the prompt shows; then the bar's Cancel: the mode is off, the builder is drawn, and a later `enter()` is refused; control: mode off, `reports/new` draws the builder with Save and no prompt. - `ReportNewPage` saves on its own (the deleted `ReportNewPage.menuSlot-36364` file's surviving case, ported), and Close goes back to the index. - Removed with the behaviour they pinned: the report-half cases in `DesignModeMenu-36363` and `designModeMenuCreate-36364`, and `ReportNewPage.menuSlot-36364.test.tsx`. <details><summary>Local runs</summary> - Pre-merge head `22dee19f5`: `@object-ui/app-shell` full suite: Test Files 2474 passed, 1 skipped (2475); Tests 23314 passed, 9 skipped. `@object-ui/i18n` suite: 107 files, 2006 passed. `type-check` for both packages exited 0. - After merging origin/main (head `7ea3843ec`, which carries objectstack-ai#36821): the app-shell closure was rebuilt and `type-check` for both packages exited 0. `@object-ui/i18n` suite: 108 files, 2011 passed. Scoped app-shell run (`src/layout/` plus the ReportView, ReportNewPage, DashboardView, AppReportIndex and reportBuilder files): 190 files, 1535 passed. This run was narrowed on purpose; CI's `Test UI` runs the full suite. - Ablation 1, committed fix, `scripts/ablation-replace.mjs`: in `enter`, `if (heldOut > 0) {` was changed to `if (heldOut < 0) {` (anchor 1 to 0, blob `473cab2c7389` to `7793aa4658ec`). Result: 7 failed (every refusal pin across five files). Restored blob equals HEAD and `git diff HEAD` is empty. - Ablation 2: in `useDashboardEditOffered`, `return gated && !designing;` was changed to `return gated;`. Result: 1 failed ("while the mode is on, Edit is not offered"). Restored, blob equals HEAD. - Round 2, head `cccd01739`: `ReportNewPage-36692` 6/6. Ablation 3, committed fix: `if (designing) {` changed to `if (false as boolean) {` (blob `f81d258a824f` to `fa265e66e744`): 1 failed, 5 passed, the mode-on pin red; restored blob equals HEAD. Scoped run (`packages/i18n/` plus app-shell `src/layout/`, ReportView, ReportNewPage, DashboardView, AppReportIndex, reportBuilder): 298 files, 3549 passed, 13 skipped. `type-check` for both packages exited 0. </details> ## Acceptance notes - Browser screenshots: showcase app as admin, console served by Vite from this branch's `ui/` against a `--seed-admin` backend on its own port. The files are in the project files under `issue-36692/`: - `1-reports-index-new-report.png`: the reports index with 「New report」. - `1b-builder-one-save-set.png`: the builder it opens, showing only its own Discard/Save. - `2a-design-mode-index-no-new-report.png`: design mode on, so no 「New report」. - `2b-design-mode-reports-picker.png`: the design-mode Reports picker without 「New report…」. The showcase's reports are all in its menu already, so the picker reads "Nothing to add here". - `3-refusal-prompt.png`: the dashboard in edit, and 「Design layout」 refused with the prompt. - `4-design-mode-dashboard-no-edit.png`: design mode on, so the dashboard has no Edit. - A typed `reports/new` URL reloads the page, so the mode is gone. An in-app navigation to `reports/new` keeps the mode, and there the page now draws the prompt instead of the builder (round 2). The index link is hidden while the mode is on. - Open PR objectstack-ai#36858 overlaps this branch textually in `DesignModeMenu.tsx` and `designModeMenuCreate.ts` (this PR removes the report half there). Whichever lands second resolves it. - `objectstack-ai#36791` will conflict with this branch on the de quote-pair ledger counts (`de-quote-pairing-3876.test.ts`). Whichever lands second re-counts. ## Verification Derived gate families (`dispatch-gates.mjs --commands` at `7ea3843ec`) were run locally; their results are in the report comment on the card. CI carries the full farm. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ress changes (objectstack-ai#36973) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9qsP28anD5tWRUHq8j1xSU)_ Fixes objectstack-ai#36895 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户无感:Studio 里所有链接、跳转、AI 给出的审阅链接,地址一个字节都没变。 - 属于「Studio 重构」专题:先把所有生成 Studio 地址的地方收到一个函数,之后每张设计器卡只改一处就能切到新地址,不会出现两条跳转规则互相跳的死循环。 - 出错的表现是某个 Studio 链接打开到错的页面或打不开;本改动只换写法不换地址,可以直接撤回。 - 无。 ## What changes One builder for every Studio address, and every producer the card lists now calls it. Every address is byte-for-byte what it was before. Nothing redirects and no route changes. - **Console builder (new file):** `ui/packages/app-shell/src/views/studio-design/studioAddress.ts`. It holds `studioPath`, the one path builder, and on top of it `studioLandingPath`, `studioPackagePath`, `studioPillarPath`, `studioHomePath`, `studioItemPath`, `studioPillarItemAddress`, `studioSurfaceQuery`, the "All metadata" builders, `studioChangesReviewPath` and `studioItemReviewPath`. - The vocabulary also lives here: root, home pillar, `~org`, `~all`, `metadata`, `interfaces`, and the `changes` and `review` params. The modules that exported these before re-export them under the same names. - `STUDIO_ITEM_PILLAR` is the per-type switch. `AREA_PILLAR_FOR_TYPE`, which the area's pillar redirect reads, is now this same object. When a designer card deletes a type's row, every `studioItemPath` caller and the area redirect move together, so the two cannot loop. - **Mapping table (new file):** `studioAddressTable.ts`. It has three tables: - `STUDIO_ADDRESS_FAMILIES`: 13 address shapes. - `STUDIO_ITEM_TYPES`: `object` (with its `view`, `action` and `nav` qualifiers), `flow`, `permission`, and `owd:overview`. Each row gives today's pillar and the metadata address the type moves to. - `STUDIO_QUERY_PARAMS`: `surface`, `view`, `action`, `nav`, `changes=review`, `review=1`, `package`, `scope=environment` and `new`. Each row says whether the param is carried verbatim, rides as a qualifier, or is replaced. - **Card item 3:** the retired `/interfaces` redirect (`retiredInterfacesTarget`, landed by objectstack-ai#36884) now reads which params it keeps from this table (`STUDIO_RETIRED_INTERFACES_KEPT_PARAMS`). Its output is unchanged. - **Three `?surface=` spellings, all kept.** Producers did not agree on how to write the value, and each spelling is kept as a named option (`StudioSurfaceSpelling`): - `'component'` (`surface=object%3Aaccount`) is used by most producers. - `'name'` (`surface=object:account`) is used by `appStudioObjectPath`. - `'form'` (`URLSearchParams`, `surface=object%3Aa&action=x`) is used by `switchedOffActionPath`. - StudioDesignSurface writes the scope segment unencoded, and that is kept too, as `segmentEncoding: 'verbatim'`. - **Server shared function, located in `@objectstack/types`:** `packages/types/src/studio-review-links.ts` exports `studioChangesReviewLink` and `studioItemReviewLink`. Both server producers already depend on `@objectstack/types`, and neither may depend on the Console. `packages/cli/src/commands/meta/register.ts` and `packages/runtime/src/domains/mcp-authoring.ts` (`reviewRoutes`) now call them. The review-link text served to the AI is unchanged (pinned below). - I did not choose `@objectstack/spec`: that would add a contract-package export, and spec holds no runtime logic. - The module is named `-links`, not `-routes`, because `check:route-envelope` reads any `*-routes.ts` as a REST module. - **Producers repointed (re-measured on 3f568c1 and later):** - Card items 1–9: `appRoute.ts` ×3, `metadataArea.ts`, `setupMetadataRedirect.ts` ×3, `CommandPalette.tsx`, `studioScope.ts`, `artifactStudioPath.ts`, `AiChatPage.tsx`, `AppNoAccessEmptyState.tsx`, `RecordTabsConfig.tsx`, `DashboardInPageEditor.tsx`, `BuilderLanding.tsx`, `studioChangesLink.ts` and `switchedOffActionTargets.ts`. - Card item 10, `StudioDesignSurface.tsx`: only its four hand-built call sites are swapped (pair-base redirect, Access pillar open, `requestSurface`, pillar nav links). The edit merges cleanly with objectstack-ai#36893's split branch (`git merge-tree`, exit 0). - Card item 11: `StudioRoute.tsx` and `AppContent.tsx`. Route patterns use `STUDIO_ROOT_PATH`, and the `:packageId` landing redirect uses `STUDIO_HOME_PILLAR`, the same relative `data`. - Card item 12: the two server producers. - Card item 13: `InterfacesNavRail.tsx` is gone, as stated. - A producer that landed on main meanwhile (objectstack-ai#36933) is repointed too: `PackagesPage.tsx`'s local `studioPackagePath` now returns `studioHomePath`. - Producers the card missed, now repointed: - `studioInterfacesRetired.ts` - `metadataArea.ts`: `studioMetadataAreaPath`, `studioMetadataItemPath`, `areaLocationRedirect` - `setupMetadataStudioPath` itself - `switchedOffActionTargets.ts`: the action item path and `switchedOffActionListPath` - `studioNewPackage.ts` (`STUDIO_NEW_PACKAGE_PATH`) and `PackageSwitcher.tsx` (`STUDIO_LANDING_PATH`) - `HomePage.tsx` and `useAddAppEntries.ts` (bare `/studio`) - Line numbers moved from the card's (AiChatPage and DashboardInPageEditor). Three of the card's sites already called a helper (CommandPalette's `~org` flow, BuilderLanding's `~org` card, and RecordTabsConfig, which now calls `studioItemPath`). - **New exports from `@object-ui/app-shell`:** `STUDIO_ROOT_PATH`, `STUDIO_HOME_PILLAR`, `studioLandingPath` and `studioPackagePath`. ## Why The Studio redesign moves objects, flows and permission sets from pillar addresses to metadata addresses (`/studio/PKG/metadata/TYPE/NAME`). The area already redirects a pillar type back to its pillar. Redirecting the pillar address first would loop, so every producer has to share one builder before any designer card flips its type. ## Tests - `studioAddress.test.ts` (new) pins each builder to literal addresses: every family, all three spellings, verbatim segments, search and hash, the area, the review links, and the repointed module builders. It also checks that the table agrees with the code (`AREA_PILLAR_FOR_TYPE` is `STUDIO_ITEM_PILLAR`, item rows, param keys, family builders, and the params kept on the `/interfaces` redirect). - `studioAddress.guard.test.ts` (new) is the guard. It parses every non-test source under `ui/packages/PKG/src` and `ui/apps/APP/src` and refuses two things: - a string or template literal starting with `/studio`; - a path composed onto `STUDIO_ROOT_PATH`. - Only `studioAddress.ts` (and the table's placeholder shapes) are allowed. - It has positive controls: the walk must reach StudioDesignSurface and the console's StudioRoute, and the matcher must fire on the builder file. - `packages/types/src/studio-review-links.test.ts` (new) pins the server's two links to literals. - `packages/types/src/studio-review-links.callers.test.ts` (new, `repo` project) has two parts: - It refuses a `/studio` literal in any `packages/**` `.ts` source outside the shared module, with controls: both server producers are walked, and the matcher fires twice on the allowed file. - It holds every review link quoted in `skills/objectstack-mcp-build/evals/draft-door-procedure.json` equal to `studioChangesReviewLink` / `studioItemReviewLink` for the package, type and name that link names. The file has 7 quoted links: 5 Changes links and 2 item reviews, 3 distinct values. The skill file is not edited. - Its radius is declared: `vitest.repo-tests.json`, `CROSS_PACKAGE_TEST_INPUTS`, and the `@objectstack/types#test:repo` turbo inputs. Ci.yml's `crosspkg:` filter already covers the skills root. - Existing pins of every repointed producer stay green unchanged. That is the byte-identity proof: none of their expected literals was touched. <details><summary>Local runs (head fa0deb8, after merging origin/main 4f9a3f8)</summary> - `pnpm --dir ui exec vitest run` on the 171 test files that name a repointed producer, the package list, or the builder: `Test Files 171 passed (171)`, `Tests 1777 passed (1777)`. The full app-shell + console suite (2736 files) is CI's Test UI; it was started locally and stopped, since at two workers it did not finish in an hour. - `@objectstack/types`: - `local`, studio-review-links.test.ts: 2 passed; - `repo`, studio-review-links.callers.test.ts: 3 passed. - `@objectstack/runtime` `src/domains/mcp-authoring.test.ts`: 50 passed. - `@objectstack/cli` `--project integration src/commands/meta/register-draft.test.ts`: 10 passed. Run locally because it is the one test that pins the CLI's printed review link. - `pnpm --filter @objectstack/types typecheck` and `pnpm --filter @object-ui/app-shell type-check`: exit 0 on fa0deb8. `@objectstack/runtime` and `@objectstack/cli` `typecheck`: exit 0 on 947b96e, the pre-merge head. `@object-ui/console` `type-check` was NOT MEASURED: it needs every ui plugin's dist built, so it is left to CI's Type Check UI. - `pnpm --dir ui exec vitest run scripts/`: 172 passed, 2 skipped. `pnpm --dir ui check:new-line-citations`: 0 new. </details> ## Acceptance notes - **Two type to pillar maps exist, not one.** StudioDesignSurface keeps its own `PILLAR_FOR_SURFACE_TYPE` (identical to `STUDIO_ITEM_PILLAR` today). The Automations and Access pillars call `studioPillarItemPath(..., 'automations' | 'access', ...)` explicitly. Neither is hand-built, so the guard passes. I left them alone to keep this diff to call-site swaps that merge cleanly with objectstack-ai#36893's move-only split. The flow and permission designer cards switch those call sites, or fold the map into `STUDIO_ITEM_PILLAR`, in the same PR that flips the type. - **Unencoded scope segment.** StudioDesignSurface writes its scope segment (the decoded route param) unencoded in three places, where every other producer encodes it. This is kept byte for byte. It is not reachable with today's package-id alphabet. - **One incidental difference, outside any real address:** `studioItemPillar` looks up the type map with `hasOwnProperty`. The old `AREA_PILLAR_FOR_TYPE[type]` lookup matched `Object.prototype` members, so `/studio/PKG/metadata/constructor/x` redirected to a garbage pillar URL. It now opens the generic item page. This is pinned in `studioAddress.test.ts`. No metadata type has such a name. - **Overlap:** `overlap-check` exits 1 on two PRs. - objectstack-ai#36956 (ux-E's move-only split of StudioDesignSurface, card objectstack-ai#36893): one conflict hunk, in the import block. That PR deletes the `draftVerdict` import lines directly above the `nav-selection` import, and this PR deletes that import (its last user was the `requestSurface` call site). The resolution is to keep both deletions. All four of this PR's call sites stay in StudioDesignSurface after the split, and none is in a moved region. - objectstack-ai#36784, a draft based on an older main, conflicts with `origin/main` itself at the same single hunk (the react-router import, a line this PR does not touch): conflict count 1 with this branch and 1 with main alone. - objectstack-ai#36888 and objectstack-ai#36791 merge cleanly. ## Verification - Read first, ranked by risk: 1. the `StudioDesignSurface.tsx` hunks (four call sites, verbatim segment); 2. `metadataArea.ts` (the area's redirect now reads `STUDIO_ITEM_PILLAR`); 3. `studioAddress.ts` `studioSurfaceQuery` (the three spellings). - Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioAddress.test.ts packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts`. Expect 2 files and all tests passing. Then add any literal beginning with `/studio` to a ui source and watch the guard name the file and line. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (spec untouched) - [x] 2. Every name I added uses the casing for its kind. - [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. - [x] 6. `packages/spec` touched: n/a. - [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. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…list reads on later opens (objectstack-ai#37184) <!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8JtfL3chjK7xVPpJ6UJRz9z)_ Fixes objectstack-ai#37182 Clause-②: no Metadata-protocol: none ## 维护者速读 - 做了什么:看不到「开始使用」清单的会话(普通成员;控制面上的普通组织所有者),第一次被服务端答成「不显示」后,本机记住这个答案(按组织、用户、权限集合,24 小时);之后打开控制台不再多发 `GET /api/settings`。 - 管理员不受影响:每次照旧读取并显示清单。权限变了、换人或换组织、过期、读取失败,都会重新读。 - 结果:cloud 控制面计费页的预热打开回到 25 次请求;下一轮 cloud 抄版本把预算从 26 改回 25。 - 要你做的:无。 ## What changes - `firstRunChecklistLogic.ts`: a device record of the server's "not shown" answer, `os:first-run-checklist-not-shown:<orgId>:<userId>`, holding the capability list it was read for and when (`notShownRecordKey`, `wasAnsweredNotShown`, `markAnsweredNotShown`, `NOT_SHOWN_RECORD_TTL_MS` = one day). It fails toward reading again: unreadable storage, a record that does not parse, a different capability set, an expired record, or one dated in the future all read. - `firstRunChecklistState.tsx`: the provider checks the record before scheduling its reads and asks nothing while it stands; when `readChecklistSettings` answers `null` (the server's answer that this session may not write `localization`), it writes the record. A read that throws writes nothing. An administrator's path is untouched. ## Why Since objectstack-ai#36791 the provider is mounted above every app route and, after the first paint, sends `GET /api/settings` for every session whose `systemPermissions` is non-empty. For a session never shown the checklist that request buys nothing, on every console open. The cloud pin round cloud#4982 (PR cloud#4983) measured it as the 26th call of the control plane's `page/pricing` warm open, budget 25. Why a remembered answer and not a capability check before the request: the session that red the budget, an ordinary organization owner on the control plane, holds `setup.write`; that plane re-registers `localization` with `writePermission: manage_platform_settings` (cloud `control-plane-settings.ts`). Which permission a deployment's manifest asks is known only once the list answers, and naming one in the console would be a second copy of the manifest's declaration that drifts on the next deployment that changes it. The first open on a device still pays the one read; every later open within the day does not. ## Verification - `pnpm exec vitest run apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx` (from `ui/`): 119 passed. - New provider pins (`a session answered "not shown" asks nothing again on this device`): a member reads once then never; an owner holding `setup.write` where `localization` asks `manage_platform_settings` reads once across three opens; an administrator reads and is shown it on every open; a member made administrator reads again at once; a failed list read records nothing; another user in the same browser reads for themself. New logic pins cover the key, capability-set match, the one-day bound, a future-dated record, unreadable storage and unparseable records. - Ablation: with `firstRunChecklistState.tsx` reverted to `main`, the member and control-plane-owner pins fail (2 failed, 88 passed in that file); the other four pass on both, as preservation pins. - `eslint` on the four touched files: 0 errors (2 pre-existing `react-refresh/only-export-components` warnings on `firstRunChecklistState.tsx`). - Not run locally: the cloud `console-boots` budget. The next cloud pin round reads it and moves `page/pricing` `maxCalls` back to 25, with the reading recorded on cloud#2914. ## 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. - [x] 3. No formatter ran; `pnpm lint` passes. - [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. - [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. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01JQwxbZaRxCTLgg8LsLBuFb --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Warren · project thread
Fixes #36739
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
Following the maintainer's ruling on #36739 (one form, other rows optional, sidebar pill, no wizard):
organization_basicsrow. Its form holds the organization's name and the fourlocalizationsettings; values the server does not hold are suggested from the browser; a setting with neither a value nor a suggestion is required like the name; nothing is written before Save. Save renames the organization only when the name changed (updateOrganization), then writes the changed settings in onesaveSettingsNamespace('localization', …)call. A refused rename or a refused/locked setting shows on its field, as before. The row is done when the organization has a real name (not the seededDefault Organization) and all four settings are set — read from the server, never from the click.mail,invite,ai_providerandconnect_assistantcarry an 「Optional」 badge and still tick themselves. On the hosted profilefirst_appstays required andfirst_recordstays optional.checklistCompletionnow counts every drawn row indone/total, butcompleteis judged on required rows only; rows are ordered required first.FirstRunChecklistProvider(firstRunChecklistState.tsx), mounted once in the console's permissions scope, so Home's card, the Setup first page and the pill read one answer. Answers are keyed by org, user and permissions.FirstRunChecklistPillrenders for the administrator only (the provider answersnullfor anyone else), in every app: from 768 px up in the sidebar footer above the account button (on the folded icon rail only the icon stays; the count is in its accessible name and tooltip); on a phone after the app's menu on the app home. A press opens the checklist in place in a popover; a row's link closes it as its page loads, and going Back to the page it was opened on does not reopen it. The popover's X only closes it; 「Hide on this device」 under the list is the separate action that hides the pill and Home's card. It disappears once the required rows are done, or when the administrator hides it on this device.@object-ui/app-shellexports a product-neutralSidebarFooterSlotProvider('sidebar' | 'phoneAppHome');UnifiedSidebardraws the host's element in those two places (2 lines). The shell names no checklist (ADR-0060). This is theClause-②: yes (widening).placement="setupPage") always shows the full list with done rows, has no dismiss, and folds to one line with 「Show list」 once complete.console.firstRunChecklist.organizationBasics.*,pill.*andshowList; zh-Hant regenerated from zh-Hans.Tests
firstRunChecklistLogic.test.ts:organizationBasics(fields included only when declared, offers only for unset keys, done = named + all set); completion — optional rows never hold the list open, progress counts all rows, exactly four rows are optional.firstRunChecklistProfile.test.ts: hosted profile withorganization_basics+first_apprequired.FirstRunChecklist.test.tsx(84 tests): admin-only reads; one required row on a fresh org (0 of 3 done); the basics form — prefill, one Save writes the name and the four keys, name required, a setting with no value and no browser suggestion required too (anes-419browser: no write, no 「saved」, the form stays open), only changed values sent, Cancel, refused settings write, refused rename, zh/en; Setup page full list; the pill — admin sees0/3and opens the popover, a member sees nothing, it disappears once basics are done, save from the popover, the popover's X only closes it (no hidden record), a row's link closes it and Back does not reopen it, 「Hide on this device」 hides it, zh label.UnifiedSidebar.footerSlot-36739.test.tsx: the slot draws in the sidebar footer at 1440 px ('sidebar') and after the app menu on the phone app home at 375 px ('phoneAppHome'); dropping either line inUnifiedSidebarfails its test; no provider draws nothing.de-quote-pairing-3876count 134 → 132 after the merge of main (the removedorganizationName.todoandtimezone.todolines are the only two de spans that go),untranslated-identity-4376allowspill.count({{done}}/{{total}}, a pure format string).Acceptance notes
PhoneAppHome), the page that lists what the sidebar lists. On the phone app home the page's own end padding does not scroll out from under the bottom bar (theh-fullroute slot is overflowed by the page), so the pill's phone slot keeps the bar's height free below itself. The same defect hides ~33 px of the last menu row on a long phone app home without the pill; that pre-existing layout issue is reported to the seat, not fixed here.localizationgoes on to read the namespaces, members and invitations. A session with no permissions spends nothing.overlap-check— merges cleanly withorigin/main. The branch has merged main twice;de-quote-pairing-3876now reads main's 134 minus this PR's two spans = 132.Verification
tsc --noEmitfor the console: clean.packages/i18n+ app-shellUnifiedSidebar*/ConsoleLayout*/console/__tests__+ consolepages,componentsandApp.*boot tests — about 6,600 tests, all green.dispatch-gates.mjs --commandsgates: all 41 named commands exit 0 (includingpnpm --dir ui exec vitest run scripts/; 16 of them are checker--self-tests, which judge the checker, not this diff).objectstack dev --seed-admin --fresh) + console dev server, zh-CN, frames attached in the project thread (/mnt/project-files/issue-36739/):🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbY2FR4RafB2fexxeuA