Merge branch 'fix/user-display-missed-spots' into 'main'

fix(ui): wrap remaining UUIDs into UserCell — 3 missed spots

See merge request 2-6/2-6-4/terravault/ordinis!178
This commit is contained in:
Александр Зимин
2026-05-14 11:08:33 +00:00
3 changed files with 9 additions and 6 deletions
@@ -4,6 +4,7 @@ import { Badge, Button, Drawer, LoadingBlock, QueryErrorState } from '@/ui'
import { ArrowsLeftRightIcon, ArrowCounterClockwiseIcon, BracketsCurlyIcon, InfoIcon } from '@phosphor-icons/react'
import { useRecordHistory } from '@/api/queries'
import { RecordDependentsPanel } from '@/components/lineage/RecordDependentsPanel'
import { UserCell } from '@/lib/useUserDisplay'
type Props = {
open: boolean
@@ -106,8 +107,9 @@ export const RecordHistoryDrawer = ({
</div>
)}
{rec.updatedBy && (
<div>
<span className="font-mono">{t('history.updatedBy')}:</span> {rec.updatedBy}
<div className="inline-flex items-center gap-1">
<span className="font-mono">{t('history.updatedBy')}:</span>{' '}
<UserCell uuid={rec.updatedBy} />
</div>
)}
</div>
+2 -2
View File
@@ -526,8 +526,8 @@ function ReviewDrawer({ draftId, onClose }: DrawerProps) {
<div className="flex flex-wrap items-center gap-2 text-cell">
<Badge variant={operationVariant(draft.operation)}>{draft.operation}</Badge>
<span className="font-mono">{draft.businessKey}</span>
<span className="text-mute">
{t('reviews.drawer.maker')}: {draft.makerId}
<span className="text-mute inline-flex items-center gap-1">
{t('reviews.drawer.maker')}: <UserCell uuid={draft.makerId} />
</span>
<span className="text-mute">
{t('reviews.drawer.submitted')}:{' '}
+3 -2
View File
@@ -1,6 +1,7 @@
import { useState } from 'react'
import { createFileRoute, Link } from '@tanstack/react-router'
import { useTranslation } from 'react-i18next'
import { UserCell } from '@/lib/useUserDisplay'
import {
Alert,
Badge,
@@ -231,8 +232,8 @@ function WebhookDetailPage() {
<code className="text-mono">{data.hmacSecret}</code>
</InfoRow>
<InfoRow label={t('webhooks.field.createdBy')}>
<span className="text-cell">
{data.createdBy} · {new Date(data.createdAt).toLocaleString()}
<span className="text-cell inline-flex items-center gap-1">
<UserCell uuid={data.createdBy} /> · {new Date(data.createdAt).toLocaleString()}
</span>
</InfoRow>
</div>