Skip to content
Calm motion: animations on this site only fade, with no movement

Audit log ​

Who changed what and when, with the old and the new value

Keeps a record of the changes to the data in an ERP or an admin panel, for checks and for audits. For a feed of activity among people, use the activity feed.

Basic
  1. Ana Putri changed INV-2026-004216 Nov, 10:42
    Status
    was Sentnow Paid
    Paid on
    was emptynow 16 Nov 2026
  2. Budi Santoso viewed INV-2026-004216 Nov, 09:05 · Mobile app
  3. Billing robot changed INV-2026-004215 Nov, 23:00 · API
    Due date
    was 20 Nov 2026now 25 Nov 2026
  4. Citra Dewi created INV-2026-004214 Nov, 14:12
  5. Citra Dewi deleted INV-2026-0041 (a draft)14 Nov, 14:10
  • entries is a list, newest first. Each entry has an id, who, when as text, an action, and the target record. It can also have changes and a source, such as "API".
  • The action is created, updated, deleted, or viewed. It shows as a mark and a word.
  • Each change has a field, and a from and a to value. The old value is struck through and the new one is bold. Screen readers hear "was" and "now" before them. A missing value reads "empty".
  • The changes are a native description list, and the old and new values are del and ins elements.
  • Change the words with labels or a label pack: title, the four actions, from, to, and empty.

Usage ​

ts
import { BlessAuditLog } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
entries*BlessAuditEntry[]—
labelsPartial<Record<BlessAuditAction, string> & { title: string; from: string; to: string; empty: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.