feat: search functionality in the tree view with UI updates. Added a …#1
feat: search functionality in the tree view with UI updates. Added a …#1tribixbite wants to merge 1 commit intoToyKeeper:trunkfrom
Conversation
…search bar in the side panel, integrated search handling in the TreeView class, and applied search filters to nodes. Updated styles for the search input and results highlighting.
|
Hi, thanks for the contribution, and for the extra context and screenshot in chat!
I've been meaning to add a filter function eventually, and this should be a big help toward that goal. Also planning to add a search function which navigates to matching items without filtering out non-matching items, to show the matches in context... though that may get tricky when matches are in collapsed branches. Looking through the patch, it looks like the AI changed a lot of superficial stuff unrelated to the purpose of this patch, like replacing More generally, I haven't figured out yet how to properly handle AI-written contributions. I should probably not block that sort of thing entirely, since it's only going to get more common and more integral to a lot of daily life activities, but the details are still up in the air. Have been considering some sort of contributor agreement asserting that the person contributing code actually wrote the code or at least owns the copyright and thus has the right to submit it, to ensure I don't get in trouble for unknowingly using code which might not be legally in the clear. It might even be a good idea to include copyright reassignment in the agreement, in case the license might need to change later. Like, GPL didn't handle the case of network services running a proprietary fork, so AGPL was created... and it's possible something like that might happen again with some sort of future "AIGPL" or something, to cover more cases the current license didn't foresee. So I'd like to retain the option of a license change if possible. Back to the content of the patch, it'll take some time to fully grasp, but I already see some things I'll need to rewrite:
Testing the submitted code in a browser, I immediately ran into multiple bugs:
So this isn't merge-able in its current state. It needs pretty large changes. |
…search bar in the side panel, integrated search handling in the TreeView class, and applied search filters to nodes. Updated styles for the search input and results highlighting.
You may want to review: the switch to using index directly instead of local index (~line 390 and 400 in nodeview.js), and $renderWholeTree