Skip to content

Refactored menu #2581

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

Conversation

RunDevelopment
Copy link
Member

The split between favorites and category groups caused a lot of code duplication in #2575, so I refactored it. The basic idea is that the menu now displays node groups. This makes a few things easier. The abstraction of node categories also means that we have a lot more freedom to restructure the list as much as we want now.

Other changes:

  • The first element is now selected default, even if no query was entered. This mirrors the behavior of VSCode.

@joeyballentine
Copy link
Member

👍 awesome

@joeyballentine joeyballentine merged commit 4d89ec6 into chaiNNer-org:arrow-nodesearch-control Feb 11, 2024
@RunDevelopment RunDevelopment deleted the arrow-refactor branch February 11, 2024 23:28
joeyballentine added a commit that referenced this pull request Feb 11, 2024
* working

* Scroll into view when index is out of scroll area

* Better scroll behavior

* Fix incorrect bound

* Automatically select first item when searching

* Wrap around + instant scroll

* ...

* Refactored menu (#2581)

---------

Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
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