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

Command palette: Enable folder searching #62663

Merged
merged 1 commit into from Feb 9, 2023

Conversation

ashharrison90
Copy link
Contributor

What is this feature?

  • enables searching for folders in the command palette
  • uses the existing search call to search for folders as well

image

Why do we need this feature?

  • better command palette UX

Who is this feature for?

  • everyone!

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

@ashharrison90 ashharrison90 added this to the 9.5.0 milestone Feb 1, 2023
@ashharrison90 ashharrison90 requested a review from a team as a code owner February 1, 2023 11:09
@ashharrison90 ashharrison90 self-assigned this Feb 1, 2023
@ashharrison90 ashharrison90 requested review from joshhunt and yaelleC and removed request for a team February 1, 2023 11:09
[dashboardResults]
() =>
searchResults
.filter((item) => item.id.startsWith('go/dashboard'))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure whether it's worth adding an explicit new type property to our CommandPaletteAction? using the id feels a little brittle 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also could rewrite this into a generic for loop to avoid looping the array twice? lmk what you think

Copy link
Contributor

@eledobleefe eledobleefe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it on my local and works 🎉, although you may want a review of someone with more context, like @joshhunt.

@ashharrison90 ashharrison90 merged commit 36c0904 into main Feb 9, 2023
@ashharrison90 ashharrison90 deleted the ash/command-palette-folders branch February 9, 2023 16:31
ryantxu pushed a commit that referenced this pull request Mar 2, 2023
search folders as well as dashboards in the command palette
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants