From e51b9da51951963fe09e9f488f5ae5cce0efcf1d Mon Sep 17 00:00:00 2001 From: Karabach <12261380+akarabach@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:41:56 +0100 Subject: [PATCH] add list mode --- .../app/src/components/settings-general.tsx | 24 +- packages/app/src/context/settings.tsx | 8 + packages/app/src/i18n/en.ts | 5 + packages/app/src/pages/layout.tsx | 224 +++++++++++----- .../app/src/pages/layout/sidebar-items.tsx | 43 +--- .../app/src/pages/layout/sidebar-list.tsx | 242 ++++++++++++++++++ .../pages/layout/sidebar-session-status.tsx | 45 ++++ 7 files changed, 481 insertions(+), 110 deletions(-) create mode 100644 packages/app/src/pages/layout/sidebar-list.tsx create mode 100644 packages/app/src/pages/layout/sidebar-session-status.tsx diff --git a/packages/app/src/components/settings-general.tsx b/packages/app/src/components/settings-general.tsx index 42ee4092f68..c50386fee8c 100644 --- a/packages/app/src/components/settings-general.tsx +++ b/packages/app/src/components/settings-general.tsx @@ -9,7 +9,7 @@ import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme" import { showToast } from "@opencode-ai/ui/toast" import { useLanguage } from "@/context/language" import { usePlatform } from "@/context/platform" -import { useSettings, monoFontFamily } from "@/context/settings" +import { useSettings, monoFontFamily, type SidebarStyle } from "@/context/settings" import { playSound, SOUND_OPTIONS } from "@/utils/sound" import { Link } from "./link" @@ -137,6 +137,11 @@ export const SettingsGeneral: Component = () => { ] as const const fontOptionsList = [...fontOptions] + const sidebarStyleOptions = [ + { value: "classic" as SidebarStyle, label: "sidebar.style.classic" as const }, + { value: "list" as SidebarStyle, label: "sidebar.style.list" as const }, + ] + const noneSound = { id: "none", label: "sound.option.none", src: undefined } as const const soundOptions = [noneSound, ...SOUND_OPTIONS] @@ -267,6 +272,23 @@ export const SettingsGeneral: Component = () => { )} + + +