Skip to content

fix(ui): rename Virtual Keys 'Key Hash' filter label to 'Key ID' - #32672

Merged
ryan-crabbe-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_rename_key_hash_filter_to_key_id
Jul 9, 2026
Merged

ryan-crabbe-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_rename_key_hash_filter_to_key_id

Conversation

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor

Relevant issues

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests (n/a; one-word display-label rename with no logic change, so a test would only assert a static string)
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

On the Virtual Keys table, the filter that searches by the key token was labeled "Key Hash", while the very column it filters is labeled "Key ID". That mismatch made the filter look like it did something different from the column. This renames the filter's display label (and its "Enter ..." placeholder) to "Key ID" so the two line up. The underlying filter state key and the keyHash API param are unchanged, so behavior is identical

To verify, go to http://localhost:4000/ui/?page=api-keys, click Filters, and confirm the last filter now reads "Key ID" instead of "Key Hash"

Type

🐛 Bug Fix

Changes

Changed the label for the key-token filter in VirtualKeysTable.tsx from "Key Hash" to "Key ID". No logic or API changes; only the visible label and placeholder text

@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR corrects a UI label mismatch on the Virtual Keys page: the filter that searches by token was labeled "Key Hash" while the column it targets is labeled "Key ID". Only the visible label (and implicitly the placeholder text) is updated; the internal name field, filter state, and keyHash API parameter are all unchanged.

  • Renames the label property of the key-token filter entry in VirtualKeysTable.tsx from "Key Hash" to "Key ID" — a one-line change with no behavioral impact.

Confidence Score: 5/5

A one-line display label change with no effect on logic, API calls, or filter behavior — safe to merge.

The diff touches a single string in a filter definition array. No runtime logic, API contract, or state management is affected. The internal filter name and the underlying keyHash parameter are preserved exactly as before.

No files require special attention.

Important Files Changed

Filename Overview
ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.tsx Single-line display label rename — changes the user-visible label of the key-token filter from "Key Hash" to "Key ID" to match the corresponding column heading; the internal name key and all filter logic are untouched.

Reviews (1): Last reviewed commit: "fix(ui): rename Virtual Keys 'Key Hash' ..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_rename_key_hash_filter_to_key_id (47737d1) with litellm_internal_staging (6eed38b)

Open in CodSpeed

@ryan-crabbe-berri
ryan-crabbe-berri enabled auto-merge (squash) July 9, 2026 20:47
@ryan-crabbe-berri
ryan-crabbe-berri merged commit d1a79f7 into litellm_internal_staging Jul 9, 2026
76 checks passed
@ryan-crabbe-berri
ryan-crabbe-berri deleted the litellm_rename_key_hash_filter_to_key_id branch July 9, 2026 20:48
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.

2 participants