File tree Expand file tree Collapse file tree
ui/packages/app-shell/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 * LastAppProvider
33 *
44 * The app this person last had open (objectstack#35881): where a phone lands
5- * after sign-in when the product declares no landing of its own and the
6- * person is served more than one app. Stored per person, so it follows them to
5+ * after sign-in. On a phone it comes first, ahead of the app the product
6+ * declares as default, which applies only when there is no record yet (ruling
7+ * 7045309332, 「上次用的优先」). Stored per person, so it follows them to
78 * another device: one `sys_user_preference` row, `ui.app.last`, holding the
89 * app's `name`, through the same adapter channel and the same one shared read
910 * the favorites and the recent items use (objectui#12187). The browser keeps a
1011 * copy, scoped to the user, for the first frame and for a session with no
1112 * adapter.
1213 *
1314 * Written whenever an app is open, at any width: it is the person's last app,
14- * not their last phone app. Read only by the phone's landing (`HomePage`).
15+ * not their last phone app. Read only by the phone's landing:
16+ * `RootLandingRedirect` in the console app, through `resolvePhoneLandingPath`.
1517 *
1618 * @module
1719 */
Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ export function AppSwitcher({
9696 const { apps : metadataApps } = useMetadata ( ) ;
9797 // objectstack#35881 — on a phone the pill opens the app list as a bottom
9898 // sheet rather than a dropdown. Read before any return (rules of hooks).
99+ // The sheet holds the list alone: 「Back to home」 and 「All apps」 would open
100+ // that same list (a phone's `/home` is it), 「Settings」 is the Setup row in
101+ // it, and 「Edit / Open APP in Studio」 stays a desktop entry.
99102 const phone = usePhoneViewport ( ) ;
100103 const [ sheetOpen , setSheetOpen ] = React . useState ( false ) ;
101104 const { t } = useObjectTranslation ( ) ;
You can’t perform that action at this time.
0 commit comments