Add generic searchable list to back settings and extensions#18838
Add generic searchable list to back settings and extensions#18838
Conversation
Summary of ChangesHello @chrstnb, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new, reusable Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the settings dialog to use a new generic SearchableList component, centralizing search logic and improving modularity. The documentation for extensions has also been updated to reflect that settings are no longer experimental. The new SearchableList component includes basic tests for its functionality. Additionally, a high-severity issue regarding unhandled promise rejections in the SearchableList component has been identified and should be addressed.
| }; | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
| doSearch(); |
There was a problem hiding this comment.
The doSearch async function in useEffect does not handle potential rejections from fzfInstance.find(searchQuery). An unhandled promise rejection could lead to unexpected behavior or application crashes. Consider adding a .catch() block to handle errors gracefully, perhaps by logging the error and resetting the filtered keys to the full list.
doSearch().catch((error) => {
console.error("Search failed:", error);
setFilteredKeys(items.map((i) => i.key)); // Reset to all items on error
});
|
Size Change: +554 B (0%) Total Size: 24.4 MB ℹ️ View Unchanged
|

Summary
In order to support searchable extensions list, genericize the searchable list component
Details
Related Issues
Part of https://github.com/orgs/google-gemini/projects/33/views/17?pane=issue&itemId=3903695497&issue=google-gemini%7Cmaintainers-gemini-cli%7C1323
How to Validate
Run locally and validate that /settings still functions normally
Pre-Merge Checklist