Skip to content

Traffic: exact model filter for overview drill-downs - #198

Merged
fylorn merged 1 commit into
devfrom
fix/traffic-model-filter
Sep 25, 2026
Merged

fylorn merged 1 commit into
devfrom
fix/traffic-model-filter

Conversation

@fylorn

@fylorn fylorn commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Clicking a model on the overview (model ranking, cache hit rate by model, latency by model) opened Traffic with the model name in free-text search. Search matches substrings, so opening gpt-5.5 also listed gpt-5.5-codex, and the rows no longer matched the overview's numbers.

  • Filter gets an exact model field (filterRows, hasAnyFilter, facets().models); the three overview links use it.
  • The filter bar shows a model dropdown only while a model filter is active. A permanent third dropdown wraps the bar at the default 1100px window, and search already covers everyday model lookups. The filtered model stays in the list even when no loaded row has it yet, so an active filter is never invisible. "Clear" removes it.
  • Tests: exact match (not substring), facet list skips rows without a model.

Checked in the full preview harness: overview → claude-haiku-4-5 opens Traffic with 296 / 2000 rows and the dropdown set; Clear returns to the one-line bar.

Follow-up to #196.

🤖 Generated with Claude Code

…rview

Clicking a model on the overview (ranking, cache hit rate, latency) opened
Traffic with the model name as free-text search, which matches substrings:
opening "gpt-5.5" also listed "gpt-5.5-codex", so the rows did not add up
to the number the overview showed.

Filter gains an exact `model` field. The overview's model links use it, and
the filter bar shows a model dropdown while a model filter is active (not
permanently: at the default window width a third dropdown wraps the bar,
and searching covers everyday model lookups). The filtered model stays
listed even if no loaded row has it yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit cb93f63 into dev Sep 25, 2026
4 checks passed
@fylorn
fylorn deleted the fix/traffic-model-filter branch September 25, 2026 00:41
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