Skip to content

fix(studio): landing own-app cards drop the package id and Writable badge; Recently viewed hides when it only repeats them - #35094

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35018-studio-landing-c
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35018-studio-landing-c

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Closes #35018

PR 2 of 2: card item 4, the Studio landing page. The other half (items 1–3, the permission page, the AI panel's 正在看 line and the field panel) is #35082, Part of #35018.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:Studio 着陆页「自己的应用」卡片不再在应用名下显示包 ID(如 com.qa.mtg),也不再显示「可写」徽标;包 ID 改为卡片的悬停提示(和「已安装的应用」卡片一样)。「最近访问」在内容和上方卡片完全重复时不显示。
  • 为什么改:卡片 Studio:权限页标题重复应用名、AI 面板上下文和字段面板第一行还是内部名;着陆页应用卡片显示包 ID 和「可写」 #35018 第 4 项:自己的应用全都可写,徽标没有信息量;包 ID 是内部名;最近访问只重复上方卡片。
  • 风险与回滚:只改着陆页显示,不改数据、接口、布局和功能(复制按钮、新建卡片、其他分区不变),不加文案键。回滚就是 revert 本 PR。
  • 先看:ui/packages/app-shell/src/views/studio-design/BuilderLanding.tsx(recentRepeatsCards 判断和自己的应用卡片那一段)。
  • 两分钟验证:中文 Studio 着陆页(/studio),建两个自己的应用:卡片只显示应用名和「复制」,鼠标悬停显示包 ID;把页面上每张应用卡片都打开一次再回来,「最近访问」不出现;再新建一个应用,「最近访问」重新出现。
  • 需要你做的:无,席位落地。

What changes

  • Own-app cards (自己的应用 / Your own apps). BuilderLanding's own-app card no longer draws the package id line under the name, and no longer draws the 可写 / "Writable" badge (engine.studio.pkg.writable). Every card in this section is writable by construction (cards.filter((p) => p.writable)), so the badge carried no information. The package id moves to the card row's hover title, the place the installed-app card already keeps it (title={p.id} there). The Duplicate button, the inline duplicate form and the create card are unchanged.
  • 最近访问 / Recently viewed. The row is left out when its entries are exactly the apps the cards above already show (installed and own cards together, as a set, any order). It is drawn whenever it adds something: an app no card shows (for example a kernel package the cards hide), or a card it does not repeat. Each entry shows the app name only; the package id is on the entry's hover title, as on the cards (folded in at the seat's request, triage 6967733592).
  • No locale key is added, removed or changed. engine.studio.pkg.writable stays: PackageSwitcher and PageShell still read it.
  • The 可写 / read-only signal elsewhere on the page: the installed-app cards carry no read-only badge on main either (their section heading and hint say it), so there was no informative badge left to keep on this page.

Why

Card #35018 item 4, measured on main in this PR's before leg (below): each own-app card read 会议纪要 com.qa.mtg 可写 复制, and with every app visited the 最近访问 row repeated the three cards above it.

Tests

