-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement and enhance search UI #3829
Implement and enhance search UI #3829
Conversation
I like the general direction of this. However, some feedback:
|
@pikurasa I would love to work on the search function but am limited in my understanding of the project code base. Is okay if I ask you how the search palette works on a DM? only if your free or point me to someone who know that part :) |
@pikurasa My general idea was to search for the value and find the category of that value like rhythm. Then displayed the value on the palette body of that category but I found my way all the way to the palette body and I couldn't understand how the blocks were generated. |
Showing the block in situ on the palette is nice idea, but it will not always work: (1) sometimes the block is not actually on any palette (for example, searching for an advanced block from beginner mode); and (2) sometimes there may be a search result that appears in multiple places on either the same or different palettes (for example, searching for "note" should show multiple blocks on the Rhythm palette but also the "on every note do" block on the Meter palette. |
@walterbender thanks for the clarification, while working on it I found a palette body for displaying the search value. I will look into the codebase more |
This pull request has been open for more than 60 days without any activity. It will be closed in 3 days unless the |
Closed pull request due to inactivity for more than 63 days. |
Fixed Issue #3804
Search UI Enhancement
Behavior Before Fix
Currently, on clicking the search bar in the website , a new search box is created which is slightly larger than the original search box and overlaps with the pre-existing one , which does not look very useful or necessary in the UI.
orginal.webm
Behavior After Fix
Remove the current functionality of creating a new search box and use the existing default search box to search blocks. If the size doesn't seem sufficient , the increase of the size of the entire left palette can be proposed.
fix.webm
Edited File Location
Edited Code
Search Function Implementation
Behavior Before Fix
When inputting the search values on the search input, the values is not displayed on the palette body.
searchoriginal.webm
Behavior After Fix
Create a search index of block category and blocks in an object format. Capture the input using the event listener and filter the block using filter function.
searchfix.webm
Search function
Edited File Location
Line 401
Edited Code
Search index
Edited File Location
Edited Code
Checklist