Repository navigation
feat(console): page header on reports and custom pages; the shell's top-right button group, off while the top bar stands (#36111) - #36131
Conversation
…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>
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读报表、报表目录和自定义页面改用和列表、仪表盘一样的页面头部;右上角按钮组(评论位、编辑应用、AI、帮助)已经做好,但默认关着,只有浏览器里的测试开关能打开,手机上从不出现,所以合并后大家看到的只有这几个页面多了头部。代码我读完了,没有必须改的地方,作者自己写的页面头部平台一律不藏。还差两样才能给最终结论:CI 跑完全绿,以及截图(报表、自定义页面改动前后,按钮组打开时的样子)。 席位核对 — HOLD (L1-c, code read clean) · repo:objectstack#1 · head
|
…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>
Claude-Session: https://claude.ai/code/session_01L6bhgVcCRGjxwhDjrRVYsY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY Evidence for #36111 (head Report and custom pages, before → after (
The group turned on (
Found while shooting, fixed on this branch: the list page's top row is its view bar since #35878, not Generated by Claude Code |
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读上一轮要的截图都补齐了,内容没问题:报表、自定义页面(含 html、react 页面)页名只出现一次,按钮组打开后六种页面位置一致,窄窗口收成图标,默认关着。但这个版本的 CI 红了,而且是这个 PR 自己引起的:记录页现在多引用了一个会带出整套元数据加载的模块,十几个原有的记录页测试在加载时就崩了,端到端构建也因此失败。用户界面没有坏,但不能合并,需要把这个引用拆轻。L1 结论:请修改后再审。 席位核对 — REWORK (L1-c, delta) · repo:objectstack#1 · head
|
…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>
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读上一轮 CI 红的原因已经修好:记录页、列表页和页面头部不再直接引用按钮组,改由外壳通过一个很轻的接口把按钮组递进来,所以不会再带出整套元数据加载。CI 全绿。截图早已核对过:报表、自定义页面(含 html、react 页面)页名只出现一次;按钮组默认关着,打开后六种页面位置一致,窄窗口时收成图标。L1 结论:接受,可以交给座位跑 L2 并落地。 席位核对 — ACCEPT (L1-c, final) · repo:objectstack#1 · head
|
|
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 Contract review brief — PR #36131 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: 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 ① Derived judgmentsPublic surface:
Public surface:
Accept-set (what an author can write)
Import graph: right. The red on ② Semver level
③ Boundary flags
Should-fix (non-blocking)
Nits (no action needed)
Implemented-by: VERDICT: PASS |
|
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 Reviews:
Gates on this head:
The seat readies this PR and arms auto-merge in the same step. The PR carries |
…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>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY
Fixes #36111
Clause-②: yes (widening):
@object-ui/componentsadds one export,PageTitleHostContext(re-measured on the builtdist/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).
维护者速读
page:header照旧显示(文档结构上降成二级标题,外观不变);标题和页名相同的页面会看到页名两次,这是裁定接受的代价。showcase 的 my-work、project-workspace 在本 PR 里删掉了自己那一行标题。hotcrm 销售首页另开卡。localStorage['os:shell:page-actions'] = 'on'可以打开它检查。去掉顶栏的 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 会把默认改成开并删掉这个开关。手机上不画。manage_metadata的人看不到。What changes
The shell's top-right button group (
@object-ui/app-shell, newlayout/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 byConsoleLayout: OFF by default (SHELL_PAGE_ACTIONS_DEFAULT = false) while the top bar still draws the same buttons. The browser switchlocalStorage['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.useAppStudioEntry, extracted fromAppHeader, so the group and the top bar pencil compute one gate and one target (useStudioEntryGate+appStudioRoutePath). Words beside theBlocksicon (the record's 「Edit」 keeps the pencil), words hidden belowlgwith the tooltip keeping them; a read-only package gets the eye and 「Open {app} in Studio」; a caller withoutmanage_metadatagets nothing.HelpMenu(newlayout/HelpMenu.tsx): the 「?」 menu lifted out ofAppHeaderunchanged, used by both hosts.Where each page draws it
PageHeader: after the page's own actions, behind a hairline divider; a header with no actions draws the group alone. Turned off, the header renders exactly what it did before.ObjectViewBarTrailing): since 列表工具区重排:对象名并进视图行,「选项」改成视图名旁的「视图设置」并直接摊开列清单,筛选和排序的入口并到标签行,排序并成一个标签 #35878 its top row is the view bar, notPageHeader, so the bar's right end draws the group after ⋮, behind the same hairline.RecordDetailView: in the navigation row throughRecordTopBar'sframeslot, before ✕ (not in an embedded record).comments) for the list and record pages; nothing fills it yet. feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) #36114's comment icon moves into it when 外壳(二)去掉顶栏:侧栏常驻可收起;应用名、搜索、头像进侧栏;应用菜单只做换应用;提示条移到内容区顶部 #36112 turns the group on.Reports and custom pages use
PageHeaderReportViewandAppReportIndexView: their bespoke title blocks becomePageHeader(title, description, the report edit button as the page's action).PageView: from the phone breakpoint up, every custom page under/apps/APP/page/NAMEopens withPageHeader(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: newconsoleHeaderprop; the console route drawsPageHeaderwith 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)PageTitleHostContext(exported): while a host sets it, the page renderer skips its implicit page-nameh1and description, as the dashboard renderer does underhideHeaderText.PageTitleDemotedContext: under such a host, an authored titledpage:headerdraws its title ash2with the same classes, so the document keeps oneh1(objectui#3434). Record pages are untouched.Showcase:
my-work.page.tsandproject-workspace.page.tsdrop theirpage:headertitle, 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
page:headertitle equals its name shows the name twice (header small, body large). Accepted in the ruling; hotcrm's sales home gets its own card.page:headertitle is now anh2under the console header (looks the same).PageHeadertoo (they had their own header block there as well).PageView.editInStudio*pins and theAppHeaderobjectui#12198 pin now run at a phone width, where the floating pencil still lives; what they assert is unchanged.Verification
layout/__tests__/ShellPageActions-36111.test.tsx(switch, scope, phone, order,PageHeaderplacement / divider / off, 「Edit app」 target equals the pencil's derivation, label + icon +lgbreakpoint, read-only eye, member gets nothing);views/__tests__/PageView.consoleHeader-36111.test.tsx(title once in the header, authoredpage:headerstays ash2, group placement on/off, phone face);RecordDetailView.topBar-27524gains the group-before-✕ case and the off case;ObjectView.shellPageActions-36111pins the list view bar's end (on and off).origin/maincame in: 117 files / 1,043 tests pass.pnpm run type-checkclean for@object-ui/app-shelland@object-ui/components; eslint 0 errors on changed files;@objectstack/example-showcasebuilds.PageTitleHostContextis the one new root export.Human Minimum
packages/specholds no runtime logic. (untouched)main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVcCRGjxwhDjrRVYsY