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

Issue 1875: Hide search box filter. #1933

Merged
merged 3 commits into from
May 10, 2024

Conversation

kaladay
Copy link
Contributor

@kaladay kaladay commented May 8, 2024

Resolves #1875

The Search Box filter was previously disabled/hidden but the filter was overlooked.

This helps finish the process by hiding the search box from the filter.

… the admin list.

This is the first solution described below that fully hides the "Search Box" from the filter list to avoid this confusion.
The previous solution of hiding the "Search Box" is incomplete and still displays the "Search Box" in the "Disabled Filters" column.
The "Search Box" is filtered out of the "Disabled Filters" by this commit.

The following are the results of the investigation into this problem:
The Search Box filter, when selected, gets saved to the database and returned to the UI on an appropriate `/submission-list/filter-columns-by-user` call.

What is happening is that the Search Box is explicitly being removed from the filter list:
- https://github.com/TexasDigitalLibrary/Vireo/blob/61fb5873989eee667951f7b80244fa4f91c084ea/src/main/webapp/app/controllers/submission/submissionListController.js#L150

And then later is handled differently as an "Excluded Column":
- https://github.com/TexasDigitalLibrary/Vireo/blob/db2b4cacea96a29912138626fe1ed5985cb5d073/src/main/webapp/app/controllers/submission/submissionListController.js#L172

It appears to be originally added here with the exluded column:
- TexasDigitalLibrary@c39ff04
- TexasDigitalLibrary#285

Vireo Slack messages relating to Search Box:
- https://texas-digital-library.slack.com/archives/C7R78CADB/p1550676084006100
- https://texas-digital-library.slack.com/archives/C7R78CADB/p1682428409804819?thread_ts=1682428314.318099&cid=C7R78CADB
- https://texas-digital-library.slack.com/archives/C7R78CADB/p1550696674010100

Referenced Github issues from the conversations:
- TexasDigitalLibrary#1146
@smutniak
Copy link
Contributor

smutniak commented May 8, 2024

to clarify, if one clicks on the 'Customize Filters' link under 'Filter Options:' (not 'Now Filtering By:') and gets an intermodal popup, they will see 2 columns ('Displayed FIlters' and 'Disabled Filters'). Under the latter there used to be a search box and this fix merely has the code not searching for its input, correct?

@kaladay
Copy link
Contributor Author

kaladay commented May 9, 2024

to clarify, if one clicks on the 'Customize Filters' link under 'Filter Options:' (not 'Now Filtering By:') and gets an intermodal popup, they will see 2 columns ('Displayed FIlters' and 'Disabled Filters'). Under the latter there used to be a search box and this fix merely has the code not searching for its input, correct?

On the Admin List View, the Customize Filters link on the left size brings up the modal popup with Customize Filters.
This has Search Box showing under Disabled Filters.
Dragging the Search Box over to the Displayed Filters does not work because the Search Box is actually disabled and not usable. (The Search Box can be dragged over but this does not get saved when the Save button is clicked because the Search Box is disabled in the code.)

This PR changes the modal popup to not even show the Search Box under Disabled Filters.

Copy link
Contributor

@smutniak smutniak left a comment

Choose a reason for hiding this comment

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

I never noticed that Search Box item before but see it is gone now.

@smutniak smutniak merged commit 596181d into TexasDigitalLibrary:main May 10, 2024
1 check failed
@kaladay kaladay deleted the 62-1875-hide_search_bar branch May 31, 2024 14:01
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.

For the Admin List Filters, the Search Box Filter is not saved when added.
2 participants