Repository navigation
Commit cbd582f
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuRPbvLUvEMeWbp9r3931xQ9)_
repo:objectstack#1 · os-sales · session_01L6bhgVKUaox9fRxbdYMLvf
Part of #36112 (PR A of two: everything leaves the desktop top bar; the
sidebar's docking model is PR B, after the maintainer's ruling on the
fold)
Clause-②: no
Metadata-protocol: none
Seat claim: [#36112
claim](#36112 (comment))
(split A/B; F3–F6 as proposed).
## 维护者速读
- **电脑宽度(768 px 起)应用页不再有顶栏**,页面从窗口最上沿开始。手机照旧有顶栏和底栏。
- 顶栏上的东西各自搬家:
- **侧边栏第一行**:应用图标和名字,点开是「切换应用」菜单(当前应用打勾;服务器给这个人 Setup 时 Setup 也在里面;超过 8
个应用出现搜索框;工作区管理员且有建模权限的人在最下面看到「添加应用」:用 AI 搭建或在 Studio
新建、从模板开始、应用市场)。旁边是收起按钮。菜单里没有「回首页」「所有应用」「在 Studio
中编辑」(「编辑应用」在页面右上角的按钮组里,#36111)。
- **侧边栏第二行**:搜索(⌘K)和通知铃铛。
- **侧边栏底部**:账户菜单(头像、名字;封闭组织下第二行是组织名),里面的项目和原来头像菜单完全一样;预览版/测试版部署多一行阶段标记。
- **内容区顶部**:模拟登录、读取频率、存储用量这些常驻横幅,以及「连接断开」提示,宽度跟内容一样。
- **页面头部**:侧边栏收起时,页面头部最左边出现展开按钮;没有页面头部的页面(比如搜索结果)展开按钮在内容左上角。
- 右上角按钮组(#36111)现在**一直打开**,`os:shell:page-actions` 开关删掉了。
- ⌘⇧H 回首页照旧,在任何宽度都有效(由应用布局装,不再依赖顶栏)。电脑上没有点击回首页的入口(F3,席位已认可)。
- **不变**:侧边栏 1416 px 以下自动收起、「保持展开」的选择都照旧(这部分归 PR
B,等裁定)。`/home`、组织页、Studio 落地页的顶栏不动。
- **文档页按现状保留顶栏**:应用的文档页(`/apps/<app>/docs…`)本来就不挂侧边栏(#35424),本 PR
不动它,所有宽度照旧有顶栏。卡上「不做的」写了「不接入文档页(第三阶段)」,所以这在本卡范围内,到第三阶段接文档页时一起定。
- **新手引导**:`chrome/OnboardingWalkthrough.tsx` 在 main 上是关掉的空组件(直接返回
null),没有任何一步指向顶栏,所以没有要改的引导步骤。
## What changes
**New modules** (`@object-ui/app-shell`)
- `layout/SidebarAppMenu.tsx` — the sidebar's first row from 768 px up:
`AppMark` + name opening a menu that only switches apps. Rows are
`useLauncherApps`' list (the one Home's tiles and the phone sheet draw),
the current one checked; a search field past `APP_MENU_SEARCH_FROM = 8`;
「Add app」 (sub-menu) only for a workspace admin who may author metadata,
on a deployment with AI authoring or a marketplace. The sub-menu is a
separate component, so nobody else pays the agent-catalog read behind
「Build with AI」.
- `layout/AccountMenu.tsx` — the avatar menu's body lifted out of
`AppHeader` verbatim, with two triggers: `avatar` (the phone's and
`/home`'s bar) and `sidebar` (the sidebar foot: avatar, name, walled
organization; stage chip row on preview/beta).
- `layout/InboxBell.tsx` — the bell and its popover, shared by the bar
and the sidebar head.
- `layout/chromeBannerHost.tsx` — `ChromeBannerSlot` /
`ChromeBannerHost`: the shell's standing banners (`ConsoleShell`) portal
into the content area's banner box from 768 px up; inline otherwise.
- `layout/ConnectionBanner.tsx` — the lost-connection notice (offline /
reconnecting / disconnected / error; silent when connected).
- `chrome/goHomeShortcut.ts` — `useGoHomeShortcut`, moved out of
`AppHeader`; `ConsoleLayout` installs it at every width.
**Changed**
- `ConsoleLayout`: `showHeader` only on a phone or an app docs page
(docs pages stay as today; they are the epic's phase 3); banner host +
connection notice at the top of `console-banners`;
`ShellSidebarExpandFallback` at the top of the route slot.
- `UnifiedSidebar`: desktop head (app menu + collapse; search + bell),
foot (keep-open + account menu); the hidden-sidebar edge zone spans the
full height (no bar above it). The app switch goes through
`confirmUnsavedLeave`.
- `ShellPageActions` / `shellPageActionsSlot`: the group is always on
(switch removed); a new expand-button slot that `PageHeader`,
`RecordDetailView`'s navigation row read while the sidebar is collapsed,
and a corner fallback for routes with no shell header.
- `consoleSidebarRail.sidebarTrigger()` skips triggers inside `[inert]`
(the hidden panel's own collapse button).
- `AppHeader`: uses `AccountMenu` / `InboxBell`; drops the go-home
listener (now the layout's).
- i18n, 11 locales: `sidebar.collapse`, `sidebar.expand`,
`layout.appSwitcher.addApp` (zh-Hant regenerated).
- Docs: `frontend/app-shell.mdx` (when the Console draws the bar),
`ai/connect-mcp.mdx` (where the account menu is).
**Tests**
- New: `ConsoleLayout.noTopBar-36112` (no `header` at
768/1024/1280/1440, phone keeps it, docs page keeps it, banners drawn
once in the content area, connection notice, expand button in the page
header and the corner fallback), `SidebarAppMenu-36112` (rows, checked
app, Setup only when served, no home/All apps/Studio entry, switch,
search past 8, 「Add app」 gates).
- Rewritten for the bar's absence on a desktop:
`AppHeader.homeMark-12605` and `AppHeader.unsavedEditsLeave-13231` (the
chord is the layout's; a CONTROL pins that the bar alone installs
nothing), `AppHeader.phoneTargets-29075` (the account menu's own
module), `ConsoleLayout.appBrandingLogo-10827` (the logo is on the
sidebar's app menu row on a desktop, the pill on a phone),
`ConsoleLayout.skipToContent-13130`,
`ConsoleLayout.robotTogglesDrawer-34608`,
`ConsoleLayout.previewFrameDock-26470`,
`ConsoleLayout.phoneRecordOneBar-28483`,
`UnifiedSidebar.hiddenCollapse-35062`, `consoleTopBar.height-12639`,
`ShellPageActions-36111` (switch test removed),
`RecordDetailView.topBar-27524`,
`KeyboardShortcutsDialog.wiredOnly-11674` (go-home row now listed inside
an app, with its probe), `unsavedEditsLeave.census-13253`.
## Verification
- `tsc --noEmit` (app-shell) clean; `eslint --quiet` on every changed
file clean.
- Vitest: the whole `layout/` folder, the 145 app-shell test files that
reach the changed modules, the tests of #36113/#36150 merged since, and
`@object-ui/i18n` (key parity, zh-Hant generated) — all green locally.
The full app-shell suite runs in CI.
- Screenshots: in the project's evidence folder `build-seat1/36112/`
(posted as a comment once taken).
---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgVKUaox9fRxbdYMLvf)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgVKUaox9fRxbdYMLvf
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgVKUaox9fRxbdYMLvf -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent fa30414 commit cbd582f
45 files changed
Lines changed: 1648 additions & 564 deletions
File tree
- .changeset
- content/docs
- ai
- frontend
- ui/packages
- app-shell/src
- chrome
- console
- layout
- __tests__
- views
- i18n/src/locales
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| 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 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
| |||
| 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 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
| |||
0 commit comments