feat: archive tasks (#232)

This commit is contained in:
Carlos Florêncio
2026-02-16 21:46:25 +00:00
committed by GitHub
parent aac9d0610e
commit 3af7a692bf
45 changed files with 1311 additions and 460 deletions
@@ -36,6 +36,7 @@ import { hashDiff, normalizeDiffContent } from '@/components/review/types';
import type { DiffComment } from '@/lib/diff/types';
import { usePanelActions } from '@/hooks/use-panel-actions';
import type { SelectedDiff } from './task-layout';
import { useIsTaskArchived, ArchivedPanelPlaceholder } from './task-archived-context';
type TaskChangesPanelProps = {
selectedDiff: SelectedDiff | null;
@@ -49,6 +50,7 @@ const TaskChangesPanel = memo(function TaskChangesPanel({
onClearSelected,
onOpenFile: onOpenFileProp,
}: TaskChangesPanelProps) {
const isArchived = useIsTaskArchived();
const { openFile: panelOpenFile } = usePanelActions();
const handleOpenFile = onOpenFileProp ?? panelOpenFile;
@@ -297,6 +299,8 @@ const TaskChangesPanel = memo(function TaskChangesPanel({
const totalCount = allFiles.length;
const progressPercent = totalCount > 0 ? (reviewedCount / totalCount) * 100 : 0;
if (isArchived) return <ArchivedPanelPlaceholder />;
return (
<PanelRoot>
{/* Top bar */}