Record Detail

M
Written By Melih SünbülLast updated 5 months ago

Click any row in the grid, and you're taken to its full story. The record detail page is where a single entry goes from a line of data to a living document — with its current state, embedded analytics, visual history, and a complete audit trail.

The Five Tabs

Every record detail page has up to five tabs, each offering a different perspective on the same data:

flowchart LR
    A["📄 Summary
    (fields & values)"] --> B["📊 Analytics
    (Streamlit dashboard)"]
    B --> C["🕐 Timeline
    (visual history)"]
    C --> D["📋 History
    (version grid)"]
    D --> E["📑 Audit Log
    (who did what)"]

Summary

The record's current values displayed as a clean card layout. Choose how many columns to show, switch between serializer presets for different field sets, and export the record as PDF.

Analytics

An embedded Streamlit dashboard scoped to this specific record. Charts, KPIs, custom visualizations — all computed live and displayed without leaving the page.

Timeline

A visual timeline of every change this record has gone through. See who changed what, when, and compare versions side-by-side in a detail drawer.

History

The full history of all versions of this record, displayed in a grid. Use the As-Of control to time-travel — see what this record looked like at any point in the past.

Audit Log

All operations (create, update, delete) that have been performed on this record, with the author, timestamp, and full payload for each event.

The Toolbar

Above the tabs, a toolbar gives you quick access to:

Control

What It Does

View Preset

Switch between serializer presets (like different zoom levels on the same record)

Column Layout

Toggle between 1, 2, or 3 column layouts for the Summary tab

Edit

Jump to the edit form for this record

Export to PDF

Download the current Summary tab as a PDF document

📸 Screenshot — Record detail toolbar
Record detail toolbar showing preset selector, column toggle, edit button, and PDF export

Customizing Tab Labels

By default the History and Audit Log tabs use their built-in names. You can rename them per model — or across all models at once — in lex_config.py:

TAB_DISPLAY_NAMES = {
    # Override for every model that doesn't have its own entry
    "__default__": {
        "history_tab": "Versions",
        "audit_log_tab": "Activity",
    },
    # Override for a specific model (takes precedence over __default__)
    "expensereport": {
        "history_tab": "Expense History",
    },
}

Both keys are optional — omit one to keep the built-in label for that tab. Model names must be lowercase (the lowercased Python class name). The __default__ entry applies to all models that don't have their own explicit override.

Use the breadcrumbs at the top to navigate back to the grid. The breadcrumb trail always shows your full path:

Home › Teams & People › Expense › #42

Click Expense to return to the grid — your filters, grouping, and scroll position are preserved, so you pick up right where you left off.

Was this helpful?

Your feedback shapes what we write next.