-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[IM] API & UI for filtering Integrations by category #46089
[IM] API & UI for filtering Integrations by category #46089
Conversation
One TS type issue that I'll resolve in a later commit.
@hbharding The active color used by How should we style active filters? Set the background color to the same as the container? Or use something else? Any other styling (outline, etc)? |
💚 Build Succeeded |
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.
Tested manually, works as expected.
Testing elastic/kibana#46089 I realised there is no package with only the metrics category. So here we go.
Testing elastic/kibana#46089 I realised there is no package with only the metrics category. So here we go.
Testing elastic/kibana#46089 I realised there is no package with only the metrics category. So here we go.
@jfsiii good catch. I wasn't aware that the facet group used a background color for active. Lets use the same color as the container background here. |
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.
Works great for existing categories 👍
When calling the API path directly for a category that doesn't exist, a 500 Internal Server Error
occurs. I would have expected either a 200
with an empty list, or a 404
.
We could do this now, or open an issue for making all API calls more robust. @jfsiii what do you think?
@skh good catch. 404 is what first comes to mind. I'll add in another commit shortly or open an issue. |
@skh I assume this is for the internal API? For the registry API, I would also expect a 200 and an empty list: http://integrations-registry.app.elstc.co/search?category=foo The current response is |
@ruflin Yes, this is for the internal API. The I have no opinion at all whether the two APIs need to be in sync with regard to return codes and error handling -- it's cleaner when they are, but I'm not sure it's worth the effort, as long as both behave robust and in a sensible way. So, |
Followed up in the registry with elastic/package-registry#111 |
@ruflin Thanks. Approved elastic/package-registry#111 @skh This will flow through to the Manager's API, so no changes are required in the Manager code. Any other blockers to a 🚢 ? |
Not from my side, looks good! 👍 |
@hbharding Looking into this, I found that the container color is Looking at the Figma designs, I see that the background color for the screen is |
@hbharding Some fallout from the changing the color of the containers The injected "Help us improve..." header background now doesn't match ours. Perhaps we can control this but it doesn't seem likely. Is this a sign that we should revert to using the prior color which, I believe is what other plugins use. Compare IM above with these other pages below: |
💚 Build Succeeded |
Good catch @jfsiii ! I'm still learning EUI, and today you taught me something :). I'll fix the figma files to use the proper page bg color, #FAFBFD |
API & UI for filtering Integrations by category
closes #46070
I'll add some comments inline but see the individual commits for more context.
Did separate UI & API commits and tried to keep related changes together to make it easier to follow.