diff --git a/src/renderer/components/team/dialogs/TaskDetailDialog.tsx b/src/renderer/components/team/dialogs/TaskDetailDialog.tsx index a14aa745..27199db2 100644 --- a/src/renderer/components/team/dialogs/TaskDetailDialog.tsx +++ b/src/renderer/components/team/dialogs/TaskDetailDialog.tsx @@ -71,8 +71,8 @@ import { } from '@shared/utils/teamTaskState'; import { format, formatDistanceToNow } from 'date-fns'; import { - AlignLeft, AlertTriangle, + AlignLeft, ArrowLeftFromLine, ArrowRightFromLine, Check, @@ -94,9 +94,6 @@ import { X, } from 'lucide-react'; -const TASK_CHANGES_AUTO_REFRESH_MS = 20_000; -const TASK_CHANGES_INITIAL_LOAD_DELAY_MS = 1_500; - import { SourceMessageAttachments } from '../attachments/SourceMessageAttachments'; import { WorkflowTimeline } from './StatusHistoryTimeline'; @@ -114,6 +111,9 @@ import type { TeamTaskWithKanban, } from '@shared/types'; +const TASK_CHANGES_AUTO_REFRESH_MS = 20_000; +const TASK_CHANGES_INITIAL_LOAD_DELAY_MS = 1_500; + interface TaskDetailDialogProps { open: boolean; loading?: boolean; @@ -303,7 +303,7 @@ export const TaskDetailDialog = ({ unread.add(c.id); } unreadSnapshotRef.current = unread; - }, [open, teamName, currentTask?.id]); // eslint-disable-line react-hooks/exhaustive-deps + }, [open, teamName, currentTask?.id]); // eslint-disable-line react-hooks/exhaustive-deps -- Snapshot should reset only when the dialog opens or task identity changes. // Viewport-based comment read tracking (replaces mark-all-on-mount) const { registerComment, flush: flushCommentRead } = useViewportCommentRead({ @@ -1580,9 +1580,11 @@ const CommentImageThumbnail = ({ return ( -
thumbUrl && onPreview(thumbUrl)} + aria-label={`Preview ${item.attachment.filename}`} > {thumbUrl ? ( {item.attachment.filename} @@ -1592,7 +1594,7 @@ const CommentImageThumbnail = ({
{item.attachment.filename}
-
+
{tooltipText}