-
Notifications
You must be signed in to change notification settings - Fork 887
feat: make workspace search bar remember text #9759
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
Going to be checking the logs for the GH Action to see which E2E test is failing. They ran fine locally, so it seems like a potential flake |
I can understand what is going on but I would like a second eye from @aslilac as well since this is a more complex PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving it to not block you but would be nice to have a second review but up to you. If you feel confident this is the best, go for it and we can discuss it later if it is necessary. Good job!
Yeah, I'm okay with either approach. What do you think, @aslilac ? Not sure what you have on your plate right now |
Closes #9474
This updates the search bar for the workspace, to ensure that it's able to remember the text the user last used, even after the user closes the tab or goes to a different page.
File changes made
useEffectEvent
hookWorkspacesPage
component to forcesetSearchParams
from React Router to be a stable function across rendersuseFilter
to use a "fallback filter" instead of a single initial value, and have it keep the page's search params in sync as the query changesuseWorkspacesFilter
to try reading the fallback filter fromlocalStorage