# View Audit Log

## User Story

As a user with the appropriate role, I want to view and filter the audit log, so that I can track all entity operations for compliance.

## Story Diagram

```mermaid
flowchart TD
    A[Open Audit Log List] --> B[Apply filters]
    B --> C{Filter type}
    C -- Entity type selected --> D[Show entries for that entity type]
    C -- Date range selected --> E[Show entries within date range]
    C -- No filter --> F[Show all entries]
    D --> G[View paginated results]
    E --> G
    F --> G
    G --> H{Results}
    H -- Entries found --> I[Display audit log entries]
    H -- No entries --> J[Show empty state]
```

## Scenario Patterns

- View all audit log entries without any filter applied
- Filter entries by a specific entity type
- Filter entries by a date range
- Combined filter returns no results and an empty state is shown

## Test Cases

- Open the audit log list with no filters; verify all entries are displayed with pagination
- Select an entity type filter; verify only entries for that entity type are shown
- Set a date range filter; verify only entries within the specified range are shown
- Set a date range with no matching entries; verify an empty state is displayed

## Screens

- [audit-entry-list](../../../screen/audit-entry-list.md)

## Resolvers

- None
