Skip to content

feat(console): the Studio landing is ordered by what the author came to do - #34747

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-eqwj27
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-eqwj27

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34715

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

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:Studio 首页改成按「要做什么」排:已安装的应用在最前,每张卡有「定制」按钮、不再显示「只读」和包 ID,没改动时写「还没有改动」;接着是「自己的应用」和「新建自己的应用」;最后是「不属于某个应用」:「岗位与权限」(原「环境目录」)和「未归属的流程 N」(为 0 时不显示)。说明缩成一句。托管环境里的系统包(sys. 开头)不再出现在「已安装的应用」里。
  • 为什么改:最常做的事(改已安装的应用)原来排在最下面还标着「只读」;「可写基座」「.custom 定制包」「组织流程」「环境目录」是架构叫法。
  • 风险与回滚:只改首页的顺序、文案和一个按钮,不改路由、权限、存储;新增 14 个界面文案键(en/zh)。回滚即还原本 PR。
  • 先看:ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx(未归属流程计数与 0 时隐藏那段 effect、已安装卡片);ui/packages/i18n/src/namespaces/studio/zh.ts(新文案)。
  • 两分钟验证:中文界面打开 /_console/studio,应看到第一块「已安装的应用」,卡片上有「定制」按钮,页面正文里没有「.custom」「基座」「只读」。
  • 需要你做的:无,席位落地。

What changes

The Studio landing (BuilderLanding.tsx) is ordered by what the author came to do, and its copy says what they can do instead of naming the package mechanism.

  • A system package is not an installed app (card comment 6943119575). A kernel package the server lists flat with a system / cloud scope stays in the package list tagged kernel (parsePackages); the landing drops it by that tag, the same predicate feat(studio): Open app returns from the workbench to the running app; the switcher hides kernel packages #34677's offeredPackages applies to the switcher (Studio:工作台顶栏加「打开应用」回到运行态;包名下拉里不该出现系统包 #34593). A manifest-scoped kernel package was already left out of the list.
  • Installed apps lead the page, also when there are recent visits ("Recently viewed" now follows the author's own apps, among the other entries). One hint line under the heading: the app is upgraded by its vendor, the author's changes are kept separately. Each card carries a Customize button that opens the app in Studio exactly as clicking the card does (/studio/<id>/data). The Read-only badge is gone; the package id is no longer on the card's face (it is the card's title). Zero changes read "No changes yet" instead of "0 customized, 0 switched off". The marketplace link sits beside the heading.
  • Your own apps follow, with the create card renamed New app of your own (was "New package (writable base)") and a one-line description; the old empty state "No writable packages yet" is replaced by that card.
  • Outside any app comes last: Positions and permissions (was "Environment catalog"; still opens /studio/~all/metadata, ADR-0146 D1, name and description only) and Flows in no app N (was "Organization flows"). The count comes from loadPackageLessSurfaces(client, 'flow', locale), the same read the /studio/~org/automations scope uses; the card is hidden when the count is 0, and shows without a number if the read fails.
  • The lead is one sentence.
  • 14 new keys in the studio namespace (en + zh, ui/packages/i18n/src/namespaces/studio/); no edit to the eager locales/en.ts, no second loader. Superseded keys stay in the catalogue (listed in the changeset); engine.studio.org.name and engine.studio.pkg.new are still read by PackageSwitcher.
  • Checklist item studio-authoring.org-scope-flows (revision 4) now opens the org scope directly when no package-less flow exists, since the landing draws no entry then. A CLI integration test's comment names the new heading key.

No route, permission or storage change.

Tests

New and updated tests (11 landing files, 63 tests pass)
  • New BuilderLanding.taskOrder-34715.test.tsx (7): two flat sys.* rows parsed by the real parsePackages (control: both tagged kernel) draw no card, no Customize and no name (fails with the filter removed); heading order; Customize opens /studio/app.objectstack.hotcrm/data; no id on the card face, id in title, lines 6 customized, 1 switched off / No changes yet; Positions and permissions → /studio/~all/metadata; en body has no .custom / read-only / writable base; zh body has none of .custom / 基座 / 只读 and shows 未归属的流程2.
  • BuilderLanding.orgScope-11553: count 2 + navigation, hidden at 0, no number when the read fails.
  • BuilderLanding.recentPackages-11863: new case, with a recent visit the h2 order is Installed apps, Your own apps, Recently viewed, Outside any app.
  • customizationCounts-28566, customizeCopy-29489, environmentOverlayCopy-12171, accessibleNames-12510, newPackageDeepLink-26614, setupExit-12513: pins moved to the new copy and test ids; each file doubles the package-less flow read so no request leaves it.

