← Back to Pull requests

fix(dashboard): namespace autocomplete doesn't filter by input. Fixes #3408 #5076

Closed
unknown closed this pull request without merging on Oct 08, 2026 06:09 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 20:06 UTC
Author

Summary

The NAMESPACE <AutoComplete> in the dashboard header (ui/src/app/components/header/header.tsx) never filtered its options by the typed input. Ant Design's AutoComplete does not filter by default unless you pass an explicit filterOption prop, so typing into the namespace search box always showed the full, unfiltered namespace list in its original order — making it hard to find a namespace in a cluster with many of them.

This is the same bug reported in #3408 back in 2024. That issue has a comment pointing at the exact same one-line fix, but it looks like it was closed without the fix ever actually being merged — still reproduces today on master and on the latest release (v1.9.1).

Change

Add a case-insensitive filterOption to the <AutoComplete> so the dropdown only shows namespaces whose name contains the typed substring:

filterOption={(inputValue, option) => option.value.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1}

Net diff is a single line.

Checklist

[x] This is a bug fix (#3408)
[x] PR title is conventional and suffixes the issue number
[x] Commit is signed off (DCO)
[ ] Builds green — CI will confirm
[ ] No existing unit tests cover header.tsx; happy to add one if requested, wanted to confirm scope first given this is a one-line prop addition
[x] Ran tsc --noEmit locally before/after — identical pre-existing error set (215, none in header.tsx), so this change introduces no new type errors

  • I used an LLM/agent tool (Claude Code) for this PR; I'm responsible for the code in it and understand what it does and why
  • 🤖 Generated with Claude Code

    Diff: 210 lines (+157 / -53) across 2 files Reviewer: kostis-codefresh Review duration: 10683m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.41) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 210 lines diff across 2 files
    0.41
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.320
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #5076"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.5% (MEDIUM) · Higher = larger blast radius
    41.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.4% · Safe to merge
    16.4%