Repository navigation
feat(console): from 768 px up a sign-in lands in the last-used app, and the platform home page retires - #36738
Conversation
…form home page retires (WIP) Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
… to the phone, the no-apps empty state is pinned (#36732) - Tests that read Home links or /home as the launcher now expect the desktop landing (last app, declared default, first product app), or run at phone width where /home is still the app list. - HomePage.desktopNoApps-36732 pins the desktop no-apps empty state: the 「Add app」 doors for an admin who may author, the capability reason for one who may not, and the member's copy. - isProductApp takes the loose app shape every app list carries. - Changeset for console, auth and i18n. Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
… of the Setup app's first page (#36732) Item 5, the maintainer's pick (option A): from 768 px up the platform home page retired, so the checklist moves to the page Setup's root lands on for this member, asked the way the root asks it. It still decides who sees it and hides once done; the no-apps empty state keeps it; a phone is unchanged. - app-shell: SetupFirstPageSlotProvider (exported) and the mount above the Setup app's first page in AppContent; isLandingPath. - console: the app route hands FirstRunChecklist to the slot. - AppContent.setupFirstPage-36732 pins where it is and is not drawn. Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier:
① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
…sion set hides (#36732) Contract review S1: the desktop resolvers chose from the raw app list, which still holds apps a permission set hides (`tabPermissions: hidden`, applied only by `/me/apps`). - From 768 px up `/` hands off to `/home`, the one desktop resolver, which sits inside the `/me/apps` provider; it narrows by that answer and waits on its first read. useHomePath narrows the same way, and Home's no-apps page reads the launcher's list. - N4: the Setup first-page slot keeps one wrapper on every route, so moving on or off the first page no longer remounts the routes. - N5: the no-apps copy for a viewer who may add an app no longer asks them to ask an administrator (11 locales; zh-Hant regenerated). - N2: the changeset lists @object-ui/app-shell. - N3: a desktop pin for the drafts row above the no-apps page. Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
… set-hidden app joins the parity matrix (#36732) - RequireAiSurface: an undeclared desktop environment's Home now opens its first product app, not the retired launcher. - landingHomeParity: both desktop readers agree on a permission-set-narrowed list and skip a hidden last-used app. - AppContent.setupFirstPage: drop an unused import and hold the navigate function in an effect, not by reassigning a module variable in render (two ESLint errors Lint UI reported). Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
…app a permission set hides (#36732) Contract review r2: in Studio and the AI pages (outside LauncherAppsProvider), and inside it while the first /me/apps read is out, useServedApps passes the list unnarrowed, so a desktop's Home could name a set-hidden app. - useServedAppsSettled() reports a held /me/apps answer; from 768 px up useHomePath names /home (the narrowed resolver) until it is true. Phones are unchanged. - RedirectWithSplash carries navigation state, and the / and /home landing hops pass it on, so an old /ai address's Builder handoff survives /home. - RootLandingRedirect's LandingApp is a type alias so it satisfies useServedApps' record constraint (Type Check UI). - Pins: useHomePath.servedAnswer-36732 on the real provider (red with the gate ablated); the /home state hop (red with it dropped). Chrome tests on /apps/* state the held answer; Studio and /ai tests now expect /home. Claude-Session: https://claude.ai/code/session_01JQwxbWjmw77uT2gNL5G1Uh Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj 维护者速读登录后直接进上次用过的应用;那个应用已不对你开放时,进第一个你有权限的应用。新环境的初始设置清单放在「系统设置」第一页。从 Studio、AI 页面点「首页」,也会等权限读完再跳,不会把人送进看不到的应用。 席位核对 — ACCEPT (L1) · repo:objectstack#1 · head
|
Requested by Warren · project thread
Fixes #36732
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
From 768 px up there is no platform home page any more. A sign-in, the SSO round trip,
/and the old/homeaddress land in an app the viewer's permission sets show (/me/apps, the launcher's answer), in this order: the app the viewer last had open (while it is still active and not hidden for them); else the app the product declaresisDefault; else the first app somebody put into the environment (never Setup, Studio or Account, byisPlatformBuiltinApp).ui/apps/console/src/components/RootLandingRedirect.tsx: newresolveDesktopLandingPath(apps, lastApp); the last-app preference wait now applies at every width; an optionalhomeelement is drawn in place when the desktop resolves to/home.resolvePhoneLandingPathandresolveLandingPathkeep the phone's rules exactly./hands off to/home, the one desktop resolver, because/homesits insideLauncherAppsProviderand/does not;RootLandingRedirectnarrows byuseServedAppsand waits on the first/me/appsread (useLauncherApps().pending).useHomePathnarrows the same way; Home'sdesktopNoAppsreadslauncher.apps. A set-hidden app is never the landing, the Home target, or counted as the viewer's product app.LauncherAppsProvider(/studio/*,/ai/*) and while its first/me/appsread is out,useServedAppspasses the list unnarrowed, so from 768 px upuseHomePathnow names/home(the narrowed resolver) unlessuseServedAppsSettled()reports a held answer. Pinned on the real provider inuseHomePath.servedAnswer-36732.test.tsx; the phone branch is unchanged.RedirectWithSplashnow carries navigation state, and the/and/homehops pass it on, so an old/aiaddress's Builder handoff survives the/homehop.ui/apps/console/src/App.tsx:HomeRoutereturns the page on a phone andRootLandingRedirect home={page}from 768 px up, so/homelands the same way/does.ui/packages/app-shell/src/utils/homePath.ts+hooks/useHomePath.ts:resolveDesktopHomePath(apps, lastApp)(exported), the same order, read by ⌘⇧H, the way back from a missing app, Studio's way out, the header home mark and the app switcher. Held equal to the console resolver by a new parity block inlandingHomeParity-7256.test.ts.ui/packages/app-shell/src/console/home/HomePage.tsx: a viewer with no product app now gets only the no-apps empty state on desktop: 「No applications yet」 and, for a viewer who may add an app, the sidebar app menu's 「Add app」 doors as buttons (build with AI or new in Studio, start from a template, the app marketplace). An admin withoutmanage_metadatagets the capability reason ([finding] workspace owner lacksmanage_metadatain the EE multi-org deploy, but 构建应用 is a primary home CTA — dead-ends at submit #8270's copy); anyone else the existing member copy. The first-run checklist stays above it.ui/packages/app-shell/src/hooks/useAddAppEntries.ts(new): the 「Add app」 entries and their gate, extracted fromSidebarAppMenu.tsxso the menu and the empty state read one list.ui/packages/auth/src/LoginForm.tsx: the SSO callback is the console root instead of/home.ui/packages/i18n:home.noAppsAddDescriptionin all 11 console locales ("Build your first app, or start from a template or the app marketplace."; zh-Hant generated bygen:zh-hant).ui/packages/app-shell/src/console/setupFirstPageSlot.tsx(new) is the host slot (SetupFirstPageSlotProvider, exported) plusisLandingPath;AppContent.tsx'sSetupFirstPageTopdraws the slot above the route only in Setup, only from 768 px up, and only on the page Setup's root lands on for this member (the sameresolveLandingRouteover the same member-shown treesAppRootLandingreads, so a re-ordered Setup navigation moves it). Where drawn, the page scrolls as one column: checklist, then the page at full height. The two wrappers are the same on every route (N4), so moving onto or off the first page does not remount the routes.ui/apps/console/src/AppContent.tsxhandsFirstRunChecklist placement="top"to the slot; the checklist's own rules (admins only, hidden once done, dismissable) are unchanged. The no-apps empty state keeps it through Home's slot.unreadTopics + pendingApprovalsCountinInboxPopover, so unchanged.Read first, by risk:
RootLandingRedirect.tsx(the wait now gates desktop too),app-shell/src/console/AppContent.tsx(SetupFirstPageTop, wraps every Setup route),homePath.ts(resolveDesktopHomePath).Two-minute check: on a fresh environment sign in at 1280 px wide and open Setup: the 「Get your system ready」 card is above System Overview; open any other Setup page and it is gone.
Tests
RootLandingRedirect.test.ts(resolveDesktopLandingPath),RootLandingRedirect.route.test.tsx(desktop lands in the last app, waits for the preference, the retired/homeaddress, 4 cases),landingHomeParity-7256.test.ts(desktop parity over app lists × last-app records),useHomePath.test.tsx(phone and desktop),utils/__tests__/homePath.test.ts,LoginForm.test.tsx(SSO callback),HomePage.desktopNoApps-36732.test.tsx(5 cases: AI door, Studio door without an agent, capability reason, member copy, not drawn once a product app exists),AppContent.setupFirstPage-36732.test.tsx(7 cases: drawn above the page Setup's root lands on and on a direct visit with a query; not on Setup's other pages, another app's same route, a phone, or with no host slot;isLandingPath).StudioRoute,AppContent.deniedVsUnpublished,AppHeader.homeMark-12605,AppSwitcher.homeMenu-12605(Home now resolves to an app); four App/FormPage route tests and four HomePage zero-app tests run at phone width, where/homeis still the app list.Local runs (under os-verify-lock)
HomePage.desktopNoApps-36732+AppContent.deniedVsUnpublished+homePath: Test Files 3 passed (3), Tests 42 passed (42).packages/i18n: Test Files 106 passed (106), Tests 1978 passed, 13 skipped.AppContent.setupFirstPage-367327 passed (7). Ablation: with the Setup and landing-page gates removed fromSetupFirstPageTop, 2 of 7 fail ("draws nothing on Setup's other pages", "draws nothing on another app's first page"); restored.RootLandingRedirect.route31 passed (31), 4 new set-hidden cases (first app it shows, a now-hidden last app skipped, every product app hidden gives the no-apps page, waits on the first read); ablation with the resolver back on the raw list: 4 failed.useHomePathset-hidden case.AppContent.setupFirstPage-367328 passed (8), the new no-remount case red on the old fragment-or-div shape.HomePage.myWork-12602desktop drafts-row pin (N3).AppContent*, every Home test, console components andApp*,FirstRunChecklist,packages/i18n,useHomePath,homePath, home mark, app switcher, sidebar app menu,LoginForm): Test Files 284, Tests 3654 passed + 13 skipped, after regenerating zh-Hant (the one red,zh-hant-generated, then 11/11).app-shellAppContent*test, the consoleAppContent*,FirstRunChecklist,firstRunChecklist*andApp.homePermissions-12700tests: Test Files 57 passed (57), Tests 561 passed (561).check-changeset-no-major,check-empty-changeset,check-adr-0087-registration,check:undeclared-dep-imports,check:test-source-alias(after adding the@objectstack/lintwarm import to two edited test files),check:cross-package-test-inputs,check:role-word,check:nul-bytes,check:published-files,check-sdui-manifest.type-checkscripts need the built@object-ui/*declarations this container lacks, so output was filtered to touched files; one real error in this diff (isProductAppparameter type) was fixed, the rest are unresolved-module noise. CI's Type Check UI is the verdict.Acceptance notes
/homeis the app list alone. That is unchanged here and not in scope./home, and it now goes to the root.desktop-03.?redirect=, before or after this PR) is a known gap, filed as 邮箱域名 SSO 登录丢掉登录前的跳转地址:未登录打开记录链接、走 SSO 登录后落到应用而不是那条记录 #36754; N5's 2 s wait for the last-app record with no browser copy is the phone's existing behaviour, now shared; N3's dropped Ask AI action on the desktop no-apps page follows design board 45's three doors.Verification
Browser, local showcase stack (
objectstack dev --seed-admin --fresh+ console Vite dev server), seeded admin, 1280×800 and 375×812, on head c200077 (items 1-4) and 5317dbf (item 5); re-run at dcbc1ea with identical landings (r2-frames), plusr2-desktop-06-set-hidden-app-not-landed: Showcase recorded as the last app but dropped from/me/appsonly, sign-in lands on/homewith the no-apps page instead of opening it. Screenshots are in the project files underissue-36732/(GitHub image upload is browser-only, so frames are described here):/apps/com.example.showcase/page/showcase_capability_map/home/apps/com.objectstack.setup/dashboard/system_overview/homelands in the last app/apps/com.example.showcase/showcase_task/home/home/homeis still 「Choose an app」/apps/com.example.showcase/page/showcase_capability_map/apps/com.objectstack.setup/dashboard/system_overview/apps/com.objectstack.setup/page/connect_agent/home, Setup's System OverviewGenerated by Claude Code