-
Notifications
You must be signed in to change notification settings - Fork 15
Audit log #2860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Audit log #2860
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
import { toSyslogDateString, toSyslogTimeString } from '~/util/date' | ||
import { docLinks } from '~/util/links' | ||
|
||
export const handle = { crumb: 'Audit Log' } | ||
|
||
// todo | ||
// might want to still render the items in case of error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, we could just add a banner and a refresh. What type of error could we expect here? If you were no longer authorised you'd be logged out? Just a general server error retrieving?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors should be pretty unlikely if you can get to the page at all, so I’d say keep it very generic.
return <div>Error State</div> | ||
} | ||
|
||
// todo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll do a skeleton state that is essentially a bunch of empty items to avoid too much layout shift when they load
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.
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: