Skip to content

[Feature]: Trash UI for cloud view (consume /files/trash endpoints) #237

@DenizAltunkapan

Description

@DenizAltunkapan

Context

Vault-Web/cloud-page#79 adds a per-user trash (soft delete) on the backend: DELETE /files now moves a file into a per-user trash instead of deleting it permanently, plus new endpoints under /files/trash to list, restore, and permanently delete entries. Expired entries are auto-purged after 30 days.

This is not yet visible in the vault-web frontend — the cloud view has no way to view or manage trashed files, so the feature has no user-facing effect until it is wired up.

Goal

Add a trash view to the cloud page that consumes the new endpoints.

New backend endpoints (from cloud-page#79)

  • GET /files/trash — list entries (id, name, originalPath, deletedAt, size)
  • POST /files/trash/{id}/restore — restore to original path
  • DELETE /files/trash/{id} — permanently delete

Tasks

  • Add trash methods to CloudService (frontend/src/app/services/cloud.service.ts) for the three endpoints
  • Add a TrashEntry model (id, name, originalPath, deletedAt, size)
  • Trash view: list entries with name, original path, deleted date and size
  • Restore and permanent-delete actions (confirm dialog on permanent delete)
  • Entry point from the cloud view (e.g. a "Trash" / recycle-bin link)
  • Handle the restore conflict case gracefully (a file already exists at the original path)

References

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions