feat(reviews): "Мои" tab — maker self-tracking with status filter

This commit is contained in:
Александр Зимин
2026-05-14 14:06:30 +00:00
parent a6a07428ed
commit be58b61913
6 changed files with 805 additions and 71 deletions
+7 -2
View File
@@ -19,6 +19,7 @@ import {
import { useMyDrafts, useMySchemaDrafts } from '@/api/queries'
import { useWithdrawDraft } from '@/api/mutations'
import type { DraftOperation, DraftStatus, SchemaDraft } from '@/api/client'
import { UserCell } from '@/lib/useUserDisplay'
export const Route = createFileRoute('/my-drafts')({
component: MyDraftsPage,
@@ -151,8 +152,12 @@ function MyDraftsPage() {
? new Date(d.reviewedAt).toLocaleString()
: '—'}
</TableCell>
<TableCell className="text-mono">
{d.reviewerId ?? '—'}
<TableCell>
{d.reviewerId ? (
<UserCell uuid={d.reviewerId} />
) : (
<span className="text-mute"></span>
)}
</TableCell>
<TableCell className="text-cell text-ink max-w-md">
{d.reviewComment ?? d.makerComment ?? '—'}