Audit Log

Who did what in a workspace, and when.

Showing 25 of 300

Audit log
WhenWhoWhatWhereOutcomeActions
Tuesday, 1 December 2026
· Workspace
BO
Ben Okafor
Changed the role of Mira Patel
Member → Admin
Workspace
Done
· Finance
Scoutfor Mira Patel · via MCP
Asked to delete Q3 forecast
Finance
Held for approval
· #sales
Monday digest
Sent the weekly digest to #sales
3 tasks
#sales
Done
· #support
Scoutfor Ana Lopez · via a routine
Posted a reply in #support
#support
Done
· Workspace
MP
Mira Patel
Turned off Exports
Workspace
Done
· Billing
Billing sync
Synced invoices from Ledger
Billing
FailedThe connection expired
· api.payments.example
Scoutfor Ben Okafor
Called api.payments.example
api.payments.example
RefusedOutside the allowed hosts
· Workspace
BO
Ben Okafor
as MemberWorkspace
Done
· Lisbon, Portugal
AL
Ana Lopez
Signed in from a new device
Lisbon, Portugal
Recorded
· Production
AL
Ana Lopez
Rotated the secret CRM_API_KEY
Production
Done
· Workspace
BO
Ben Okafor
Changed the role of Mira Patel
Member → Admin
Workspace
Done
· Finance
Scoutfor Mira Patel · via MCP
Asked to delete Q3 forecast
Finance
Held for approval
· #sales
Monday digest
Sent the weekly digest to #sales
3 tasks
#sales
Done
· #support
Scoutfor Ana Lopez · via a routine
Posted a reply in #support
#support
Done
· Workspace
MP
Mira Patel
Turned off Exports
Workspace
Done
· Billing
Billing sync
Synced invoices from Ledger
Billing
FailedThe connection expired
· api.payments.example
Scoutfor Ben Okafor
Called api.payments.example
api.payments.example
RefusedOutside the allowed hosts
· Workspace
BO
Ben Okafor
as MemberWorkspace
Done
Monday, 30 November 2026
· Lisbon, Portugal
AL
Ana Lopez
Signed in from a new device
Lisbon, Portugal
Recorded
· Production
AL
Ana Lopez
Rotated the secret CRM_API_KEY
Production
Done
· Workspace
BO
Ben Okafor
Changed the role of Mira Patel
Member → Admin
Workspace
Done
· Finance
Scoutfor Mira Patel · via MCP
Asked to delete Q3 forecast
Finance
Held for approval
· #sales
Monday digest
Sent the weekly digest to #sales
3 tasks
#sales
Done
· #support
Scoutfor Ana Lopez · via a routine
Posted a reply in #support
#support
Done
· Workspace
MP
Mira Patel
Turned off Exports
Workspace
Done

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/audit

Usage

import { AuditLog, type AuditEntry } from "./ui/uicontext/components/kit/Audit.ts"
const Message = UiSchema.TaggedEnum({	FilteredAudit: { selected: Schema.Record(Schema.String, Schema.String) },	RequestedMoreAudit: {},})export const WorkspaceAudit = (	h: Html.H<typeof Message.Type>,	entries: ReadonlyArray<AuditEntry>,	selected: Readonly<Record<string, string>>,	hasMore: boolean,) =>	AuditLog(h, {		props: {			label: "Audit log",			entries,			hasMore,			selected,			filters: [{ id: "who", label: "Who", field: "actorKind", options: [{ value: "agent", label: "Agents" }] }],		},		onEmit: {			RequestedFilters: ({ selected }) => Message.FilteredAudit({ selected }),			RequestedMore: () => Message.RequestedMoreAudit(),			RequestedQuery: () => undefined,			RequestedExport: () => undefined,			RequestedRowAction: () => undefined,		},	})

Examples

Sign-ins

A row action on each live session. Ending one marks its entry ended.

4 entries

Sign-ins
WhenWhoWhatWhereOutcomeActions
Tuesday, 1 December 2026
· Lisbon, Portugal
AL
Ana Lopez
Signed in with a passkey
Chrome on macOS
Lisbon, Portugal
Active
Monday, 30 November 2026
· Porto, Portugal
AL
Ana Lopez
Signed in with a magic link
Safari on iPhone
Porto, Portugal
Active
· Lagos, Nigeria
BO
Ben Okafor
Tried to sign in with a password
Lagos, Nigeria
RefusedWrong password, 5 times. Locked for 15 minutes.
Sunday, 29 November 2026
· Lagos, Nigeria
BO
Ben Okafor
Signed in with a password
Firefox on Windows
Lagos, Nigeria
Ended

Empty

A new workspace's log says what will show up in it.

Nothing recorded yet

Sign-ins, setting changes and every agent action show here.

API reference

Props

AuditLog props
NameTypeDefaultDescription
agentIdstring—This log's id for agents, unique on the page: "audit-admin"
labelrequiredstring—"Activity", "Audit log", "Network events"
entriesrequiredAuditEntry[]—What happened, newest first: who did what to which target, and when
filtersAuditFilter[]—The filters above the log, each a field and its choices
selectedRecord<string, string>—The chosen value per filter id; "" or absent for all
querystring—The search text, controlled: matches who, what, the target, where and the reason
search{ placeholder }—Show the search field; its placeholder is Search the log unless you give one
exportFormats("csv" | "json")[]—Formats the log can be exported in; shows Export, which asks for the current filters
exportingboolean—An export is being made: the button shows busy
totalnumber—How many entries match in all, when the app knows: "Showing 50 of 1,284"
hasMoreboolean—More entries exist past these
loadingMoreboolean—More entries are loading: the load-more button shows busy
rowActionConsequentialbooleantrueIs the row action consequential (ending a session is); true by default
emptyTitlestringNothing recorded yetWhat an empty log says; Nothing recorded yet by default
emptyHintstring—A hint under the empty title
timeZonestring—The time zone (IANA) times are shown in
localestring—The locale times are formatted in; the browser's by default

Events

AuditLog events
EventPayloadDescription
RequestedFilters{ selected: Record<string, string> }The whole selection after the change
RequestedMore{}Load the entries past these
RequestedRowAction{ id: string }An entry's action was pressed, such as ending a session
RequestedQuery{ query: string }The search text changed; filter on the server, or with filterAudit
RequestedExport{ format: "csv" | "json"; selected: Record<string, string>; query: string }Export every entry the current filters and search match, not only the loaded ones

Agent actions

What agents can do with AuditLog
ActionDescription
ChoseFilterFilter by one field: { filter, value } (from page_query "filter=value"); value "" shows all.
UpdatedQuerySearch the log by who, what, target, place or reason
ClickedExportExport every entry the current filters and search match, as csv or json
ClickedMoreLoad older entries
ClickedRowActionTake an entry's row action (its rowAction, such as ending a session). Target: { id, rowAction, result }.

Accessibility

  • The log is a captioned table; each time is a <time> in the reader's time zone.
  • Filters are native selects inside a search landmark, and loading older entries is announced.

Source