Skip to content

Commit b2da19d

Browse files
fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse button does (#36391)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbUq2j5tRRVo3TVY3wcS1Fdg)_ Fixes #36347 repo:objectstack#7 · zhuangjianguo · session_01QsR2jV3scu6UYPb42n5okQ Clause-②: no Metadata-protocol: none Ruling-ref: 7074574380 ## 维护者速读 - 用户能看到什么变化:控制台在 768 像素宽及以上,按 ⌘B / Ctrl+B 与点侧边栏的收起/展开按钮完全一样(展开时收起,收起或临时浮出时放回页面旁边并记住),临时浮出只剩鼠标移到窗口左边缘这一种方式。 - 为什么做:落实维护者对侧边栏快捷键的裁决(⌘B 与按钮一样固定展开),属于「去掉桌面顶栏」这次侧边栏改版的收尾。 - 出错会怎样:最坏情况是按快捷键时侧边栏没有按预期收起或放回,用户仍可点按钮恢复;改动只在界面层,可直接撤回。 - 要你做什么:无 ## What changes Ruling 7074574380 on #36112 (B, 「B ⌘B 和按钮一样固定展开」): ⌘B / Ctrl+B does what a press on the sidebar's expand / collapse button does. This replaces the words "⌘B unchanged" of ruling 7069868269 (F1, on #36112) and the shortcut half of "on the top-bar trigger (and its shortcut)" in ruling 6973617688 on #35062; every other line of both stands. - **One action, one remembered state.** `useConsoleSidebarRailPanel` (`consoleSidebarRail.ts`) now answers the chord itself from 768 px up, with the button's own action: the step a trigger click takes in the capture phase (`beforeButtonToggle`: on a narrow window, keep the narrow-window choice expanded before a dock) followed by the provider's `toggleSidebar`, the same call the trigger makes. So the key and the button write the same choices by construction: the wide-window choice, the narrow-window choice and the `sidebar_state` cookie. While the menu floats, the chord docks it where it is (`dockFloat`), as the ruling's execution section says; focus does not move. - **Exactly one listener runs.** Measured before the change: on a hand-collapsed wide window two listeners ran on one key press (the console's window-capture listener noted "this toggle floats", then the primitive's window listener toggled); in every other state only the primitive's listener ran. Now the console's listener sits on the `document` in the bubble phase, after every element listener on the way (an editor that takes the chord still stops it there first), and stops propagation so the primitive's listener on the `window` does not toggle a second time. The pin "one ⌘B is one press" holds both halves: nothing reaches the window from 768 px up, and on a phone the primitive's listener still opens the drawer. - **`@object-ui/components` is not changed.** `ui/sidebar.tsx` (a synced Shadcn primitive, a no-touch zone) keeps its default listener for every other host; the console overrides it from its own layer instead of changing the published default. The phone, and a sidebar with the console's collapse off, keep the primitive's toggle. - **The float comes only from the left edge.** The `toggleFloats` note, the `command` opener and the focus-into-float branch it fed are gone (their only producer was ⌘B). Unchanged: the edge's hover and press float, Esc / a chosen entry / a press outside fold a float, the phone, the 1280 px threshold, the width, the head's collapse button inside a float (it folds the float, as before). - **Text that follows the ruling.** The tooltip chord now reads the chord the console answers (`SIDEBAR_TOGGLE_CHORD`, one constant for the tooltip, the shortcuts dialog's advertisement and the matcher); comments in `consoleSidebarRail.ts`, `useResponsiveSidebar.ts`, `LocalizedSidebarTrigger.tsx`, `ConsoleLayout.tsx`, `advertisedShortcuts.ts` and `UnifiedSidebar.tsx`; step 3 of `platform-core.builtin-apps-nav-render` (revision 19); a changeset. Read first, by risk: 1. `ui/packages/app-shell/src/layout/consoleSidebarRail.ts` — the document keydown effect and `dockFloat` (the stopPropagation is the load-bearing line). 2. `ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.hiddenCollapse-35062.test.tsx` — the new top-level describe named for #36347. 3. `docs/qa/platform-checklist/areas/platform-core.json` — step 3 wording and the revision 19 history row. ## Tests - Flipped pins: the ⌘B cases of `UnifiedSidebar.hiddenCollapse-35062.test.tsx` and `UnifiedSidebar.railOverlay-27593.test.tsx` that floated with ⌘B now float from the left edge; the keyboard walk of a collapsed group docks with ⌘B and stays docked after Enter. `UnifiedSidebar.recentThisApp-36112.test.tsx` fires its phone ⌘B where a real key press lands (the body), not on the window. - New pins (top-level describe in the shared harness file, per ruling record 6583487846): ⌘B collapses and docks at 1600 px and at 1024 px with a reload after each; on either window, from collapsed and from docked, ⌘B leaves exactly what a button press leaves (state, rail, both choices, cookie); ⌘B docks a float on both sides of the threshold, moves no focus, and a reload keeps it; one key press is one press (the window never sees the chord from 768 px up; on a phone the drawer still opens). <details><summary>Readings at e374f63</summary> - `vitest run` of the three sidebar files: `Test Files 3 passed (3)`, `Tests 47 passed (47)`. - `vitest run packages/app-shell/src/layout packages/app-shell/src/chrome packages/app-shell/src/hooks`: `Test Files 280 passed (280)`, `Tests 2229 passed (2229)` (the shortcuts dialog's wired-only pin and the trigger's app-bar pin included). - `pnpm --filter @object-ui/app-shell run type-check` (both tsconfigs, tests included): VERDICT command-exit 0. - Ablation (the key takes the old path, the provider's toggle): `ablation-replace` anchor 1 → 0, blob a8a2074 → b3a7f2a5c15a; `Tests 5 failed | 38 passed (43)` — red: the 1024 px dock, the button-equals-key comparison, the float dock, the one-press pin, the keyboard group walk; restore: blob == HEAD (a8a2074), `git diff HEAD` empty. The 1600 px dock and collapse stay green under the ablation, as expected: there the provider's toggle alone already docks and collapses. </details> ## Acceptance notes - The ruling's execution reads "in every state ⌘B equals a press on the button" and "while the menu floats, ⌘B docks it". In a float the page header's expand button is not drawn (it is drawn only while the sidebar is collapsed), and the one button shown is the float's own head collapse button, which folds the float as before. This PR follows the ruling's execution line for the key and leaves that button unchanged. - `platform-core.keyboard-shortcut-surface`'s source note still names `ui/sidebar.tsx` as the ⌘B handler; from 768 px up the console's handler answers now. Its steps ("⌘B and Ctrl+B toggle the sidebar") stay true; the note is outside this claim's file surface, so it is left for the next edit of that item. - `node scripts/pm/overlap-check.mjs`: origin/main merges cleanly; #34223 (stale, last updated 2026-11-19) conflicts on `platform-core.json` in the same item, and already conflicts with origin/main there. ## Verification Two minutes: in the console at 1440 px, press ⌘B (Ctrl+B): the sidebar collapses; press it again: it comes back beside the page; reload: it stays there. Narrow the window below 1280 px and press ⌘B: the collapsed sidebar comes back beside the page instead of floating. Rest the pointer on the left edge of a collapsed sidebar: the menu floats; press ⌘B: it stays, docked. Gates: the local derived subset and its readings are in the os-dev report on #36347; every family CI runs is read from this PR's check-runs. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jV3scu6UYPb42n5okQ)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent d8b15b5 commit b2da19d

11 files changed

Lines changed: 355 additions & 219 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): ⌘B / Ctrl+B does what the sidebar's expand / collapse button does
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
From 768 px up, ⌘B / Ctrl+B is now a press on the console sidebar's expand / collapse button, on a window of any width. With the sidebar beside the page it collapses it; with the sidebar collapsed it puts it back beside the page; either way the browser remembers the choice for that side of 1280 px, as it does for the button, and a reload keeps it. On a window narrower than 1280 px, where the sidebar starts collapsed, ⌘B puts it beside the page and keeps it there. While the menu floats over the page, ⌘B puts it beside the page where it is. The key moves no focus, as a press on the button moves none.
11+
12+
Before, ⌘B floated the menu over the page without changing the collapsed state. The temporary float now comes only from the window's left edge: rest the pointer there, or press there. Unchanged: Esc, a chosen entry and a press outside fold the float; the phone's drawer, which ⌘B still opens and closes; the 1280 px threshold; the sidebar's width. The button's tooltip keeps naming ⌘B, which now does what it says.

‎docs/qa/platform-checklist/areas/platform-core.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@
640640
"title": "The built-in apps a stock boot REGISTERS (Setup / Account) render every merged-nav destination; app-level and entry-level gates are enforced, not errored — and Studio's deliberate absence is asserted, never hunted",
641641
"since": "v15",
642642
"status": "active",
643-
"revision": 18,
643+
"revision": 19,
644644
"priority": "P0",
645645
"surface": "browser",
646646
"personas": [
@@ -662,7 +662,7 @@
662662
"steps": [
663663
"as admin, GET /api/v1/meta/app?id=setup and extract every merged nav destination — Setup is a SHELL of empty group anchors (packages/platform-objects/src/apps/setup.app.ts: group_overview/apps/people_org/access_control/approvals/configuration/diagnostics/integrations/advanced) filled by SETUP_NAV_CONTRIBUTIONS (setup-nav.contributions.ts) plus capability-plugin contributions (plugin-security Positions/Permission Sets, plugin-sharing Sharing Rules/Record Shares, plugin-approvals, plugin-webhooks)",
664664
"GET /api/v1/meta/app with NO query first and record the names actually served — a stock boot answers exactly showcase_app, setup, account. Then GET /api/v1/meta/app?id=account (account.app.ts — Profile + Inbox/Security/Developer groups). ⚠️ GET /api/v1/meta/app?id=studio answers 200 {\"items\":[]} on every stock boot and that is the expected result (knownGap): record the absence as an assertion and move on — do NOT install @objectstack/studio to make the step runnable",
665-
"as admin, hand-walk each destination in each app. At a window narrower than 1280 px a browser with no choice kept opens Setup and Account with the sidebar collapsed, and from 1280 px expanded (ui/packages/app-shell/src/layout/consoleSidebarRail.ts CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH, ruling 7069868269 on objectstack#36112); a reader's own collapse or expand is kept per browser, on each side of that width. Collapsed, the sidebar is hidden, with no icon column (ruling 6973617688 on objectstack#35062): press the expand button at the page header's left edge to put it back beside the page before expanding any group — or press Ctrl/⌘+B, or rest the pointer on the window's left edge, to float the full menu over the page; the float folds back after each chosen entry, so float it again for the next destination. EXPAND every nav group first: some render collapsed by default — Setup's Advanced group and Account's Developer group declare `expanded: false` (packages/platform-objects/src/apps/setup.app.ts, account.app.ts), and QA run #24557 found Setup's Configuration group collapsed as well — so a walk that never expands them never reaches their entries. Then navigate, wait for render, SCREENSHOT FIRST, then read the DOM — assert no pageerror, no 'failed to load', no blank <main>, no 'no actions configured' placeholder",
665+
"as admin, hand-walk each destination in each app. At a window narrower than 1280 px a browser with no choice kept opens Setup and Account with the sidebar collapsed, and from 1280 px expanded (ui/packages/app-shell/src/layout/consoleSidebarRail.ts CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH, ruling 7069868269 on objectstack#36112); a reader's own collapse or expand is kept per browser, on each side of that width. Collapsed, the sidebar is hidden, with no icon column (ruling 6973617688 on objectstack#35062): press the expand button at the page header's left edge, or press Ctrl/⌘+B, which does the same (ruling 7074574380 on objectstack#36112), to put it back beside the page before expanding any group — or rest the pointer on the window's left edge to float the full menu over the page; the float folds back after each chosen entry, so float it again for the next destination. EXPAND every nav group first: some render collapsed by default — Setup's Advanced group and Account's Developer group declare `expanded: false` (packages/platform-objects/src/apps/setup.app.ts, account.app.ts), and QA run #24557 found Setup's Configuration group collapsed as well — so a walk that never expands them never reaches their entries. Then navigate, wait for render, SCREENSHOT FIRST, then read the DOM — assert no pageerror, no 'failed to load', no blank <main>, no 'no actions configured' placeholder",
666666
"Setup detail: confirm each settings URL entry (nav_settings_* → /apps/setup/system/settings/<namespace>) opens the settings namespace form — the 11 namespaces of a stock single-posture boot, localization/company/branding/auth/access_policy/mail/sms/storage/ai/knowledge/lifecycle: the nav_settings_* entries of packages/platform-objects/src/apps/setup-nav.contributions.ts, plus nav_settings_branding, which packages/services/service-settings/src/settings-service-plugin.ts contributes only where no organization wall stands, and Users / Organization / Business Units / Teams / Sessions / OAuth Applications render. User preferences and identity links are not Setup destinations: open a user's record page, /_console/apps/setup/sys_user/record/ID (a row click on the Users list opens a side panel at ?recordId=, which is not that page: take the id from the row or the panel), and confirm the user page's Preferences and Linked Accounts tabs (packages/platform-objects/src/pages/sys-user.page.ts#SysUserDetailPage) render that user's rows",
667667
"Studio detail is NOT walked from here — the app is not registered on a stock boot (knownGap), so there is no merged nav to render. Its metadata:resource lists and component surfaces (App Builder, All Metadata Types, Packages, API Console, Flow Runs, Public Forms) are reached through the console surface at /_console/studio/<pkg>/<pillar> and are covered by area studio-authoring. What THIS item asserts about Studio is the absence itself, per clause 6",
668668
"Account detail: confirm Profile (account:profile_card), Notifications (sys_inbox_message/mine), Approvals (nav_account_approvals, the approvals:inbox component, served as …/component/approvals/inbox — the Approvals Inbox, not the sys_approval_request grid; account.app.ts), Linked Accounts (sys_account), Active Sessions (sys_session/mine), API Keys (sys_api_key/mine), OAuth Applications (sys_oauth_application/mine) and Connect an Agent (nav_connect_agent) each render — 8 Account destinations and 47 Setup destinations for the admin on a stock single-org showcase boot, read from source after objectstack#34724 retired Setup › Packaged Actions (nav_packaged_actions; its switch moved onto the action in Studio); QA runs #32953 (at 5fb79bc0) and #33087 (at 8e3d4a54) read 48 before it (GET /api/v1/meta/app leaves, which match the nav source minus its gates). QA run #29877 read 46 at 589049b0, before Access policy (nav_settings_access_policy, the access_policy namespace) joined the Configuration group. Since QA run #28545's reading Setup's Packaged automation page retired under ADR-0146 D11, leaving Packaged Actions (nav_packaged_actions, automation:packaged-actions; #28785, itself retired by objectstack#34724), and its unfiltered Packages entry moved to Studio (#29547) (47 for #28927, 50 at eeec88d1 for QA run #28545, 48 re-measured at 3fd80337 for #28338, QA run #27481 read 44 and 8, QA run #24557 read 42 at 5b14b7f3, 45 on 2026-10-01, and #9453 recorded 43 and 7). Recount from the payload each run",
@@ -828,6 +828,12 @@
828828
"date": "2026-11-22",
829829
"change": "steps[2]: the threshold is 1280 px, not 1416 px, and it sets only where a browser with no choice kept starts — collapsed below it, expanded from it (ruling 7069868269 on #36112); the reader's own collapse or expand is kept per browser on each side, and the 'Keep sidebar open' switch is gone, so the walk docks the sidebar with the page header's expand button, or floats it with Ctrl/⌘+B or the window's left edge as before. The app bar named in revision 17 is gone from 768 px up (#36187). No clause changed. Read from source; not yet re-run by a QA run.",
830830
"ref": "#36112"
831+
},
832+
{
833+
"revision": 19,
834+
"date": "2026-11-22",
835+
"change": "steps[2]: Ctrl/⌘+B is a press on the expand / collapse button (ruling 7074574380 on #36112, which replaces the words '⌘B unchanged' of ruling 7069868269): it docks the collapsed sidebar beside the page as the reader's choice, a float included, and collapses a docked one; it no longer floats the menu, which floats only from the window's left edge. The walk is unchanged in substance. No clause changed. Read from source; not yet re-run by a QA run.",
836+
"ref": "#36347"
831837
}
832838
]
833839
},

‎ui/packages/app-shell/src/chrome/advertisedShortcuts.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
* chat page's `⌘⇧O` / `⌘⇧S` are advertised by that page, so they are listed
1717
* only where that page is mounted.
1818
*
19-
* Two advertisers sit beside a handler they do not own the code of: `⌘B` is
20-
* the Shadcn `SidebarProvider`'s own listener (a synced primitive, see
21-
* `ConsoleLayout`), and `Esc` is Radix's dismiss handler on every dialog and
19+
* Two advertisers sit beside a handler they do not own the code of: `⌘B` is,
20+
* on a phone, the Shadcn `SidebarProvider`'s own listener (a synced primitive;
21+
* from 768 px up the console sidebar answers it, see `ConsoleLayout`), and
22+
* `Esc` is Radix's dismiss handler on every dialog and
2223
* panel (see `KeyboardShortcutsDialog`). The pin
2324
* `KeyboardShortcutsDialog.wiredOnly-11674.test.tsx` fires every listed
2425
* entry's chord against the real handler, those two included, and fails on a

‎ui/packages/app-shell/src/hooks/useResponsiveSidebar.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
* that side of the threshold, else expanded on a wide window and collapsed on
88
* a narrow one (ruling 7069868269 on objectstack#36112). Collapsed, the
99
* console's sidebar is hidden, and its full menu floats over the content from
10-
* the window's left edge or ⌘B (ruling 6973617688 on objectstack#35062;
11-
* `consoleSidebarRail.ts`). Must be called inside a SidebarProvider context.
10+
* the window's left edge (ruling 6973617688 on objectstack#35062;
11+
* `consoleSidebarRail.ts`); ⌘B / Ctrl+B is a press on the expand / collapse
12+
* button (ruling 7074574380 on objectstack#36112), so it collapses and docks
13+
* the sidebar as the reader's choice. Must be called inside a SidebarProvider
14+
* context.
1215
*
1316
* It also keeps the reader's choices, each on its own side of the threshold:
1417
* an open or close on a wide window is the wide-window choice
1518
* (objectstack#28079), a close of the docked sidebar on a narrow window the
16-
* narrow-window choice (the page header's expand button keeps the other
17-
* half, `useConsoleSidebarRailPanel`). The float writes neither, and a state
19+
* narrow-window choice (the page header's expand button and ⌘B keep the
20+
* other half, `useConsoleSidebarRailPanel`). The float writes neither, and a state
1821
* this hook gives a window is not a choice.
1922
* @module
2023
*/

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { useResponsiveSidebar } from '../hooks/useResponsiveSidebar.js';
4141
import { usePhoneNavDrawerHistory } from './usePhoneNavDrawerHistory.js';
4242
import { usePhoneViewport } from '../hooks/usePhoneViewport.js';
4343
import { isAppDocsPath, isRecordPagePath } from './consoleRoutePaths.js';
44-
import { primeConsoleSidebarOpen } from './consoleSidebarRail.js';
44+
import { SIDEBAR_TOGGLE_CHORD, primeConsoleSidebarOpen } from './consoleSidebarRail.js';
4545
import { useAiSurfaceEnabled } from '../hooks/useAiSurface.js';
4646
import { servedObjectLabel } from '../hooks/servedObjectLabel.js';
4747
import { useNavigationContext } from '../context/NavigationContext.js';
@@ -82,16 +82,18 @@ interface ConsoleLayoutProps {
8282
}
8383

8484
/**
85-
* `⌘B` / `Ctrl+B` toggles the sidebar. The listener is `SidebarProvider`'s own
86-
* (`@object-ui/components`' synced Shadcn primitive, mounted by `AppShell`):
87-
* it matches `b` with ⌘ or Ctrl, and a bare `B` does nothing. That code is not
88-
* ours to edit, so the shortcut is advertised from inside the provider it
89-
* belongs to, by {@link ConsoleLayoutInner} (objectui#11674).
85+
* `⌘B` / `Ctrl+B` toggles the sidebar: it matches `b` with ⌘ or Ctrl, and a
86+
* bare `B` does nothing. From 768 px up the console sidebar answers it as a
87+
* press on its expand / collapse button (`useConsoleSidebarRailPanel`, ruling
88+
* 7074574380 on objectstack#36112); on a phone the listener is
89+
* `SidebarProvider`'s own (`@object-ui/components`' synced Shadcn primitive,
90+
* mounted by `AppShell`). The shortcut is advertised from inside that
91+
* provider, by {@link ConsoleLayoutInner} (objectui#11674).
9092
*/
9193
const TOGGLE_SIDEBAR_SHORTCUT: AdvertisedShortcut = {
9294
id: 'toggle-sidebar',
9395
group: 'navigation',
94-
chord: { key: 'b', mod: true },
96+
chord: SIDEBAR_TOGGLE_CHORD,
9597
label: (t: ShortcutLabelTranslate) => t('console.shortcuts.toggleSidebar'),
9698
};
9799

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

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,21 @@ import {
99
useSidebar,
1010
} from '@object-ui/components';
1111
import { useObjectTranslation } from '@object-ui/i18n';
12-
import { shortcutKeycaps, type ShortcutChord } from '../chrome/advertisedShortcuts.js';
12+
import { shortcutKeycaps } from '../chrome/advertisedShortcuts.js';
13+
import { SIDEBAR_TOGGLE_CHORD } from './consoleSidebarRail.js';
1314

1415
/**
15-
* The chord `SidebarProvider`'s own listener answers to (⌘B / Ctrl+B). It is
16-
* the same chord `ConsoleLayout` advertises to the keyboard-shortcuts dialog;
17-
* the tooltip draws it with the dialog's keycaps so the two never spell it
18-
* differently.
19-
*/
20-
const TOGGLE_SIDEBAR_CHORD: ShortcutChord = { key: 'b', mod: true };
21-
22-
/**
23-
* The shell's one sidebar trigger (objectui#12429). It lives in the app bar's
24-
* left slot at every width: below the Shadcn mobile breakpoint it opens and
25-
* closes the drawer, above it it collapses the sidebar and expands it again.
26-
* In the console a collapsed sidebar is hidden, and the trigger floats its
27-
* menu over the content instead of expanding it (objectstack#35062,
28-
* `consoleSidebarRail`). `aria-expanded` follows whichever of the two states
29-
* the click toggles, and the tooltip names the keyboard shortcut.
16+
* The shell's sidebar trigger (objectui#12429): below the Shadcn mobile
17+
* breakpoint it opens and closes the drawer, above it it collapses the
18+
* sidebar and expands it again. In the console a collapsed sidebar is hidden,
19+
* and the trigger docks it beside the content again as the reader's choice
20+
* (ruling 7069868269 on objectstack#36112, `consoleSidebarRail`).
21+
* `aria-expanded` follows whichever of the two states the click toggles.
22+
*
23+
* The tooltip names ⌘B / Ctrl+B ({@link SIDEBAR_TOGGLE_CHORD}), drawn with
24+
* the keyboard-shortcuts dialog's keycaps so the two never spell it
25+
* differently: the chord is a press on this button (ruling 7074574380 on
26+
* objectstack#36112).
3027
*/
3128
export const LocalizedSidebarTrigger = React.forwardRef<
3229
React.ElementRef<typeof Button>,
@@ -64,7 +61,7 @@ export const LocalizedSidebarTrigger = React.forwardRef<
6461
data-testid="sidebar-trigger-shortcut"
6562
className="pointer-events-none inline-flex h-5 select-none items-center gap-0.5 rounded border bg-muted px-1.5 font-mono text-xs font-medium text-muted-foreground"
6663
>
67-
{shortcutKeycaps(TOGGLE_SIDEBAR_CHORD).join('')}
64+
{shortcutKeycaps(SIDEBAR_TOGGLE_CHORD).join('')}
6865
</kbd>
6966
</TooltipContent>
7067
</Tooltip>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ export function UnifiedSidebar({ activeAppName, onAppChange, railOverlay = false
934934
</Sidebar>
935935
{/* objectstack#35062 — the window's left edge while the sidebar is
936936
hidden: resting the pointer on it, or a press, floats the menu. For
937-
the pointer only; the keyboard has the app bar's trigger and ⌘B. */}
937+
the pointer only; the keyboard has the page header's expand button
938+
and ⌘B, which dock the sidebar. */}
938939
{railPanel.edgeZoneProps && (
939940
<div
940941
data-testid="console-sidebar-edge"

0 commit comments

Comments
 (0)