Skip to content

feat(console): the Studio landing lists every change this environment made to its installed apps in one panel - #34825

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

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

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34714

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

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

维护者速读

  • 改了什么:Studio 首页在「已安装的应用」下面加了「本环境的定制」面板,把所有已安装应用上的改动列在一处:每行写条目名、类型、所属应用和改动方式(改了原有的 / 新增的 / 已停用),点一下打开这个条目;可按页签(全部 / 新增字段 / 表单与视图 / 流程 / 已停用)筛选、搜索、按应用分组,默认显示前 6 行。
  • 为什么改:原来想知道「这个环境改了哪些东西」,要一个应用一个应用点进去看。
  • 风险与回滚:只改首页,不改服务端接口和存储;卡片和面板共用每个应用的一次读取,面板总数天然等于卡片上「已定制 + 已停用」之和;其他包带来的内容不算定制、不进清单;某个应用读不到时写明「这个应用的定制读不到」,不当成 0。回滚即还原本 PR。
  • 先看:ui/packages/app-shell/src/views/studio-design/landingCustomizations-io.ts(每行怎么来、标签怎么读);LandingCustomizationsPanel.tsx;BuilderLanding.tsx 里改成读完整清单的那段 effect。
  • 两分钟验证:中文界面在 Studio 里给某个已安装应用的对象加一个字段并发布,回到 /_console/studio,「本环境的定制」里应出现一行「新增的 · 字段 · 应用名」,数字与该应用卡片上的「已定制」一致。
  • 需要你做的:无,席位落地。

What changes

