Skip to content

Commit f3eb121

Browse files
committed
docs(app-shell): the last app's header matches the phone landing order, and the phone sheet says what it leaves out
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgU7ah5dc72qr3aWHFu
1 parent 03d9324 commit f3eb121

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎ui/packages/app-shell/src/context/LastAppProvider.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
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
*/

‎ui/packages/app-shell/src/layout/AppSwitcher.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)