-
Notifications
You must be signed in to change notification settings - Fork 449
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
feat: Provide scaler search and list external scalers from Artifact Hub #805
Conversation
Signed-off-by: thisisobate <obasiuche62@gmail.com>
✅ Deploy Preview for keda ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@chalin @nate-double-u |
I like that you're splitting them up like that, the external page looks especially clean. Let's discuss if there is a way to break up the built-in set into categories, this may shorten the built in page, and make things a bit easier to find. |
@kedacore/keda-maintainers Thoughts on this PR? My current thinking is that I love it, but believe the initial request was to have a separate page for external scalers. In theory having them in the same with a filter is OK; but given their layout is different I'm doubting if we should go with that separate page. With regards to the built-in scalers, though, we were recently discussing the way we display them on Scalers page vs our landing page and believe that the current Scalers page is more ideal given the amount of scalers that we have which makes it easier to see all of them at a glance without scrollign |
I ❤️ how it looks, the only feedback I have it's: Could we make the scaler cards a bit smaller to introduce 3 columns per row? Now The scroll is huge. makes sense? |
@nate-double-u Breaking up built-in scalers into categories is a great idea but I think it's best we make it a last resort. Tbh, we can explore other easier approaches like @JorTurFer's suggestion |
@tomkerkhove @JorTurFer I agree with you. The scroll will become too long as we add more scalers. |
I played around with the 3-columns approach but still, it was quite long. I'm considering two approaches here: filter-by-selection, and filter-by-search.
My suggestion: I think the first option suits the needs of this project. @tomkerkhove @JorTurFer Any thoughts? |
What do you propose as a category filter? I mean, maintainer it's not a useful search value. I think that a search filter by name it's a good option. WDYT? |
@JorTurFer The category filter I'm talking about is something like a list with checkboxes showing all the scalers maintained by a specific organization. When a user clicks on one of the categories (e.g Microsoft), it shows all the scalers maintained by Microsoft. A search filter by name isn't bad either. I think it would work perfectly. |
@tomkerkhove Any thoughts? |
Filtering by category is being tracked in #412 so I would not try to squeeze this in this PR unless we want to do everything in my opinion. I think having a search box would be nice a good addition as well as a "number of scalers" showing what matches the search value (or show total available scalers when nothing is searched for) |
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Thanks for adding the search! However the box was a bit hard to find and didn't realize I had to press enter 😅 |
Lol...I know |
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Signed-off-by: thisisobate <obasiuche62@gmail.com>
This is probably in the works, but typing a word partially doesn't bring up the scaler. For example, when searching for the ActiveMQ scaler, If I start typing "active" it won't show until the text "activemq" is fully present. |
Ah, that makes sense. Just one thing though, as a user the natural assumption (at least I think it to be) is that search is fuzzy. So, maybe just a line mentioning the usage and linking to this doc could be added? |
Signed-off-by: thisisobate <obasiuche62@gmail.com>
Yes...it's ok to have this as a separate PR @tomkerkhove |
Signed-off-by: thisisobate <obasiuche62@gmail.com>
0b55cd6
to
03cd304
Compare
Thanks a ton! |
I'll revert this PR because it also messed up our community page - Sorry! |
Was able to trace this issue. would add a fix to this branch and open as a separate PR |
Thanks! It's also OK to do a new PR as I didn't complete the revert yet |
@tomkerkhove My suggestion: I think it's best to open separate PRs for each issue you highlighted instead of reverting this PR. I already created a fix for each so it's safe to have them as follow-up PRs. Wdyt? |
👌 |
@thisisobate Just FYI that the main problem here is still open though. If you type in "Redis"/"Azure"/"AWS" it does not show any of our scalers. Created #857 |
Yeah...would take a look at it today |
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.
See inline comments for questions and remarks. I know it's late, but better (a bit) late than never :)
const searchResultCount = document.querySelector(".results"); | ||
const template = document.getElementById("is-search-template"); | ||
let query = input.value.trim(); |
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 line seems to be the cause of:
because document.getElementById("search-input")
can be null.
Provide a description of what has been changed
After analyzing the issue, I realized it's best to avoid creating an entirely new page for external scalers. Both built-in and external scalers fall under the same scaler category and thus, I think it's best to have both scaler types present on one landing page. By so doing, we maintain a clean information architecture that the user loves.
Checklist
Fixes #577
Relates to #412