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

improve Search #2421

Merged
merged 1 commit into from
Aug 6, 2020
Merged

improve Search #2421

merged 1 commit into from
Aug 6, 2020

Conversation

sksum
Copy link
Member

@sksum sksum commented Jul 25, 2020

Related to #2420 and #2317

@sksum
Copy link
Member Author

sksum commented Jul 26, 2020

changes made ...

  1. use all static labels as identifiers for ex : if -> "if then" and if -> "if then else"
  2. allow user made named dos and named boxes to appear in search .
  3. distinct blocks for each search option.

@sksum sksum marked this pull request as ready for review July 26, 2020 22:38
@walterbender
Copy link
Member

The boxes option is nice. Would be good to include the same for actions.

@sksum
Copy link
Member Author

sksum commented Jul 26, 2020

The boxes option is nice. Would be good to include the same for actions.

if you mean the user named action , it should work for those as well .(You should see action1, action2 etc in search.)

@walterbender
Copy link
Member

Yes. The named actions

@sksum
Copy link
Member Author

sksum commented Aug 5, 2020

I think this is ready to merge . named actions and named boxes should show up in search .

@walterbender
Copy link
Member

Nice to have actions in search... but, I am seeing:

Uncaught TypeError: Cannot read property 'palette' of undefined
at doSearch (js/activity.js:2158)
at js/activity.js:2125

Screenshot from 2020-08-05 20-58-50

@sksum sksum force-pushed the OptimizeSearch branch 4 times, most recently from f8b795a to 9979cb6 Compare August 6, 2020 09:52
use complete labels as identifiers

add protoblk in searchSuggestions

use original protoblk and not search for it again ,
this allows named dos and named boxes to appear in search

bug fix
@sksum
Copy link
Member Author

sksum commented Aug 6, 2020

should not show any errors now .

@walterbender walterbender merged commit 32ca470 into sugarlabs:master Aug 6, 2020
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.

2 participants