Repository navigation
feat(console): every sign-in lands by one order, with the workbench after the last app - #39898
Merged
Merged
Conversation
…last app (#39872) Claude-Session: https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3 Co-authored-by: Claude <noreply@anthropic.com>
…fter the last app (#39872) Claude-Session: https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV L1: ACCEPT at head
|
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Jack · project thread
Fixes #39872
What changes
One landing order at every width, read by
/,/homeand the chrome's Home affordances (the workbench epic #39871, "Landing, every width"):isDefault;default_on;ui.app.last) — existing users keep landing where they worked;com.objectstack.workbench) — new users;/home, which draws only the no-apps empty state.A deep link is untouched:
LoginRedirectcaptures it into?redirect=and sign-in returns there, so it never reaches the order.apps/console:resolveLandingPath(apps, lastApp, tabPermissions)replaces the three resolvers (resolveLandingPath/resolvePhoneLandingPath/resolveDesktopLandingPath)./hands off to/homeat every width, and/home(HomeRoute) always resolves; the phone no longer resolves at/from the unnarrowed app list, so it now reads/me/apps(a set-hidden app, the workbench included, is never the landing) anddefault_on.app-shell:resolveDesktopHomePath→resolveHomePath, same order.useHomePathkeeps its phone branch (declared landing, else/home, which now resolves the same order).Changed relative to the order on
main(both per the epic's maintainer-confirmed final design):isDefaultanddefault_onnow win over the last app (it came first), andisDefaultnow wins overdefault_on(it came after).Why
Every sign-in should land on the workbench for a new user, never Setup or an empty page, while existing users keep their last app and product / admin declarations still decide (epic #39871 decisions recorded 2026-12-06).
Verification
Clause-②: no
Metadata-protocol: none
ui/):RootLandingRedirect.test.ts(one describe per step),RootLandingRedirect.route.test.tsx(each step at both widths, hidden workbench, last-app wait, fossilisation),landingHomeParity-7256.test.ts(both readers equal across every list × record × tab map, with and without the workbench),landingDefaultOn-39476.test.ts,RootLandingRedirect.defaultOn-39476.test.tsx,homePath.test.ts, the threeuseHomePathfiles (the realLauncherAppsProviderhides the workbench → first served app). 28 related files, 379 tests green; fullapps/consolerun green apart from four App-level files whoseRootLandingRedirectstand-in returnednullfor/home's page (now drawshome, the no-apps case).turbo run type-checkfor@object-ui/app-shelland@object-ui/consolegreen; eslint on changed files: no errors;check:empty-changeset,check:changeset-fixed,check:adr-0087-registration,check:doc-authoring,check:new-line-citationsgreen.os dev(showcase) with this branch merged locally with the workbench declaration branch (feat(workbench): the built-in Workbench app (工作台), served by os dev and os serve #39896), console HMR proxied to it, signed in as the seeded admin:/apps/com.objectstack.workbench(its home shows Workbench MVP: the home page — greeting, ask-AI slot, today's three columns, recents, a "my apps" rail and the add-app slot, from the retired desktop home's sections #39883's not-yet-registeredworkbench:homeplaceholder);/apps/com.example.showcaseon both widths;/apps/com.example.showcase/showcase_taskcaptures?redirect=and sign-in returns to it.e2e/live/phone-nav-drawer-back-29131.spec.ts(nightly) used/homeas a stable page behind the list; it now uses/docs, since/homeredirects at every width.Overlap: no shared file with #39896 / #39895 / #39897. #39897 and #39895 each add a workbench identity module; this PR keeps a private package-id constant instead of a third shared one, to be folded into whichever lands.
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3