Repository navigation
feat(app-shell): workbench home app Dock under the greeting replaces the My apps rail - #39955
Draft
objectstack-fleet[bot] wants to merge 5 commits into
Draft
objectstack-fleet[bot] wants to merge 5 commits into
objectstack-fleet[bot] wants to merge 5 commits into
Conversation
Claude-Session: https://claude.ai/code/session_01ADHkmPhvd5XT8WTQ6Lu6ic Co-authored-by: Claude <noreply@anthropic.com>
…mpty states Claude-Session: https://claude.ai/code/session_01ADHkmPhvd5XT8WTQ6Lu6ic Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPhvd5XT8WTQ6Lu6ic Co-authored-by: Claude <noreply@anthropic.com>
This was referenced Dec 6, 2026
Contributor
Author
|
repo:objectstack@os-steve · os-steve · session_01ADHkmRM92nyNXbcm2LJn1N 席位核对ACCEPT · head L1 of PR #39955 (Fixes #39941), read on the full diff at
|
This was referenced Dec 6, 2026
…ts for the All apps panel Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmPhvd5XT8WTQ6Lu6ic
Contributor
Author
|
repo:objectstack@os-steve · os-steve · session_01ADHkmQSafnPd7PALMEwPEP 席位核对ACCEPT · head L1-b prose delta of PR #39955 (Fixes #39941) over the L1-a ACCEPT 7462950711 at
|
This branch has not been deployed
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.
Fixes #39941
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
WorkbenchAppDock(inconsole/workbench/WorkbenchAppDock.tsx), mounted under the greeting and the ask-AI slot, above 「Today」. Anavnamed 「应用」 / "Apps" with no heading.Content: the launcher's apps (
useLauncherApps) filtered byisProductApp, so the workbench, Setup, Studio and every othercom.objectstack.*app never appear. Account ishiddenand was never in the launcher list.Order: the switcher's order, which is
/meta/app's order throughfilterActiveAppsand the/me/appshide. No app carries a sort key, so in effect this is install order. The code comment says so. No new ordering rule.Count: measured on the row itself.
dockAppCapacity(width)is a pure function the tests pin. AResizeObserverplus a layout-effect read feeds it the row's own width, so the measurement happens before paint and again on resize. Capacity is capped at 8. A row that has not been laid out (width 0) gets the cap. Tiles areshrink-0and nothing wraps.Tiles: reuse
LauncherAppIcon(now exported fromHomeAppsStrip.tsx, withboxClassName/glyphClassNameprops) andTILE_CLASSES/ICON_BOX_CLASSESthrough newDOCK_TILE_CLASSES/DOCK_ICON_BOX_CLASSESinlauncherTile.ts. Size chosen: a 112 px tile with a 56 px icon does not fit 8 apps plus 「All apps」 in a 1280 px window's main column (1280 minus the 256 px sidebar minus 64 px page padding = 960 px; 9 tiles plus gaps plus divider = 1057 px). The Dock tile is 96 px wide with a 48 px icon, so 8 apps plus the divider plus 「All apps」 take 909 px. Each tile links to its app's one address (appAddressSegment). The name is on one line, truncated, and the full name is the tile'stitle.「All apps」 tile: a grid icon after a thin divider, always last. Target chosen: it opens the command palette (
openCommandPalette, the idempotent ADR-0054 C1 open). Its 「Switch app」 group lists every app the person may open, Setup and Studio included, and it is searchable. What I measured before choosing:/homeredirects to the landing app (the workbench) whenever one exists (RootLandingRedirect), so a link there would bounce back.SidebarAppMenu.tsx.The 全部应用 panel itself is Workbench home: the 全部应用 panel (search, a platform group, admin add entries), and 「从模板开始」 retired everywhere as a duplicate of the marketplace #39942, which will replace this target. The tile is drawn only where a palette provider is mounted (objectui#11912), which is every
/apps/APPpage.WorkbenchAddAppsdoors where they were. The Dock shows only 「All apps」.useWorkbenchAddAppsKind, decides both the block and the box.WorkbenchAppsRail.tsxis deleted, andWorkbenchAddAppsmoved intoWorkbenchAppDock.tsx. Thexl:grid-cols-4split is gone, so 「Today」, 「Recently accessed」 and the activity feed take the full width.HomeAppsStripno longer sortsapp:-prefixed favourites first and no longer draws the star badge. That id's only writer (AppCard's star) is mounted nowhere. The Dock does not readui.favorites.workbench.dock.label/allApps/emptyare added to every locale pack, becauseall-locales-key-parityrequires every pack to define everyenkey. The rail's now-unreadworkbench.apps.titleandworkbench.noApps.memberare removed from every pack.Read first (by risk)
ui/packages/app-shell/src/console/workbench/WorkbenchAppDock.tsx: the capacity arithmetic (DOCK_TAIL_PX,dockAppCapacity) must match the classes it assumes (gap-1,w-px mx-1,w-24). If either side changes alone, the cap is off by a tile.ui/packages/app-shell/src/console/workbench/WorkbenchHomePage.tsx: the grid split removal and where the Dock mounts.ui/packages/app-shell/src/console/home/HomeAppsStrip.tsx: the dropped favourites sort andLauncherAppIcon's new props, including the logo image's radius, nowrounded-[inherit].Two-minute verification
Open the workbench home at a 1280 px window with 8 or more product apps installed. One row of 8 app icons appears under the greeting, then a thin divider and 「全部应用」. Clicking it opens the command palette, which lists all apps. Narrow the window to 768 px and the row shows fewer icons on one line. No right rail appears at any width.
Tests
All runs below are at head
aca9ecdec6.Targeted vitest (workbench + HomeAppsStrip)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/console/workbench/ packages/app-shell/src/console/home/__tests__/HomeAppsStrip.*(three files):Test Files 6 passed (6),Tests 50 passed (50).New pins in
WorkbenchHomePage.test.tsx:dockAppCapacityat the 1280 / 1440 / 768 px main-column widths;Ablation
With the committed fix, I mutated the Dock on disk two ways:
slice(0, DOCK_MAX_APPS)in place of the measured capacity, and a workbench-only filter in place ofisProductApp. 4 tests went red: the product filter, the narrow-row cap, and both no-product-app states. I restored the file withgit checkout HEAD --.Wider suites
packages/app-shell/src/console/home/+phase1-page-blocks.render+productBlocks-12197:Test Files 45 passed (45),Tests 301 passed (301).packages/i18n/(key parity across all packs included):Test Files 110 passed (110),Tests 1874 passed | 13 skipped.pnpm --dir ui exec vitest run scripts/+product-neutral-renderer.ratchet:Test Files 173 passed | 2 skipped.pnpm --filter @object-ui/app-shell type-check: exit 0.Gates
node scripts/pm/dispatch-gates.mjs --commands: 42 commands derived. All 42 were run locally with exit 0.--ranreports: 42 derived, 42 run, 0 NOT-MEASURED (a derived zero).check:i18n-keysexit 0,check:i18n-driftexit 0 ("No en value changed"),check:new-line-citationsexit 0 (0 new citations).Acceptance notes
HomeAppsStrip'sfavoritesprop is kept as an optional, unread@deprecatedprop. Its two mounts (HomePage.tsx,app-launcher-renderer.tsx) still pass it.workbenchRailAppsinconsole/workbench/workbenchApp.ts(and its test) now has no caller.ui.app.lastlike any app open, so the next sign-in lands in that app (the agreed landing order, Workbench: every sign-in lands on /home, the retired desktop home revived as the workbench (with a per-user "land in last app" preference) #39872).Generated by Claude Code