Skip to content

feat(console): page header on reports and custom pages; the shell's top-right button group, off while the top bar stands (#36111) - #36131

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

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY

Fixes #36111

Clause-②: yes (widening): @object-ui/components adds one export, PageTitleHostContext (re-measured on the built dist/index.d.ts). Nothing is removed or re-typed.
Metadata-protocol: none

Maintainer ruling on the custom-page header: #36111 ruling record (option A: the shared header on every custom page, the renderer's own page title folded into it, authored content drawn as written).

维护者速读

  • 报表页、报表目录页、自定义页面(分区页面、界面模式页面、html、react)现在和列表、仪表盘一样,顶部是统一的页面头部:左边页名和描述,右边是这一页自己的按钮。
  • 没写标题的页面,原来平台画在正文里的大标题移进头部,只出现一次。作者自己写了标题的 page:header 照旧显示(文档结构上降成二级标题,外观不变);标题和页名相同的页面会看到页名两次,这是裁定接受的代价。showcase 的 my-work、project-workspace 在本 PR 里删掉了自己那一行标题。hotcrm 销售首页另开卡。
  • 右上角按钮组(评论位、「编辑应用」、AI、帮助)做成一个组件,由外壳统一放:仪表盘、报表、自定义页面放在头部按钮的后面(中间一条细竖线),列表页放在视图栏最右边 ⋮ 的后面,记录页放在导航行 ✕ 的前面。顶栏还在的时候它默认关着,用户看不到任何重复按钮;在浏览器里设 localStorage['os:shell:page-actions'] = 'on' 可以打开它检查。去掉顶栏的 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 会把默认改成开并删掉这个开关。手机上不画。
  • 「编辑应用」:文字加一个不是铅笔的图标,窄屏(<1024)只留图标、悬停提示保留文字;打开的地方和顶栏铅笔完全相同(同一个函数算出来);只读包显示眼睛和「在 Studio 中打开」;没有 manage_metadata 的人看不到。
  • 自定义页面右下角的浮动「在 Studio 中编辑」铅笔:电脑宽度去掉(头部的按钮组取代它),手机宽度保留。
  • 帮助菜单从顶栏抽成一个组件,顶栏和按钮组共用,内容不变。

What changes

