Skip to content

OBPIH-6994 don't auto fill global search input when hover over results#5124

Merged
ewaterman merged 1 commit intodevelopfrom
bug/OBPIH-6994-no-globalsearch-autofill
Mar 17, 2025
Merged

OBPIH-6994 don't auto fill global search input when hover over results#5124
ewaterman merged 1 commit intodevelopfrom
bug/OBPIH-6994-no-globalsearch-autofill

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-6994

Description: Currently when hovering over an item in the global search results the search input is replaced with that item's display text. My change prevents that (and preserves the original input)


📷 Screenshots & Recordings (optional)

an example of the undesired behaviour: https://jam.dev/c/f000d33d-c70c-41a3-b5fe-45cf2c3e3daf

1482e703-66b1-4ba3-a3dc-7e168990678e.webm

@ewaterman ewaterman self-assigned this Mar 12, 2025
@github-actions github-actions bot added type: bug Addresses unintended behaviours of the app domain: frontend Changes or discussions relating to the frontend UI labels Mar 12, 2025
@codecov
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.13%. Comparing base (0b46d2b) to head (b644220).
Report is 172 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5124      +/-   ##
============================================
+ Coverage       8.09%   8.13%   +0.03%     
- Complexity       934     942       +8     
============================================
  Files            636     636              
  Lines          43102   43102              
  Branches       10480   10480              
============================================
+ Hits            3488    3505      +17     
+ Misses         39073   39054      -19     
- Partials         541     543       +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.

@ewaterman
Copy link
Member Author

I was trying to check for any potential knock on effects of removing the this.value = ui.item.label; assignment and I couldn't find anything but I'm still not totally sure the different purposes between _globalSearch.gsp and _globalSearchStatic.gsp.

The files are near identical with just a few additional changes in the non-static version. It looks like the static version only has a single commit: 4eaba52

GlobalSearchTagLib.groovy has:

if (attrs.buttonId) {
    out << g.render(template: '/taglib/globalSearch', model: [attrs: attrs])
} else {
    out << g.render(template: '/taglib/globalSearchStatic', model: [attrs: attrs])
}

and _menuicons.gsp has:

<g:globalSearch buttonId="global-search-button" jsonUrl="${request.contextPath}/json/globalSearch"/>

and

<g:globalSearch jsonUrl="${request.contextPath}/json/globalSearch"/>

but I got lost debugging beyond that so I'm not sure what triggers each of these flows. I could dig further but I'm ending my day and so I figured I'd throw it out to the rest of you in case you have any ideas.

@ewaterman ewaterman merged commit e1b85ad into develop Mar 17, 2025
9 checks passed
@ewaterman ewaterman deleted the bug/OBPIH-6994-no-globalsearch-autofill branch March 17, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI type: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants