← Back to Pull requests

SOLR-17849: Implement Index & Query section header #5257

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Oct 28, 2026 05:03 UTC
Author

🤖 AI text below 🤖 (reviewed by Nick Shanin)

Ready for review, but held as a draft due to the project's open-PR cap; I'll mark it open on request.

https://issues.apache.org/jira/browse/SOLR-17849

What happens today

The new UI has no Index & Query header. A user cannot pick a collection there, and cannot see the request handlers of the chosen collection. The ticket asks for both dropdowns, with their loading and selection state.

What this change does

Adds the header and the state it needs. The request form, the response view and the request itself are not in this change.

  • IndexQueryHeader: a collection dropdown labelled Collection / Core and a request handler dropdown. The closed handler field shows the selected endpoint with its class on the same line, the class in monospace. Each menu entry shows the endpoint and its class. A long class name is cut with an ellipsis. The handler field is 384 px wide and the collection field 256 px, as in the design. Both dropdowns are disabled while loading and when there is nothing to pick. Messages cover no collections and a collection with no handlers.

  • IndexQueryStateHolder: loads the collections and the handlers of the selected collection. It holds the selected collection and handler, and clears the handler when the collection changes.

  • HttpIndexQueryRepository: GET api/collections and GET api/collections/{collection}/config/requestHandler.

  • RequestHandlerOption moves to the domain package, and four strings are added.
  • Scope of this change

    Summary: the header comes with the state it needs to meet the ticket's criteria.

    The ticket's criteria say that the collections are listed, that the handlers load for the selected collection, and that the selection is part of the state. Its "Additional Information" excludes only the form of a request handler. Three options fit the ticket:

    1. The header component only. The criteria for loading and state would stay open, because the header takes its lists and selection as parameters and nothing supplies them.
    2. The header with its loading and selection state (this change). It meets the criteria for collections, handlers and state, and it leaves out request execution.
    3. The whole screen, including running a request and showing its response. That is the content, which the ticket excludes and which Christos Malliaridis asked to keep in a separate pull request.

    This change takes option 2.

    Proof

  • At head d55bb451eb, verified 2026-10-28 with the full ./gradlew -p ui check, no build cache, software renderer: JVM tests 56 run, 0 failures, 2 skipped; browser (wasm) tests 60 run, 0 failures, 3 skipped. IndexQueryHeaderTest passes 6 of 6 and IndexQueryStateHolderTest passes 3 of 3, on both runners.

  • These tests were carried over from the screen branch, where they passed at b91f75ed93. The request tests were removed with the request code. They are not new assertions, and no mutation run was made.

  • The one new test, testSelectedHandlerShowsItsClassInTheClosedField, fails on the previous head 14ff707865 (1 of 6 failed, the class text missing from the closed field) and passes at cf35ab0329.

  • Failing on the base is not possible: the components and the tests are new.
  • Screen render at head d55bb451eb, offscreen with the software renderer, populated state (collections films and books, handler /select):

    !Header render, offscreen software renderer

    Screenshots

    Headless Chromium 156, production IndexQueryHeader inside SolrTheme (light theme), 1024x768, fixture states. Hosted in a secret gist.

    | Loading | No collections |
    | --- | --- |
    | !Loading | !No collections |

    | Collection and request handler selected |
    | --- |
    | !Selected |

    Limits

  • No screen shows the header yet. The Index / Query tab wiring comes with the content pull request.

  • Not in this change: running a request, the response view, the request form (SOLR-17850's SearchHandlerForm), execute on the repository, and the Configsets wiring.

  • The header was rendered offscreen with the software renderer, not in the app, and compared with the Figma capture of node 137-12066. The collection field is 256 px and the handler field 384 px, as in the design, and the handler class is in monospace. Colors come from thumbnails and are approximate; they are not claimed as matched.

  • The empty-state test checks the message's node, not its text. On wasm the message text was still empty when the assertion ran, so the text is not checked in a browser. The wasm browser run also renders the header without its labels: string resources come back empty in that test harness, even after a short real-time wait. That is a harness limit, not checked in the app.
  • AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: nick-boss-tech Review duration: 48434m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.59) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 650 lines diff across 8 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    40%
    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.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #5257"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% 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: 59% (MEDIUM) · Higher = larger blast radius
    59%
    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: 40.9% · Lower = rushed or shallow review
    40.9%
    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: 34.8% · Safe to merge
    34.8%
    Repository