The shell's top-right button group (@object-ui/app-shell, new layout/ShellPageActions.tsx)

  • ShellPageActions: from left to right the comments slot, 「Edit app」, the AI assistant (where the server serves it) and help. One component; the shell decides whether it is drawn, not the page.
  • ShellPageActionsScope, mounted by ConsoleLayout: OFF by default (SHELL_PAGE_ACTIONS_DEFAULT = false) while the top bar still draws the same buttons. The browser switch localStorage['os:shell:page-actions'] = 'on' turns it on (every access guarded; a blocked storage reads off). Outside a scope (Home, organization pages, Studio, docs) and on a phone it is never drawn.
  • 「Edit app」 reads useAppStudioEntry, extracted from AppHeader, so the group and the top bar pencil compute one gate and one target (useStudioEntryGate + appStudioRoutePath). Words beside the Blocks icon (the record's 「Edit」 keeps the pencil), words hidden below lg with the tooltip keeping them; a read-only package gets the eye and 「Open {app} in Studio」; a caller without manage_metadata gets nothing.
  • HelpMenu (new layout/HelpMenu.tsx): the 「?」 menu lifted out of AppHeader unchanged, used by both hosts.

Where each page draws it

Reports and custom pages use PageHeader

  • ReportView and AppReportIndexView: their bespoke title blocks become PageHeader (title, description, the report edit button as the page's action).
  • PageView: from the phone breakpoint up, every custom page under /apps/APP/page/NAME opens with PageHeader (page label and description) above the page's scroller. The floating 「Edit in studio」 pencil is drawn only on a phone; a phone keeps its old face (no console header, the renderer's own title, the pencil).
  • InterfaceListPage: new consoleHeader prop; the console route draws PageHeader with the page's configured buttons as its actions. Studio's page preview keeps the old row.

The page renderer hands its title to the host (@object-ui/components)

  • New PageTitleHostContext (exported): while a host sets it, the page renderer skips its implicit page-name h1 and description, as the dashboard renderer does under hideHeaderText.
  • Internal PageTitleDemotedContext: under such a host, an authored titled page:header draws its title as h2 with the same classes, so the document keeps one h1 (objectui#3434). Record pages are untouched.

Showcase: my-work.page.ts and project-workspace.page.ts drop their page:header title, which repeated the page name (subtitle kept), per the ruling.

Why

Card #36111, phase 1 of epic #36107 (remove the top bar): every in-app page needs the same header and the same top-right button group before the top bar can go. Reports and custom pages had their own headers or none; the floating pencil was a custom-page-only entry. Building the group off while the top bar stands lets this land with no visible duplication; #36112 flips it on.

Side effects reviewers should know

  • Custom pages gain a header bar (roughly 45 to 55 px of height); full-screen style pages feel it most.
  • A page whose authored page:header title equals its name shows the name twice (header small, body large). Accepted in the ruling; hotcrm's sales home gets its own card.
  • The authored page:header title is now an h2 under the console header (looks the same).
  • The report page and report index on a phone now draw PageHeader too (they had their own header block there as well).
  • The three PageView.editInStudio* pins and the AppHeader objectui#12198 pin now run at a phone width, where the floating pencil still lives; what they assert is unchanged.

Verification

  • New pins: layout/__tests__/ShellPageActions-36111.test.tsx (switch, scope, phone, order, PageHeader placement / divider / off, 「Edit app」 target equals the pencil's derivation, label + icon + lg breakpoint, read-only eye, member gets nothing); views/__tests__/PageView.consoleHeader-36111.test.tsx (title once in the header, authored page:header stays as h2, group placement on/off, phone face); RecordDetailView.topBar-27524 gains the group-before-✕ case and the off case; ObjectView.shellPageActions-36111 pins the list view bar's end (on and off).
  • Scoped runs: app-shell layout, PageView, ReportView, report index, InterfaceListPage, Dashboard, RecordDetailView top bar, components page/layout renderers: 255 files / 1,978 tests pass; re-run on the merged head after origin/main came in: 117 files / 1,043 tests pass.
  • pnpm run type-check clean for @object-ui/app-shell and @object-ui/components; eslint 0 errors on changed files; @objectstack/example-showcase builds.
  • Clause-② re-measured on built declarations: PageTitleHostContext is the one new root export.
  • Screenshots (before/after for report and custom pages, the group on at list/record/dashboard/report/custom page, narrow window, light/dark) are described in the evidence comment.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (untouched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; eslint passes on every changed file (0 errors).
  • 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: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the 维护者速读 summary is for the maintainer).
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgVcCRGjxwhDjrRVYsY

…op-right button group, off while the top bar stands

Reports, the report index and custom pages draw the console page header
lists and dashboards draw. A custom page's name and description move into
it (PageTitleHostContext, a host switch in @object-ui/components); an
authored page:header stays, its title an h2. The interface page swaps its
own row for the header. A phone keeps the face it had, floating pencil
included.

The top-right group (comments slot, Edit app, AI, help) is one app-shell
component placed by the shell: PageHeader after its actions, the record
page's navigation row before the close button. Off by default while the
top bar stands; localStorage os:shell:page-actions=on turns it on. Edit
app reads the top bar pencil's gate and target (useAppStudioEntry); the
help menu is one component both share.

Card #36111, maintainer ruling 7064921354 (option A).

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

报表、报表目录和自定义页面改用和列表、仪表盘一样的页面头部;右上角按钮组(评论位、编辑应用、AI、帮助)已经做好,但默认关着,只有浏览器里的测试开关能打开,手机上从不出现,所以合并后大家看到的只有这几个页面多了头部。代码我读完了,没有必须改的地方,作者自己写的页面头部平台一律不藏。还差两样才能给最终结论:CI 跑完全绿,以及截图(报表、自定义页面改动前后,按钮组打开时的样子)。

席位核对 — HOLD (L1-c, code read clean) · repo:objectstack#1 · head a7c20650 · 2026-11-21T15:44Z

Card: Fixes #36111. Claim 7064613161 (amended: Clause-②: yes (widening), the one new export PageTitleHostContext in @object-ui/components). Ruling 7064921354 is option 1, with Fable's read at fable-decision.md. No packages/spec/src/** or docs/adr/** in the diff, so the seat runs the declared L2.

Gates, not yet final:

  • CI on a7c20650 was 13 success · 10 skipped · 32 in progress when I read it, so l1-face is INCOMPLETE (floor-checks and all-checks not measured).
  • a7c20650 merges 3c06fc53 (main) with an empty --remerge-diff.

The four points asked:

  1. No authored page:header is hidden.
    • PageTitleHostContext turns off only the renderer's implicit title and description (showPageTitle, showPageDescription).
    • An authored titled page:header draws as before; under PageTitleDemotedContext only its tag goes from h1 to h2, with the same classes.
    • The provider resets to false inside the page, so a nested page draws its own title.
    • The description is not drawn twice: showPageDescription is off under the host, so headerDrawsDescription is off too.
    • The only author edits are my-work and project-workspace. Each drops a title equal to its page name, keeps its subtitle, and comments why. That matches the ruling, and the pin "authored title stays as an h2" covers it.
  2. The group is off by default.
    • SHELL_PAGE_ACTIONS_DEFAULT = false.
    • readShellPageActionsSwitch reads only localStorage['os:shell:page-actions'] === 'on', inside try.
    • useShellPageActionsOn adds !phone.
    • It is never drawn outside ShellPageActionsScope, which only ConsoleLayout mounts.
    • The record page also leaves it out when embedded.
    • All of this is pinned in ShellPageActions-36111: the default, the switch, blocked storage, scope and phone. A test also pins that with the switch off the header is unchanged (no group, no hairline, no empty cluster).
  3. Record page against feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114.
  4. Name once on reports, html and react pages.
    • ReportView and AppReportIndexView drop their own h1 block for PageHeader; the report's Edit becomes the header's action.
    • html and react pages render as the layoutElement of the same PageRenderer, under the same showPageTitle gate, so the host switch removes their implicit title too.
    • By code this holds; the only pin is a section page (getAllByRole('heading', { level: 1 }) has length 1). I'd like the evidence to show start-here (html) and crm-workbench (react).

Also read:

  • HelpMenu is a pure move out of AppHeader: same items, leaveTo through confirmUnsavedLeave, the docs fetch, About.
  • useAppStudioEntry reproduces the pencil's derivation (activeAppName || currentAppName || params.appName || pathParts[1], pathParts[2]/[3]), so the group's Edit app and the top bar's pencil open the same place.
  • InterfaceListPage swaps its own row for PageHeader only under consoleHeader (!phone), so Studio's preview keeps its row.
  • The four pencil pins now run at 375, where the pencil lives; what they assert is unchanged.

Owed before ACCEPT:

  • (a) CI green on the final head.
  • (b) The evidence the card asks for:
    • report and custom page, before and after;
    • the group on, at list, record, dashboard, report and custom page;
    • a narrow window, so Edit app shows as an icon;
    • light and dark;
    • plus one html and one react page showing the name once.

Nits, no action needed:

  • ShellPageActions.tsx's module doc still says a custom page draws the group "through the host slot PageHeaderTrailingContext" (option C). It now comes from PageHeader.
  • PageView.editInStudio* comments cite ShellPageActions.pageRoute-36111; the file is ShellPageActions-36111.test.tsx.
  • PageView names the page label ?? title, while PageRenderer reads title ?? label. A page carrying both, with different values, would now show a different name than before.

Verdict: HOLD at a7c20650. The code read is clean, and ACCEPT follows once (a) and (b) are in. A new head gets a delta read.


Generated by Claude Code

…ge name order follow the review

The shell group's module doc no longer names the custom page's host slot,
the three pencil pins point at the group's real pin file, and the custom
page header reads the page name in the page renderer's order (title before
label).

Claude-Session: https://claude.ai/code/session_01L6bhgVcCRGjxwhDjrRVYsY
Co-authored-by: Claude <noreply@anthropic.com>
Since the list redo the list page's top row is its view bar, not the console
PageHeader, so the group never reached the list. The bar's right end now
draws it after the page's acts behind a hairline, as PageHeader does, and
draws nothing new while the group is off.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY

Evidence for #36111 (head bbf1849d6), from a local showcase boot (objectstack dev --fresh --seed-admin) with the console's HMR dev server on this branch; "before" is the same boot with the changed ui/ sources swapped back to main (3c06fc53a). 1440×900 at 2×, light and dark. The files are in the project's evidence folder build-seat1/36111/shots/ (44 PNGs); what each shows, read off the rendered DOM after the shot:

Report and custom pages, before → after (before-*.png / after-*.png, each in -light and -dark)

surface before after
report showcase_task_overview bespoke title block, no page header PageHeader: report icon, name, description inline, 「Edit」 at the right; one h1
report index bespoke h1 block PageHeader 「Reports」
sections page showcase_my_work renderer's own 「My Work」 h1 header 「My Work」, the authored subtitle stays in the body (its duplicate title removed per the ruling); one h1
sections page showcase_contact_form h1 「Get in touch」 (authored) header h1 「Contact Form (SDUI data entry)」, authored 「Get in touch」 unchanged below as h2
html page showcase_start_here renderer's 「Start Here」 + the author's own big title header 「Start Here」 + the author's big title; the page name appears once
react page showcase_crm_workbench renderer's 「CRM Workbench (React)」 above the author's block header 「CRM Workbench (React)」, the name appears once
interface page showcase_active_projects its own 18px title row PageHeader 「Active Projects」, the same toolbar and grid below

The group turned on (localStorage['os:shell:page-actions'] = 'on'), after-group-*.png: one group on each of list (-light, -dark), record (-light, -dark), dashboard showcase_ops_dashboard (-light, -dark), report, custom page showcase_my_work, interface page. Order: Studio entry, then help (AI is not served by this boot). On the list it ends the view bar after ⋮ behind a hairline; on the record it sits in the navigation row before ✕; elsewhere after the header's own actions.

  • The showcase ships as a read-only package, so the Studio entry is the top bar's eye and 「Open Showcase in Studio」 at the same place, as the top bar draws it; the writable 「Edit app」 face (words + Blocks icon) is pinned in ShellPageActions-36111. On the record route the top bar shows no Studio entry and neither does the group.
  • Narrow window (900 px, below lg): after-group-list-light-900.png, after-group-page-myWork-light-900.png: the Studio entry is icon-only, the tooltip keeps the words.
  • Off (the default): after-group-off-list-light.png and every after-page-* / after-report* shot: no group anywhere, the top bar unchanged.

Found while shooting, fixed on this branch: the list page's top row is its view bar since #35878, not PageHeader, so the first head drew no group on the list. 4d7b483b4 adds it at the bar's end (pinned in ObjectView.shellPageActions-36111, on and off).


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

上一轮要的截图都补齐了,内容没问题:报表、自定义页面(含 html、react 页面)页名只出现一次,按钮组打开后六种页面位置一致,窄窗口收成图标,默认关着。但这个版本的 CI 红了,而且是这个 PR 自己引起的:记录页现在多引用了一个会带出整套元数据加载的模块,十几个原有的记录页测试在加载时就崩了,端到端构建也因此失败。用户界面没有坏,但不能合并,需要把这个引用拆轻。L1 结论:请修改后再审。

席位核对 — REWORK (L1-c, delta) · repo:objectstack#1 · head bbf1849d · 2026-11-21T16:25Z

Delta read: a7c20650..bbf1849d, on top of HOLD 7065111522.

Evidence: closed. Comment 7065442423 and 44 shots in build-seat1/36111/shots/. I read:

  • after-page-html-startHere-light: the name once, in the header; the author's own title stays in the body.
  • after-group-list-light-900: at 900 px the Studio entry is icon-only (the read-only eye on the showcase), followed by help.
  • after-group-record-light: help, then ✕, in the navigation row.
  • The table also covers before/after for the report, report index, sections, html, react and interface pages, light and dark, and off by default.

Must fix: CI is red on bbf1849d, caused by this PR. 15 checks failed: 14 Test UI shards and Build & E2E UI. The 36 successes include Lint and Type Check.

  1. Unit shards. Each fails one or two RecordDetailView.* files at import, before any test runs. The files include approvalLock-25934, flowDroppedFields-33009, approvalRecallGate, accessEndedAfterDecision-26589, recordIdParamSeed and refusedLaunch-9973. The error is ReferenceError: Cannot access 'authFetchSpy' before initialization. The stack runs ShellPageActions.tsx:34 → providers/MetadataProvider.tsx:35 → metadataClientFactory.ts:41, which calls createAuthenticatedFetch at module load. These files mock @object-ui/auth with a factory that returns a const spy declared below the hoisted vi.mock. Until now nothing on RecordDetailView's import graph called it during import. The new import { ShellPageActions, useShellPageActionsOn } from '../layout/ShellPageActions.js' in RecordDetailView.tsx (and in objectViewPageHeader.tsx) pulls MetadataProvider and its client factory in eagerly.
  2. Build & E2E UI. It fails for the same reason. The mobile-app-connect-qr spec's stub bundle fails to build with 245 MISSING_EXPORT errors ("useMetadata" is not exported by …/MetadataProvider.tsx, the \0mobile-app-qr:auth / :react stubs), because the record view's graph now reaches modules that spec stubs.

Suggested shape (your call): keep the pages' import light.

  • Split the scope, the switch and useShellPageActionsOn into a module that imports only React and usePhoneViewport.
  • Let ShellPageActionsScope (mounted by ConsoleLayout, which already has the heavy graph) hand the group down through that context. RecordDetailView, objectViewPageHeader and PageHeader then render what the context gives and import nothing from MetadataProvider.
  • Rewriting ~15 test files with vi.hoisted, and widening the e2e stubs, would treat the symptom and leave the record view's graph heavier.

Gates for the next head: all checks green, and the declared L2 on that head is the seat's.

Verdict: REWORK at bbf1849d. The evidence and the nits are closed; the CI red is this PR's. A delta read follows.


Generated by Claude Code

…r import it

PageHeader, the list's view bar and the record page imported the group
module, which reads the app's metadata, so every page bundled on its own and
every test mounting one bare pulled MetadataProvider in at import: the
mobile-app QR bundle lost its exports and the record page tests met the
metadata client before their auth mock existed. The scope now hands a stable
render function down through shellPageActionsSlot.ts, which imports only React
and the phone breakpoint; the group module is imported by the shell alone.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

上一轮 CI 红的原因已经修好:记录页、列表页和页面头部不再直接引用按钮组,改由外壳通过一个很轻的接口把按钮组递进来,所以不会再带出整套元数据加载。CI 全绿。截图早已核对过:报表、自定义页面(含 html、react 页面)页名只出现一次;按钮组默认关着,打开后六种页面位置一致,窄窗口时收成图标。L1 结论:接受,可以交给座位跑 L2 并落地。

席位核对 — ACCEPT (L1-c, final) · repo:objectstack#1 · head ca3b1bea · 2026-11-21T16:49Z

Delta read: bbf1849d..ca3b1bea (one commit), on top of REWORK 7065641823. Everything before it stands as read in 7065111522 and 7065641823.

The fix:

  • New layout/shellPageActionsSlot.ts imports only React and usePhoneViewport. It holds ShellPageActionsSlotContext (a render function, or null) and useShellPageActionsSlot, which returns null on a phone.
  • ShellPageActionsScope provides one module-level renderShellPageActionsGroup while the group is on, and null while it is off. The value is stable, so no consumer re-renders on its account. The function returns <ShellPageActionsGroup/>, so the group's hooks run in its own component, not in the header that calls it.
  • PageHeader, RecordDetailView (!embedded kept) and ObjectViewBarTrailing now import only the slot. git grep on the head finds ShellPageActions.js imported only by ConsoleLayout and AppHeader, both of which already carry the metadata graph. So MetadataProvider and its module-load createAuthenticatedFetch are off the record view's graph again.
  • The behaviour is the same: off gives no group and no hairline, a phone gives none, and on draws the same group in the same three places. The pins from the earlier rounds cover all of this, and they pass on this head.
  • The unused shellActions in ObjectViewPageHeader is gone.

Gates: CI 49 success · 10 skipped · 0 failed on ca3b1bea. The 14 Test UI shards and Build & E2E UI that were red are green. l1-face CLEAN.

Carried from earlier rounds:

Verdict: ACCEPT at ca3b1bea. Any new head gets a delta read.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T16:50Z. The brief handed to the isolated declaration-face reviewer for PR #36131 (owed by Clause-②: yes (widening): PageTitleHostContext in @object-ui/components, claim amendment on #36111). The record follows as its own comment.

Contract review brief — PR #36131 @ ca3b1beaa2658462a466d8ec28752a7febd1e90a (card #36111)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #36111: its body and EVERY comment (rulings and earlier records included)
· also epic #36107 (body), ruling 7064921354 on #36111 (option 1: shared header on every custom page, author content untouched) and the seat claim amendment on #36111, bodies only, for context; ruling A on changeset levels (level follows the Metadata-protocol line; a Clause-② widening alone ships patch)
· PR #36131: its body, its file list, and the net diff against main at ca3b1beaa2658462a466d8ec28752a7febd1e90a
· the check-runs on ca3b1beaa2658462a466d8ec28752a7febd1e90a: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36131/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: ca3b1beaa2658462a466d8ec28752a7febd1e90a
Local-runs: none

Read: the card #36111 body and all four of its comments (triage, claim 7064613161, ruling 7064921354, claim amendment 7065073263); the epic #36107 body; the PR #36131 body and its 27-file list; the net diff 3c06fc53..ca3b1bea; and the check-runs on the head. The head has 49 check-runs green, 10 skipped and 0 failed. That includes Check Changeset, Type Check UI, all 16 Test UI shards, Build & E2E UI, Live E2E UI and Governed Surface Queue Guard. The diff touches no packages/spec/**, docs/adr/**, skill or other governed path. The only reason this review is owed is the Clause-②: yes (widening) line, so the face is declaration and the tier is TIER_DEFAULT.

① Derived judgments

Public surface: @object-ui/components

  • PageTitleHostContext (new root export): right. It is a boolean React context with the default false, a host switch that no metadata key can reach. With the default false, PageRenderer is byte-for-byte the old page: showPageTitle and showPageDescription each gain only an && !hostOwnsTitle term. The renderer resets the context to false for its own body, so a page nested inside a hosted page draws its own title again.
  • PageTitleDemotedContext: right. It stays unexported (it is not in index.ts). PageRenderer provides it as hostOwnsTitle && pageType !== 'record', and only page:header reads it. The only change is h1 to h2 with the same classes on an authored explicitTitle, so nothing the author wrote is hidden. This matches ruling 7064921354.
  • PageRenderer and page:header props: unchanged.

Public surface: @object-ui/app-shell

  • The package exports only . and ./styles.css, and src/index.ts is not in the diff. So ShellPageActions, ShellPageActionsScope, useAppStudioEntry, HelpMenu, shellPageActionsSlot, SHELL_PAGE_ACTIONS_* and InterfaceListPage's new consoleHeader prop are all internal. The changeset calls the group "internal to @object-ui/app-shell", which is right.
  • The exported components AppHeader, ConsolePageHeader (PageHeader), ConsoleLayout, PageView, ReportView and RecordDetailView keep their prop types. Their DOM changes as follows:
    • PageHeader and ObjectViewBarTrailing: they draw the group, behind a hairline, only when a provider value reaches them. Only ShellPageActionsScope provides it, and it is null unless localStorage['os:shell:page-actions'] === 'on'. With the group off, the trailing cluster is the old one ((pageActions || renderShellGroup) && …).
    • ReportView and AppReportIndexView: their own title blocks become PageHeader. The report's 「Edit」 moves over as the header's action with the same isAdmin gate and data-testid.
    • PageView: from the phone breakpoint up it draws PageHeader (title, else label, else name; the renderer's order) and sets PageTitleHostContext. An interface page gets the header through InterfaceListPage consoleHeader, and its own row stays for Studio's preview and phones. The floating pencil is now phone-only.
    • RecordDetailView: pageFrame becomes the group followed by ✕, kept off when embedded.
  • AppHeader: right. HelpMenu is a verbatim lift: the same five items, leaveTo through confirmUnsavedLeave, the lazy meta.getItems('doc') read and About. The Studio entry now comes from useAppStudioEntry(isApp, activeAppName), and its inputs match the old inline derivation: activeAppName, then currentAppName, then params.appName, then pathParts[1], with pathParts[2] and [3].
  • The group's useAppStudioEntry(true) passes no activeAppName. ConsoleLayout sets currentAppName = activeAppName in an effect, so the two keys converge, and the PR pins "the target equals the pencil's".
  • i18n: no new key. topbar.editApp and topbar.openAppInStudio already ship in every locale on main.

Accept-set (what an author can write)

Import graph: right. The red on bbf1849d came from RecordDetailView importing ShellPageActions.js, which made the record view's graph load MetadataProvider and run createAuthenticatedFetch at module load. At this head the pages import only shellPageActionsSlot.ts, which needs only React and usePhoneViewport. On the head, ShellPageActions.js is imported only by ConsoleLayout and AppHeader, and the 14 Test UI shards and Build & E2E UI are green.

② Semver level

  • Clause-②: yes (widening): right. The PR body and the changeset each carry it line-initial. The one root-export addition is PageTitleHostContext. Nothing is removed or re-typed, and no exported prop type changes (see ①).
  • Metadata-protocol: none: right. It is in both places. No key, value or metadata type is added, removed or re-meant. The page's title and description keep their meaning, and the host only changes where they are drawn.
  • Level: ruling A says the level follows the Metadata-protocol line, and a Clause-② widening alone ships patch. The changeset has '@object-ui/app-shell': patch and '@object-ui/components': patch, so it matches. These are the only two published packages the diff moves. The showcase is private. Check Changeset is green.
  • The changeset prose matches the diff: the headers, the group off by default with its switch, the shared help menu, and the export with its h2 demotion.

③ Boundary flags

  • Claim 7064613161, item "Open, to the maintainer" (pages that draw their own title would show it twice): answered by ruling 7064921354, option A. The build follows it point by point:
  • Claim amendment 7065073263 (Clause-②: yes (widening), one export): matches the diff, see ②.
  • Card item 4, "group off while the top bar stands": built. SHELL_PAGE_ACTIONS_DEFAULT = false. The switch is read once inside try, so blocked storage reads off. It is never drawn outside ShellPageActionsScope or on a phone. It is pinned in ShellPageActions-36111 and ObjectView.shellPageActions-36111, the latter on and off. The card's acceptance asks for a 「测试开关」 (test switch), so the switch is sanctioned rather than a workaround under Prime Directive 5.
  • Coordinator's open item (on the record page, 「编辑应用」 (Edit app) shown directly or folded into 「更多」 (More)): built shown directly, as the card's default says.
  • Coordinator's unverified item (the help-menu items): answered in the claim's premise. There are five items, and HelpMenu keeps all five.
  • Comments slot order (card: comments first in the group): with the group on, feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114's comment icon would sit before the record's buttons rather than first in the shell group. The PR leaves this to 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 by design, and the group is off here, so nothing shows. It is escalated, not answered. See should-fix 1.
  • SQL push-down (Prime Directive 5): no finding. The diff adds no data read, id materialisation or in-app join.
    • HelpMenu's meta.getItems('doc') plus its client-side _packageId filter is a metadata-registry read moved verbatim from AppHeader, not a data query, and it runs only when the menu opens.
    • useAppStudioEntry's matchAppBySegment runs over the already-loaded metadata.apps, the same as the old inline code.
    • AppPageRecordRead's $top: 1 read is untouched.

Should-fix (non-blocking)

  1. Write the hand-offs this PR defers onto 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 itself. The PR body and ShellPageActions.tsx say 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 turns SHELL_PAGE_ACTIONS_DEFAULT on, deletes the os:shell:page-actions switch, and moves feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114's comment icon into the group's comments slot, which is first by the card's order. 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112's body says only 「打开「外壳(一)」里的右上角按钮组」 ("turn on the top-right button group from Shell (1)"), and none of its comments names the switch deletion or the comments-slot move. One comment on 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 closes this.

Nits (no action needed)

Implemented-by: claude/project-thread-k8r3np
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T16:58Z · #36111, the shared page header gets one page-actions group (epic #36107 phase 1). Reports get the shared page header. The comments slot, edit app, AI and help sit in one app-shell group, off by default while the top bar exists; #36112 turns it on. Help keeps its five items. Pages that draw their own title follow ruling 7064921354 (option A: the authored title steps down to h2, nothing is hidden).

Reviews:

Gates on this head:

  • Clause-②: yes (widening): one new root export, PageTitleHostContext on @object-ui/components. Metadata-protocol: none.
  • check-governed-merges --pr 36131 reads NOT governed (+1,332/−190, 27 files).
  • The seat read K by hand: 11 first-parent commits since the merge base. skills/ paths changed on main only; this PR touches none, so nothing to re-merge.
  • 49 check-runs are success, 10 skipped, none failed. Mergeable is clean.

The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #36111. hotcrm#2729 holds the HotCRM duplicate-title follow-up. #36112 and #36113 start after this merges, with #36141 first.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 16:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 713545f Nov 21, 2026
60 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-k8r3np branch November 21, 2026 17:20
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…objectstack-ai#36129)

repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW

Fixes objectstack-ai#35892

## What changes

On a record page, a related list opened as its own tab (and the same
list in the record drawer) now works like the child object's list page:

- **Head row.** The child list's tile and title on the left, **+ Add**
on the right. The **Open in list** (↗) button is gone.
- **Condition row.** The list page's own Sort (several levels) and
Filter: `@object-ui/plugin-list` exports it as `ListConditionsBlock`,
and because `plugin-detail` sits below `plugin-list`, the record page
hands it to the tab through a new slot,
`RelatedListConditionsSlotContext` (`@object-ui/plugin-detail`), the way
`RecordBodyTableEditorSlotContext` hands in the edit-state editor. It is
a host element, not a registered node type, so the registered-types
ratchet (every registered type is authorable) is untouched. No view
switch, view settings or search. Its labels fold to icons by the row's
own width (narrow tab, drawer, phone); no horizontal page scroll.
- **Grid.** The list page's grid host keys: column menu, select-first
cells with the list page's cell editing wherever the reader may edit the
child object (`listInlineEdit` affordance), row selection with the
floating bulk bar, and the footer row. Bulk delete is offered where the
host hands a row delete and the child object's `relatedRowDelete` row of
the affordance map allows it (the write census names the new site). It
asks once, counting the rows, then sends the selection (up to every
matching row) to the data source's `bulkDelete` in one call; only a data
source without one falls back to the row delete the list was handed, all
rows settled together, as the list page settles them. The tab then shows
how many rows were deleted and how many failed, in the list page's own
words (`objectActions.bulkDeleteSuccess` / `bulkDeletePartial`). Footer
calculations run over every matching row (`findParams`), not the loaded
ones. A status-grouped tab draws no footer row.
- **Loading.** Rows load as the reader scrolls (a growing window of 50,
sentinel 320px ahead) instead of a pager.
- **Counts.** The tab title keeps counting every child; a filter never
changes it. The footer counts the rows the filter keeps. A filter that
matches nothing says so and keeps the condition row.
- **What lasts.** Sort, filter and footer picks last while the reader
stays on the record: across its tabs and between its page and drawer.
They are keyed by the reader as well as the record (as the list page's
draft is keyed by its reader), so another account signed in on the same
tab starts from the default. A reload or another record clears them; a
drawer opened over another record counts as another record, so the tab
behind it starts from the default again, which is the ruling's "another
record". **Discard** appears once something changed and puts the tab
back; there is no Save. The list page's Discard and this one are one
component, `ConditionDiscardButton` (`app-shell`'s `ListDraftActions`
now draws it; same look and behaviour as objectstack-ai#36026).
- A header sort pick joins an existing multi-level sort by the list
page's rule, now shared as `withHeaderSortPick` (`@object-ui/core`).
- The record page (`app-shell` `RecordDetailView`, which the drawer
draws too) fills the slot with the block, lazy-loaded with the first tab
that draws it.

Supersedes the remembered related-tab sort of objectstack-ai#35601 (取代 objectstack-ai#35601 的记住排序),
on ruling
objectstack-ai#35892 (comment)
(session-only). Column widths and order for the related tab move to the
reader's browser, as the list page keeps them, on ruling
objectstack-ai#35892 (comment):
`RelatedList` no longer reads or writes them in `sys_user_preference`;
the `RelatedListPreference` type stays (no narrowing). Keeping widths
after sign-out is objectstack-ai#36110, not this PR.

**Upgrade note** (also in the changeset): the header sort and the column
widths and order an earlier version remembered for a related tab no
longer apply (子表页签里以前记住的排序不再生效). The tab opens in its declared order and
its widths start from the default once. Nothing stored is deleted. The
default sort and columns of every related list are unchanged.

## Why

objectstack-ai#35892 (epic objectstack-ai#35590): the related tab was a reduced list with a pager
and an exit to the list page; the reader had to leave the record to
sort, filter or total the children.

## Verification

Evidence: `/mnt/project-files/build-seat1/35892/` (index `README.md`,
shots in `shots/`), from `examples/app-crm` with this branch's console
build, Acme Corp → Opportunities (70 children). Light and dark at 1440,
720, 375, plus the record pane opened from the list (app-crm has no
drawer navigation).

Measured in the real console:
- Sort + filter chips, Discard after a change and gone after Discard;
kept after another tab and back; cleared by reload.
- Tab title 70 while the footer says 14 records under a filter.
- Scroll loads 50 → 70.
- Footer Sum 3,349,000.00 equals the API total over all 70 rows.
- 375: labels fold to icons, no horizontal page scroll.

**objectstack-ai#36023 leftover 2 (三项实测, in the tab at 1440):**
1. Enter while editing Deal Value (9000 → 9100): `PATCH crm_opportunity
{"amount":9100}`, toast "1 row saved", the selection stays on the same
cell.
2. Tab while editing (9100 → 9000): `PATCH {"amount":9000}`, the
selection moves one cell right.
3. Enter on Expected Close: the calendar opens directly under the cell
(cell bottom 345px, popover top 347px, same left edge) with Today /
Tomorrow / Next week / Clear; picking the 15th sends `PATCH
{"close_date":"2026-12-15"}`, the cell reads "Dec 15" and the calendar
closes.

The edited record was restored afterwards.

Tests:
- New: `RelatedList.tab-35892.test.tsx` (13, including a host that
supplies no condition row, the batch delete in one call, a partial
failure on both paths, and a second reader starting from the default),
`relatedTabConditions-35892.test.ts` (5),
`ListConditionsBlock-35892.test.tsx` (5).
- Rewritten: `RelatedList.enlargedListGrid-28865.test.tsx` (growing
window, scroll load, footer, column widths no longer stored
server-side), `RelatedList.enlargedToolbar-27524.test.tsx` (no ↗, header
sort not written, remembered sort not read).
- `vitest run packages/plugin-detail`: 398 files / 3664 tests passed.
plugin-list, i18n, app-shell views, core: see the checks.
- Builds of `@object-ui/plugin-list`, `plugin-detail`, `app-shell`,
console: pass. ESLint on the changed files: 0 errors. Eager
ui-components budget unchanged in kind (339.5 / 346.7 KB).

Overlap (`scripts/pm/overlap-check.mjs` at 5b76d7a): merges cleanly
with `origin/main` (main merged in at 5bad102, which also took objectstack-ai#36096:
the `@object-ui/core` import line of
`ui/packages/plugin-list/src/ListView.tsx` keeps both
`isObjectExportOffered` and `withHeaderSortPick`) and with objectstack-ai#36131,
objectstack-ai#36128, objectstack-ai#36123, objectstack-ai#36114. With objectstack-ai#36136 one line conflicts: the
`@object-ui/plugin-detail` import line of
`ui/packages/app-shell/src/views/RecordDetailView.tsx`, where this PR
adds `RelatedListConditionsSlotContext` (plus the
`./relatedListConditions.js` import) and objectstack-ai#36136 adds `stepDisplayText`
to the `./RecordApprovalsPanel.js` import. Whichever lands second keeps
both.

Clause-②: yes
Metadata-protocol: none

Clause-② is a widening: new exports `ListConditionsBlock` and
`ListConditionsHostProps` (`@object-ui/plugin-list`), the slot
`RelatedListConditionsSlotContext` and `RelatedListConditionsProps`
(`@object-ui/plugin-detail`), new exports `ConditionDiscardButton` and
its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and
`withHeaderSortPick` (`@object-ui/core`), new i18n keys in every locale
pack (`listConditions.chips.discard`,
`listConditions.chips.discardHint`, `detail.relatedNoMatches`,
`detail.deleteRowsTitle`, and the count family
`detail.deleteRowsConfirmation` with the plural slots each pack needs);
nothing removed or renamed.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [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_01L6bhgTKEPqtmiK9SGpHsmW

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgTKEPqtmiK9SGpHsmW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

外壳(一)页面头部:报表和自定义页面补上统一头部;每页右上角固定一组按钮(评论、编辑应用、AI、帮助)

2 participants