refactor(storage): show version id instead of "Was current" badge/action label

Both the archived files table and the redesigned preview panel now show
the version's own id on every row, dropping the "Was current" badge and
the "(overwrite)"/"(initial upload)" action label.
This commit is contained in:
Claude committed 2026-08-12 19:59:02 +00:00
1 parent 8fd8f600e2
commit e858bbcf9a
2 files changed
+4 -16

No files matched your search

@@ -427,11 +427,9 @@ const ArchivedVersionListRow = ({
</p>
</div>
{version.wasCurrentAtArchive && (
<Badge variant="default" className="shrink-0 font-mono text-[10px]">
Was current
</Badge>
)}
<span className="shrink-0 font-mono text-xs text-foreground-lighter">
{version.versionId.slice(0, 8)}
</span>
<ArchivedVersionActionsMenu
version={version}
@@ -5,7 +5,6 @@ import { ChevronDown, ChevronRight, RotateCcw, Trash2 } from 'lucide-react'
import { Fragment, useState } from 'react'
import { toast } from 'sonner'
import {
Badge,
Checkbox,
cn,
Table,
@@ -547,16 +546,7 @@ const ArchivedVersionTableRow = ({
<div className="absolute left-[23px] top-1/2 h-px w-[8px] -translate-y-px bg-[hsl(0_0%_80%)] dark:bg-[hsl(0_0%_30%)] pointer-events-none" />
{/* Content aligned after horizontal branch with gap */}
<div className="flex items-center gap-x-2 pl-[36px]">
{version.wasCurrentAtArchive ? (
<Badge variant="default" className="font-mono text-[10px]">
Was current
</Badge>
) : (
<>
<span className="text-foreground-lighter font-mono text-xs">{shortId}</span>
<span className="text-foreground-muted text-xs">({version.action})</span>
</>
)}
<span className="text-foreground-lighter font-mono text-xs">{shortId}</span>
</div>
</TableCell>
<TableCell className="px-4 py-1.5 text-foreground-lighter text-xs">