feat(nav): collapsible sidebar + mobile drawer, user menu, breadcrumbs, polished cmd+k, header search
Build & Push Docker Image / build (push) Successful in 2m46s

This commit is contained in:
opencode
2026-08-02 14:55:18 +02:00
parent 2f38889726
commit c6755b586b
9 changed files with 493 additions and 158 deletions
@@ -59,6 +59,7 @@ import {
AlertDialogTitle,
} from "@/components/ui/alert-dialog";
import { customFetch } from "@workspace/api-client-react";
import { recordRecentTool } from "@/lib/recent-tools";
const ratingSchema = z.object({
usefulness: z.number().min(1).max(5),
@@ -202,6 +203,10 @@ export default function ToolDetail() {
query: { enabled: !!id, queryKey: getGetToolQueryKey(id) }
});
useEffect(() => {
if (tool?.id && tool.name) recordRecentTool(tool.id, tool.name);
}, [tool]);
const { data: ratings, isLoading: loadingRatings } = useListToolRatings(id, {
query: { enabled: !!id, queryKey: getListToolRatingsQueryKey(id) }
});