-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
NextJsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendgood first issueGood for newcomersGood for newcomers
Description
Description
Create a detailed asset view page that displays comprehensive asset information, ownership history, maintenance records, and a visual timeline of all asset events.
Requirements
Asset Overview Section:
- Asset image/photo gallery (with lightbox for full view)
- All asset details in organized sections (Basic Info, Financial, Assignment, Technical Specs)
- QR code for asset (downloadable/printable)
- Edit button (navigates to edit form)
- Status change dropdown with confirmation
Tabs:
- Overview - All basic information
- History - Timeline of all asset events
- Documents - Uploaded files (invoices, manuals, warranties)
- Maintenance - Maintenance schedule and records
- Notes - Internal notes and comments
History Timeline:
- Visual timeline showing all asset lifecycle events
- Events: Created, Assigned, Transferred, Status Changed, Updated, Maintenance Performed
- Display date, time, user who performed action, and details
- Filter by event type
- Search within history
Action Buttons:
- Transfer Asset
- Schedule Maintenance
- Upload Document
- Add Note
- Print Label
- Delete Asset (with confirmation)
Technical Specifications
- Use dynamic routing:
/assets/[id] - Implement breadcrumb navigation
- Use React Query for data fetching with proper cache invalidation
- Add image zoom functionality (react-medium-image-zoom)
- Generate QR code using qrcode.react
- Implement PDF generation for asset labels (react-pdf)
- Add real-time updates for collaborative viewing
Acceptance Criteria
- Page loads asset data correctly
- All tabs display relevant information
- Timeline shows events in reverse chronological order
- QR code is scannable and links to asset detail page
- All action buttons work correctly
- Image gallery supports multiple images
- Page is responsive on all devices
- 404 page shows for non-existent assets
API Endpoints
GET /api/assets/:id- Get asset detailsGET /api/assets/:id/history- Get asset historyGET /api/assets/:id/documents- Get asset documentsPUT /api/assets/:id/status- Update asset status
Metadata
Metadata
Assignees
Labels
NextJsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendgood first issueGood for newcomersGood for newcomers