From 359e89971f9f27c40306b6ca527136ab9b113ae0 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Thu, 12 Feb 2026 15:37:58 +0000 Subject: [PATCH 1/3] feat(ui): add new session icon in sidebar header --- .../components/instance/shell/SessionSidebar.tsx | 16 +++++++++++++++- packages/ui/src/lib/i18n/messages/en/session.ts | 2 ++ packages/ui/src/lib/i18n/messages/es/session.ts | 2 ++ packages/ui/src/lib/i18n/messages/fr/session.ts | 2 ++ packages/ui/src/lib/i18n/messages/ja/session.ts | 2 ++ packages/ui/src/lib/i18n/messages/ru/session.ts | 2 ++ .../ui/src/lib/i18n/messages/zh-Hans/session.ts | 2 ++ 7 files changed, 27 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/instance/shell/SessionSidebar.tsx b/packages/ui/src/components/instance/shell/SessionSidebar.tsx index affce5dd..1308956f 100644 --- a/packages/ui/src/components/instance/shell/SessionSidebar.tsx +++ b/packages/ui/src/components/instance/shell/SessionSidebar.tsx @@ -4,7 +4,7 @@ import type { Session } from "../../../types/session" import type { KeyboardShortcut } from "../../../lib/keyboard-registry" import type { DrawerViewState } from "./types" -import { Search } from "lucide-solid" +import { Search, SquarePlus } from "lucide-solid" import IconButton from "@suid/material/IconButton" import MenuOpenIcon from "@suid/icons-material/MenuOpen" import PushPinIcon from "@suid/icons-material/PushPin" @@ -56,6 +56,20 @@ const SessionSidebar: Component = (props) => ( {props.t("instanceShell.leftPanel.sessionsTitle")}
+ { + const result = props.onNewSession() + if (result instanceof Promise) { + void result.catch((error) => log.error("Failed to create session:", error)) + } + }} + > + + Date: Thu, 12 Feb 2026 15:47:50 +0000 Subject: [PATCH 2/3] fix(ui): use PlusSquare icon export --- packages/ui/src/components/instance/shell/SessionSidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/instance/shell/SessionSidebar.tsx b/packages/ui/src/components/instance/shell/SessionSidebar.tsx index 1308956f..ac5395ba 100644 --- a/packages/ui/src/components/instance/shell/SessionSidebar.tsx +++ b/packages/ui/src/components/instance/shell/SessionSidebar.tsx @@ -4,7 +4,7 @@ import type { Session } from "../../../types/session" import type { KeyboardShortcut } from "../../../lib/keyboard-registry" import type { DrawerViewState } from "./types" -import { Search, SquarePlus } from "lucide-solid" +import { PlusSquare, Search } from "lucide-solid" import IconButton from "@suid/material/IconButton" import MenuOpenIcon from "@suid/icons-material/MenuOpen" import PushPinIcon from "@suid/icons-material/PushPin" @@ -68,7 +68,7 @@ const SessionSidebar: Component = (props) => ( } }} > - + Date: Thu, 12 Feb 2026 16:07:54 +0000 Subject: [PATCH 3/3] fix(ui): align sidebar header icon sizes --- packages/ui/src/components/instance/shell/SessionSidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/instance/shell/SessionSidebar.tsx b/packages/ui/src/components/instance/shell/SessionSidebar.tsx index ac5395ba..6f3fd70a 100644 --- a/packages/ui/src/components/instance/shell/SessionSidebar.tsx +++ b/packages/ui/src/components/instance/shell/SessionSidebar.tsx @@ -68,7 +68,7 @@ const SessionSidebar: Component = (props) => ( } }} > - + = (props) => ( }, }} > - +