[Feature:Forum] Overhaul search functionality#12065
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12065 +/- ##
============================================
- Coverage 21.68% 21.66% -0.02%
- Complexity 9598 9601 +3
============================================
Files 268 268
Lines 36624 36654 +30
Branches 475 475
============================================
Hits 7941 7941
- Misses 28212 28242 +30
Partials 471 471
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
I tested the new search functionality in multiple browsers, and was able to search and filter at the same time successfully. I was able to enter a thread I found and exit it, all while the search and filters remained in place. The 'x' and clear filter buttons both seem to work properly.
The innermost 'x' which only clears the word(s) entered into the bar without actually changing the current filters applied does not show up at all on Firefox, only Chrome. Also, the clear filters button on the outside of the search bar is very useful but difficult to see, especially on dark mode. I suggest making style changes so that it is more apparent.
One change I would like to see is implementation of the use of Enter key for initiating a search. The use of Enter is available on the current form of forum searching and it only feels natural. A few times during testing I found myself reflexively hitting Enter, only for nothing to happen.
RyanStyron
left a comment
There was a problem hiding this comment.
Solid implementation of making use of cookies to effectively have search queries as filters. I would recommend changing the "X" button (the one outside of the query bar itself), to be slightly smaller if possible. I think that the "X" button inside of the query bar should be removed since it is not visible on all browsers. I also think that being able to use the Enter key would be a very welcomed feature. Also, I recommend making the "Clear Filters" option much more visible (such as white or yellow text color).
|
I tested the changes you made after the above comments, and I think this implementation is really solid. The new clear text button looks great and works well. Using the Enter key works as well and is much more intuitive. I was able to search and filter, and open threads all while keeping the search in the bar. Overall, I think this is a definite upgrade over the current search function. Really good work on this PR! |
|
One more small change: The clear text button should appear clickable on hover with something like: |
RyanStyron
left a comment
There was a problem hiding this comment.
Much improved based on recent changes. I agree with Justin's recent suggestion, and would recommend resolving the Lint failure, but all looks good otherwise.
RyanStyron
left a comment
There was a problem hiding this comment.
The changes look good to me. Please resolve the CSS Lint error, but great work otherwise.



Why is this Change Important & Necessary?
Forum search is currently clunky.
Before page:

What is the New Behavior?
What steps should a reviewer take to reproduce or test the bug or new feature?
Reviewers should:
Automated Testing & Documentation
Cypress test has been updated to reflect these changes.
Other information