-
-
Notifications
You must be signed in to change notification settings - Fork 419
Add project search to project section in collective page #10646
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<Input | ||
placeholder={intl.formatMessage({ defaultMessage: 'Search projects...', id: 'Dw9Bae' })} | ||
type="search" | ||
value={searchTerm} | ||
onChange={e => setSearchTerm(e.target.value)} | ||
/> |
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.
Maybe display this one if there are more than 10 projects total? Collectives with only 3 projects won't need a search bar there.
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.
e5583a3
to
3104b2b
Compare
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.
-
The empty view looks a bit broken, could we use something more standard? You can look at https://github.com/opencollective/opencollective-frontend/blob/add-project-search/components/dashboard/EmptyResults.tsx for some inspiration.
-
The loading state also looks a bit strange, the spinner takes some time to appear and "No results match your search" appears along with it:
Related opencollective/opencollective#7535
Require opencollective/opencollective-api#10311