Examples
Log explorer
Built with the mantine-data-grid skill
Level
Service
Message
Request ID
Build the log explorer of an observability tool: engineers browse a large batch of application logs in the browser.
Data:
- 50,000 generated log entries over the last 24 hours, newest first: timestamp, level (debug, info, warn, error), service (one of 8), message, request id, duration in ms, and a JSON payload of 3–10 fields
- generate the data once with a fixed seed so the same entries appear on every load
Table:
- scrolling through all 50,000 entries stays smooth, and the table fills the available height of the page
- columns: timestamp (with milliseconds), level, service, message, request id, duration; the message column takes the remaining width and long messages are cut with an ellipsis
- a search finds entries by message or request id and tolerates small typos
- filters for level and service, each allowing several values
- columns can be shown, hidden, reordered and resized; the column layout is remembered between visits, with a way to reset it
- sortable by timestamp and duration
- clicking a row expands it to show the full message and the formatted JSON payload, with a "Copy JSON" button
- a footer shows the number of entries matching the filters out of the total
The component is shown on a demo page that already has a title: do not add a page title or intro text.
Write tests for the component.