Skip to content

[FE-76] Asset history timeline on the detail page #1175

Description

@yusuftomilola

Overview

lib/query/keys.ts defines a history key with filter support and the API layer calls /assets/:id/history, but nothing renders it. History is central to the README's auditability goal.

Tasks

  • Add a History tab rendering a chronological timeline of asset events.
  • Show event type, actor, timestamp, and a readable field-level diff for updates.
  • Support filtering by event type and date range, with pagination or infinite scroll.
  • Use distinct icons and colors per event type — never color alone.
  • Render relative timestamps (date-fns is installed) with the absolute value on hover.
  • Handle the empty state for a newly created asset.

Acceptance Criteria

  • The timeline renders all event types with correct before/after values.
  • Filtering and pagination work.
  • Event types are distinguishable without relying on color.

Dependencies

Backend from [BE-88].

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions