-
Notifications
You must be signed in to change notification settings - Fork 2.1k
chore: make error tracking UI full with and remove card style #42240
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
Changes from 6 commits
760a370
9135e0c
0da0d45
1b7271c
79b656b
1e2ff68
34a080b
4d2f13c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,10 +32,14 @@ export interface EventsTableProps { | |||||||||||||||||||
| onEventSelect: (event: ErrorEventType | null) => void | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| export function EventsTable({ query, queryKey, onEventSelect }: EventsTableProps): JSX.Element { | ||||||||||||||||||||
| export function EventsTable({ query, queryKey, onEventSelect, selectedEvent }: EventsTableProps): JSX.Element { | ||||||||||||||||||||
| const tagRenderer = useErrorTagRenderer() | ||||||||||||||||||||
| const dataSource = eventsSourceLogic({ queryKey, query }) | ||||||||||||||||||||
|
|
||||||||||||||||||||
| function isEventSelected(record: ErrorEventType): boolean { | ||||||||||||||||||||
| return selectedEvent ? selectedEvent.uuid === record.uuid : false | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| function renderTitle(record: ErrorEventType): JSX.Element { | ||||||||||||||||||||
| return ( | ||||||||||||||||||||
| <LemonTableLink | ||||||||||||||||||||
|
|
@@ -74,13 +78,24 @@ export function EventsTable({ query, queryKey, onEventSelect }: EventsTableProps | |||||||||||||||||||
| return <TZLabel time={record.timestamp} /> | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| function renderUUID(record: ErrorEventType): JSX.Element { | ||||||||||||||||||||
| // Click event is caught at the row level | ||||||||||||||||||||
| return ( | ||||||||||||||||||||
| <div className="flex items-center"> | ||||||||||||||||||||
| <input type="radio" className="cursor-pointer" checked={isEventSelected(record)} onChange={() => {}} /> | ||||||||||||||||||||
|
||||||||||||||||||||
| <input type="radio" className="cursor-pointer" checked={isEventSelected(record)} onChange={() => {}} /> | |
| <input | |
| type="radio" | |
| className="cursor-pointer" | |
| checked={isEventSelected(record)} | |
| onChange={() => {}} | |
| name={`event-select-${queryKey}`} | |
| aria-label={`Select event ${record.uuid}`} | |
| /> |
Uh oh!
There was an error while loading. Please reload this page.