Skip to content

Issue 31: Dashboard Audit Log Views #31

Description

@laraibg786

Goal

Add detailed audit log views to the Streamlit dashboard showing all vendor events (license creation, activation, heartbeat, revocation, policy changes) with filtering, search, pagination, and CSV export.

Requirements

Functional

  • Audit event table displaying last 100 events with pagination.
  • Filter by: date range, event type (LICENSE_CREATED, ACTIVATED, HEARTBEAT_RECEIVED, LICENSE_REVOKED, POLICY_UPDATED), status (SUCCESS, FAILED).
  • Search by: license key, customer name, device fingerprint hash.
  • Drill-down view: click an event row to see full payload details.
  • Export filtered events as RFC 4180 CSV with timestamp in filename.
  • Real-time event count widget on the main dashboard.

Technical

  • Event Types: LICENSE_CREATED, LICENSE_MODIFIED, LICENSE_REVOKED, ACTIVATION_REQUESTED, ACTIVATION_SUCCESS, ACTIVATION_FAILED, HEARTBEAT_RECEIVED, HEARTBEAT_GRACE_ENTERED, HEARTBEAT_EXPIRED, POLICY_UPDATED.
  • Tenant isolation enforced: vendor sees only their own events.

Acceptance Criteria

  • Audit table loads with correct events for the authenticated vendor.
  • Filters and search correctly narrow results.
  • Drill-down shows full event payload.
  • CSV export downloads correctly with all filtered events.

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions