Adds a trash icon button alongside the existing retry button for

failed generations, giving users a way to clean up failed entries
  without having to retry them first.
This commit is contained in:
Lior Shahverdi
2026-03-18 15:44:37 -04:00
parent ffc1b54812
commit 12ed2d51ce
2 changed files with 22 additions and 10 deletions
@@ -569,6 +569,7 @@ export function HistoryTable() {
)} )}
{isFailed ? ( {isFailed ? (
<>
<Button <Button
variant="ghost" variant="ghost"
size="icon" size="icon"
@@ -578,6 +579,17 @@ export function HistoryTable() {
> >
<RotateCcw className="h-2 w-2" /> <RotateCcw className="h-2 w-2" />
</Button> </Button>
<Button
variant="ghost"
size="icon"
className="h-6 w-6 text-muted-foreground/50 hover:bg-muted-foreground/20 hover:text-muted-foreground"
aria-label="Delete generation"
disabled={deleteGeneration.isPending}
onClick={() => handleDeleteClick(gen.id, gen.profile_name)}
>
<Trash2 className="h-2 w-2" />
</Button>
</>
) : ( ) : (
<> <>
<DropdownMenu> <DropdownMenu>
+1 -1
View File
@@ -5041,7 +5041,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
[[package]] [[package]]
name = "voicebox" name = "voicebox"
version = "0.2.3" version = "0.3.1"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"core-foundation-sys", "core-foundation-sys",