fix(ux): friendly error UI вместо raw AxiosError

This commit is contained in:
Александр Зимин
2026-05-12 12:41:48 +00:00
parent db0986d235
commit 3984d99004
14 changed files with 274 additions and 57 deletions
+2 -3
View File
@@ -21,6 +21,7 @@ import {
Tabs,
TextArea,
TextInput,
QueryErrorState,
} from '@/ui'
import { CheckCircleIcon, XCircleIcon } from '@phosphor-icons/react'
import { useDraft, useLiveRecord, useReviewQueue, useSchemaReviewQueue } from '@/api/queries'
@@ -204,9 +205,7 @@ function ReviewsPage() {
)}
{activeTab === 'records' && queue.error && (
<Alert variant="error" title={t('error.failed')}>
{String(queue.error)}
</Alert>
<QueryErrorState error={queue.error} onRetry={() => queue.refetch()} />
)}
{activeTab === 'records' && bulkResult && (