⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: implement task detail modal and enhance task interaction
Andrej Acevskieb3abccdb8a9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 50d9aea35..fc5a1e736 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -120,7 +120,7 @@* **notification:** implement notification system ([#270](https://github.com/usekaneo/kaneo/issues/270)) ([3907fb2](https://github.com/usekaneo/kaneo/commit/3907fb23042e8654a6e799167098a81873f661ab))* right click card/row context menu ([#238](https://github.com/usekaneo/kaneo/issues/238)) ([0754ae1](https://github.com/usekaneo/kaneo/commit/0754ae1e77eb2ffab22dc5fd478c1b248090b671))* set base path for documentation site to "/kaneo" ([88661a0](https://github.com/usekaneo/kaneo/commit/88661a0bfae81b19fd157fc9d5b8871efd04b7de))-* update Hero component link to roadmap and add roadmap documentation ([c62925f](https://github.com/usekaneo/kaneo/commit/c62925f28ae32b572ae2414dafbfcc6542dcaddb))+* update Hero component link to roadmap and add live roadmap ([c62925f](https://github.com/usekaneo/kaneo/commit/c62925f28ae32b572ae2414dafbfcc6542dcaddb))* workspace details update and delete feature added ([#119](https://github.com/usekaneo/kaneo/issues/119)) ([44af5ff](https://github.com/usekaneo/kaneo/commit/44af5ff2be063700efbcfb758ba6ca01b2084a77))@@ -284,4 +284,4 @@All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).diff --git a/apps/docs/content/docs/roadmap.mdx b/apps/docs/content/docs/roadmap.mdxindex af16ed773..ca057b16f 100644--- a/apps/docs/content/docs/roadmap.mdx+++ b/apps/docs/content/docs/roadmap.mdx@@ -1,53 +1,61 @@---title: Roadmap-description: Upcoming features and development plans for Kaneo+description: View our live roadmap managed in Kaneoicon: Map----import { Step, Steps } from 'fumadocs-ui/components/steps';import { Callout } from 'fumadocs-ui/components/callout';-import { Accordion, Accordions } from 'fumadocs-ui/components/accordion';-This roadmap outlines our planned features and improvements for Kaneo. While we're committed to delivering these enhancements, the timeline and priorities may shift based on community feedback.+Our roadmap is managed live using Kaneo itself! This gives you real-time visibility into our development progress and planned features.<Callout type="info">- We welcome community input on our roadmap! Your feedback helps us prioritize development efforts.+ 🚀 **Live Roadmap**: View our active development board to see what we're working on and what's coming next.</Callout>-## Core Task Management--- [Subtasks/child issues](https://github.com/usekaneo/kaneo/issues/240)-- [Linking tasks (parent/child relationships)](https://github.com/usekaneo/kaneo/issues/241)-- [Move tasks between projects](https://github.com/usekaneo/kaneo/issues/246)--## Content & Attachments--- [File attachments for cards](https://github.com/usekaneo/kaneo/issues/242)-- [Due dates with configurable defaults](https://github.com/usekaneo/kaneo/issues/247)-- [Reminders/notifications](https://github.com/usekaneo/kaneo/issues/248)--## Board Customization--- [Custom workflows](https://github.com/usekaneo/kaneo/issues/243)-- [Editable statuses](https://github.com/usekaneo/kaneo/issues/243)-- [Custom fields configuration](https://github.com/usekaneo/kaneo/issues/249)--## Integration & Authentication--- [GitHub integration](https://github.com/usekaneo/kaneo/issues/244)-- [OIDC and SAML support](https://github.com/usekaneo/kaneo/issues/250)-- [PostgreSQL support](https://github.com/usekaneo/kaneo/issues/251)--## Advanced Features--- [Gantt chart view](https://github.com/usekaneo/kaneo/issues/153)-- [Task dependencies](https://github.com/usekaneo/kaneo/issues/254)-- [Global search functionality](https://github.com/usekaneo/kaneo/issues/252)--## Team Collaboration--- [Role-based access (Admin, Collaborator, Viewer)](https://github.com/usekaneo/kaneo/issues/245)-- [Granular permissions for boards/tasks](https://github.com/usekaneo/kaneo/issues/253)+## View Our Live Roadmap++Visit our public Kaneo project board to see:++- **Current development status** - What we're actively working on+- **Planned features** - Upcoming enhancements and improvements+- **Progress tracking** - Real-time updates on feature development+- **Community feedback** - Issues and requests from our users++<div className="not-prose my-6">+ <a+ href="https://cloud.kaneo.app/public-project/cfbsivkl5ejpuyf1tgghuvxl"+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 shadow-lg shadow-indigo-500/20 py-3 bg-indigo-600 text-white hover:bg-indigo-500 hover:scale-[1.02] dark:bg-indigo-500 dark:hover:bg-indigo-400 h-12 px-8"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="lucide lucide-external-link"+ >+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />+ <polyline points="15,3 21,3 21,9" />+ <line x1="10" x2="21" y1="14" y2="3" />+ </svg>+ View Live Roadmap+ </a>+</div>++## Why a Live Roadmap?++By using Kaneo to manage our own roadmap, we:++- **Practice what we preach** - We use our own tool for project management+- **Provide transparency** - Real-time visibility into our development process+- **Enable collaboration** - Community members can see progress and provide feedback+- **Demonstrate features** - Showcase Kaneo's capabilities in action## Contributing to the Roadmap@@ -55,14 +63,7 @@ This roadmap outlines our planned features and improvements for Kaneo. While we'Your contributions and feedback help shape the future of Kaneo. We encourage community involvement in our development process.</Callout>-<Steps>- <Step>- Join our [Discord community](https://discord.gg/rU4tSyhXXU) to discuss feature ideas- </Step>- <Step>- Open an issue on our [GitHub repository](https://github.com/usekaneo/kaneo) for feature requests- </Step>- <Step>- Submit a pull request if you've implemented a feature from the roadmap- </Step>-</Steps>\ No newline at end of file+- **View the live board** - Check our [public roadmap](https://cloud.kaneo.app/public-project/cfbsivkl5ejpuyf1tgghuvxl) to see current status+- **Join our [Discord community](https://discord.gg/rU4tSyhXXU)** - Discuss feature ideas and provide feedback+- **Open an issue** - Submit feature requests on our [GitHub repository](https://github.com/usekaneo/kaneo)+- **Submit pull requests** - Contribute code for features from the roadmap\ No newline at end of filediff --git a/apps/web/src/components/common/markdown-renderer.tsx b/apps/web/src/components/common/markdown-renderer.tsxnew file mode 100644index 000000000..50183c0d9--- /dev/null+++ b/apps/web/src/components/common/markdown-renderer.tsx@@ -0,0 +1,123 @@+import Highlight from "@tiptap/extension-highlight";+import Link from "@tiptap/extension-link";+import TaskItem from "@tiptap/extension-task-item";+import TaskList from "@tiptap/extension-task-list";+import { EditorContent, useEditor } from "@tiptap/react";+import StarterKit from "@tiptap/starter-kit";+import { Markdown } from "tiptap-markdown";++interface MarkdownRendererProps {+ content: string;+ className?: string;+}++export function MarkdownRenderer({+ content,+ className = "",+}: MarkdownRendererProps) {+ const editor = useEditor({+ editable: false,+ content,+ extensions: [+ StarterKit.configure({+ heading: {+ levels: [1, 2, 3, 4, 5, 6],+ HTMLAttributes: {+ class:+ "text-zinc-900 dark:text-zinc-100 font-semibold leading-tight",+ },+ },+ paragraph: {+ HTMLAttributes: {+ class: "text-zinc-700 dark:text-zinc-300 leading-relaxed",+ },+ },+ codeBlock: {+ HTMLAttributes: {+ class:+ "block rounded-md bg-zinc-100 dark:bg-zinc-800 p-4 font-mono text-sm text-zinc-900 dark:text-zinc-200 my-4",+ },+ },+ code: {+ HTMLAttributes: {+ class:+ "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-200 rounded px-1.5 py-0.5 font-mono text-sm",+ },+ },+ blockquote: {+ HTMLAttributes: {+ class:+ "border-l-4 border-zinc-300 dark:border-zinc-600 pl-4 italic text-zinc-600 dark:text-zinc-400",+ },+ },+ orderedList: {+ HTMLAttributes: {+ class: "list-decimal pl-6 space-y-1",+ },+ },+ bulletList: {+ HTMLAttributes: {+ class: "list-disc pl-6 space-y-1",+ },+ },+ listItem: {+ HTMLAttributes: {+ class: "text-zinc-700 dark:text-zinc-300",+ },+ },+ horizontalRule: {+ HTMLAttributes: {+ class: "border-zinc-300 dark:border-zinc-600 my-6",+ },+ },+ }),+ Link.configure({+ openOnClick: true,+ autolink: true,+ defaultProtocol: "https",+ HTMLAttributes: {+ class:+ "text-indigo-600 dark:text-indigo-400 underline cursor-pointer hover:text-indigo-800 dark:hover:text-indigo-300",+ },+ }),+ Highlight.configure({+ HTMLAttributes: {+ class:+ "bg-indigo-100 text-indigo-900 dark:bg-indigo-500/20 dark:text-indigo-300 rounded-sm px-1",+ },+ }),+ TaskList.configure({+ HTMLAttributes: {+ class: "not-prose pl-2 space-y-1",+ },+ }),+ TaskItem.configure({+ nested: true,+ HTMLAttributes: {+ class: "flex gap-2 items-start",+ },+ }),+ Markdown.configure({+ html: true,+ tightLists: true,+ linkify: true,+ breaks: true,+ }),+ ],+ });++ if (!editor) {+ return null;+ }++ return (+ <div+ className={`prose prose-sm max-w-none dark:prose-invert prose-zinc [&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mt-8 [&_h1]:mb-4 [&_h2]:text-xl [&_h2]:font-semibold [&_h2]:mt-6 [&_h2]:mb-3 [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:mt-4 [&_h3]:mb-2 [&_h4]:text-base [&_h4]:font-semibold [&_h4]:mt-3 [&_h4]:mb-2 [&_h5]:text-sm [&_h5]:font-semibold [&_h5]:mt-2 [&_h5]:mb-1 [&_h6]:text-xs [&_h6]:font-semibold [&_h6]:mt-2 [&_h6]:mb-1 ${className}`}+ >+ <EditorContent+ editor={editor}+ className="[&_.ProseMirror]:outline-none [&_.ProseMirror]:border-none [&_.ProseMirror]:p-0"+ />+ </div>+ );+}diff --git a/apps/web/src/components/public-project/kanban-view.tsx b/apps/web/src/components/public-project/kanban-view.tsxindex 3abdf0a5c..07a606720 100644--- a/apps/web/src/components/public-project/kanban-view.tsx+++ b/apps/web/src/components/public-project/kanban-view.tsx@@ -13,9 +13,13 @@ interface Column {interface PublicKanbanViewProps {project: ProjectWithTasks;+ onTaskClick: (task: Task) => void;}-export function PublicKanbanView({ project }: PublicKanbanViewProps) {+export function PublicKanbanView({+ project,+ onTaskClick,+}: PublicKanbanViewProps) {const columns: Column[] = DEFAULT_COLUMNS.map((column) => ({...column,tasks: project.columns?.find((col) => col.id === column.id)?.tasks || [],@@ -50,6 +54,7 @@ export function PublicKanbanView({ project }: PublicKanbanViewProps) {key={task.id}task={task}projectSlug={project.slug}+ onTaskClick={onTaskClick}/>))}diff --git a/apps/web/src/components/public-project/list-view.tsx b/apps/web/src/components/public-project/list-view.tsxindex af71de70e..9542963b3 100644--- a/apps/web/src/components/public-project/list-view.tsx+++ b/apps/web/src/components/public-project/list-view.tsx@@ -13,9 +13,10 @@ interface Column {interface PublicListViewProps {project: ProjectWithTasks;+ onTaskClick: (task: Task) => void;}-export function PublicListView({ project }: PublicListViewProps) {+export function PublicListView({ project, onTaskClick }: PublicListViewProps) {const columns: Column[] = DEFAULT_COLUMNS.map((column) => ({...column,tasks: project.columns?.find((col) => col.id === column.id)?.tasks || [],@@ -44,6 +45,7 @@ export function PublicListView({ project }: PublicListViewProps) {key={task.id}task={task}projectSlug={project.slug}+ onTaskClick={onTaskClick}/>))}diff --git a/apps/web/src/components/public-project/task-card.tsx b/apps/web/src/components/public-project/task-card.tsxindex 7e2b52a55..14a30f633 100644--- a/apps/web/src/components/public-project/task-card.tsx+++ b/apps/web/src/components/public-project/task-card.tsx@@ -8,11 +8,21 @@ import { Flag } from "lucide-react";interface PublicTaskCardProps {task: Task;projectSlug: string;+ onTaskClick: (task: Task) => void;}-export function PublicTaskCard({ task, projectSlug }: PublicTaskCardProps) {+export function PublicTaskCard({+ task,+ projectSlug,+ onTaskClick,+}: PublicTaskCardProps) {return (- <div className="p-4 bg-white dark:bg-zinc-800/80 rounded-lg border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-shadow">+ <button+ type="button"+ className="w-full text-left p-4 bg-white dark:bg-zinc-800/80 rounded-lg border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-all cursor-pointer hover:border-zinc-300 dark:hover:border-zinc-600 hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900"+ onClick={() => onTaskClick(task)}+ aria-label={`View details for task ${task.title}`}+ ><div className="space-y-3"><div className="flex items-start justify-between gap-2"><div className="space-y-1 flex-1 min-w-0">@@ -64,6 +74,6 @@ export function PublicTaskCard({ task, projectSlug }: PublicTaskCardProps) {</div></div></div>- </div>+ </button>);}diff --git a/apps/web/src/components/public-project/task-detail-modal.tsx b/apps/web/src/components/public-project/task-detail-modal.tsxnew file mode 100644index 000000000..af2039438--- /dev/null+++ b/apps/web/src/components/public-project/task-detail-modal.tsx@@ -0,0 +1,140 @@+import { MarkdownRenderer } from "@/components/common/markdown-renderer";+import { Avatar, AvatarFallback } from "@/components/ui/avatar";+import { priorityColorsTaskCard } from "@/constants/priority-colors";+import { cn } from "@/lib/cn";+import type Task from "@/types/task";+import * as Dialog from "@radix-ui/react-dialog";+import { format } from "date-fns";+import { Calendar, Flag, User, X } from "lucide-react";++interface PublicTaskDetailModalProps {+ task: Task | null;+ projectSlug: string;+ open: boolean;+ onOpenChange: (open: boolean) => void;+}++export function PublicTaskDetailModal({+ task,+ projectSlug,+ open,+ onOpenChange,+}: PublicTaskDetailModalProps) {+ if (!task) return null;++ return (+ <Dialog.Root open={open} onOpenChange={onOpenChange}>+ <Dialog.Portal>+ <Dialog.Overlay className="fixed inset-0 bg-black/60 backdrop-blur-sm z-40" />+ <Dialog.Content className="fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-2xl max-h-[90vh] overflow-hidden">+ <div className="bg-white dark:bg-zinc-900 rounded-xl shadow-2xl border border-zinc-200 dark:border-zinc-700/50 flex flex-col h-full max-h-[90vh]">+ {/* Header */}+ <div className="flex items-center justify-between p-6 border-b border-zinc-200 dark:border-zinc-800/50 flex-shrink-0">+ <div className="flex items-center gap-3">+ <div className="text-sm text-zinc-600 dark:text-zinc-400 font-mono font-medium">+ {projectSlug.toUpperCase()}-{task.number}+ </div>+ <div className="w-1 h-1 bg-gradient-to-r from-indigo-400 to-purple-400 rounded-full" />+ <div className="text-sm text-zinc-700 dark:text-zinc-300 font-medium">+ Task Details+ </div>+ </div>+ <Dialog.Close className="text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 cursor-pointer p-2 hover:bg-zinc-100 dark:hover:bg-zinc-800/50 rounded-lg transition-all duration-200">+ <X size={18} />+ </Dialog.Close>+ </div>++ {/* Content */}+ <div className="flex-1 overflow-y-auto">+ <div className="p-6 space-y-6">+ {/* Title */}+ <div>+ <h1 className="text-xl font-semibold text-zinc-900 dark:text-zinc-100 leading-relaxed">+ {task.title}+ </h1>+ </div>++ {/* Meta information */}+ <div className="flex flex-wrap items-center gap-4">+ {task.priority && (+ <div+ className={cn(+ "flex items-center gap-2 text-sm px-3 py-1.5 rounded-full font-medium",+ priorityColorsTaskCard[+ task.priority as keyof typeof priorityColorsTaskCard+ ],+ )}+ >+ <Flag className="w-4 h-4" />+ <span className="capitalize">+ {task.priority} Priority+ </span>+ </div>+ )}++ {task.userEmail && (+ <div className="flex items-center gap-2 text-sm text-zinc-600 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800/50 px-3 py-1.5 rounded-full">+ <User className="w-4 h-4" />+ <span>Assigned to</span>+ <Avatar className="h-5 w-5">+ <AvatarFallback className="text-xs font-medium">+ {task.userEmail.charAt(0).toUpperCase()}+ </AvatarFallback>+ </Avatar>+ <span className="font-medium">{task.userEmail}</span>+ </div>+ )}++ {task.dueDate && (+ <div className="flex items-center gap-2 text-sm text-zinc-600 dark:text-zinc-400 bg-zinc-100 dark:bg-zinc-800/50 px-3 py-1.5 rounded-full">+ <Calendar className="w-4 h-4" />+ <span>+ Due {format(new Date(task.dueDate), "MMM d, yyyy")}+ </span>+ </div>+ )}+ </div>++ {/* Description */}+ {task.description && (+ <div className="space-y-3">+ <h3 className="text-sm font-semibold text-zinc-900 dark:text-zinc-100 uppercase tracking-wide">+ Description+ </h3>+ <MarkdownRenderer content={task.description} />+ </div>+ )}++ {/* Task Dates */}+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-4 pt-4 border-t border-zinc-200 dark:border-zinc-800">+ <div className="space-y-1">+ <div className="text-xs font-semibold text-zinc-600 dark:text-zinc-400 uppercase tracking-wide">+ Created+ </div>+ <div className="text-sm text-zinc-900 dark:text-zinc-100">+ {format(new Date(task.createdAt), "MMM d, yyyy")}+ </div>+ </div>+ <div className="space-y-1">+ <div className="text-xs font-semibold text-zinc-600 dark:text-zinc-400 uppercase tracking-wide">+ Last Updated+ </div>+ <div className="text-sm text-zinc-900 dark:text-zinc-100">+ {format(new Date(task.createdAt), "MMM d, yyyy")}+ </div>+ </div>+ </div>+ </div>+ </div>++ <div className="border-t border-zinc-200 dark:border-zinc-800/50 p-4 flex-shrink-0">+ <div className="text-center text-xs text-zinc-500 dark:text-zinc-400">+ This is a read-only view of the task+ </div>+ </div>+ </div>+ </Dialog.Content>+ </Dialog.Portal>+ </Dialog.Root>+ );+}diff --git a/apps/web/src/components/public-project/task-row.tsx b/apps/web/src/components/public-project/task-row.tsxindex 0b9102a3a..154f2118d 100644--- a/apps/web/src/components/public-project/task-row.tsx+++ b/apps/web/src/components/public-project/task-row.tsx@@ -8,11 +8,21 @@ import { Flag } from "lucide-react";interface PublicTaskRowProps {task: Task;projectSlug: string;+ onTaskClick: (task: Task) => void;}-export function PublicTaskRow({ task, projectSlug }: PublicTaskRowProps) {+export function PublicTaskRow({+ task,+ projectSlug,+ onTaskClick,+}: PublicTaskRowProps) {return (- <div className="group px-4 py-3 rounded-lg flex items-center gap-4 bg-white dark:bg-zinc-800/80 border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-all hover:border-zinc-300 dark:hover:border-zinc-600">+ <button+ type="button"+ className="group w-full text-left px-4 py-3 rounded-lg flex items-center gap-4 bg-white dark:bg-zinc-800/80 border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-all hover:border-zinc-300 dark:hover:border-zinc-600 hover:scale-[1.01] focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900"+ onClick={() => onTaskClick(task)}+ aria-label={`View details for task ${task.title}`}+ ><div className="flex-1 min-w-0 flex items-center gap-3"><div className="text-xs font-mono text-zinc-500 dark:text-zinc-400 shrink-0 font-medium">{projectSlug}-{task.number}@@ -51,6 +61,6 @@ export function PublicTaskRow({ task, projectSlug }: PublicTaskRowProps) {</div>)}</div>- </div>+ </button>);}diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsxindex cc37ad888..1b5440783 100644--- a/apps/web/src/routes/__root.tsx+++ b/apps/web/src/routes/__root.tsx@@ -6,6 +6,7 @@ import {Outlet,createRootRouteWithContext,redirect,+ useLocation,} from "@tanstack/react-router";import { Toaster } from "sonner";@@ -26,7 +27,11 @@ export const Route = createRootRouteWithContext<{});}- if (user && !isOnDashboard) {+ if (+ user &&+ !isOnDashboard &&+ !location.pathname.includes("public-project")+ ) {throw redirect({to: "/dashboard",});@@ -36,12 +41,14 @@ export const Route = createRootRouteWithContext<{function RootComponent() {const { theme } = useTheme();+ const location = useLocation();+ const isPublicProject = location.pathname.includes("public-project");return (<><div className="flex w-full h-svh overflow-x-hidden overflow-y-hidden flex-row bg-zinc-50 dark:bg-zinc-950 scrollbar-thin scrollbar-thumb-zinc-700 scrollbar-track-zinc-900"><Outlet />- <CommandPalette />+ {!isPublicProject && <CommandPalette />}</div><Toasterposition="bottom-right"diff --git a/apps/web/src/routes/public-project.$projectId.tsx b/apps/web/src/routes/public-project.$projectId.tsxindex 653d39ec0..597a2ba25 100644--- a/apps/web/src/routes/public-project.$projectId.tsx+++ b/apps/web/src/routes/public-project.$projectId.tsx@@ -4,10 +4,12 @@ import { PublicKanbanView } from "@/components/public-project/kanban-view";import { KaneoBranding } from "@/components/public-project/kaneo-branding";import { PublicListView } from "@/components/public-project/list-view";import { LoadingSkeleton } from "@/components/public-project/loading-skeleton";+import { PublicTaskDetailModal } from "@/components/public-project/task-detail-modal";import { ThemeToggle } from "@/components/public-project/theme-toggle";import { Button } from "@/components/ui/button";import icons from "@/constants/project-icons";import useGetPublicProject from "@/hooks/queries/project/use-get-public-project";+import type Task from "@/types/task";import { createFileRoute } from "@tanstack/react-router";import { Grid3X3, Layout, List } from "lucide-react";import { createElement, useState } from "react";@@ -22,6 +24,18 @@ function RouteComponent() {const { projectId } = Route.useParams();const { data: project, isLoading, error } = useGetPublicProject(projectId);const [viewMode, setViewMode] = useState<ViewMode>("kanban");+ const [selectedTask, setSelectedTask] = useState<Task | null>(null);+ const [isTaskModalOpen, setIsTaskModalOpen] = useState(false);++ const handleTaskClick = (task: Task) => {+ setSelectedTask(task);+ setIsTaskModalOpen(true);+ };++ const handleTaskModalClose = () => {+ setIsTaskModalOpen(false);+ setSelectedTask(null);+ };if (isLoading) {return <LoadingSkeleton />;@@ -91,16 +105,14 @@ function RouteComponent() {</div></header>- {/* Content */}<main className="flex-1 min-h-0 flex flex-col">{viewMode === "kanban" ? (- <PublicKanbanView project={project} />+ <PublicKanbanView project={project} onTaskClick={handleTaskClick} />) : (- <PublicListView project={project} />+ <PublicListView project={project} onTaskClick={handleTaskClick} />)}</main>- {/* Footer */}<footer className="bg-white dark:bg-zinc-900 border-t border-zinc-200 dark:border-zinc-800 py-4"><div className="px-6"><div className="flex flex-col md:flex-row items-center justify-between gap-4">@@ -111,6 +123,13 @@ function RouteComponent() {</div></div></footer>++ <PublicTaskDetailModal+ task={selectedTask}+ projectSlug={project.slug}+ open={isTaskModalOpen}+ onOpenChange={handleTaskModalClose}+ /></div>);}