fix(trash): add missing display fields to TrashedItemDto

Add category, icon_class, and icon_special_class fields to TrashedItemDto
to fix trash view rendering issues. The frontend expects these fields to
properly display file type information, icons, and deletion dates.

- category: Human-readable file category (e.g., "Image", "Document")
- icon_class: FontAwesome icon class for the file type
- icon_special_class: Special CSS class for icon styling

Fixes #107
This commit is contained in:
BillionClaw
2026-03-17 16:08:12 +08:00
parent 5279e0c266
commit 32c5630a5f
3 changed files with 53 additions and 0 deletions
+6
View File
@@ -11,6 +11,12 @@ pub struct TrashedItemDto {
pub original_path: String,
pub trashed_at: DateTime<Utc>,
pub days_until_deletion: i64,
/// Human-readable category (e.g., "Image", "Folder", "Document")
pub category: String,
/// FontAwesome icon class for the file type
pub icon_class: String,
/// Special CSS class for icon styling (e.g., "image-icon", "pdf-icon")
pub icon_special_class: String,
}
/// Request to move an item to trash