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."}