Skip to content

[Frontend] Add Asset Documents UI to Asset Detail Page #457

@yusuftomilola

Description

@yusuftomilola

Extend the Asset Detail Page with a "Documents" tab so users can attach and manage document links.

Requirements

New "Documents" tab:

  • List of attached documents: name, MIME type icon, file size (formatted), "Open" link button (opens URL in new tab)
  • Delete button per document with ConfirmDialog
  • "Attach Document" form: name (required), URL (required), type, size

API integration:

  • GET /api/assets/:id/documents
  • POST /api/assets/:id/documents
  • DELETE /api/assets/:id/documents/:documentId

Acceptance Criteria

  • "Open" link opens the document URL in a new tab
  • File size formatted as KB / MB
  • MIME type displayed as human-readable label (e.g. "PDF" for application/pdf)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions