Search the documentation

Type to search page titles, component names and descriptions.

    Data Display

    ActivityTimeline and AuditLog

    What happened to a record, and who did it.

    import { ActivityTimeline, AuditLog } from 'faifo-design'

    ActivityTimeline shows the events of a record in order; AuditLog shows field-level changes with their author and time.

    #When to use

    • The application owns permission, redaction and queries. The components render every result state: loading, empty, partial and error.

    #Examples

    Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.

    #Activity timeline and audit log

    Applications own permission, redaction and queries; renderers expose all result states.

    1. Ngọc Linh

      moved the order to Ready

    2. System

      Details redacted

    1. Ngọc Linhmoved the order to Ready
    2. SystemChange redacted
    Show codeHide code
    import { ActivityTimeline, AuditLog, Grid } from 'faifo-design'
    
    export const Example = () => {
      const activity = [
        {
          id: 'a1',
          actor: 'Ngọc Linh',
          action: 'moved the order to Ready',
          datetime: '2026-09-08T14:30:00+07:00',
          timeLabel: '14:30 today',
        },
        {
          id: 'a2',
          actor: 'System',
          action: 'synchronized a protected value',
          datetime: '2026-09-08T14:25:00+07:00',
          timeLabel: '14:25 today',
          redacted: true,
        },
      ]
      return (
        <Grid
          columns={2}
          items={[
            <ActivityTimeline label="Activity" items={activity} />,
            <AuditLog label="Audit log" items={activity} />,
          ]}
        />
      )
    }

    #API

    Generated from the package source. A property without a description has none in the source yet.

    #ActivityTimelineComponent

    PropertyDescriptionTypeDefault
    labelrequired–string–
    itemsrequired–readonly ActivityItem[]–
    loading–boolean–
    loadingLabel–string–
    emptyTitle–string–
    emptyMessage–string–
    error–string | null–
    redactedLabel–string'Details redacted'

    #AuditLogComponent

    PropertyDescriptionTypeDefault
    labelrequired–string–
    itemsrequired–readonly ActivityItem[]–
    loading–boolean–
    loadingLabel–string–
    emptyTitle–string–
    emptyMessage–string–
    error–string | null–
    redactedLabel–string'Change redacted'

    #Types

    #ActivityItem

    PropertyDescriptionTypeDefault
    idrequired–string–
    actorrequired–string–
    actorDetail–string–
    actionrequired–JSXChild–
    datetimerequired–string–
    timeLabelrequired–string–
    detail–JSXChild–
    redacted–boolean–

    #Hooks

    The data-ui values these components render. Select them in tests and behaviour; their look belongs to the design system. See Contract.

    • activity-timeline
    • activity-item
    • activity-marker
    • audit-log
    • audit-item