Skip to content

Studio 着陆页:加一张「本环境的定制」汇总,所有已安装应用的改动列在一处 #34714

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「组织自定义元数据的概念吗?除了流程还有很多,是否建议一个统一的入口吗?」;看过效果图后:「Studio 着陆页 可以」。

现状(读码,objectstack origin/main a34eb07;界面实测在本地 HotCRM 实例)

  • 定制的机制已经统一:ADR-0146 规定对已安装应用的每一处定制都进它配对的 .custom 包(专题 [Epic] Package-level override: every customization of an installed package lives in its paired <base>.custom package, one declared override shared by code and Studio (supersedes #28130) #28236,46 张子卡已全部关闭)。
  • 入口没有统一。着陆页 ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx 上,每个只读应用的卡片只有一行数量「已定制 N 项,已停用 N 项」(:147–161,用 fetchPackageCustomizationCounts)。想知道「这个环境到底改了哪些东西」,要一个应用一个应用点进去看。
  • 服务端已有完整清单:GET /packages/:id/customizations(packages/runtime/src/domains/packages.ts 的 readPackageCustomizations)返回四张清单 overrides、extensions、switchedOff、contributions;前端 packageCustomizations-io.ts 已有取完整清单的 fetchPackageCustomizations(:59),着陆页只用了取数量的那个(:86)。
  • 应用内已有定制列表组件 StudioRailCustomizations。

要做的

  1. 着陆页加「本环境的定制」面板:对每个已安装的只读应用调一次现有的 customizations 读取,合并成一张清单。
  2. 每行:条目名(用标签)、类型、所属应用、改动方式(改了原有的 = overrides;新增的 = extensions;已停用 = switchedOff),点击打开该条目在 Studio 里的页面。
  3. 按类型的页签筛选(全部 / 新增字段 / 表单与视图 / 流程 / 已停用),可切换为按应用分组;带搜索。
  4. 默认只显示前若干行,其余在「全部」里;一项定制都没有时,面板显示一句空状态,不占大块面积。
  5. 读取失败或无权读取的应用,在面板里说明「这个应用的定制读不到」,不把失败当成 0 项。

不做的(ADR-0146 D6 已排除,写明以免被读成遗漏)

  • 不做与原版的差异对比、不显示「基于哪个版本」、不做克隆来源追溯。
  • 不做按组织区分的定制:定制的单位是环境。
  • 不改服务端接口;不动 .custom 的存储划分。
  • contributions(其他包带来的内容)不算本环境的定制,不进这张清单。

验收

  1. 一个环境里对两个已安装应用各做一处定制、停用一条流程:着陆页的面板列出 3 行,所属应用与改动方式正确,点击能打开对应条目。
  2. 面板上的总数等于各应用卡片上「已定制 + 已停用」之和。
  3. 没有任何定制时显示空状态;某个应用的读取返回 403 时,面板说明读不到,其余应用照常列出。

设计图(静态示意稿,标「新」的是改动;示例数据是虚构的)

图 19 Studio 着陆页

图 19 Studio 着陆页

Reader: domain:ui 车道,改 BuilderLanding.tsx,复用 packageCustomizations-io.ts 与 StudioRailCustomizations。

Dedupe: repo:objectstack-ai/objectstack Studio landing customizations summary across packages BuilderLanding → 3 条命中,没有跨应用汇总的卡(含已关)。

Activity

  1. added
    enhancement
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. added
    pm:queue
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · 2026-11-17T09:47Z
    Session: session_01WGufzivEnnozveqZfr4fDx
    Thread session: session_01WGufzivEnnozveqZfr4fDx
    Account: os-support-ai
    Branch: claude/project-thread-eqwj27 (this thread's pinned branch; the PR opens after #34747 merges, on that branch brought forward from main)
    Worktree: objectstack-issue-34715
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx and its BuilderLanding.*.test.ts(x) files, a new panel component beside it (LandingCustomizationsPanel.tsx) with its test, ui/packages/app-shell/src/views/studio-design/packageCustomizations-io.ts (one pure counts helper, so the cards and the panel read one answer per app), ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts (new keys only), root .changeset/
    Container & model: M, mode:thread, model: TIER_DEFAULT (seat order 34715-34714), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6942811524
    Premise: holds, measured on origin/main f6f5b50: fetchPackageCustomizations at packageCustomizations-io.ts:59, the counts reader at :86, the landing calls only the counts reader (BuilderLanding.tsx:161); GetPackageCustomizationsResponseSchema serves overrides {type,name}, extensions {object,kind,name}, switchedOff {type,name}, contributions, and counts.* = each list's length, so rows = cards' customized + switched off by construction. The answer carries no label: a row's label is read from the app's own published list of that type, falling back to the name. StudioRailCustomizations exists (rail marks and filter, not a cross-app list); reused for its pair fold only.
    Serial constraints cleared: built on #34747 (#34715, same file) in this thread; overlap-check against #34677 and #34713 before every push
    Pre-claim lane: domain:ui — every code path is under ui/packages/**
    Pre-claim deps: #34715 (PR #34747) merges first
    Prior rulings read: ADR-0146 D3 (per-base customization read), D6 (no diff, no basedOn, no clone lineage, environment is the unit), D1 (items open in Studio); thread: none

    Scope: all five items; contributions excluded; no server change. Lease o3-D (seat post #34584). Part of epic #34571.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {"issue":34714,"status":"pr_open","pr":34825,"branch":"claude/project-thread-eqwj27","head":"9f4237471fbc54d1ae18f2d174992adc8e6b0cad","tier":"TIER_DEFAULT","clause2":"yes (widening)","metadata_protocol":"none","premise_still_valid":true,"premise":"measured on origin/main f6f5b50a0 (claim 6944526029): fetchPackageCustomizations :59, counts reader :86, landing reads counts only (BuilderLanding.tsx:161); counts.* = list lengths; served answer carries no labels","tests":"BuilderLanding 12 files / 73 pass; studio-design 336 files / 2587 pass","gates":"38 derived gates exit 0 on the merged-forward head; app-shell + i18n type-check, ESLint, changeset-fixed, test-source-alias exit 0","i18n_locale_en":"60.2 KB / 60.5 KB ceiling, locales/en.ts untouched","live":"en + zh: showcase (empty, added field + switched-off flow, rows open items) and app-multi-package (two apps, total = card sum, contribution excluded, 403 stand-in unreadable); /mnt/project-files/objectstack-seat3/34714-live/","overlap":"overlap-check VERDICT clean (#34677, #34799 merge cleanly)","deviations":["pinned thread branch merged forward from main after #34747 (no force push)","landingCustomizations-io.ts added beside the panel","acceptance 1's two-apps + switched-off flow read live in two environments; exact combination is a component case"],"api_writes":{"count":4,"endpoints":["claim comment + labels + assign via label-write","pr_create #34825 via relay (+assignees)","this report"]},"mcp_calls":"issue_read/pull_request_read only"}
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T11:57Z · amends claim 6944526029 (File surface line only; every other line stands)

    File surface: ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx and its BuilderLanding.*.test.ts(x) files, a new panel component beside it (LandingCustomizationsPanel.tsx) and its reader landingCustomizations-io.ts (the panel's rows and the label read, split out so a test can double the label read), ui/packages/app-shell/src/views/studio-design/packageCustomizations-io.ts (one pure counts helper, so the cards and the panel read one answer per app), ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts (new keys only), root .changeset/. PR #34825 head 9f42374. Closes L1 M1 (6947351989).

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T11:57Z

    Claim 6944526029, answering L1-b REWORK 6947351989 (PR #34825 @ 9f423747): ui/packages/app-shell/src/views/studio-design/landingCustomizations-io.ts joins the file surface (the environment-customization rows and label read, split out beside LandingCustomizationsPanel.tsx; private @object-ui/app-shell, no export). No other change to the claim.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Closed by merge · 2026-11-17T14:17Z

    PR #34825 merged at 2026-11-17T13:47Z (Fixes #34714) after one known-flake ejection (anchor #34765; re-queue 6949186469). Delivered: the Studio landing lists every change this environment made to its installed apps in one panel. L1 REWORK 6947351989 (claim amendment only) → ACCEPT 6947386707; claim amendment 6947365586. New keys live in the lazy studio namespace. PR #34799 (#34724) merges this forward next. pm:dispatched and lease:o3-D removed.

  9. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uienhancementpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions