The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): put the HUD toggle beside the layout editor
Brooklyn Nicholson10c1530599cd
diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsxindex fbb6558c530..b663ec611e3 100644--- a/apps/desktop/src/app/contrib/wiring.tsx+++ b/apps/desktop/src/app/contrib/wiring.tsx@@ -987,7 +987,7 @@ export function ContribWiring({ children }: { children: ReactNode }) {// Pane-registered tools (preview's monitor/devtools cluster) anchor flush// against the static system cluster — in the tree layout the titlebar band// sits ABOVE the grid, so AppShell's pane-width anchoring doesn't apply.- const SYSTEM_TOOL_COUNT = 5+ const SYSTEM_TOOL_COUNT = 4const paneToolCount = rightTitlebarTools.filter(tool => !tool.hidden).lengthconst systemToolsWidth = `calc(${SYSTEM_TOOL_COUNT} * (var(--titlebar-control-size) + 0.25rem))`diff --git a/apps/desktop/src/app/shell/titlebar-controls.tsx b/apps/desktop/src/app/shell/titlebar-controls.tsxindex 1ed2b1c5207..ee9b566bbdd 100644--- a/apps/desktop/src/app/shell/titlebar-controls.tsx+++ b/apps/desktop/src/app/shell/titlebar-controls.tsx@@ -21,7 +21,7 @@ import {toggleSidebarOpen} from '@/store/layout'-import { appViewForPath, isOverlayView, SETTINGS_ROUTE } from '../routes'+import { appViewForPath, isOverlayView } from '../routes'import { titlebarButtonClass } from './titlebar'@@ -182,13 +182,6 @@ export function TitlebarControls({ leftTools = [], tools = [], onOpenSettings }:},title: t.titlebar.layoutEditorTitle},- {- active: hapticsMuted,- icon: <Codicon name={hapticsMuted ? 'mute' : 'unmute'} />,- id: 'haptics',- label: hapticsMuted ? t.titlebar.unmuteHaptics : t.titlebar.muteHaptics,- onSelect: toggleHaptics- },{// No `title`: TitlebarToolButton passes `title` to TipKeybindLabel as a// text OVERRIDE, so a long sentence there replaces the short label and@@ -204,14 +197,11 @@ export function TitlebarControls({ leftTools = [], tools = [], onOpenSettings }:}},{- actionId: 'keybinds.openPanel',- icon: <Codicon name="keyboard" />,- id: 'keybinds',- label: t.titlebar.openKeybinds,- onSelect: () => {- triggerHaptic('open')- navigate(`${SETTINGS_ROUTE}?tab=keybinds`)- }+ active: hapticsMuted,+ icon: <Codicon name={hapticsMuted ? 'mute' : 'unmute'} />,+ id: 'haptics',+ label: hapticsMuted ? t.titlebar.unmuteHaptics : t.titlebar.muteHaptics,+ onSelect: toggleHaptics},{actionId: 'nav.settings',diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 02e7229400b..9a6853609d0 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -172,7 +172,6 @@ export const ar = defineLocale({unmuteHaptics: 'تفعيل الاهتزازات',openSettings: 'فتح الإعدادات',openStarmap: 'فتح خريطة الذاكرة',- openKeybinds: 'اختصارات لوحة المفاتيح',enterHud: 'وضع HUD',exitHud: 'إنهاء وضع HUD',layoutEditor: 'محرر التخطيط',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 03ae6b5b2c4..f897e4c1ae0 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -202,7 +202,6 @@ export const en: Translations = {unmuteHaptics: 'Unmute haptics',openSettings: 'Open settings',openStarmap: 'Open memory graph',- openKeybinds: 'Keyboard shortcuts',enterHud: 'HUD mode',exitHud: 'Exit HUD mode',layoutEditor: 'Layout editor',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex e9ca76d857b..9693ab312e7 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -244,7 +244,6 @@ export interface Translations {unmuteHaptics: stringopenSettings: stringopenStarmap: string- openKeybinds: stringenterHud: stringexitHud: stringlayoutEditor: stringdiff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex e38735e7885..53d170e798a 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -197,7 +197,6 @@ export const zh: Translations = {unmuteHaptics: '开启触感反馈',openSettings: '打开设置',openStarmap: '打开记忆图谱',- openKeybinds: '键盘快捷键',enterHud: 'HUD 模式',exitHud: '退出 HUD 模式',layoutEditor: '布局编辑器',