Skip to content

Audit log - #2860

Open
david-crespo wants to merge 72 commits into
mainfrom
audit-log
Open

Audit log#2860
david-crespo wants to merge 72 commits into
mainfrom
audit-log

Conversation

@david-crespo

@david-crespo david-crespo commented Jul 23, 2025

Copy link
Copy Markdown
Collaborator

https://console-git-audit-log-oxidecomputer.vercel.app/system/audit-log

Copied from #2849, which I accidentally merged and couldn't reopen even after I fixed main.


Still very rough, but has been a helpful exercise in working through some of the design due to the sheer amount of information and differing layout from other pages.

https://github.com/user-attachments/assets/84cbb9f6-d22b-4e64-9b1d-e39d74d22902

Stubbing out based on oxidecomputer/omicron#7339.

Uses Tanstack Virtual. On testing with > 500 lines without virtualisation it starts to get a bit chunky especially if you're interacting with the page (e.g. opening the row).

Hoping that silo name and actor display name can be plumbed through so those are hard-coded for now.

Still needs:

  • Error state
  • Loading/placeholder state
  • Copy JSON to clipboard
  • Equivalent CLI/API command
  • Fix giant footer spacing
  • Arrow key selected item navigation
  • Hide overflowing columns
  • Improved focus visible look
  • Timestamp hover
  • Fix gradient on light mode
  • Syntax highlighting

@vercel

vercel Bot commented Jul 23, 2025

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 27, 2026 10:10pm

Request Review

@david-crespo

Copy link
Copy Markdown
Collaborator Author

Can't repro locally, but this happened twice in CI so it's probably not a fluke.

image

Comment thread app/pages/system/AuditLog.tsx Outdated
Comment thread app/pages/system/AuditLog.tsx Outdated

@fakemonster fakemonster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a few more observations. just like in social media, infinite scroll leads to pain!

Comment thread app/pages/system/AuditLog.tsx
Comment thread app/pages/system/AuditLog.tsx Outdated
Comment thread app/pages/system/AuditLog.tsx Outdated
Comment thread app/pages/system/AuditLog.tsx Outdated
@david-crespo david-crespo added this to the 23 milestone Aug 13, 2026
The previous attempt to read an error message would never succeed, and
since errors are generally happening at the bottom of the page, I moved
the error message down there. If we get rid of interval refreshing,
_all_ errors will be down there!
Doesn't really make sense when you have pagination; you don't want to
refetch every page automatically, nor do you want to drop everything
past the first page.
@fakemonster

Copy link
Copy Markdown
Contributor

i think these are the issues we would want to create for potential followup:

  1. classier control buttons
  2. get rid of the handrolled json viewer (we need one for the alerts page too, and the oxql stuff seems to be tipping towards adding shiki for oxql, so why not handle json that way)
  3. show silo name when applicable? i know we've discussed actor name as well, but it may be inappropriate here anyways
  4. "timestamp hover" (this is just in the checklist above, idk what it is and we could probably strike it)

Maybe this had some utility originally, but when it caused a merge
conflict I started to wonder why it needed to be there in the first
place. The virtual list wouldn't need it, nor would the side drawer.
@david-crespo

david-crespo commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator Author

There's a statefulness implied by the listbox that I don't love. There's no difference in practice between having Last 3 hours and Custom selected if the same time range is in the actual picker — there's no sliding window since we killed polling. So I wonder if we should make the thing more menu-like instead of making it a listbox. This is similar to the query examples in the OxQL explorer, which we turned into buttons: #3312 (comment).

image

@david-crespo

Copy link
Copy Markdown
Collaborator Author

Low priority because it only happens on the preview, but the sticky header goes under the top bar when I scroll.

2026-08-27-sticky-audit-log-header-bug.mp4

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.

4 participants