Acceptance notes

Premise lines of #34715 measured on origin/main f6f5b50 before this PR: the lead (engine.studio.landing.description, zh :3005), 「我的软件包(可写)」/「还没有可写软件包」/「新建软件包(可写基座)」, the org-scope card (BuilderLanding.tsx:438) and env-catalog card (:457) under 「不属于软件包」, and the installed section last (:485) with the read-only badge (:518) and the id on the card face (:515) all hold as written. check-prior-rulings --card 34715: thread none; ADR-0146 D1 (positions and permissions stay in Studio) is honoured by renaming only.

Live readings (real showcase backend objectstack dev --fresh, console from this branch's source, zh-CN and en). Scripts, readings and screenshots: /mnt/project-files/objectstack-seat3/34715-live/ (project share).

  1. zh-CN body has no 「.custom」「基座」「只读」; first block 已安装的应用; the card shows 定制 and 还没有改动, no id. With a recent visit the h2 order is 已安装的应用 / 自己的应用 / 最近访问 / 不属于某个应用 (en: Installed apps / Your own apps / Recently viewed / Outside any app).
  2. No package-less flow: no 未归属的流程 card. After two package-less flows were written through PUT /api/v1/meta/flow/<name> (200): 未归属的流程 2 / Flows in no app 2, clicking opens /studio/~org/automations.
  3. Hosted-environment system packages: the real GET /api/v1/packages answer with two flat rows appended (sys.package-state scope system, sys.env-artifact-cache scope cloud): installed cards ["com.example.showcase"], no sys.* card, no system package name in the body, en and zh. Before-leg with the filter removed, same stand-in: the two sys.* cards draw.
  4. Customize → /studio/com.example.showcase/data; 岗位与权限 / Positions and permissions → /studio/~all/metadata. At 375 px the page has no horizontal scroll and Customize is 48×44 px.

Scope note: the card's step 1 names a "customizations in this environment" block between installed apps and the rest; that is #34714, which builds on this PR.

Verification

Gates (on d247d94; the delta to 19bfd59 re-ran landing tests, app-shell type-check, ESLint, test-source-alias, changeset-fixed, overlap-check, all exit 0)
  • pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/BuilderLanding: 11 files, 63 tests pass on 19bfd59.
  • studio-design directory: 334/335 files pass in the full run; DataPillar.validationVerdictHold-27644 (e) timed out at 15 s under shared-box load and passes alone (9/9); the file is untouched here.
  • metadata-admin 4 files 156 pass; @object-ui/i18n 102 files, 1894 pass, 13 skipped.
  • pnpm --filter @object-ui/app-shell run type-check and i18n type-check: exit 0. ESLint on changed files: exit 0.
  • Derived gates (dispatch-gates --commands, 70): all exit 0. Three were first red for environment reasons and re-run green: check-plugin-teardown-shape --self-test (shallow clone, 48 cases pass after fetch), vitest run scripts/ in ui (SIGKILL under memory; 171 files / 5077 tests pass at --maxWorkers=2), check:dual-build-cjs-loads (needed spec+lint+rest+cli dist; 124 entries load after a serial build). check:test-source-alias red on two edited tests, fixed by a module-top import '@objectstack/lint'.
  • Console build exit 0; pnpm check:eager-closure exit 0. i18n-locale-en: 60.2 KB of the 60.5 KB ceiling (0.4 KB headroom; this PR does not touch locales/en.ts). Aggregate 1892.9 KB / 2431.6 KB.
  • pnpm check:changeset-fixed exit 0; check:new-line-citations: 0 new citations; platform-checklist and type-check-debt OK.
  • scripts/pm/overlap-check.mjs --branch=HEAD: VERDICT clean (feat(studio): Open app returns from the workbench to the running app; the switcher hides kernel packages #34677 shares the studio en/zh files and merges cleanly).

Deviations: the branch is this thread's pinned branch claude/project-thread-eqwj27, not claude/issue-34715-*. The author's own (writable) cards keep their id and Writable badge; the card's hide-the-id item names installed cards only.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; ESLint passes on every changed file.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Installed apps lead with a Customize button and no package id on the card
face; the author's own apps and the create card follow; positions and
permissions, and flows in no app (drawn only when there is at least one,
with the count) come last. New studio-namespace keys in en and zh; the
landing names no package mechanism.

Claude-Session: https://claude.ai/code/session_01WGufzivEnnozveqZfr4fDx
Co-authored-by: Claude <noreply@anthropic.com>
…t visits (#34715)

The card's acceptance reads the first block as the installed apps; Recently
viewed now follows the author's own apps, among the other entries.

Claude-Session: https://claude.ai/code/session_01WGufzivEnnozveqZfr4fDx
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 Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

Nothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs.

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 f02f4f63707bd05ae2186ca63babd54bfe37abcc → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: REWORK
Head-sha: d247d94

L1 read of #34747 for #34715 (2026-11-17T09:35Z). Merge-base 77b42a1, 5 commits, no merges, 15 files, +584/−198. Not governed (check-governed-merges: no governed paths, 782 lines). It merges cleanly with current origin/main f6f5b50.

What holds:

  • Shape. Fixes #34715. Every changed file sits inside claim 6943017877's surface:
    • BuilderLanding.tsx and its BuilderLanding.* tests;
    • the studio namespace en/zh;
    • the checklist step;
    • the one CLI doc comment;
    • .changeset/.
  • Declaration lines. Clause-②: yes (widening) covers 14 new studio-namespace keys only, so it is L1 at TIER_DEFAULT with no L2. Metadata-protocol: none is right.
  • Changeset. It names @object-ui/i18n. That is right: @object-ui/app-shell is private: true, so it needs no entry.
  • Budget. Eager locales/en.ts is untouched. The reading is reported: i18n-locale-en 60.2 / 60.5 KB.
  • The card's items 2–7 are met in code and in the live readings (34715-live/readings.txt):
    • the order, and the one-line lead and hint;
    • Customize opening /studio/<id>/data;
    • no Read-only badge and no id on installed cards;
    • "No changes yet";
    • Positions and permissions still opening /studio/~all/metadata (ADR-0146 D1, rename only);
    • Flows in no app hidden at 0 and showing 2 after two package-less flows were written;
    • no 「.custom」「基座」「只读」 in the zh body;
    • a 44 px target at 375 px.
  • The riskiest hunk is sound. The loadPackageLessSurfaces effect is cancel-safe. It reads once per visit, uses the same read as the ~org scope, and a failed read draws the entry with no number, so the scope stays reachable.
  • The checklist revision is consistent with the hidden-at-0 entry.

Must-fix

M1. The card's added acceptance line is not addressed. Comment 6943119575 on #34715 (08:42Z, after the claim) adds one line to this card: system packages leave "Installed apps", by the same rule as #34593's switcher. The new acceptance line is: "on a hosted environment, no sys.-prefixed package in Installed apps". Neither the PR body nor the os-dev report mentions it, and the code does not do it:

  • readonly = cards.filter((p) => !p.writable) in BuilderLanding.tsx:151 keeps every non-writable row.
  • parsePackages (packages-io.ts:104–118) skips only the manifest-scoped kernel rows. It KEEPS the flat-scope: system|cloud rows (e.g. sys.env-artifact-cache), tagging them kernel: true. So those still draw as installed apps, now with a Customize button.

Two ways to close it:

(a) is one line plus a pin, and is what the card now asks.

Should-fix

S1. The claim's Scope line no longer matches the PR (seat). Claim 6943017877 says "Recently viewed keeps leading when there are recent packages (objectui#11863)". d247d94 moves it after "Your own apps" so installed apps lead, and the PR body and the report state this as a deviation. It is a reasonable reading of acceptance 1. The claim should say the same, so a claim amendment from the seat would help.

Notes

…dio landing (#34715)

A kernel package served flat with a system or cloud scope stays in the
package list, tagged kernel; the landing now drops it by that tag.

Claude-Session: https://claude.ai/code/session_01WGufzivEnnozveqZfr4fDx
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT
Head-sha: 19bfd59

Delta L1 read of #34747 for #34715 (2026-11-17T09:47Z). REWORK 6944257074 was at d247d94. This head is one commit on top of it, 19bfd59: no merge, 3 files, +31/−1, and all three files are inside claim 6943017877. It still merges cleanly with current origin/main f02f4f6.

M1 (system packages under Installed apps) is answered.

  • Code. BuilderLanding.tsx now drops kernel-tagged rows before the fold: foldCustomizationPairs(pkgs.filter((p) => !p.kernel)). That is the same tag parsePackages sets on flat scope: system|cloud rows, and the same predicate as feat(studio): Open app returns from the workbench to the running app; the switcher hides kernel packages #34677's offeredPackages. Manifest-scoped kernel rows were already skipped by the parser.
  • Pin. BuilderLanding.taskOrder-34715 case 7 feeds two flat sys.* rows through the real parsePackages. Its control asserts that both come out tagged. It then asserts one installed card, one Customize, no data-package-id^="sys." and no sys name in the body. The card thread reports it red with the filter removed.
  • Live. 34715-live/readings.txt uses a response stand-in: the real GET /api/v1/packages answer plus two flat sys.* rows. In en and zh the after leg shows installed cards ["com.example.showcase"] and 0 sys.* cards. The before leg, with the filter removed, draws both sys.* cards. Screenshots are f-landing-{en,zh}-flat-sys-rows.png. This covers the card's added acceptance line (comment 6943119575).
  • Changeset. It gains one bullet saying the same thing.

Everything listed under "What holds" in 6944257074 stands.

Must-fix

None.

Should-fix

S1 from 6944257074 stays with the seat: the claim's Scope line still says Recently viewed keeps leading. It does not block landing.

Notes

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Flake judgement · 2026-11-17T10:16Z

CI run 44058609411 (ci.yml) on head 19bfd599ab failed two Test UI shards. Area o3-D judges both bystander flakes and re-runs the failed jobs once:

Shard Failing test Why it is not this PR
16/16 @object-ui/console src/components/FormPage.sharedWidgets-10179.test.tsx › submits a date string, a number, a multiselect array and a lookup id: Found a label with the text of: Due, however no form control was found The PR touches only BuilderLanding.tsx, its harnesses, the studio namespace and one CLI integration test; nothing on the form page or the shared widgets path
11/16 packages/components/src/renderers/form/__tests__/form-field-tabs.test.tsx › fieldTabs strip at phone width (#34615): expected [] to deeply equal [ 261 ] (scroll-into-view timing) Form renderer tab strip; not imported by BuilderLanding; same tests passed on PR #34723's head (860300c) over the same main tests (#34695 landed before both bases)

Both are timing-shaped assertions in surfaces the diff does not reach. One re-run of the failed jobs; a second failure is treated as real and goes back to the card thread.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-17T10:34Z

Probe Reading
check-governed-merges.mjs --pr 34747 NOT governed · 814 changed lines (+615 / -199) ≤ 3000
Head / L1 19bfd599ab · L1 REWORK 6944257074 → delta ACCEPT 6944512508 on this head; claim amendment 6944544251 · CI green after one flake re-run (judgement 6945157527, attempt 2 of run 44058609411) · mergeable_state: clean
Shared budget merge base 77b42a1, K = 14; the PR's new keys live in the lazy namespaces/studio pack, untouched on main since the base; main's locales/en.ts change (#34723) is outside this diff, so the eager en budget is not an input here

State: ready + auto-merge armed by area o3-D (lease o3-D); Fixes #34715 closes the card on merge. #34714 builds on this branch and opens its PR after this merges.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 10:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44066247100 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (3/10) — 失败步骤: Run this shard's tests

    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'alpha registered firs
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"alpha doc","content":"# alpha","_packageId":"com.qa.alpha","_packageVersion":"1.0.0","
    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'beta registered first
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"beta doc","content":"# beta","_packageId":"com.qa.beta","_packageVersion":"1.0.0","_pr
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 19 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Re-queue · 2026-11-17T10:59Z

Probe Reading
Queue triage 6946102224 (build 44066247100) Test Core (3/10) · packages/runtime src/domains/meta-disabled-holder-artifact-door.test.ts [#34040 item 4] bare doc doors beside two enabled holders: AssertionError on the served shared_doc entry
Anchor #34772 one speculative stack S1: root #34347 (fix(metadata-protocol)!: a bare doc read beside two holders serves the environment's own entry — the very behaviour the failing test pins), this PR inherited

Judgement: inherited bystander. This PR touches only BuilderLanding.tsx, its harnesses, the lazy studio i18n namespace, one CLI integration test and a checklist JSON; nothing in packages/runtime or on the doc-door path. The root left the queue at 2026-11-17T10:37Z and is not re-armed, so a fresh build no longer stacks on it. Head unchanged 19bfd599ab8d0503a65fe0921486aacc323ae5cc (L1 delta ACCEPT 6944512508). Re-armed once by area o3-D; a second ejection on the same signature stops here and goes to the lane that owns #34772.

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.

Studio 着陆页:按「要做什么」重排,说明缩成一句,「只读」换成「定制」,两张无包卡片换说法

2 participants