Repository navigation
Commit 1705ec9
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3C2c1xGXXZsMkWWNgTn713)_
repo:objectstack#1 · os-sales · session_01L6bhgViUwAnnUKNBhbk8wi
Fixes #36113
Clause-②: yes (widening): `@object-ui/plugin-list` exports two new
types, `ListExportDoor` and `ListToolbarTrailingState`, and `ListView`'s
`toolbarTrailing` host prop is called with a second argument;
`@object-ui/i18n` adds two keys, `console.objectView.newObject` and
`console.objectView.importExport`, in every locale. A host that reads
only the first argument is unchanged. Nothing is removed or re-typed.
Metadata-protocol: none
Seat claim: [#36113
claim](#36113 (comment))
(premise and forks F2 to F6 as proposed; F1 = B).
## 维护者速读
- 列表页顶部恢复成三行:**第一行是对象行**(对象图标和复数名,比如「客户」,右边是 #36111
的右上角按钮组,按钮组开着的时候才画);**第二行是视图栏**(左边视图切换和「视图设置」,右边搜索、「导入 /
导出」、作者配的列表按钮、「新建客户」、⋮);**第三行是条件行**(排序、筛选,有草稿时右边是「放弃 / 保存」),和以前一样。
- 视图栏不再在最前面写对象名,对象名回到第一行。
- 「导入」从 ⋮ 里搬出来,和导出合成一个「导入 / 导出」按钮。只有一个入口时按钮直接叫「导入」或「导出」。⋮
里还留着对象描述和「加入收藏」,所以 ⋮ 保留。
- 「新建」按钮写出要新建什么:「新建客户」「新建任务」(新文案 `console.objectView.newObject`,11
种语言都有)。
- 窄屏:列表宽度小于 896px 时「导入 / 导出」收进 ⋮;小于 768px 时搜索只剩图标(不显示正在搜的关键词)。
- 「视图设置」里的导出入口**保持不变**(席位裁定 F1 =
B)。所以现在导出有两个入口:新按钮和视图设置。如果只想留一个,去掉视图设置里那段是一个小的后续卡。
- 手机列表不变。
- 代价:第一行在 #36112 去掉顶栏之前会让表格往下多 44px。
## What changes
**The list page's top** (`@object-ui/app-shell`)
- **The object row.** `ObjectView` always draws `ObjectViewPageHeader`
again. While the list hosts the view bar (`listBarHosted`), the header
draws in its list posture with no acts of its own (`hosted`): the
object's icon and plural name, ended by the shell's top-right button
group where the shell turns it on (`os:shell:page-actions`). Before,
`listBarHosted` hid this header and the view bar led with the object's
name (`ObjectViewBarObjectName`, now removed).
- **The view bar's end** (`ObjectViewBarTrailing`): the list's search
tools, then 「Import / Export」 (`ObjectViewImportExportMenu`, test id
`object-view-import-export`), then the authored list toolbar actions,
then 「New {object}」, then ⋮ More. The shell group no longer draws here,
because it moved to the object row.
- **「Import / Export」** holds Import, a separator, and one entry per
export format the reader may use (`object-view-export-<format>`; an
export error shows under them). Its label names the single entry when
only one exists (「Import」 or 「Export」).
- **⋮ More** keeps the object's description and 「Add to favorites」;
Import is no longer in it. More draws only when it has something to
hold.
- **The fold.** While the list container (`@container/list`) is narrower
than `VIEW_BAR_IO_FOLD_WIDTH` (896px), measured with a `ResizeObserver`,
「Import / Export」's entries fold into ⋮ More. Below 768px the search
button keeps its icon alone, without the active keyword (container query
`@max-[48rem]/list`).
- **The create button** reads `console.objectView.newObject` (「New
{{object}}」, every locale), with the object's served label;
`useObjectViewHeaderChrome` takes it as `createLabel`.
**The list hands its export to the host** (`@object-ui/plugin-list`)
- `toolbarTrailing(tools, state)`: `state.export` is the list's export
door (`ListExportDoor`: `formats`, `run`, `busy`, `error`), absent where
the list offers no export (no `exportOptions`, export not permitted, or
no format left). `run` refuses a format outside `formats`. The phone
list passes `{}` (no export door).
- The view settings popover is unchanged: its export footer stays (F1 =
B).
**i18n**: `console.objectView.newObject` and
`console.objectView.importExport` in all 11 locales.
## Merged #35547 changes this adjusts
- **#35878 一.1** (the view bar leads with the object's name, no object
row): flipped. The object row is back and the view bar drops the name,
per the card's mockup (maintainer note 9).
- **#35878 一.2** (the view bar's right end): reordered. Search → 「Import
/ Export」 → authored actions → 「New {object}」 → ⋮.
- **#35878 三** (narrow bar): extended. Below 896px 「Import / Export」
folds into ⋮; below 768px the search keeps its icon alone.
- **#35548** (list frame geometry): the 44px page bar is back above the
view bar; the frame e2e pins the new tops (page bar 48, view bar 92,
table head 172).
- **objectui#12427** (Import in ⋮ More): Import moves out of ⋮ into
「Import / Export」.
- **#35663** (view bar alignment): unchanged on the left; the right end
gains the new button at the same 28px height.
- **#36111** (the shell group at the view bar's end, after ⋮): moved to
the object row's end, where `PageHeader` draws it for every other page.
- **#35446** (the header's own fold of its acts): no longer used on
lists, because the hosted header carries no acts.
## Why
Card #36113, in epic #36107 (remove the top bar). Once the top bar goes
(#36112), the object row is where the page's name and the shell's button
group live, as on dashboards, reports and custom pages. The view bar
then holds only the view and the list's acts.
## Side effects reviewers should know
- Until #36112 removes the top bar, the list's table starts 44px lower
(the object row), and the object's name shows in the row while the top
bar's breadcrumb also names the app.
- Export now has two doors on desktop: 「Import / Export」 and the view
settings footer. Removing the footer is a small follow-up if one door is
wanted.
- Tests that opened ⋮ More to find Import now open 「Import / Export」
(`importPredicates`, `managedEnvironmentUsers-13330`, e2e
`import-console-undo`); `headerFold-12705` expects 「New Opportunity」.
## Verification
- New pins: `ObjectView.shellPageActions-36111` gains a #36113 block:
row order (object row, view bar, condition row); the view bar end's
order (search → import-export → 「New Lead」 → ⋮); the 「Import / Export」
menu's contents, with ⋮ holding neither; the fold below 896px; the view
settings footer still offers `display-export-csv`. `ListView.harness`
gains `toolbarTrailingExportDoor-36113` (the host is handed the formats
the footer offers and the footer keeps them; the door runs the list's
export; it refuses a format it does not offer; no door where the footer
draws no entry). `ObjectView.objectListTitle-27950` expects the one
list-posture header.
- Scoped runs: app-shell `ObjectView.*` (98 files) pass;
`@object-ui/plugin-list` and `@object-ui/i18n`: 287 files, 3,947 tests
pass.
- `type-check` clean for `@object-ui/app-shell` and
`@object-ui/plugin-list`; eslint 0 errors on changed files.
- e2e `list-frame-geometry-35548`, `list-left-edge-35663`,
`list-header-narrow-35446`, `list-no-actions-column-35554` and
`import-console-undo` updated to the new face. `list-left-edge-35663`
now draws the object row with `PageHeader`'s own list classes, and the
view switcher's icon joins the one left edge (16 px, measured). Locally,
the five list geometry specs plus `list-toolbar-view-name-phone`: 44
passed.
- Derived local gates (`scripts/pm/dispatch-gates.mjs`): 48 derived, 48
run, every one exit 0; `--ran` reconciliation reports 0 not measured.
## Evidence (running showcase, Accounts list, 1440 × 900 unless named)
Shot before (main at 269fb67) and after (this branch) against the same
server and data.
| | before | after |
|---|---|---|
| Object row | none (`page-header` absent) | `page-header` at top 48, 44
px |
| View bar | top 54, leads with 「Accounts /」 | top 98, leads with the
switcher |
| Table head | top 128 | top 172 (+44, the object row) |
| View bar end | search · 「New」 · ⋮ (Import inside ⋮) | search ·
「Import」 · 「New Account (Success Overlay)」 · ⋮ |
| ⋮ More | description · Import · Add to favorites | description · Add
to favorites |
| 1280 / 1024 | same as 1440 | same as 1440; 「Import」 stays on the bar |
| 880 | Import inside ⋮ | 「Import」 folds into ⋮ (⋮ holds description ·
Import · Add to favorites) |
| Draft sort | Discard / Save at the condition row's right | unchanged |
| Shell group on (`os:shell:page-actions`) | after ⋮ at the view bar's
end | at the object row's right end |
| Phone 375 | — | pixel-identical to before, light and dark |
Showcase serves no export door on any list (the one view that authors
`exportOptions`, Tasks · In Progress, shows export in neither the new
button nor the view settings footer, before or after), so the button
reads 「Import」 there. The combined 「Import / Export」 face, its export
entries and the fold of both are pinned in
`ObjectView.shellPageActions-36111`.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(untouched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; eslint passes on every changed file (0
errors).
- [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: n/a.
- [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 (the 维护者速读 summary is
for the maintainer).
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgViUwAnnUKNBhbk8wi
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgViUwAnnUKNBhbk8wi -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent a2dc858 commit 1705ec9
30 files changed
Lines changed: 606 additions & 165 deletions
File tree
- .changeset
- docs/qa/platform-checklist/areas
- ui
- e2e
- import-console
- packages
- app-shell/src/views
- i18n/src/locales
- plugin-list/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
| 660 | + | |
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
665 | | - | |
| 664 | + | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
| 735 | + | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
| 836 | + | |
| 837 | + | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | | - | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
0 commit comments