Skip to content

feat(app-shell): on a phone, sign-in lands in an app whose home is its whole menu, and the bottom bar is fixed to Home, Notifications, Approvals and search - #35912

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-dtwytl
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/project-thread-dtwytl

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgU7ah5dc72qr3aWHFu

Fixes #35881
Fixes #35882

Clause-②: no
Metadata-protocol: none
Ruling-ref: 7045309332 (maintainer, 2026-11-20 16:50:40Z, 「上次用的优先」: on a phone the last-used app first, the declared default only when there is no record yet) · 7045325067 (maintainer, 2026-11-20 16:50:46Z, epic #35880 constraints: one console at narrow width, and a "Shared with desktop" section at acceptance)

维护者速读

  • 手机上的用户登录后直接进上次用的应用;应用首页就是这个应用的全部菜单;底部栏固定为首页、通知、审批和一个搜索按钮。电脑和平板上看到的不变。
  • 属于「手机端重做」专题的前两张卡:登录去向和应用首页,以及底部固定三格。
  • 出问题时影响的是手机上的导航(进错应用、菜单或底部栏不对);不动数据,撤回这个 PR 就恢复原样。
  • 无

What changes (phone width only, below 768 px)

Where sign-in lands (#35881). / on a phone opens the app the person used last. The declared default (isDefault) is used only when there is no record yet. With one app it opens that app; with several and neither, it opens the app list. The order lives in one function, resolvePhoneLandingPath in ui/apps/console/src/components/RootLandingRedirect.tsx, with a test for each order. The last app is a per-person preference row (ui.app.last, LastAppProvider), recorded by ConsoleLayout whenever an app is open. It joins the console's one shared preference read (the budget test pins that it adds no request). / waits for that read for at most 2 s, then resolves without it. Desktop landing is unchanged: resolveLandingPath is not touched.

The app's home is its whole menu (#35881). On a phone, /apps/SEGMENT renders PhoneAppHome instead of redirecting to the landing entry. The menu in it is the sidebar's own: UnifiedSidebar draws its navigation block (context selectors, area switcher, NavigationRenderer with the same member gates, labels, icons, groups and order) a second time, through a portal into the page's slot. So the page cannot list an entry the sidebar hides, or order them differently. 「‹」 on a deeper page goes back to it, and the scroll position is restored. An app that shows the member no entry still renders the no-access state.

App switcher (#35881). On a phone, the app pill at the top left opens a bottom Sheet: 「Current app」 checked, 「Other apps」 with Setup last, and a search box at the bottom (PhoneAppList). A phone's /home is the same list as a page. The desktop dropdown is unchanged.

Bottom bar (#35882). PhoneAppNavBar is rewritten in place. It has three fixed cells and a round search button:

  • Home opens the app's home.
  • Notifications opens sys_inbox_message?view=mine, the bell's 「View all」 target.
  • Approvals opens system/approvals, under the app the bell hosts them under (resolveHostAppSegment).
  • Search opens the command palette.

The badges are the bell's two addends from useInboxBell: unread topics and pending approvals. The bar is mounted only on those three pages (isPhoneTabRoute). A list, a record, a form, a dashboard or a page has the screen to itself. The app bar there shows 「‹」 and the page title, and on the three tab pages it shows the app pill with the app's name.

Removed with the old bar (#34594 and its follow-up #35020):

  • menu entries in the bar, the 「More」 cell and its highlight
  • the stars that pinned entries, and the drawer's phone search box and pin hint

Pins already stored are no longer read. Nothing deletes them. The drawer still opens with the left-edge swipe.

Shared with desktop

Phone part Uses Kept separate, and why
App home menu The sidebar's own NavigationRenderer block in UnifiedSidebar (same gates, area switcher, labels, icons), portalled into the page Only the container: a page instead of the drawer. Phone rows drop the desktop row action (pin/star) and the Favorites rows, as the drawer did.
App switcher AppSwitcher (same trigger, same onAppChange, same appAddressSegment address), useLauncherApps (same app set as the desktop dropdown and Home tiles), AppMark, Sheet side="bottom" from @object-ui/components The list body PhoneAppList is new, because the desktop dropdown's menu items are not a touch list with search. It is shared between the sheet and the phone /home. The phone sheet holds the list alone. 「Back to home」 and 「All apps」 are dropped because they would open that same list (a phone's /home is it), 「Settings」 because Setup is a row in the list, and 「Edit / Open APP in Studio」 because Studio authoring stays a desktop entry.
Bottom bar The console's existing phone bar PhoneAppNavBar (#34594), rewritten in place; useInboxBell + groupNotifications (the bell's own counts); the bell's own inbox targets; useCommandPalette (the top bar's search) @object-ui/layout's MobileBottomNav (the AppSchemaRenderer host) is not used: it draws the app's first five menu entries, which is the app-following bar #35882 replaces.
Landing resolveLandingPath (desktop order) is the fallback inside resolvePhoneLandingPath; the last app rides the shared sys_user_preference read (UserStateBridge) The last-app-first rule applies only on a phone, per ruling 7045309332.
Width switch usePhoneViewport / useSidebar().isMobile (the existing < 768 px switch) none

Tests

New:

  • layout/__tests__/PhoneAppNavBar.fixedTabs-35882.test.tsx: the three pages, the cells and their targets, the lit cell, another app, search, badges (9+ cap, topic count), with CONTROLs.
  • layout/__tests__/AppSwitcher.phoneSheet-35881.test.tsx: sheet order (current, others, Setup last), search, pick by address, name on tab pages, desktop CONTROL.
  • console/__tests__/AppContent.phoneAppHome-35881.test.tsx: the phone app root renders the home and stays at /apps/crm, no-access still shown, 1024 px CONTROL redirects.
  • apps/console/.../RootLandingRedirect.test.ts: resolvePhoneLandingPath, one test per order (last app wins, its address, no record → default, single app / /home, gone/hidden/off ignored, desktop CONTROL).
  • apps/console/.../RootLandingRedirect.route.test.tsx: the real / route on a phone: last app wins, default with no record, the bounded wait, desktop CONTROL.

Migrated:

  • UnifiedSidebar.phoneNavBar-34594.test.tsx → UnifiedSidebar.phoneAppHome-35881.test.tsx (git mv, rewritten): the app home shows the sidebar's menu in order with groups and hrefs, no star/search/pin hint/Favorites, and CONTROLs at 1024 px and without the page.
  • ConsoleLayout.phoneRecordOneBar-28483.test.tsx: the bar describe now pins the three tab routes, Home's address, eight deeper routes with no bar, and the 768/1440 CONTROL. The inset padding is 3.5rem.
  • AppHeader.sidebarTrigger-12429.test.tsx: 「‹」 goes to the app's home on a deeper page; on the tab pages there is no 「‹」, the pill names the app, and there is no search or bell up top; 768 px CONTROL.
  • consoleUserPreferenceBudget.test.tsx: the ui.app.last key joins the one shared read; one more debounced write.
  • HomePage.phoneTapTargets-29147.test.tsx: at 375 px with apps, Home is the app list and asks for no checklist placement. The 1024 px checklist CONTROL is kept.
  • ui/e2e/live/phone-nav-drawer-back-29131.spec.ts: opens the drawer by the left-edge swipe, because 「More」 is gone.

Voided (the behaviour is removed by #35882):

docs/qa/platform-checklist: no item names the old bar; none changed.

Verification

  • vitest (from ui/): every test file under ui/packages/app-shell/src and ui/apps/console/src that imports a changed module (PhoneAppNavBar, PhoneAppHome, PhoneAppList, AppSwitcher, AppHeader, ConsoleLayout, UnifiedSidebar, AppContent, ConsoleShell, HomePage, LastAppProvider, UserStateAdapters, RootLandingRedirect): 222 files, 1814 passed, 0 failed. The whole app-shell package (2354 files) in one local run passed the container's one-hour limit and was stopped without a result, so the full package is left to CI's sharded Test UI.
  • type-check (tsc --noEmit and the test tsconfig) for @object-ui/app-shell, @object-ui/console and @object-ui/i18n: clean (turbo, 78 tasks, deps built). eslint on every changed file: 0 errors.
  • node scripts/pm/dispatch-gates.mjs --commands: 41 derived families, all run, all exit 0; --ran reconcile: 41 derived, 41 run, 0 NOT-MEASURED. check:i18n-keys, check:i18n-drift, check:i18n-dead-keys: exit 0 (11 keys added and 2 removed in all 11 locales). node scripts/pm/overlap-check.mjs: VERDICT clean (merges with main and with fix(plugin-list): a list's column header opens a menu and keeps a multi-level sort; a sort chip opens the sort panel #35909 and feat(console)!: one way to open a record from an object's list; navigation.mode deprecated there #35910, which share the locale files). Neither file the neighbouring list cards own (objectViewPageHeader.tsx, ui/packages/plugin-list/**) is touched.
  • Changed lines 2740 vs the 3000 threshold: under.
  • Browser, before / after: examples/app-showcase (objectstack dev --seed-admin) with the ui/apps/console Vite dev server over it, headless Chromium. Before = the changed ui/ sources checked out from the merge base; after = this head. Screenshots are kept with the seat.
    • Phone 375×812 (touch), after: the first sign-in with no record (two apps, none default) lands on the app list (「Choose an app」, Showcase and Setup, search box). The app root /apps/com.example.showcase stays there and shows the menu with its groups (Workspace, Data Model…) and icons, Home lit, badges 1 and 3. The pill opens the bottom sheet (Current app ✓ Showcase, Other apps Setup, search). A list (showcase_task) has no bottom bar, with 「‹」 and the title at the top. Notifications and Approvals draw the bar with their cell lit. After visiting the app, / lands in it.
    • Phone, before: the app root redirected to the first entry (Capability Map) with the five-cell bar (four entries + More), and the list drew the bar too.
    • Desktop 1440×900 and tablet 820×1180, before vs after, pixel diff: the app root (redirects to the landing entry in both), the list and /home are identical apart from relative timestamps and one badge's antialiasing.
    • Not measured: Safari / WebKit (no WebKit build in the container); the edge-swipe e2e (phone-nav-drawer-back-29131, nightly) was edited but not run here.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the changed files: 0 errors)
  • 4. One issue, one branch off an up-to-date main, one pull request. (two folded cards, one pull request, per the coordinator's pairing)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (the 维护者速读 block and the maintainer's quotes are Chinese by the maintainer's standing rule)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu

…bottom bar fixed to Home, Notifications, Approvals and search

On a phone (below 768 px):
- `/` opens the app the person used last (a per-person `ui.app.last`
  preference on the shared read), else the declared default, else the
  single app, else the app list.
- `/apps/SEGMENT` is the app's home: the sidebar's own menu drawn into the
  page through a portal, scroll restored on return.
- The app pill opens a bottom sheet listing the apps with search; `/home`
  is the same list as a page.
- The bottom bar is three fixed cells (Home, Notifications, Approvals) and
  a search button, shown only on those three pages; pinned menu entries,
  More and the stars are removed.

Desktop and tablet widths are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — ACCEPT (L1-a)

维护者速读

  • 用户会看到什么(只限手机宽度,768 px 以下):
    • 登录后直接进上次用的应用。没有记录时才进产品设定的默认应用;只有一个应用就进它,有多个且都没有就先选应用。
    • 应用首页就是这个应用的整份菜单,和电脑左侧栏同一份:同样的分组、顺序和权限过滤。
    • 左上角点应用名弹出底部面板切换应用。
    • 底部固定为首页、通知、审批三格加一个搜索圆钮。进入列表、记录这类下一层页面时底部栏不显示,用「‹」回到菜单页。
  • 电脑和平板不变。开发者在像素对比里核过,桌面和平板前后一致。
  • 和你的约束对照:菜单页直接复用侧栏自己的菜单组件(画到第二个位置),所以不会和侧栏不一致。切换应用复用桌面的同一套应用清单和切换逻辑,只换成底部面板。底部栏原地改写旧的手机底栏,没有改用另一个组件,理由见正文。「上次用的优先」照你的裁决写在一个函数里,每种顺序都有测试。
  • 顺带去掉的:抽屉里的菜单搜索框,和「星标固定到底栏」(被取代的 手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594 的一部分)。已存的固定项不再读取,也不删除。
  • 风险:只影响手机上的导航,不动数据,撤回本 PR 即可恢复。要你做什么:无。

Head reviewed: 03d9324aafefcfe7536fce676e91d5107ba433b3.

  • 1 commit, 38 files, +1913/−827 = 2740 changed lines, which is under 3000; re-read at landing.
  • Merge base 8c18a362; git merge-tree onto current main is clean.
  • check-governed-merges --pr 35912: not governed (0 of 38 paths), so ordinary queue landing applies.
  • Fixes #35881, Fixes #35882, Clause-②: no, Metadata-protocol: none.
  • The changeset patches @object-ui/app-shell, @object-ui/console and @object-ui/i18n. Those are the three packages the diff publishes, and patch is the right level for a phone-only behaviour change with no API removed. The new useLastApp and usePhoneViewport exports are additive.

Against the epic's constraints (ruling record 7045325067) and the landing ruling (7045309332)

Constraint Reading at this head
1 · one console at narrow width Every switch is the existing usePhoneViewport / useSidebar().isMobile (< 768 px). There is no second route tree or app.
2 · app home, switcher and bottom bar are the phone-only shell Those three are the only new surfaces: PhoneAppHome, the phone branch of AppSwitcher with PhoneAppList, and PhoneAppNavBar. Everything behind them is the desktop's.
5 · say what is shared and why anything is separate The PR body's "Shared with desktop" table names a component per part. Checked against the code below.
7045309332 · last app first resolvePhoneLandingPath(apps, lastApp) returns the last app when it is still active and not hidden, otherwise resolveLandingPath (declared default, the one app, /home). Desktop still calls resolveLandingPath alone.

The shared parts, checked in code:

  • App home menu. UnifiedSidebar factors its app menu into renderAppMenu(where) and calls it twice: in the sidebar, and on a phone through createPortal into the slot PhoneAppHome holds. It is the same NavigationRenderer, with the same evalVis / checkPerm / checkCap / checkDocTarget gates, area switcher and context selectors. The only fork is extraFavorites off on the home, which is card 手机端:登录后进应用,应用首页就是这个应用的全部菜单,左上角切换应用 #35881 "不做「收藏」分组". So the page cannot list what the sidebar hides. This is the strongest form of constraint 1.
  • Switcher. It uses the same useLauncherApps set, the same onAppChange(appAddressSegment(…)), and Sheet side="bottom" from @object-ui/components. PhoneAppList is the one list for both the sheet and the phone /home.
  • Bottom bar. It uses useInboxBell with groupNotifications (the bell's own unread-topic count), the bell's own targets (sys_inbox_message?view=mine, system/approvals under resolveHostAppSegment, which returns the current app while it is active, so Home returns to the same app), and useCommandPalette.
  • Landing. The last app is one more slot on the shared sys_user_preference read (UserStateBridge attach('lastApp', …)). consoleUserPreferenceBudget.test.tsx pins that it adds no request.

Card acceptance (#35881, #35882)

Each acceptance line maps to a test named in the body. I read the code path for each:

Findings

  • S1 (should-fix, comment only) — ui/packages/app-shell/src/context/LastAppProvider.tsx module docblock.
    • The problem: it says the last app is where a phone lands "when the product declares no landing of its own and the person is served more than one app", and that it is "Read only by the phone's landing (HomePage)". Both are untrue at this head. The code puts the last app ahead of a declared default (ruling 7045309332), and the reader is RootLandingRedirect, not HomePage.
    • Why it matters: a later agent reading the docblock could "fix" the order back.
    • What to do: two words in a comment. The seat may carry it on any later push of this branch rather than spend a CI round on it alone.
  • N1 (nit). The phone sheet drops the desktop dropdown's 「Design in Studio」, Home and All-apps rows. The card's sheet content (current, others, search) does not include them, so this is right, but the "Shared with desktop" table does not say so. The drawer header's 「All apps」 link remains the way out.
  • N2 (nit). The phone home draws a second <nav aria-label="App navigation"> beside the sidebar's (the drawer is closed there, so this matters for assistive tech only).
  • N3 (nit). With the host's isSingleAppSwitcherHidden() set and one app, the pill stays a non-interactive span whose name is sr-only below sm. A tab page then shows no visible app name. This is a host opt-in edge case.
  • N4 (nit). The PR body 速读's last bullet is a bare 「无」 without its 「要你做什么」 label.

None is a must-fix. S1 is the seat's call.

Verification limits

  • vitest is NOT MEASURED here: there is no node_modules locally. The dev reports 222 affected files, 1814 passed. The whole app-shell package did not finish in the container's hour, so the CI Test UI shards are the evidence for the rest.
  • WebKit / Safari and the edited nightly e2e (phone-nav-drawer-back-29131) were not run by the dev. Both are named in the body.
  • CI at read time (18:4xZ): pending. This ACCEPT holds for 03d9324a only once every check run completes success or skipped.

Landing terms

  • Not governed, so the seat lands on this ACCEPT plus a fully green head.
  • Re-read the 3000-line count at landing.
  • A new push (including an S1 fix) needs a delta L1 unless it is a clean main merge.
  • This review does not approve, mark ready, enqueue or request review.

…r, and the phone sheet says what it leaves out

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — delta ACCEPT (L1-a)

维护者速读

  • 这一轮只改了两处注释和繁体中文的两条文字,用户看到的功能和上一轮一样。
  • 注释现在写清「手机上上次用的应用优先于默认应用」,和你的裁决一致,以后不会被误改回去。
  • 繁体中文由生成脚本从简体重新生成,「當前應用」「沒有匹配的應用」两条跟着变了。
  • 要你做什么:无。

Delta: from my ACCEPT 7047822256 at 03d9324a to 5a1092afaffcfbd415c3204f19ae514b3e2e04f4. Two commits, 3 files, +10/−5.

  1. f3eb121a closes S1 (comments only).
    • The LastAppProvider.tsx header now says that on a phone the last app comes first, ahead of the declared default, which applies only with no record yet. It quotes ruling 7045309332 「上次用的优先」, and names the reader as RootLandingRedirect through resolvePhoneLandingPath. Both now match the code.
    • The AppSwitcher.tsx comment says why the phone sheet holds the list alone. Back to home and All apps open that same list, Settings is its Setup row, and Studio stays a desktop entry. This answers N1, together with the seat's PR-body edit to the Shared-with-desktop switcher cell.
  2. 5a1092af regenerates zh-Hant.ts from zh-Hans (gen:zh-hant). Two values change: currentApp 目前應用 → 當前應用 and noAppsMatch 沒有符合的應用 → 沒有匹配的應用. This is generator output, so the drift gate stays the authority. No key was added or removed.

No code path changed. The functional review in 7047822256 stands for this head.

Gates at this head:

  • check-governed-merges --pr 35912: not governed. Size 2745 lines (+1918/−827), still under 3000.
  • git merge-tree onto current main is clean.
  • CI: the seat reports 58 runs, all green. Not re-read here.

Landing: ordinary queue landing on this ACCEPT plus the green head. N2–N4 stay as accepted nits. This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Landing · 2026-11-20T19:29Z · The seat adopts and lands PR #35912 on head 5a1092af (cards #35881 + #35882: the phone app home is the whole menu, login lands in the last-used app, app switcher sheet, bottom bar Home / Notifications / Approvals + search). Clause-②: no, so no declaration L2 is owed.

Scope: the cards' text, the maintainer's 2026-11-20 16:50:46Z constraints for epic #35880 (ruling record 7045325067; the PR's "Shared with desktop" table names the shared component per phone part and the reason for each part kept separate) and the last-used-first ruling 7045309332.

L1-a ACCEPT 7047822256 at 03d9324a, delta ACCEPT 7048677573 at 5a1092af (this head; S1 comment fix and a generated zh-Hant regen). check-governed-merges --pr 35912 reads NOT governed, 2745 changed lines (under 3000). landing-k cannot answer (its green run printed no diff base); the seat read K by hand per landing-operations.md: PR base 8c18a362 → origin/main is 7 first-parent commits (< 15), and main since that base adds no locale pack under translations/ and touches no shared book. All 58 check-runs on the head are success (45) or skipped (13). The seat readies this PR and arms auto-merge in this same stroke. The PR carries Fixes #35881 and Fixes #35882.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 19:29
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 138faaa Nov 20, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-dtwytl branch November 20, 2026 19:51
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 tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants