lantern

Data table

The admin table: Flop-driven sort/pagination, built-in debounced search and filter selects, tabs with filter presets, a collapsible stat overview, bulk selection, and a cards view — with the entire table state living in the URL. Everything below is live against an in-memory dataset.

Revenue (all)
$12031.57
Orders
25
Pending
19
Refunded
19
Order ↑ Buyer Channel Status Total
#4826 Grace Perlman Direct refunded $51.27
#4827 Edsger Turing eBay pending $70.10
#4828 Barbara Liskov Shopify shipped $324.27
#4829 Donald Thompson Direct refunded $274.45
#4830 Radia Hopper eBay pending $182.46
#4831 Ken Knuth Shopify shipped $386.22
#4832 Ada Lovelace Direct refunded $389.94
#4833 Alan Dijkstra eBay pending $235.11
#4834 Grace Perlman Shopify shipped $223.78
#4835 Edsger Turing Direct refunded $378.94
#4836 Barbara Liskov eBay pending $380.48
#4837 Donald Thompson Shopify shipped $141.59
#4838 Radia Hopper Direct refunded $317.11
#4839 Ken Knuth eBay pending $156.04
#4840 Ada Lovelace Shopify shipped $27.08
#4841 Alan Dijkstra Direct refunded $357.97
#4842 Grace Perlman eBay pending $178.68
#4843 Edsger Turing Shopify shipped $242.25
#4844 Barbara Liskov Direct refunded $357.03
#4845 Donald Thompson eBay pending $362.35
#4846 Radia Hopper Shopify shipped $316.33
#4847 Ken Knuth Direct refunded $6.37
#4848 Ada Lovelace eBay pending $331.97
#4849 Alan Dijkstra Shopify shipped $319.62
#4850 Grace Perlman Direct refunded $71.79
<.data_table id="orders" rows={@orders} meta={@meta} path={~p"/orders"}
  selected_ids={@selected} search_field={:q}>
  <:stat label="Revenue (30d)" value={@revenue} />
  <:tab label="Pending" count={@counts.pending}
        filters={[%{field: "status", value: "pending"}]} />
  <:filter field={:channel} options={@channels} />
  <:col :let={o} label="Order" field={:reference} sortable>{o.reference}</:col>
  <:bulk_action label="Archive" icon="inbox" event="bulk-archive" />
  <:row_action :let={o}>…</:row_action>
  <:card :let={o}>…</:card>
</.data_table>