The Studio landing gains a Customizations in this environment panel, under the installed apps (the place #34715 left for it).

  • One row per change this deployment made to an installed app, from each app's customization read (GET /api/v1/packages/:id/customizations, ADR-0146 D3): a served overrides entry reads Changed, an extensions member (field, validation rule, index) reads Added, a switchedOff entry reads Switched off. contributions (what other packages bring to the app) make no row. Nothing is folded or deduped (customizationRowsOf, landingCustomizations-io.ts).
  • One read per app serves the card and the panel. The landing now calls fetchPackageCustomizations and draws the card's numbers off the same answer through a new pure customizationCountsOf in packageCustomizations-io.ts (which fetchPackageCustomizationCounts now uses too). The served counts are each list's length (GetPackageCustomizationsResponseSchema.counts), so the panel's total equals the cards' "customized" + "switched off" by construction, with no second request.
  • Labels. The served answer carries names, not labels. loadCustomizationLabels reads the app's own published list once per type that has rows (client.list(type, { packageId })), and the app's objects for an added field's label; a failed list leaves the rows on their names. No row, no request.
  • Each row opens its item: /studio/<app>/metadata/<type>/<name>, which the area forwards to the item's pillar for a pillar type (a flow opens the Automations pillar on it); an added member opens its object.
  • Tabs All / New fields / Forms and views / Flows / Switched off (each with its count), a search over label, name, kind, app and mode, and Group by app. The first 6 rows show; the rest are behind "Show all N".
  • With no change anywhere the panel is one line. An app whose read fails (a 403 included) is named, ": this app's customizations could not be read.", and never counted as 0; its card shows the existing failed line.
  • 29 new keys under engine.studio.landing.envCustomizations.* in the studio namespace (en, zh). No eager locales/en.ts edit. No server change.

Scope notes (ADR-0146 D6, as the card says): no diff against the app, no "based on" version, no clone lineage, no per-organization split.

Tests

New and updated tests (12 landing files, 73 tests pass)
  • New BuilderLanding.envCustomizations-34714.test.tsx (10), real landing, real panel, real customization reader over a stubbed wire:
    • two apps with one change each and one switched-off flow ⇒ 3 rows with app and mode (Changed · View · HotCRM, Switched off · Flow · HotCRM, Added · Field · Service Desk); a served contribution makes no row; the label read's answer replaces the name;
    • each row's href (item on the app's area; an added field on its object), and a click lands on the item route;
    • the panel total equals the cards' sum, and exactly one customization request per app is sent;
    • empty state: one line, no total, no toolbar;
    • a 403 app: unreadable line naming it, the other app's row still listed, total 1, the card data-state="failed";
    • tabs, search, group by app; the first 6 rows and "Show all 9";
    • zh-CN: 本环境的定制, 改了原有的 / 新增的 / 已停用, 新增字段, 表单与视图;
    • customizationRowsOf excludes contributions; loadCustomizationLabels reads one list per type with rows (zh label resolved, a field's label from its object, a failed list keeps names, no row ⇒ no request).
  • taskOrder-34715, recentPackages-11863: the heading order now includes the panel. accessibleNames-12510, orgScope-11553, setupExit-12513: their pending customization double now stands in for fetchPackageCustomizations.

Acceptance notes

Premise measured on origin/main f6f5b50 before coding (claim 6944526029): fetchPackageCustomizations at packageCustomizations-io.ts:59, the counts reader at :86, the landing reading only counts (BuilderLanding.tsx:161); the served lists and counts.* = each list's length; the answer carries no label. StudioRailCustomizations holds the rail's marks and filter, not a cross-app list, so the panel reuses its pair fold (already on the landing) and not its components.

Live readings, en and zh, console from this branch's source over real backends. Scripts, readings and screenshots: /mnt/project-files/objectstack-seat3/34714-live/ (project share).

  1. Showcase (examples/app-showcase, fresh): before any change the panel reads "No installed app has been changed in this environment yet." / 「本环境还没有改过任何已安装的应用。」. After an added field on showcase_task (ensure-customization 201, object_extension draft 200, pair publish 200) and showcase_urgent_task_alert switched off (toggle 200): 2 rows, Region | Added · Field and Alert on Urgent Task (created or escalated) | Switched off · Flow (labels read from the app's lists); total 2 = card "1 customized, 1 switched off"; the flow row opens /studio/com.example.showcase/automations?surface=flow:showcase_urgent_task_alert, the field row /studio/com.example.showcase/data?surface=object:showcase_task.
  2. Two installed apps (examples/app-multi-package, core + orders): one added field each ⇒ 2 rows (Tier · Multi-Package Core, Channel · Multi-Package Orders), total 2 = cards 1 + 1. The core read also serves a nav contribution from orders: no row for it.
  3. 403: a response stand-in answers 403 PERMISSION_DENIED for the orders read only: "Multi-Package Orders: this app's customizations could not be read." / 「Multi-Package Orders:这个应用的定制读不到。」, total 1, the core row still listed, the orders card reads its failed line.
  4. 375 px: no horizontal scroll; tabs, search and the group button are 44 px tall.

Acceptance 1 combines two apps and a switched-off flow in one environment; live, those are read in two environments (no example ships two installed apps with a packaged flow); the exact combination is the first component case. On the multi-package example, ensure-customization on the orders module answers the core pair (shared namespace crm, ADR-0130 D4); orders' extension was written there and the orders read lists it.

Verification

Gates on head 9f42374 (main 3bbda33 merged in)

Deviations: the branch is this thread's pinned branch claude/project-thread-eqwj27, restarted from main after #34747 merged. File surface beyond the claim's "new panel component": landingCustomizations-io.ts beside it (rows and the label read, split out so a test can double the label read).

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>
…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>
…ions in one panel (#34714)

Claude-Session: https://claude.ai/code/session_01WGufzivEnnozveqZfr4fDx
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: REWORK
Head-sha: 9f42374

L1 read of #34825 for #34714 (2026-11-17T11:56Z). Merge-base is current origin/main 3bbda33. The diff is 13 files, +985/−17.

What holds:

  • Shape. Fixes #34714 is right. All five items are built, and the four exclusions the card lists (ADR-0146 D6, contributions, no server change) hold: no server or storage file is touched.

  • Declaration lines. Clause-②: yes (widening) covers 29 new studio-namespace keys only. customizationCountsOf is a new export of the private @object-ui/app-shell. So this is L1 at TIER_DEFAULT with no L2, by the seat's rule. Metadata-protocol: none is right.

  • Changeset. It names @object-ui/i18n, the only published package whose src moved. app-shell is private: true.

  • Budget. Eager locales/en.ts is untouched, and i18n-locale-en is reported at 60.2 / 60.5 KB.

  • Strings. All 29 keys are in both packs: en and zh, which is the namespace's full set. They are key-for-key equal. The zh wording matches the card: 本环境的定制, 改了原有的 / 新增的 / 已停用, 新增字段, 表单与视图, 「这个应用的定制读不到」.

  • One read per app (items 1, 2 and acceptance 2). The landing keeps the whole fetchPackageCustomizations answer. The card's numbers come from it through the pure customizationCountsOf, which fetchPackageCustomizationCounts now uses too. The panel's rows come from the same answer, one row per served entry:

    • overrides → Changed;
    • extensions → Added;
    • switchedOff → Switched off;
    • contributions → no row.

    Nothing is folded, so the total equals the cards' sum by construction. The test pins one request per app.

  • Item 5. A failed read (403 included) names the app and is never counted as 0. The card shows its existing failed line.

  • Labels. There is one list(type, { packageId }) per type that has rows, plus one object list for added fields. A failed list keeps the names, and no row means no request. The effect keys on a joined primitive (ui/AGENTS.md chore: version packages #10).

  • Item 3 and item 4.

    • Tabs carry counts.
    • Search covers label, name, type, app and mode.
    • Group by app.
    • The first 6 rows show, then "Show all N".
    • With nothing to show, the panel is one line.
    • Phone targets get max-md:min-h-11.
  • Live readings, en and zh (34714-live/):

    • Empty state.
    • An added field plus a switched-off flow, both with labels read from the app's lists. Total 2 equals the card's "1 customized, 1 switched off".
    • Both rows open their item: the flow on Automations, the field on its object in Data.
    • Two installed apps, total 2 equals 1 + 1. The served nav contribution makes no row.
    • A 403 stand-in on one app's read: the unreadable line, the other app's row still listed, total 1.
    • A 375 px shot.

    That covers acceptance 1–3. Acceptance 1's exact combination (two apps and a flow, in one environment) is read live in two environments, because no example ships two installed apps with a packaged flow. It is pinned as a component case. Per-app reads sum independently, so this is a sound reading.

Must-fix

M1. One changed file is outside the claim surface.

Should-fix

None.

Notes

  • Added validation rules and indexes stay on object.name. The label read resolves an added field from its object, but has no label source for an added validation rule or index. Those rows show object.name, which is the stated "failure keeps names" fallback. Fine for this card.
  • Group by app shows every matching row. It bypasses the 6-row cap. That is a reasonable reading of item 4, since grouping is an explicit ask.
  • "Forms and views" matches view and form. A changed object (overrides of type object) appears under All only.
  • Routing. Not governed. After ACCEPT, o3-D lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT
Head-sha: 9f42374

Re-read of #34825 for #34714 on the same head (2026-11-17T11:58Z). REWORK 6947351989 had one must-fix.

M1 is closed. Claim amendment 6947365586 restates the File surface. It names landingCustomizations-io.ts beside LandingCustomizationsPanel.tsx, and every other line of claim 6944526029 stands. Every changed file is now inside the claim. The amendment comes from the claim's own session, so it is the claimant's restatement of its own surface.

Everything else in 6947351989 stands unchanged:

  • not governed;
  • Clause-②: yes (widening) with studio-namespace keys only, so L1 at TIER_DEFAULT with no L2;
  • the changeset names @object-ui/i18n;
  • eager locales/en.ts is untouched;
  • the live en/zh readings cover acceptance 1–3 and 375 px.

Must-fix

None.

Should-fix

None.

Notes

  • CI. At this read, Test UI, Build & E2E UI, Live E2E UI and several lint jobs were still running. No run had failed. Land once they are green.
  • Routing. Not governed. o3-D lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-17T12:40Z

Probe Reading
check-governed-merges.mjs --pr 34825 NOT governed · 1002 changed lines (+985 / -17) ≤ 3000
Head / L1 9f4237471f · L1 REWORK 6947351989 (claim amendment only) → ACCEPT 6947386707 on this head; claim amendment 6947365586 · all required check-runs success or skipped · mergeable_state: clean
Shared budget merge base 3bbda33 (#34747 included), K = 1; new keys live in the lazy namespaces/studio pack; eager locales/en.ts not in this diff

State: ready + auto-merge armed by area o3-D (lease o3-D); Fixes #34714 closes the card on merge.

@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

  • Test UI (11/16) — 失败步骤: Run the ui tests (shard 11/16)

    × does not hold the route for its lookup targets: they are asked beside it, and the list renders meanwhile 23ms
    FAIL   dom  packages/app-shell/src/console/__tests__/AppContent.objectScope-12811.test.tsx > an object outside the package is read by name, behind the skeleton (objectui#12811) > does not hold the rou
      ↳ 失败原因: AssertionError: expected [ 'app', …(4) ] to include 'object/sys_user'
    

↳ 失败原因 是判读的关键:超时(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,按失败测试文件聚合):

  • packages/app-shell/src/console/__tests__/AppContent.objectScope-12811.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

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

分诊清单:

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

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Re-queue · 2026-11-17T13:18Z

Probe Reading
Queue triage 6949102406 (build 44087817223) Test UI (11/16) · packages/app-shell/src/console/__tests__/AppContent.objectScope-12811.test.tsx › does not hold the route for its lookup targets: expected [ 'app', …(4) ] to include 'object/sys_user' at first paint
Anchor #34765 (open, queue-flake-anchor) the same test file already ejected a different PR (root #34737) earlier today: a known queue flake, not this PR's signature

Judgement: branch 1 of the four (known flaky ⇒ re-queue unchanged). The assertion reads request ordering under load at the instant of first paint, a run-validity premise, not a product value. This PR touches only the studio-design landing, its panel and io, and the lazy studio namespace; nothing AppContent imports. The card thread ran the file on this head 3 of 3 green and on head + main e9f65a3 2 of 2 green. Head unchanged 9f4237471fbc54d1ae18f2d174992adc8e6b0cad (L1 ACCEPT 6947386707). Re-armed once by area o3-D. A second ejection on the same signature stops here and goes to the lane that owns #34765.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 4bdbdac Nov 17, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-eqwj27 branch November 17, 2026 13:47
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/xl 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