From f870ca9b49210e109adfe8ecb64f5ed5b2b5f947 Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Perez Date: Tue, 6 Oct 2026 07:14:11 -0700 Subject: [PATCH] feat(asset): link to assets on notification cards. (#451) * feat(asset): link to assets on notification cards. * Update packages/webui/components/notification-card.tsx Co-authored-by: Yiling-J --------- Co-authored-by: Yiling-J --- packages/webui/components/notification-card.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/webui/components/notification-card.tsx b/packages/webui/components/notification-card.tsx index 7552d7d5..86d3e6d7 100644 --- a/packages/webui/components/notification-card.tsx +++ b/packages/webui/components/notification-card.tsx @@ -136,13 +136,19 @@ export const NotificationCard = ({ notification }: NotificationCardProps) => { const hasPreview = asset?.preview && (asset.proxyType === 'image' || asset.proxyType === 'video') - const handleClick = () => { +const handleClick = () => { if (kanbanTask?.id && team?.id) { navigate({ to: '/teams/$teamId/kanban', params: { teamId: team.id }, search: { taskId: kanbanTask.id }, }) + }else if(project?.id && asset?.id){ + //TODO: Perhaps it should be marked as read too when redirecting to it. + navigate({ + to: '/projects/$projectId/files/$fileId', + params: { projectId: project.id, fileId: asset.id }, + }) } }