Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalculate WB search function when utils changes #4936

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

melton-jason
Copy link
Contributor

Fixes #4931

Related to #4637

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

Testing instructions

For a large dataset (such as FishTissueData (user spadmin, collection KUFishVoucher), and a small dataset (such as those listed in #4931 (comment)):

  • Ensure the search functionality is consistent with v7.9.4 with multiple search configurations

@melton-jason melton-jason added this to the 7.9.5 milestone May 20, 2024
@melton-jason melton-jason requested review from sharadsw and a team May 20, 2024 17:08
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

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

Testing instructions

For a large dataset (such as FishTissueData (user spadmin, collection KUFishVoucher), and a small dataset (such as those listed in #4931 (comment)):

  • Ensure the search functionality is consistent with v7.9.4 with multiple search configurations

Looks great, search function is working!
Screenshot 2024-05-20 122654

@emenslin emenslin requested a review from a team May 20, 2024 17:30
Copy link

@Areyes42 Areyes42 left a comment

Choose a reason for hiding this comment

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

Testing instructions

For a large dataset (such as FishTissueData (user spadmin, collection KUFishVoucher), and a small dataset (such as those listed in #4931 (comment)):

  • Ensure the search functionality is consistent with v7.9.4 with multiple search configurations

Great job, search functionality works as intended!
Screenshot 2024-05-20 at 12 57 53 PM

Copy link
Contributor

@alesan99 alesan99 left a comment

Choose a reason for hiding this comment

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

Testing instructions

For a large dataset (such as FishTissueData (user spadmin, collection KUFishVoucher), and a small dataset (such as those listed in #4931 (comment)):

  • Ensure the search functionality is consistent with v7.9.4 with multiple search configurations

Searching works automatically, and the search configurations are respected like they are in v7.9.4 👍

As a note, there has been a change in behavior (An improvement imo)

Previously, pressing enter after typing something into the search bar would bring you directly to edit mode on the first found cell. Pressing the arrows on the hightlight buttons would then simply select the next cells (not edit)
Now, pressing enter simply selects the first found cell.
If you can get the search function to work in the original React Workbench PR, this is also the case there, so its not entirely related to this PR's changes.

Left: v7.9.4 Right: This PR

chrome_b6SzFX4wOb.mp4

@melton-jason
Copy link
Contributor Author

Sorry about this, but could this be briefly tested again?

Did a slight optimization change which shouldn't have changed any functionality, but worth going over once again to make sure!

Copy link

@Areyes42 Areyes42 left a comment

Choose a reason for hiding this comment

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

Testing instructions

For a large dataset (such as FishTissueData (user spadmin, collection KUFishVoucher), and a small dataset (such as those listed in #4931 (comment)):

  • Ensure the search functionality is consistent with v7.9.4 with multiple search configurations

Everything still looks good! I tested different search configurations, and they functioned as expected. Additionally, I was able to replicate the enter selection behavior change that @alesan99 noticed. I also agree that it's an improvement compared to the behavior in v7.9.4.
Screenshot 2024-05-20 at 2 02 50 PM

@melton-jason melton-jason merged commit 68299d2 into production May 20, 2024
9 checks passed
@melton-jason melton-jason deleted the issue-4931 branch May 20, 2024 19:18
@sharadsw
Copy link
Contributor

Another improvement here: Live search works as expected now. In 7.9.4 it behaves inconsistently unless 'Find entire cells only' is disabled.

@specifysoftware
Copy link

This pull request has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/specify-7-9-5-release-announcement/1751/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Search functionality not working in WorkBench
7 participants