Skip to content

feat: error logs admin page#11

Merged
y4nder merged 1 commit into
mainfrom
feat/error-log-page
May 12, 2026
Merged

feat: error logs admin page#11
y4nder merged 1 commit into
mainfrom
feat/error-log-page

Conversation

@y4nder
Copy link
Copy Markdown
Member

@y4nder y4nder commented May 12, 2026

Summary

  • SUPER_ADMIN-gated /error-logs page that lists captured 5xx exceptions from the API with status / acknowledgement filters and free-text search
  • Detail drawer showing full stack trace, sanitized request body, and client metadata; one-click acknowledge / unacknowledge mutation
  • Defaults to unacknowledged-only so triaging stays focused; acknowledged rows dim out in the table
  • Adds nav entry alongside Audit Logs and types mirroring the API DTOs

Pairs with

API side: CtrlAltElite-Devs/api.faculytics#397. Merge that first — the page needs the new /error-logs endpoints to function.

Test plan

  • bun run build — type-check + Vite build clean
  • Lint clean on changed files (pre-existing errors in submission-generator and auth-store are unrelated)
  • After API PR is deployed: smoke-test the page against staging — list loads, filters narrow the result set, detail drawer renders the stack trace, acknowledge button flips the row's badge and dims it
  • Confirm the page is hidden / 403s for non-SUPER_ADMIN sessions

🤖 Generated with Claude Code

Adds a SUPER_ADMIN-gated page surfacing captured 5xx exceptions
from the API (paired with CtrlAltElite-Devs/api.faculytics#397).

- `features/error-logs/`: paginated list with status / acknowledgement
  filters and free-text search, detail drawer showing the full stack
  trace, sanitized request body, and client metadata, plus a one-click
  acknowledge / unacknowledge mutation
- list defaults to unacknowledged-only so triaging stays focused;
  acknowledged rows dim out in the table
- types mirror the API DTOs (`ErrorLogItem`, `ErrorLogDetail`,
  `ListErrorLogsQuery`)
- adds `/error-logs` route behind the existing `AuthGuard` and a
  matching `AlertOctagon` nav entry next to Audit Logs

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
admin-faculytics Ready Ready Preview, Comment May 12, 2026 3:11am

@y4nder y4nder self-assigned this May 12, 2026
@y4nder y4nder merged commit d0c65fc into main May 12, 2026
2 checks passed
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.

1 participant