moijes12 · GitHub

@moijes12 changed the title Bug 1986319: Auto-select single search result and keep dropdown open for full hashes Bug 1986319: Auto-select for full hash matches

Jul 10, 2026

kala-moz

kala-moz

kala-moz

@moijes12

kala-moz

- Automatically select a revision when a full 40-character hash or a partial hex hash (length >= 4) matches exactly one result or matches a result's revision hash.
- Ensure the revision dropdown remains open after auto-selecting a full 40-character hash.
- Automatically open the revision dropdown when a selected revision is removed from the view.
- Added a new test suite `src/__tests__/Search/SearchAutoSelect.test.tsx` to verify these behaviors.
- Updated existing snapshots in `src/__tests__/Search/__snapshots__`.
Updating screenshots
- Removed the logic that opens the dropdown when a selected revision is removed from the view, resolving conflicts with standard clicking outside interactions.
- Removed the test case for the dropdown opening upon revision removal.
- Removed the `!urlParams.has('newRev')` condition to allow hash auto-selection to work on the Results page after pasting a hash.
- Ran all tests successfully and updated snapshots.

@moijes12

@kala-moz

kala-moz

@kala-moz kala-moz changed the title Bug 1986319: Auto-select for full hash matches Bug 1986319: Auto-select for partial or full hash matches

Jul 22, 2026

@kala-moz

Merged

Read the original on github.com ↗