feat(reviews): "Мои" tab — maker self-tracking with status filter
This commit is contained in:
@@ -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 ?? '—'}
|
||||
|
||||
Reference in New Issue
Block a user