Repository navigation
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
Conversation
…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
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — ACCEPT (L1-a)维护者速读
Head reviewed:
Against the epic's constraints (ruling record 7045325067) and the landing ruling (7045309332)
The shared parts, checked in code:
Card acceptance (#35881, #35882)Each acceptance line maps to a test named in the body. I read the code path for each:
Findings
None is a must-fix. S1 is the seat's call. Verification limits
Landing terms
|
…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
…witcher strings Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu
|
repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U 席位核对 — delta ACCEPT (L1-a)维护者速读
Delta: from my ACCEPT 7047822256 at
No code path changed. The functional review in 7047822256 stands for this head. Gates at this head:
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. |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Landing · 2026-11-20T19:29Z · The seat adopts and lands PR #35912 on head 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 |
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)
维护者速读
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,resolvePhoneLandingPathinui/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 byConsoleLayoutwhenever 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:resolveLandingPathis not touched.The app's home is its whole menu (#35881). On a phone,
/apps/SEGMENTrendersPhoneAppHomeinstead of redirecting to the landing entry. The menu in it is the sidebar's own:UnifiedSidebardraws its navigation block (context selectors, area switcher,NavigationRendererwith 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/homeis the same list as a page. The desktop dropdown is unchanged.Bottom bar (#35882).
PhoneAppNavBaris rewritten in place. It has three fixed cells and a round search button:sys_inbox_message?view=mine, the bell's 「View all」 target.system/approvals, under the app the bell hosts them under (resolveHostAppSegment).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):
Pins already stored are no longer read. Nothing deletes them. The drawer still opens with the left-edge swipe.
Shared with desktop
NavigationRendererblock inUnifiedSidebar(same gates, area switcher, labels, icons), portalled into the pageAppSwitcher(same trigger, sameonAppChange, sameappAddressSegmentaddress),useLauncherApps(same app set as the desktop dropdown and Home tiles),AppMark,Sheet side="bottom"from@object-ui/componentsPhoneAppListis 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/homeis it), 「Settings」 because Setup is a row in the list, and 「Edit / Open APP in Studio」 because Studio authoring stays a desktop entry.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'sMobileBottomNav(theAppSchemaRendererhost) is not used: it draws the app's first five menu entries, which is the app-following bar #35882 replaces.resolveLandingPath(desktop order) is the fallback insideresolvePhoneLandingPath; the last app rides the sharedsys_user_preferenceread (UserStateBridge)usePhoneViewport/useSidebar().isMobile(the existing < 768 px switch)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: theui.app.lastkey 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):
phoneNavBarEntries(3 unit tests);hidesPhoneNavBar.docs/qa/platform-checklist: no item names the old bar; none changed.Verification
vitest(fromui/): every test file underui/packages/app-shell/srcandui/apps/console/srcthat imports a changed module (PhoneAppNavBar, PhoneAppHome, PhoneAppList, AppSwitcher, AppHeader, ConsoleLayout, UnifiedSidebar, AppContent, ConsoleShell, HomePage, LastAppProvider, UserStateAdapters, RootLandingRedirect): 222 files, 1814 passed, 0 failed. The wholeapp-shellpackage (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 --noEmitand the test tsconfig) for@object-ui/app-shell,@object-ui/consoleand@object-ui/i18n: clean (turbo, 78 tasks, deps built).eslinton every changed file: 0 errors.node scripts/pm/dispatch-gates.mjs --commands: 41 derived families, all run, all exit 0;--ranreconcile: 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 withmainand 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.examples/app-showcase(objectstack dev --seed-admin) with theui/apps/consoleVite dev server over it, headless Chromium. Before = the changedui/sources checked out from the merge base; after = this head. Screenshots are kept with the seat./apps/com.example.showcasestays 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./homeare identical apart from relative timestamps and one badge's antialiasing.phone-nav-drawer-back-29131, nightly) was edited but not run here.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (eslint on the changed files: 0 errors)main, one pull request. (two folded cards, one pull request, per the coordinator's pairing)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu