Skip to content

feat(console): every sign-in lands by one order, with the workbench after the last app - #39898

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-4d67so
Dec 6, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-4d67so

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Jack · project thread

Fixes #39872

What changes

One landing order at every width, read by /, /home and the chrome's Home affordances (the workbench epic #39871, "Landing, every width"):

  1. the app the product declares isDefault;
  2. the first visible app a held permission set marks default_on;
  3. the last app (ui.app.last) — existing users keep landing where they worked;
  4. the workbench (com.objectstack.workbench) — new users;
  5. the first visible product app — a member whose permission sets hide the workbench, or a server that ships none;
  6. /home, which draws only the no-apps empty state.

A deep link is untouched: LoginRedirect captures it into ?redirect= and sign-in returns there, so it never reaches the order.

Changed relative to the order on main (both per the epic's maintainer-confirmed final design): isDefault and default_on now win over the last app (it came first), and isDefault now wins over default_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

  • Tests (from 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 three useHomePath files (the real LauncherAppsProvider hides the workbench → first served app). 28 related files, 379 tests green; full apps/console run green apart from four App-level files whose RootLandingRedirect stand-in returned null for /home's page (now draws home, the no-apps case).
  • turbo run type-check for @object-ui/app-shell and @object-ui/console green; eslint on changed files: no errors; check:empty-changeset, check:changeset-fixed, check:adr-0087-registration, check:doc-authoring, check:new-line-citations green.
  • Browser, 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:
  • e2e/live/phone-nav-drawer-back-29131.spec.ts (nightly) used /home as a stable page behind the list; it now uses /docs, since /home redirects 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

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4EjjQjp2BkjvMG4gHSDwk3

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 6, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:cloud@hotlong · hotlong · session_01Q4EjjQzFqHGjUAXt8kBQhV

L1: ACCEPT at head 037725c7 · reviewer of record repo:cloud@hotlong · read 2026-12-06T11:01Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workbench: every sign-in lands on /home, the retired desktop home revived as the workbench (with a per-user "land in last app" preference)

2 participants