Pins (in the landing's existing BuilderLanding.recentPackages-11863.test.tsx, two new card-named describes)
  • an own-app card shows the app, not its package (objectstack#35018): the card's text holds the name and not the package id, and has no Writable text; no Writable anywhere on the page. Second case: the package id is reachable as the card's hover title (getByTitle('com.acme.crm') inside the card).
  • a Recently viewed entry shows the app, not its package (objectstack#35018): the entry shows Acme CRM, not com.acme.crm, and getByTitle('com.acme.crm') inside the row returns that entry's link.
  • "Recently viewed" is left out when it only repeats the cards (objectstack#35018): one recent visit to the only app ⇒ no row (the name appears once); every card visited, installed included, in another order ⇒ no row. CONTROL: a recent app no card shows (a kernel package) keeps the row; CONTROL: a card the row does not repeat keeps the row.
  • Fixture triage in the same file: six existing cases had one recent entry equal to the page's only cards. Each now lists one more app the row does not repeat, so it keeps testing what it tested (label, loading, deleted entry, slot fill, stored entry). the package cards stay beside the recent row keeps its assertion with a second card. BuilderLanding.accessibleNames-12510 needed only a comment update (the own card's name no longer has an api name after it).
Ablations (scripts/ablation-replace.mjs at b43cf93; each restored, blob 11b989d04e38 == HEAD, git diff HEAD empty)
  • Package id line put back on the own card: names no package id and carries no Writable badge 1 failed / 17 passed.
  • Writable badge put back on the own card: the same case, 1 failed / 17 passed.
  • title={p.id} removed from the own card row: keeps the package id reachable 1 failed / 17 passed.
  • Fold (at a49e040b4e, restored to blob a49e040b4ed0): the recent entry's id line put back ⇒ the new recent-entry pin 1 failed / 18 passed; title={item.name} removed ⇒ 1 failed / 18 passed.
  • && !recentRepeatsCards removed from the row's condition: the two hide cases failed, both CONTROLs passed (2 failed / 16 passed).
Suites (local, under os-verify-lock, at f961349)
  • pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/BuilderLanding: Test Files 12 passed (12), Tests 89 passed (89); after the fold (a49e040b4e): 12 files / 90 tests passed.
  • pnpm --filter @object-ui/app-shell run type-check (src and tsconfig.test.json): exit 0.
  • npx eslint on the three edited files from ui/packages/app-shell: exit 0.

Acceptance notes

  • Live reading (zh-CN, 1280×800, a fresh showcase backend per leg, console served from src by vite). Two self-built apps created over HTTP: com.qa.mtg 会议纪要 and com.qa.tix 工单跟踪. Before = BuilderLanding.tsx at the merge base, vite restarted with --force, served code checked with curl. After = branch head, checked the same way.
    • Before: own cards read 会议纪要com.qa.mtg可写 复制 / 工单跟踪com.qa.tix可写 复制, 2 可写 badges on the page. With all three cards visited, 最近访问 listed 工单跟踪, 会议纪要, ObjectStack Showcase: the three cards again.
    • After: own cards read 会议纪要 复制 / 工单跟踪 复制, 0 可写 on the page, hover title com.qa.mtg. With all three cards visited: no 最近访问 row. CONTROL: after a third app (客户回访) was created, the row came back, since it no longer repeats every card.
  • Reading of 「完全重复」. This PR hides the row when its entries and the cards are the same set of apps. It keeps the row when there are more cards than recent entries, because the row then says which of many apps were last open. If the maintainer means the stricter reading (hide whenever every recent entry already has a card), the row would show almost only for kernel packages: a one-line change in recentRepeatsCards, but close to removing the row.
  • Folded in (seat and triage 6967733592): each 最近访问 entry no longer draws its package id in mono under the name; the id is the entry's hover title. Live: after-4-recent-no-id.png (CONTROL case with a third app) reads 工单跟踪 / 会议纪要 / ObjectStack Showcase with no visible id; hover titles com.qa.tix / com.qa.mtg / com.example.showcase.

Verification

  • Gates derived by node scripts/pm/dispatch-gates.mjs --commands at f961349 (38), all exit 0 locally. --ran with exit codes: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero, all 38 recorded an exit code). pnpm check:changeset-fixed: exit 0.
  • node scripts/pm/overlap-check.mjs --branch=claude/issue-35018-studio-landing-c before each push: VERDICT clean exit 0. Against fix(studio): permission title, AI panel 正在看 line and field panel header use names, not internal names #35082: no shared file (this PR touches no i18n file), and a merge of the two heads is clean.
  • The CI lanes (Test UI, Type Check UI, repo-wide scans) are CI's.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa

…adge; Recently viewed hides when it repeats the cards

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
@github-actions github-actions Bot added size/m 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 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review (L1-d) — #35094 (Closes #35018, PR 2: Studio landing) · 2026-11-18T02:59Z

L1: ACCEPT
Head-sha: f961349

Surface. All 4 files are inside the PR 2 slice of claim 6964950830: BuilderLanding.tsx (the landing in ui/packages/app-shell), two of its existing tests, and a root changeset. No locale file changes. engine.studio.pkg.writable stays because PackageSwitcher and PageShell still read it. NOT governed (check-governed-merges --branch): 0 of 4 paths, 148 changed lines. f961349 is a merge of main.

Item 4a, own-app cards. The id line and the 可写 badge are removed. The row carries title={p.id}, the installed card's existing pattern. Own cards have no more menu, only Duplicate, so the card's "more menu or hover title" choice falls to the title. Live (after log): showsId: false, badge可写: false, the first title in the card is com.qa.mtg, and 可写 appears 0 times on the page (it was 2 before).

Item 4b, 最近访问. recentRepeatsCards is recent.length === cardIds.size && every(recent ∈ cardIds). This is a set equality, and it holds because the recent store dedupes by id (RecentItemsProvider addRecentItem drops the prior entry) and recentPackages is filtered to listed packages. cardIds covers both writable and installed cards. A .custom pair folded under its base has no card, so a visit to one keeps the row. The before and after logs on the same three-card page show the row gone after when it repeats exactly. With a fourth own app (com.qa.crm) the row stays, because the cards then hold an app the recent list does not repeat.

On the dev's open reading, which the requester asked me to weigh: I accept A, the same set. 「内容与上方卡片完全重复」 says the content repeats the cards completely, which is a two-way match. B (hide whenever every recent entry has a card) would drop the row in the common case of a few apps. That throws away what the row adds even then, the order of recency, and it would be a feature change the card rules out (「不改这些页面的布局与功能」).

Pins and ablations. There are two new describes:

  • own card: no id text and no Writable on the face, with the id reachable by title;
  • recent row: hidden for one visit to the only app, and for every card visited in any order with installed apps included; two CONTROLs keep it (a recent app with no card, and a card the row does not repeat).

The six existing fixtures each gained one unvisited app, so they keep testing a drawn row rather than going vacuous. Four mutations went red and were restored. The accessibleNames-12510 edit is a comment only.

Clause-②: no and Metadata-protocol: none are correct: this is display only.

Must-fix: none.
Should-fix: none.

Notes:

  • The out-of-scope observation that recent-row entries still show a monospace package id under the name is for the seat. That row is not one of the card's four items, but it is the same class of issue.
  • This PR is Closes #35018 while PR 1 (fix(studio): permission title, AI panel 正在看 line and field panel header use names, not internal names #35082) is still in the merge queue. If this one lands first, the card closes with PR 1 unmerged, so either keep the order or reopen the card for PR 1.
  • CI at review time: 13 success, 13 skipped, 23 in progress. Landing waits on all checks being green.

Landing: ordinary queue landing (not Tier H) via the area, after #35082.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta review (L1-d) — #35094 · 2026-11-18T03:33Z

L1: ACCEPT
Head-sha: 4f122a5

Delta from my ACCEPT on f961349 (6967686193). There are two commits: ad4aebc (code and pin) and 4f122a5 (changeset wording). Together they change 3 files, +21/-4, all already in the PR's file list and in the PR 2 slice of claim 6964950830 (the 最近访问 strip in BuilderLanding.tsx, its tests, the changeset).

Scope. This folds the observation I passed to the seat in my first verdict: the recent-row entries showed a mono package id. Triage proposed carrying it on this PR (6967733592) as the same rule on the same component, and the seat and area agreed. It is the card's own rule (no raw identifiers on the landing) applied to one more row, and it changes no layout or behaviour, so I accept it in scope.

Code. Each recent entry loses the font-mono item.name line and gains title={item.name} on its Link, the same pattern as the own and installed cards. The visible label (recentLabel(item)) is untouched, so the link's accessible name is still the app's label (accessibleNames-12510's /HotCRM/ link is unaffected).

Pin. The new case asserts that the entry shows Acme CRM, that its textContent has no com.acme.crm, and that getByTitle('com.acme.crm') is the link itself. Both ablations went red and were restored, per the area. Live: after-4-recent-no-id.png (zh-CN 1280, three own apps) shows the 最近访问 entries 工单跟踪 / 会议纪要 / ObjectStack Showcase with no id line, the own cards with no id or 可写, and no recent-row duplication.

git merge-tree against the current origin/main, with #35082 now merged, reports no conflict. Still NOT governed.

Must-fix: none. Should-fix: none.

Notes: CI at review time: 12 success, 15 skipped, 26 in progress. Landing waits on all checks being green on 4f122a5.

Landing: ordinary queue landing (not Tier H). #35082 is merged, so the order concern in my first verdict is closed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing (area o3-H, for the owning seat) · 2026-11-18T03:49Z

Reading Value
L1 ACCEPT. L1-d 6967686193 on f96134972d (reading A, same set, accepted), then delta ACCEPT 6968205703 on head 4f122a5c5a26ecc78dc60309afa6db8bffe08ea3. The delta covers the recent-entry package-id fold that triage asked for (6967733592). No must-fix or should-fix.
check-governed-merges.mjs --pr 35094 NOT governed. Ordinary queue landing. 169 changed lines (+153 / -16).
CI on that head All suites completed with none failed (check_suite.completed).
K (first-parent, merge base..origin/main) 9 (under 15). Merges cleanly; PR 1 #35082 is merged.
Dev effort medium, 2 rounds (the second is the fold requested by the seat and triage, not a rework finding).

State change: ready + auto-merge enabled. Closes #35018 (PR 2 of 2).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbYRqkDAGuse5Wqbohi

Landing · 2026-11-18T04:00Z

Probe Reading
check-governed-merges.mjs --pr 35094 NOT governed · +153 / −16, ui-only, Clause-②: no
Head / review 4f122a5c5a · L1-d delta ACCEPT 6968205703 at this head (over ACCEPT 6967686193 at f961349), the review of record; no L2 owed · all check-runs success or skipped (42 success, 15 skipped, 0 red)
Freshness K = 11 (merge base 3b4ffb2217); overlap-check.mjs clean, merges cleanly into origin/main

Open findings: none.

State: ready + auto-merge armed by area o1-B (lease o1-B, takeover 6968300169 on #35018). This is PR 2 of #35018 (PR 1 #35082 merged); the card closes on merge.

Dev-effort: medium · Rounds: 2

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/m 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:权限页标题重复应用名、AI 面板上下文和字段面板第一行还是内部名;着陆页应用卡片显示包 ID 和「可写」

2 participants