Skip to content

[FE-23] Implement maintenance and documents tabs on asset detail #628

@yusuftomilola

Description

@yusuftomilola

Overview

Implement the maintenance and documents tabs on the asset detail page inside frontend/contrib/.

Location

All work must be inside frontend/contrib/app/(dashboard)/assets/[id]/.

Acceptance Criteria

  • Maintenance tab: Lists all records from GET /assets/:id/maintenance; shows type, status badge, scheduled date, cost; "Mark Complete" button updates status
  • "Schedule Maintenance" button opens a modal with: type (select), description, scheduledDate, notes, cost — submits to POST /assets/:id/maintenance
  • Documents tab: Lists all docs from GET /assets/:id/documents with name, type, size, upload date
  • "Upload Document" button opens a modal with name, URL, type, size fields — submits to POST /assets/:id/documents
  • Delete document button with ConfirmDialog

Metadata

Metadata

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