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

Make search form controlled component #36

Merged
merged 6 commits into from
Oct 25, 2023

Conversation

charmingduchess
Copy link
Contributor

@charmingduchess charmingduchess commented Oct 24, 2023

  • Search form prepopulates search bar with the value of q from the url (not global state).

  • Select and text input are now controlled components sharing a handler function

  • tests!

  • also updated search results string to be dynamic to less than 50 results

@vercel
Copy link

vercel bot commented Oct 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
research-catalog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 2:02pm

Copy link
Member

@EdwinGuzman EdwinGuzman left a comment

Choose a reason for hiding this comment

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

This works fine but if there's nothing blocking updating this to include reading the search_scope from the url query, then it should be done now.

src/components/SearchForm/SearchForm.tsx Show resolved Hide resolved
Copy link
Contributor

@dgcohen dgcohen left a comment

Choose a reason for hiding this comment

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

Looks good!

@charmingduchess charmingduchess merged commit aff8222 into main Oct 25, 2023
2 checks passed
@dgcohen dgcohen deleted the SCC-3802/search-form-controlled-2 branch February 1, 2024 16:18
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.

3 participants