feat(trash): add recently-deleted banner and empty trash option for admin

- Added emptyTrash method in AssetService to purge trashed assets from DB and S3

- Added POST /projects/:projectId/empty-trash endpoint in project API

- Implemented unit and integration tests for service and API

- Prevented double click redirect in recently deleted folder

- Added top banner with Delete Now option in recently-deleted folder with confirmation dialog
This commit is contained in:
yiling
2026-06-11 16:19:35 +08:00
parent 4d0972391c
commit f093b490c6
6 changed files with 247 additions and 4 deletions
@@ -301,10 +301,10 @@ export default function FileSystemManager({
}, [selectedIds, files])
const handleItemDoubleClick = (item: AssetInfo) => {
if (isRecentlyDeleted) {
return
}
if (item.type === 'folder') {
if (isRecentlyDeleted) {
return
}
setFilterConditions([])
navigate({
to: '/projects/$projectId/folders/$folderId',