From e7214d4e7e78e97b3c6cf0669ecfd37e3aa6f3f7 Mon Sep 17 00:00:00 2001 From: Val Alexander Date: Sat, 4 Apr 2026 14:08:49 -0500 Subject: [PATCH] Remove favorites sidebar feature - Drop favorites settings and dropdown UI - Clean up related sidebar references and formatting --- apps/marketing/components/OkCodeLogo.tsx | 13 +- apps/web/src/appSettings.ts | 3 - apps/web/src/components/FavesDropdown.tsx | 175 ------------------ apps/web/src/components/OkCodeMark.tsx | 13 +- apps/web/src/components/Sidebar.tsx | 4 - .../src/components/chat/HeaderPanelsMenu.tsx | 13 +- .../merge-conflicts/MergeConflictShell.tsx | 27 ++- apps/web/src/components/skills/SkillsPage.tsx | 7 +- apps/web/src/lib/customTheme.ts | 4 +- scripts/update-ios-version.ts | 11 +- 10 files changed, 28 insertions(+), 242 deletions(-) delete mode 100644 apps/web/src/components/FavesDropdown.tsx diff --git a/apps/marketing/components/OkCodeLogo.tsx b/apps/marketing/components/OkCodeLogo.tsx index a90024c81..2e1c5e699 100644 --- a/apps/marketing/components/OkCodeLogo.tsx +++ b/apps/marketing/components/OkCodeLogo.tsx @@ -9,17 +9,8 @@ type OkCodeLogoProps = { export function OkCodeMark({ className = "w-6 h-6" }: OkCodeMarkProps) { return ( - - - - } - > - - Faves - {favorites.length > 0 && ( - - {favorites.length} - - )} - - } - /> - Your favorites - - - - - Faves - {favorites.length === 0 && !isAdding && ( -
- No favorites yet. Click + to add one. -
- )} - {favorites.map((fav) => ( - - {fav} - - - ))} -
- - - - {isAdding ? ( -
- setNewFav(event.target.value)} - onKeyDown={handleKeyDown} - autoFocus - maxLength={MAX_FAVORITE_LENGTH} - /> - -
- ) : ( - { - event.preventDefault(); - event.stopPropagation(); - setIsAdding(true); - queueMicrotask(() => inputRef.current?.focus()); - }} - > - - Add favorite - - )} -
-
- ); -} diff --git a/apps/web/src/components/OkCodeMark.tsx b/apps/web/src/components/OkCodeMark.tsx index 35ac32b26..4115aeb79 100644 --- a/apps/web/src/components/OkCodeMark.tsx +++ b/apps/web/src/components/OkCodeMark.tsx @@ -4,17 +4,8 @@ type OkCodeMarkProps = { export function OkCodeMark({ className = "size-5" }: OkCodeMarkProps) { return ( - Skills - - - + s.threads); const openCodeViewer = useCodeViewerStore((s) => s.open); - const navigateToLatestThread = useCallback( - () => { - openCodeViewer(); - const sorted = [...threads].sort((a, b) => - (b.updatedAt ?? b.createdAt).localeCompare(a.updatedAt ?? a.createdAt), - ); - const latest = sorted[0]; - if (latest) { - void navigate({ to: "/$threadId", params: { threadId: latest.id } }); - } else { - void navigate({ to: "/" }); - } - }, - [navigate, openCodeViewer, threads], - ); + const navigateToLatestThread = useCallback(() => { + openCodeViewer(); + const sorted = [...threads].sort((a, b) => + (b.updatedAt ?? b.createdAt).localeCompare(a.updatedAt ?? a.createdAt), + ); + const latest = sorted[0]; + if (latest) { + void navigate({ to: "/$threadId", params: { threadId: latest.id } }); + } else { + void navigate({ to: "/" }); + } + }, [navigate, openCodeViewer, threads]); return (
diff --git a/apps/web/src/components/skills/SkillsPage.tsx b/apps/web/src/components/skills/SkillsPage.tsx index cc70f1389..7a11481db 100644 --- a/apps/web/src/components/skills/SkillsPage.tsx +++ b/apps/web/src/components/skills/SkillsPage.tsx @@ -510,11 +510,10 @@ export function SkillsPage(props: {
-

- Unable to load skills -

+

Unable to load skills

- {queryErrorMessage ?? "The skills service is unavailable. Check that the server is running."} + {queryErrorMessage ?? + "The skills service is unavailable. Check that the server is running."}