feat: snapshot files list frontend

This commit is contained in:
Nicolas Meienberger
2025-10-30 19:01:49 +01:00
parent b80a187108
commit 5846c1ff86
9 changed files with 272 additions and 13 deletions

View File

@@ -135,7 +135,7 @@ export const ScheduleSummary = (props: Props) => {
</CardContent>
) : (
<>
<SnapshotsTable snapshots={snapshots.snapshots} />
<SnapshotsTable snapshots={snapshots.snapshots} repositoryName={repository.name} />
<div className="px-4 py-2 text-sm text-muted-foreground bg-card-header flex justify-between border-t">
<span>{`Showing ${snapshots.snapshots.length} of ${snapshots.snapshots.length}`}</span>
<span>

View File

@@ -26,7 +26,6 @@ export const FilesTabContent = ({ volume }: Props) => {
const [loadingFolders, setLoadingFolders] = useState<Set<string>>(new Set());
const [allFiles, setAllFiles] = useState<Map<string, FileEntry>>(new Map());
// Fetch root level files
const { data, isLoading, error } = useQuery({
...listFilesOptions({ path: { name: volume.name } }),
enabled: volume.status === "mounted",