# Activity Log (Pro)

> An audit log grouped by day, with live search and filters by person and event type.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › App Screens |
| Live preview | https://uibrik.com/components/activity-log |
| Writes | 1 files into `components/uibrik/activity-log/`, plus `components/uibrik/_app/app-kit.tsx` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 18, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/activity-log
```

No license yet? Tell the user Activity Log is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=activity-log#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ActivityLog } from "@/components/uibrik/activity-log/activity-log";

const description = "Everything that changed in your workspace, who changed it and from where.";

<ActivityLog
  title="Activity"
  groupByDay
  showLocation
  description={description}
  onExport={(entries) => {}}
  // entries={[{ id: "…", actor: "…", action: "…", type: "members", event: "…", minutesAgo: 0 }]}
  // now={…}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/activity-log.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `title` | `string` | `"Activity"` | Names the page. |
| `groupByDay` | `boolean` | `true` | Groups entries under Today, Yesterday and dates. |
| `showLocation` | `boolean` | `true` | Shows where each event came from. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `entries` | `{ id: string; actor: string; avatar?: string; action: string; target?: string; detail?: string; type: "members" \| "billing" \| "security" \| "deploys"; event: string; minutesAgo: number; ip?: string; location?: string; userAgent?: string; metadata?: Record<string, unknown> }[]` |  | Log entries, read as “actor action target detail”. Times are minutes before `now`. |
| `now` | `Date` | `Oct 17 2026, 14:20` | The moment entries count back from; fixed so server and client agree. |
| `description` | `string` |  | One line under the title. |
| `onExport` | `(entries: ActivityEntry[]) => void` |  | Replaces the built-in CSV download; receives the entries currently shown. |
| `className` | `string` |  | Classes for the root. |

## Where it fits

- **Security audit trails**: Events grouped by day with filters by person and event type let an admin answer who changed what, and when, in seconds. Pairs with [Permissions Matrix](https://uibrik.com/components/permissions-matrix.md) (Pro).
- **Team workspace history**: Live search over the log helps teammates find the edit, invite or deletion they are looking for without scrolling. Pairs with [Settings Page](https://uibrik.com/components/settings-page.md) (Pro).
- **Compliance reviews**: A clear, filterable record of billing, role and access changes is what auditors ask for in SOC 2 and similar reviews.

## Same shelf: App Screens

- [Email Composer](https://uibrik.com/components/email-composer.md): An email composer with recipient chips and suggestions, contact cards on hover, drag-and-drop attachments with upload progress, and a send button that schedules.
- [Org Chart](https://uibrik.com/components/org-chart.md): A pan-and-zoom org chart whose teams grow out of and fold back into their manager, with search that flies to a person, a minimap and profile cards.
- [Setup Checklist](https://uibrik.com/components/setup-checklist.md): An onboarding checklist beside a segmented ring: finishing a task draws its check, folds the row away and flies a dot into the ring, and the last one closes the ring into a done state.
- [API Keys](https://uibrik.com/components/api-keys.md) (Pro): A developer API keys screen on one surface: a line of totals, live and test keys with access, masked secrets, two weeks of traffic and last use, each opening in place to per-resource permissions, roll and revoke, and secrets shown once.
- [Auth Forms](https://uibrik.com/components/auth-forms.md) (Pro): Sign in, sign up, code verification and password reset in one card that eases between modes.
- [Billing Page](https://uibrik.com/components/billing-page.md) (Pro): A SaaS billing page in two surfaces: the current plan with what it includes and the days to renewal, the next invoice line by line with the card it's charged to, usage against limits with overage costs, and a billing history with pay, retry and download.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/activity-log/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
