Skip to content

Audit Log - #2849

Merged
david-crespo merged 12 commits into
mainfrom
audit-log
Jul 23, 2025
Merged

david-crespo merged 12 commits into
mainfrom
audit-log

Conversation

@benjaminleonard

Copy link
Copy Markdown
Contributor

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.

CleanShot 2025-07-08 at 11 47 02

Stubbing out based on oxidecomputer/omicron#7339.

Uses Tanstack Virtual. On testing with > 500 lines 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

@vercel

vercel Bot commented Jul 8, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jul 8, 2025 0:02am

Comment thread app/ui/lib/Listbox.tsx
name={name}
className={cn(
`flex h-11 items-center justify-between rounded border text-sans-md`,
`flex h-10 items-center justify-between rounded border text-sans-md`,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sneaking in my continued densification

david-crespo and others added 5 commits July 11, 2025 20:58
Since oxidecomputer/omicron#8527 the control
plane has been happy to accept such sizes.
* Update pinned Omicron version

* Update mock data; update filters list to show type / code in badge list

* Updating form to handle ICMP types; UI not there yet; also needs ICMP codes sub-option

* oops; license

* Updates to handle proper protocol objects in the form

* prevent duplicate protocols; convert mini table to columns showing protocol, type, code

* add ProtocolBadge component

* refactor; update tests

* Refactoring and usability improvements

* small tweaks

* ProtocolCell and friends

* Move away from badges in mini table for type and code

* update Protocol Badge layout

* a few more ProtocolBadge adjustments

* Update test to account for new badge

* Properly handle selective code combobox display

* slight refactoring

* refactoring

* add icmp filter to the mock rule with lots of filters

* try "parse, don't validate" on ICMP type

* combobox values can't be numbers

* tweak help copy

* Bump Omicron and add new IP Pool column to networking table (#2855)

* Bump Omicron further and add IP Pool ID column to networking tab

* simplify IP Pool finding with safer fallback

* Bump Omicron to latest and run gen-api; no changes to console

* give IpPoolCell loading state, don't blow up on errors

* A few post-review adjustments

* Simpler handling of resolveIpPool

* small type refactor

* shorter getIpFromPool

---------

Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>

* bind icmp type input value to form value

---------

Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>
@david-crespo
david-crespo merged commit 9d46415 into main Jul 23, 2025
@david-crespo
david-crespo deleted the audit-log branch July 23, 2025 03:08
@david-crespo david-crespo mentioned this pull request Jul 23, 2025
9 of 11 tasks
@hawkw hawkw mentioned this pull request Aug 28, 2026
david-crespo added a commit that referenced this pull request Sep 3, 2026
https://console-git-audit-log-oxidecomputer.vercel.app/system/audit-log

Copied from
[#2849](<#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
[https://github.com/oxidecomputer/omicron/pull/7339](<https://github.com/oxidecomputer/omicron/pull/7339>).

Uses [Tanstack Virtual](<https://tanstack.com/virtual/latest>). 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:

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

---------

Co-authored-by: Benjamin Leonard <benji@oxide.computer>
Co-authored-by: Joe Thel <joe.thel@oxidecomputer.com>

This branch was successfully deployed

2 active deployments
Preview — 9d46415f Deployed Jul 23, 2025 by vercel[bot]
Production — 9d46415f Deployed Jul 23, 2025 by vercel[bot]
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