Skip to content

Dashboard tables: sort + search, model cache-read column - #2

Merged
calebjohn24 merged 1 commit into
mainfrom
dashboard-tables-sort-search
Jul 20, 2026
Merged

Dashboard tables: sort + search, model cache-read column#2
calebjohn24 merged 1 commit into
mainfrom
dashboard-tables-sort-search

Conversation

@calebjohn24

Copy link
Copy Markdown
Contributor

Adds client-side search and click-to-sort to the core data tables (Functions, Models, Routes, and the recent-calls table), plus a Cache read column on Models.

  • Table now renders a search box (when a search accessor is given) and sortable headers (asc/desc). A hybrid accessor keeps most columns sortable by default; custom/aggregate columns pass a sort function, non-sortable ones pass sort: false.
  • Verified live with mock data: sorting (e.g. Calls ↑) and search ("billing" → 2 matches) both work and compose.

Note: OSS /v1/usage only exposes cache_read_tokens (no cache-write), so Models gets a Cache read column but no cache-write column.

🤖 Generated with Claude Code

- Table: client-side search box and click-to-sort headers (asc/desc, with a
  hybrid accessor so most columns are sortable by default and custom columns
  opt in via `sort` / out via `sort: false`).
- Wire search + sort accessors into the Functions, Models, Routes, and
  recent-calls tables.
- Models: add a Cache read tokens column.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@calebjohn24
calebjohn24 merged commit 2377d71 into main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant