-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Add core component CatalogAutocomplete and use for Catalog entity filters #27363
base: master
Are you sure you want to change the base?
Conversation
Changed Packages
|
a95df1f
to
105f44b
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.
Looks great to me, It is just missing the changeset file and I left a question about a potential breaking change. Please take a look 🙂
packages/core-components/src/components/Autocomplete/Autocomplete.tsx
Outdated
Show resolved
Hide resolved
packages/core-components/src/components/Autocomplete/Autocomplete.tsx
Outdated
Show resolved
Hide resolved
3e75b52
to
6acafa2
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.
this is great!
.changeset/fluffy-jars-protect.md
Outdated
'@backstage/plugin-catalog-react': patch | ||
--- | ||
|
||
Uses new Autocomplete component from core-components that aligns with Select component UI for consistent a dropdown UI for all catalog filters |
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.
Perhaps we could split this changeset in two to have a better description for the changes in core-components
6775b74
to
791515f
Compare
ff18be1
to
1a578b9
Compare
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Hi @jroebu14 and @backstage/maintainers would we like to proceed with this pull request, or will this component be added to Canon? |
b202772
to
2782323
Compare
@camilaibs we've decided to remove the Autcomplete component from core-components and place it in catalog-react. When there is a need for this component to exist in a few more places then we can revisit adding it to core-components. This of course means the PR will need re-reviewed. |
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
2782323
to
893e92f
Compare
Hey, I just made a Pull Request!
Adds a new component
CatalogAutocomplete
to@backstage/catalog-react
that has opinion on label and input styles and composition as well as the options popup animation style.The new
CatalogAutocomplete
tries not to deviate from the original MUIAutocomplete
component with regards to the API.Use the
CatalogAutocomplete
component to align autocompletes visual style and labelling with theSelect
component from@backstage/core-components
.Demo
Below is a before and after video demoing the interacting with the catalog filters. The top 2 filters are
Select
components and the rest areAutocomplete
components.Before
Notice the visual differences such as bgColor, icon positioning, labels and popup animations.
Autocomplete_Select.Before.mp4
After
The
Select
andAutocomplete
components are aligned visually by use of a reusable component added to@backstage/core-components
.Autocomplete_Select.After.mp4
✔️ Checklist
Signed-off-by
line in the message. (more info)