# Agent Activity

> What agents did with your connected services, newest first and grouped by day: each action with its service, agent and time, whether it read something, changed something or touched money, and its state (waiting for you, declined, undone, fa

Component · Connectors · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/AgentActivity/)

What agents did with your connected services, newest first and grouped by day: each action with
its service, agent and time, whether it read something, changed something or touched money, and
its state (waiting for you, declined, undone, failed). Finished changes offer "Undo"; actions
waiting for approval offer "Review".

## Example

```tsx
import { AgentActivity, Panel } from "@twentyfirstmedia/halo";
import "./_connectors";

const now = new Date(2026, 10, 14, 9, 30);
const at = (day: number, h: number, m: number) => new Date(2026, 10, 14 + day, h, m);

export default function Preview() {
  return (
    <Panel title="Agent activity" subtitle="What your agents did" style={{ maxWidth: 720 }}>
      <AgentActivity
        now={now}
        onUndo={() => {}}
        onReview={() => {}}
        items={[
          {
            id: "1",
            service: { name: "N26", icon: "brandN26" },
            agent: "Money agent",
            text: "Wants to cancel the second music subscription (€10.99 a month)",
            at: at(0, 9, 12),
            kind: "money",
            state: "waiting",
          },
          {
            id: "2",
            service: { name: "tado°", icon: "brandTado" },
            agent: "Home agent",
            text: "Turned the heating down to 17 °C: nobody is home",
            at: at(0, 8, 41),
            kind: "act",
          },
          {
            id: "3",
            service: { name: "Gmail", icon: "brandGmail" },
            agent: "Assistant",
            text: "Read 14 new emails and filed 3 invoices to Drive",
            at: at(0, 7, 5),
            kind: "read",
          },
          {
            id: "4",
            service: { name: "Google Calendar", icon: "brandGooglecalendar" },
            agent: "Assistant",
            text: "Moved the dentist to Friday, 10:00",
            detail: "The old slot clashed with your flight to Dubai.",
            at: at(-1, 18, 20),
            kind: "act",
            state: "undone",
          },
          {
            id: "5",
            service: { name: "WhatsApp", icon: "brandWhatsapp" },
            agent: "Assistant",
            text: "Drafted a reply to Lena about Saturday",
            at: at(-1, 16, 2),
            kind: "act",
            state: "declined",
          },
          {
            id: "6",
            service: { name: "Tesla", icon: "brandTesla" },
            agent: "Home agent",
            text: "Could not start charging: the car was asleep",
            at: at(-1, 23, 0),
            kind: "act",
            state: "failed",
          },
        ]}
      />
    </Panel>
  );
}
```

## Props

### AgentActivity

| Prop | Type | Notes |
| --- | --- | --- |
| `items` | `AgentAction[]` | Required |
| `now?` | `Date \| string \| number` | "Now" for the day headings; pass it so server and client render the same. |
| `onUndo?` | `(id: string) => void` | Offers "Undo" on finished actions that changed something. |
| `onReview?` | `(id: string) => void` | Opens an action that waits for your approval. |
| `label?` | `string` | Accessible name (default "Agent activity"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
