From c63e87e844c52c5721bb00b6022ddfc5dc9116f8 Mon Sep 17 00:00:00 2001 From: Alexander Moses Date: Mon, 6 Apr 2026 13:28:38 +0000 Subject: [PATCH 1/2] Bug-1986319: Allow auto selection of full hash matches Updated `SearchInputAndResults` to: * Track input value as state * Check if the input is a hash and if it matches an existing has * Auto select the hash if it matches the full hash --- .../__snapshots__/ResultsTable.test.tsx.snap | 4 ++ .../CompareOverTime.test.tsx.snap | 4 ++ .../CompareWithBase.test.tsx.snap | 15 ++++++ .../SearchContainer.test.tsx.snap | 3 ++ .../SearchResultsList.test.tsx.snap | 3 ++ .../__snapshots__/SearchView.test.tsx.snap | 15 ++++++ src/components/Search/SearchInput.tsx | 3 ++ .../Search/SearchInputAndResults.tsx | 46 +++++++++++++++++-- 8 files changed, 89 insertions(+), 4 deletions(-) diff --git a/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap b/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap index 4380e7929..9672f64dd 100644 --- a/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap +++ b/src/__tests__/CompareResults/__snapshots__/ResultsTable.test.tsx.snap @@ -333,6 +333,7 @@ exports[`Results Table Should match snapshot 1`] = ` id="search-base-input" placeholder="Search by revision ID or author email" type="text" + value="" />