From 90aafcd04ed1675bd107c659d299d6b7d5e86bd7 Mon Sep 17 00:00:00 2001 From: colpiche Date: Mon, 2 Mar 2026 17:42:29 +0100 Subject: [PATCH 1/2] feat(repositories): expose hostname in snapshot list --- app/client/components/snapshots-table.tsx | 9 ++++++++- app/client/modules/repositories/tabs/snapshots.tsx | 3 ++- .../modules/repositories/repositories.controller.ts | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/client/components/snapshots-table.tsx b/app/client/components/snapshots-table.tsx index 275a8a79..5396eb03 100644 --- a/app/client/components/snapshots-table.tsx +++ b/app/client/components/snapshots-table.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { Calendar, Clock, Database, HardDrive, Tag, Trash2, X } from "lucide-react"; +import { Calendar, Clock, Database, HardDrive, Monitor, Tag, Trash2, X } from "lucide-react"; import { toast } from "sonner"; import { ByteSize } from "~/client/components/bytes-size"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "~/client/components/ui/table"; @@ -145,6 +145,7 @@ export const SnapshotsTable = ({ snapshots, repositoryId, backups, listSnapshots Snapshot ID Schedule + Hostname Date & Time Size Duration @@ -198,6 +199,12 @@ export const SnapshotsTable = ({ snapshots, repositoryId, backups, listSnapshots + +
+ + {snapshot.hostname ?? "-"} +
+
diff --git a/app/client/modules/repositories/tabs/snapshots.tsx b/app/client/modules/repositories/tabs/snapshots.tsx index d039c03c..a409466a 100644 --- a/app/client/modules/repositories/tabs/snapshots.tsx +++ b/app/client/modules/repositories/tabs/snapshots.tsx @@ -58,6 +58,7 @@ export const RepositorySnapshotsTabContent = ({ repository, initialSnapshots, in return ( snapshot.short_id.toLowerCase().includes(searchLower) || snapshot.paths.some((path) => path.toLowerCase().includes(searchLower)) || + snapshot.hostname?.toLowerCase().includes(searchLower) || backup?.name?.toLowerCase().includes(searchLower) || backup?.volume?.name?.toLowerCase().includes(searchLower) ); @@ -161,7 +162,7 @@ export const RepositorySnapshotsTabContent = ({ repository, initialSnapshots, in - +

No snapshots match your search.

-
- - {snapshot.hostname ?? "-"} +
+ {snapshot.hostname && ( +
+ + {snapshot.hostname ?? "-"} +
+ )} + {snapshot.paths.map((path) => ( +
+ + {path} +
+ ))}