# Application Activity: Audit Trail Timeline

The compliance log grouped by day, mono actions, second precision, source IPs.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/audit-trail-timeline
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Activity](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/audit-trail-timeline.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-activity-audit-trail-timeline
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/application-pro/activity/audit-trail-timeline`

## About this block

Audit Trail Timeline is the compliance view of the
workspace, strict rows of actor, mono action code like
billing.plan.update and auth.login.failed, a target
string, a timestamp to the second, and a source IP,
all grouped under date headers. Two days ship: Jun 12
holds plan changes, key creation, and a role update;
Jun 11 shows failed login attempts, a project archive,
and an SSO login. The Export CSV button and the footer
immutability line say what they mean: append only,
exportable, and we cannot edit it either.

Days and their entries are two nested arrays. The mono
action codes and second precision timestamps are the
thing that makes this useful to a compliance team or
an engineer debugging an incident.

## When to use

Reach for this block on the Security or Audit settings
page, wired to your audit log API filtered by date
range. Pair the export with a server route that streams
rows as CSV with the date range as query params.

A natural flow around it on an Application Pro page:

**Before**

- [Settings shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Filters and search](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)

**After**

- [Settings page](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is the workspace security log. Other
audit trail scopes:

- **Billing events only.** Filtered to plan changes,
  invoice approval, and payment method updates.
- **Member events.** Invites, role changes, removals,
  and SSO logins in one chronological view.
- **API key activity.** Key creation, rotation, and
  revocation with the key suffix as the target.

> Tip: the IP column earns its width on mobile only
> when it is actionable, consider hiding it at small
> breakpoints and surfacing it on a detail row expand.

## More in Application Activity

- [Activity Calendar](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/activity-calendar)
- [Activity Heatmap](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/activity-heatmap)
- [Approvals Queue](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/approvals-queue)
- [Audit Export Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/audit-export-card)
- [Automation Run Log](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/automation-run-log)
- [Catch Up Digest](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/catch-up-digest)
- [Changelog Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/changelog-feed)
- [Comment Mentions List](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/comment-mentions-list)
- [Comment Thread Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/comment-thread-panel)
- [Deploy Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/deploy-activity-feed)
- [Edit History Diff](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/edit-history-diff)
- [Filtered Activity Log](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/filtered-activity-log)
- [Inactivity Watch Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/inactivity-watch-card)
- [Live Presence Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/live-presence-bar)
- [Member Activity Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/member-activity-panel)
- [Mention Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/mention-feed)
- [Pinned Updates Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/pinned-updates-card)
- [Project Activity Breakdown](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/project-activity-breakdown)
- [Reaction Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/reaction-activity-feed)
- [Sign In Activity List](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/sign-in-activity-list)
- [Status Change Log](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/status-change-log)
- [Team Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/team-activity-feed)
- [Team Pulse Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/team-pulse-card)
- [Version History List](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/version-history-list)
- [Who Did What Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity/who-did-what-table)
