Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(desktop): add project detail route

Naiyuan Qingcb81aa48d349
diff --git a/apps/desktop/src/renderer/src/pages/project-detail-page.tsx b/apps/desktop/src/renderer/src/pages/project-detail-page.tsx
new file mode 100644
index 0000000000..a476ebf40f
--- /dev/null
+++ b/apps/desktop/src/renderer/src/pages/project-detail-page.tsx
@@ -0,0 +1,17 @@
+import { useParams } from "react-router-dom";
+import { useQuery } from "@tanstack/react-query";
+import { ProjectDetail } from "@multica/views/projects/components";
+import { useWorkspaceId } from "@multica/core/hooks";
+import { projectDetailOptions } from "@multica/core/projects/queries";
+import { useDocumentTitle } from "@/hooks/use-document-title";
+
+export function ProjectDetailPage() {
+ const { id } = useParams<{ id: string }>();
+ const wsId = useWorkspaceId();
+ const { data: project } = useQuery(projectDetailOptions(wsId, id!));
+
+ useDocumentTitle(project ? `${project.icon || "📁"} ${project.title}` : "Project");
+
+ if (!id) return null;
+ return <ProjectDetail projectId={id} />;
+}