Skip to content

feat(dashboard): add interactive column sorting to analytics tables#18192

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-19ccc2b7
May 1, 2026
Merged

feat(dashboard): add interactive column sorting to analytics tables#18192
teknium1 merged 2 commits into
mainfrom
hermes/hermes-19ccc2b7

Conversation

@teknium1

@teknium1 teknium1 commented May 1, 2026

Copy link
Copy Markdown
Contributor

Salvages #17394 by @AllardQuek onto current main (330 commits ahead of the original branch). Cherry-picked cleanly; typecheck + web build pass.

What

Click-to-sort column headers on the three Analytics dashboard tables (Daily / Per-Model / Top Skills) via a useTableSort<T> hook + SortHeader component. One file: web/src/pages/AnalyticsPage.tsx (+121/-60).

Changes

  • Commit 1 (@AllardQuek): the feature
  • Commit 2: AUTHOR_MAP entry in scripts/release.py so changelog CI resolves the contributor

Validation

  • npx tsc --noEmit clean
  • npm run build clean (2.33s, 2047 modules)
  • Auto-merge onto current main had no conflicts; all col=" keys in the new SortHeader usages map to real fields on AnalyticsDailyEntry/AnalyticsModelEntry/AnalyticsSkillEntry`

Note on ModelTable default sort

Author documented the trade-off in the original PR: default changed from input_tokens + output_tokens combined to input_tokens alone, so the sort hook can stay generic without computed fields. Ranking is effectively identical since input dominates output by 3–10×.

Closes #17394
Fixes #17381

@teknium1 teknium1 merged commit f48ba47 into main May 1, 2026
9 of 10 checks passed
@teknium1 teknium1 deleted the hermes/hermes-19ccc2b7 branch May 1, 2026 03:19
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add interactive column sorting to dashboard analytics tables

3 participants