From 86639eb2b9bfa2600cdc122b30de6c7429c9e3dc Mon Sep 17 00:00:00 2001 From: prem315 Date: Sun, 1 Nov 2026 17:55:38 +0530 Subject: [PATCH] feat(web): restyle sidebar and round the session panel --- apps/web/package.json | 2 + apps/web/src/landing/sidebar.tsx | 67 ++++++++++++++++++-------------- apps/web/src/routes/__root.tsx | 8 ++-- apps/web/src/shell/titlebar.tsx | 2 +- apps/web/src/style.css | 5 +-- pnpm-lock.yaml | 20 ++++++++++ 6 files changed, 68 insertions(+), 36 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index cf7421c9..1aa4108f 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -16,6 +16,8 @@ "@codeworksh/contract": "workspace:*", "@codeworksh/widget": "workspace:*", "@effect/atom-react": "4.0.5", + "@hugeicons/core-free-icons": "^4.4.0", + "@hugeicons/react": "^1.1.10", "@legendapp/list": "3.3.5", "@pierre/trees": "1.0.0-beta.6", "@tanstack/react-router": "^1.161.0", diff --git a/apps/web/src/landing/sidebar.tsx b/apps/web/src/landing/sidebar.tsx index be49dd4d..25da8b54 100644 --- a/apps/web/src/landing/sidebar.tsx +++ b/apps/web/src/landing/sidebar.tsx @@ -1,7 +1,8 @@ import { useAtom, useAtomValue } from "@effect/atom-react"; +import { PlusSignIcon, Search01Icon, Settings02Icon, SquarePenIcon } from "@hugeicons/core-free-icons"; +import { HugeiconsIcon } from "@hugeicons/react"; import { Link, useNavigate, useParams } from "@tanstack/react-router"; import { AsyncResult } from "effect/reactivity"; -import { Plus, Search, Settings, SquarePen } from "lucide-react"; import { type MouseEvent, useState } from "react"; import { @@ -71,34 +72,34 @@ export function SessionsSidebar() { return ( - -
- {/* The icon centers on the input alone, not on the padding below it. */} -
- - setQuery(event.target.value)} - className="h-7 rounded-md border-transparent bg-transparent pl-8 text-ui shadow-none focus-visible:bg-selection-subtle" - /> -
- + +
+ + setQuery(event.target.value)} + className="h-8 rounded-md border-edge bg-transparent pr-2 pl-8 text-ui shadow-sm placeholder:text-ink-muted focus-visible:border-edge-focus focus-visible:bg-selection-subtle focus-visible:ring-0" + />
+
-

- Recent sessions -

+

Sessions

{problem !== undefined ? ( No projects yet {addProject !== undefined && ( } + icon={ + + } onClick={addProject} > Add project @@ -155,9 +164,9 @@ export function SessionsSidebar() { - + Settings diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx index b9374e4d..13c50d52 100644 --- a/apps/web/src/routes/__root.tsx +++ b/apps/web/src/routes/__root.tsx @@ -18,10 +18,12 @@ function Root() { widthStorageKey="codework.sidebar.width" > -
+
{inSettings ? : } -
- +
+
+ +
diff --git a/apps/web/src/shell/titlebar.tsx b/apps/web/src/shell/titlebar.tsx index 477298cf..502c519b 100644 --- a/apps/web/src/shell/titlebar.tsx +++ b/apps/web/src/shell/titlebar.tsx @@ -31,7 +31,7 @@ export function NavigationControls() {