[UI/UX:Forum] Fix search clear#12622
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12622 +/- ##
=========================================
Coverage 21.62% 21.62%
Complexity 9824 9824
=========================================
Files 268 268
Lines 36816 36816
Branches 490 490
=========================================
Hits 7960 7960
Misses 28370 28370
Partials 486 486
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.
Functionality is significantly improved so far. Everything specified in the original issue is addressed. A few more things:
- Let's remove that forum search bar header from the create threads page, and move the
Back to Threadsbutton to the top right of the create thread container. Forum search has zero functionality there. - Currently when no threads are found via search, it shows all of them. It should show no threads as it did before, and maybe we could include a message where the threads would be saying no threads found?
Overall, great job with this. I will do a more thorough functionality / code review once these small changes are made, and CI is passing (I just approved the workflows so it may already be fine).
|
Thanks for the review. The previous workflow check failed on CI( Gradeable)- |
JManion32
left a comment
There was a problem hiding this comment.
The banner should not be light in dark mode. Please use a darker color.
JManion32
left a comment
There was a problem hiding this comment.
I would just like to see the padding be consistent between the headers on these 2 pages (screenshots in dark mode so its easier to see the contrast):


On the create thread page, there is just less space. I want the Create Thread and Back to Threads buttons to be in the same spot on the screen, but since the create thread page has less padding in the header, they are not.
@JManion32 I think the padding is decent now.
|
I just checked out your branch, and the padding for these two pages still seems to be different. The spacing above these elements should match. |
|
Hey @Rkoester47 , I have tried doing the same, but to me it looks good-
|
Rkoester47
left a comment
There was a problem hiding this comment.
After installing your branch again, I also see the matching padding between both pages.
|
Hey one thing today came into my mind, we can do one more thing in the search in discussion forum- |
This sounds like a separate issue for another PR to me. |
JManion32
left a comment
There was a problem hiding this comment.
Great work @GarvitKhandelwal31 ! To fix those padding changes once and for all, I have a proposal:
- Remove the margin top/left/right for
create-thread-header - Remove
padding: 0;fromforum_content
Done, I have also cross checked again, and functionality looks unharmed. |
dagemcn
left a comment
There was a problem hiding this comment.
Functionality works great, no issues I could find, and previous bugs and padding issues have been resolved. Tested in light and dark mode.



















Why is this Change Important & Necessary?
Fixes #12619.
The Discussion Forum search bar is high traffic and had several UX regressions:
This PR resolves those issues to make forum filtering behavior more predictable and polished.
What is the New Behavior?
What steps should a reviewer take to reproduce or test the bug or new feature?
Expected: search input is visible, clear x is hidden initially.
Expected: clear x does not flash on/off when input is empty.
Screen.Recording.2026-03-22.020718.mp4
markdown), then click Search.Expected: thread list is filtered and clear x is visible inside the input.
Observe the search input while clear x appears/disappears.
Expected: no input width shrink or horizontal layout shift.
Click the clear x.
Expected: search input clears, clear x hides, filtered list resets to unfiltered state.
Apply a comment/question/unread filter plus a search term.
Expected: Clear Filters appears.
Expected: search text clears, selected filters reset, Clear Filters hides when nothing is active.
Previously if search results did not matched, it showed all of them.
But now it shows no threads found.
In create threads page, if a user edits the title, or description and try to reload or navigate to other page, a warning message appears saying there are unsaved changes-
https://github.com/user-attachments/assets/19d0a7fc-8163-4a82-80c5-6b79eb0d0c11
Automated Testing & Documentation
Other information