diff --git a/client/src/pages/admin-test-checklist/ui/AdminTestChecklistPage.tsx b/client/src/pages/admin-test-checklist/ui/AdminTestChecklistPage.tsx index 368ff1f..d0156cf 100644 --- a/client/src/pages/admin-test-checklist/ui/AdminTestChecklistPage.tsx +++ b/client/src/pages/admin-test-checklist/ui/AdminTestChecklistPage.tsx @@ -85,6 +85,9 @@ export function AdminTestChecklistPage() { onSuccess: () => { queryClient.invalidateQueries({ queryKey: ['admin', 'test-checklist'] }) }, + onError: (error) => { + console.warn('updateTestChecklistItem error:', error) + }, }) const resetMutation = useMutation({ @@ -112,15 +115,14 @@ export function AdminTestChecklistPage() { const handleStatusClick = useCallback( (itemKey: string) => { + console.warn('handleStatusClick:', itemKey, results[itemKey]) const current = statusFromResult(results[itemKey]) + console.warn('current status:', current) if (current === 'failed') { - // Clicking on failed → reset to unchecked updateMutation.mutate({ itemKey, passed: false, comment: null }) } else if (current === 'unchecked') { - // Clicking on unchecked → mark as passed updateMutation.mutate({ itemKey, passed: true }) } else { - // Clicking on passed → open error dialog setErrorItemKey(itemKey) setErrorComment('') setErrorCommentError(false)