Compare commits
2 Commits
0ff5792670
...
8ab9240b77
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ab9240b77 | |||
| f6436862c0 |
@@ -180,7 +180,7 @@ export function TicketAssignmentsCard({
|
|||||||
</CardDescription>
|
</CardDescription>
|
||||||
</div>
|
</div>
|
||||||
{assignmentsQuery.data ? (
|
{assignmentsQuery.data ? (
|
||||||
<Badge variant="secondary">{assignments.length}</Badge>
|
<Badge variant="default">{assignments.length}</Badge>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
|
|||||||
@@ -21,9 +21,23 @@ export function TicketDetailHeader({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||||
<div className="min-w-0 space-y-1">
|
<div className="flex min-w-0 items-start gap-3">
|
||||||
<h1 className="text-2xl font-semibold tracking-tight">Ticket Detail</h1>
|
<Button
|
||||||
<p className="text-xs ">Ticket: {ticketLabel}</p>
|
type="button"
|
||||||
|
variant="secondary"
|
||||||
|
size="icon"
|
||||||
|
onClick={() => router.push('/ticket')}
|
||||||
|
aria-label="Back to ticket list"
|
||||||
|
className="shrink-0"
|
||||||
|
>
|
||||||
|
<ArrowLeft />
|
||||||
|
</Button>
|
||||||
|
<div className="min-w-0 space-y-1">
|
||||||
|
<h1 className="text-2xl font-semibold tracking-tight">
|
||||||
|
Ticket Detail
|
||||||
|
</h1>
|
||||||
|
<p className="text-xs">Ticket: {ticketLabel}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex shrink-0 items-center gap-2">
|
<div className="flex shrink-0 items-center gap-2">
|
||||||
@@ -37,10 +51,6 @@ export function TicketDetailHeader({
|
|||||||
<PermissionGuard permissions={PERMISSIONS.TICKET.ASSIGN}>
|
<PermissionGuard permissions={PERMISSIONS.TICKET.ASSIGN}>
|
||||||
<AssignTicketAction ticketId={ticket.id} />
|
<AssignTicketAction ticketId={ticket.id} />
|
||||||
</PermissionGuard>
|
</PermissionGuard>
|
||||||
<Button variant="secondary" onClick={() => router.push('/ticket')}>
|
|
||||||
<ArrowLeft className="size-4" />
|
|
||||||
Back to List
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ export function TicketOverviewCard({
|
|||||||
{analysisVideoId ? (
|
{analysisVideoId ? (
|
||||||
<CardAction>
|
<CardAction>
|
||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="default"
|
||||||
onClick={() => setIsAnalysisOpen(true)}
|
onClick={() => setIsAnalysisOpen(true)}
|
||||||
>
|
>
|
||||||
<Play className="mr-2 size-4" />
|
<Play className="mr-2 size-4" />
|
||||||
|
|||||||
@@ -31,9 +31,12 @@ function SummarySkeletonCard() {
|
|||||||
export function TicketOverviewHeaderSkeleton() {
|
export function TicketOverviewHeaderSkeleton() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
<div className="flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between">
|
||||||
<div className="min-w-0 space-y-2">
|
<div className="flex min-w-0 items-start gap-3">
|
||||||
<Skeleton className="h-8 w-40" />
|
<Skeleton className="size-10 shrink-0 rounded-lg" />
|
||||||
<Skeleton className="h-3 w-36 max-w-full" />
|
<div className="min-w-0 space-y-2">
|
||||||
|
<Skeleton className="h-8 w-40" />
|
||||||
|
<Skeleton className="h-3 w-36 max-w-full" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex shrink-0 items-center gap-2">
|
<div className="flex shrink-0 items-center gap-2">
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export function TicketActionCard({
|
|||||||
<span className="truncate">{title}</span>
|
<span className="truncate">{title}</span>
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
{contextLabel ? (
|
{contextLabel ? (
|
||||||
<Badge variant="secondary" className="shrink-0">
|
<Badge variant="default" className="shrink-0">
|
||||||
{contextLabel}
|
{contextLabel}
|
||||||
</Badge>
|
</Badge>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function useUploadListColumns(): ColumnDef<UploadListItem>[] {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'uploaded_by',
|
id: 'uploaded_by',
|
||||||
header: 'Uploader',
|
header: 'Uploaded By',
|
||||||
size: 190,
|
size: 190,
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => (
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export function useUserColumns(): ColumnDef<AdministrationUser>[] {
|
|||||||
header: 'Status',
|
header: 'Status',
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => (
|
||||||
<Badge
|
<Badge
|
||||||
|
className="capitalize"
|
||||||
variant={
|
variant={
|
||||||
row.original.effective_status === 'active'
|
row.original.effective_status === 'active'
|
||||||
? 'default'
|
? 'default'
|
||||||
|
|||||||
Reference in New Issue
Block a user