Skip to content

Build the audit log page (W7-08) - #170

Merged
calebyhan merged 1 commit into
mainfrom
161/audit-log-page
Nov 30, 2026
Merged

calebyhan merged 1 commit into
mainfrom
161/audit-log-page

Conversation

@sliu382

@sliu382 sliu382 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

The audit log records sensitive actions such as account changes, content edits, and every escalation record view (TDD 4.3.3). The API is done (#141), but /portal/admin/audit-log is a placeholder.

Changes:

  • Renders audit log table with each row having the time, actor, action, and target.
  • Time is shown in America/New_York time.
  • Log can be filtered by action and actor. Action options are shown in alphabetical order in the dropdown.
  • Added pagination with a max of 50 per page, and the page/filters are kept in the URL query string.
  • "Deleted account" is shown when actor_display_name is null
  • Tested that filters and page change the request, button states are based on pagination, null actor shows "Deleted account", and there are no edit/delete controls anywhere

Closes #161

@github-actions

Copy link
Copy Markdown

Backend Test Results

713 tests  ±0   713 ✅ ±0   20s ⏱️ +2s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit fdc9293. ± Comparison against base commit f435caa.

@sliu382
sliu382 requested a review from calebyhan November 21, 2026 22:40

@calebyhan calebyhan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@calebyhan
calebyhan merged commit 35c56bc into main Nov 30, 2026
4 checks passed
@calebyhan
calebyhan deleted the 161/audit-log-page branch November 30, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build the audit log page (W7-08)

2 participants