Components
Consolesrc/components/history-timeline.tsx

History Timeline

A record’s audit trail as a card: who did what and when, newest first, with the reason, the note and the before and after. Color means consequence, not action. People, cars, locations, franchises, certificates and catalog items all draw their History from it, each mapping its own events into rows.

A car’s history

Five rows show, and the rest wait behind a one-way show-more. The oldest row names nobody, so it reads as a plain sentence.

History

  1. Alex Reyes returned it to serviceAug 6, 2026

    Repair completed

  2. Alex Reyes logged a serviceAug 5, 2026

    Repair at Katy Auto Care, Aug 5, 2026

  3. Dana Whitfield took it off the roadJul 30, 2026

    Repair booked

    Rear bumper scuffed in the lot. Booked in for Wednesday.

  4. Alex Reyes moved it to KatyJul 14, 2026

    Covering a car off the road

  5. Dana Whitfield corrected its detailsJun 2, 2026

    • Plate RKT 4471 RKT 4417

Searchable

A student’s log, the one checked against a dispute. The search reads every word on a row and forgives a typo.

History

  1. Nadia Marsh lifted the lockAug 4, 2026

    Document received and accepted

  2. Nadia Marsh locked the accountJul 29, 2026

    Learner license not on file

    Asked the guardian to upload it before Saturday’s drive.

  3. Priya Raman moved them from Memorial to KatyJul 3, 2026

    Closer or more convenient location

  4. Nadia Marsh changed contact detailsJun 18, 2026

    • Phone (281) 555-0142 (281) 555-0178

Bare

No card and no heading, for a frame that already says History, like an offer’s drawer.

  1. Priya Raman edited itJul 20, 2026

    • Ends Aug 31, 2026 Sep 30, 2026
  2. Priya Raman added itJul 1, 2026

Empty

The card stays: a record nobody has touched says so, which is reassuring on an audit surface.

History

Nothing recorded yet

Time off the road, moves and returns to service appear here.