feat(drive): plug trash to drives

This commit is contained in:
Edouard Vanbelle
2026-06-23 21:08:55 +02:00
parent 062bcb701b
commit 184520c17a
10 changed files with 324 additions and 69 deletions
+8
View File
@@ -120,6 +120,14 @@ export interface TrashResourceItem {
resource_type: ItemType;
trashed_at: string;
deletion_date: string;
/**
* Drive the trashed item belongs to (D2b). Enables client-side
* group-by-drive in the `/trash` UI without resolving the drive from
* `resource.drive_id` per row. The drive's display name resolves
* against `drives.svelte` (the in-memory store already populated by
* the sidebar picker / config pages — no extra round-trip).
*/
drive_id: string;
resource: FileItem | FolderItem;
}