Skip to content

Bug-1986319: Allow auto selection of full hash matches#1024

Open
moijes12 wants to merge 1 commit intomozilla:mainfrom
moijes12:bug1986319
Open

Bug-1986319: Allow auto selection of full hash matches#1024
moijes12 wants to merge 1 commit intomozilla:mainfrom
moijes12:bug1986319

Conversation

@moijes12
Copy link
Copy Markdown
Contributor

@moijes12 moijes12 commented Apr 6, 2026

Updated SearchInputAndResults to:

  • Track input value as state
  • Check if the input is a hash and if it matches an existing hash
  • Auto select the hash if it matches the full hash

@kala-moz @beatrice-acasandrei

Fixes Bug-1986319

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
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 6, 2026

Deploy Preview for mozilla-perfcompare ready!

Name Link
🔨 Latest commit 232df6c
🔍 Latest deploy log https://app.netlify.com/projects/mozilla-perfcompare/deploys/69d3c1e310421100080daf6e
😎 Deploy Preview https://deploy-preview-1024--mozilla-perfcompare.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

❌ Patch coverage is 56.00000% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.86%. Comparing base (700b3c1) to head (232df6c).

Files with missing lines Patch % Lines
src/components/Search/SearchInputAndResults.tsx 56.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1024      +/-   ##
==========================================
- Coverage   96.18%   95.86%   -0.32%     
==========================================
  Files         110      110              
  Lines        3143     3166      +23     
  Branches      708      715       +7     
==========================================
+ Hits         3023     3035      +12     
- Misses        118      129      +11     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kala-moz kala-moz self-requested a review April 7, 2026 22:59
}, []);

// Helper to check if the search term matches a full 40 character revision hash
const isFullRevisionHash = (searchTerm: string) =>
Copy link
Copy Markdown
Contributor

@beatrice-acasandrei beatrice-acasandrei Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are permitting partial searches (by short hash), this improvement should also apply to short hashes, not solely to full revision hashes.

Note: This request improvement was added by me in bugzilla, but it is actually something that came up in our latest feedback google form. It's missing some details and it was anonymous, so we'll need to make some decisions regarding the behaviour.

@kala-moz What do you think?

@kala-moz
Copy link
Copy Markdown
Contributor

kala-moz commented Apr 9, 2026

@moijes12 I've run out of time today so I'll review this tomorrow!

@moijes12
Copy link
Copy Markdown
Contributor Author

moijes12 commented Apr 9, 2026

@moijes12 I've run out of time today so I'll review this tomorrow!

Sure Kala.

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.

3 participants