From 22f24630a2d9214d2384742e701006aa9961d9b2 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Sat, 7 Feb 2026 01:13:33 +0530 Subject: [PATCH] feat: add task view button in comments and improve live feed rendering --- frontend/src/app/boards/[boardId]/page.tsx | 70 +++++++++++++++------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/frontend/src/app/boards/[boardId]/page.tsx b/frontend/src/app/boards/[boardId]/page.tsx index 110660a3..f3fcdc61 100644 --- a/frontend/src/app/boards/[boardId]/page.tsx +++ b/frontend/src/app/boards/[boardId]/page.tsx @@ -313,22 +313,48 @@ const LiveFeedCard = memo(function LiveFeedCard({ comment, taskTitle, authorLabel, + onViewTask, }: { comment: TaskComment; taskTitle: string; authorLabel: string; + onViewTask?: () => void; }) { const message = (comment.message ?? "").trim(); return (
-

{taskTitle}

+

{authorLabel}

- - {formatShortTimestamp(comment.created_at)} - +
+ + {formatShortTimestamp(comment.created_at)} + + {onViewTask ? ( + + ) : null} +
{message ? (
@@ -2365,22 +2391,26 @@ export default function BoardDetailPage() {

) : (
- {orderedLiveFeed.map((comment) => ( - - ))} + {orderedLiveFeed.map((comment) => { + const taskId = comment.task_id; + return ( + openComments({ id: taskId }) : undefined + } + /> + ); + })}
)}