-
Notifications
You must be signed in to change notification settings - Fork 14.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
feat(welcome): make examples tab customizable #22302
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22302 +/- ##
==========================================
- Coverage 66.90% 66.07% -0.84%
==========================================
Files 1850 1851 +1
Lines 70701 70693 -8
Branches 7750 7758 +8
==========================================
- Hits 47306 46707 -599
- Misses 21379 21967 +588
- Partials 2016 2019 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
14b101b
to
09ab79c
Compare
This is a great tweak, and I appreciate all the cleanup work along the way. I also appreciate that the default config keeps the default functionality the same, so it's a seamless transition. My only curiosity is if you think it's worth considering making ALL the tabs configurable... I can see just as many users not being concerned about "Favorites" or wanting to add a fourth tab fo their own (e.g. "My Team"). The config could be an array of tab definitions, perhaps... though on the other hand that might be pushing it in terms of complexity for a config option ;) |
That's a REALLY good idea. Let me see if this could be done easily. |
@rusackas it turns out making ithis more generic would require a pretty substantial refactor, so I propose tackling that in a separate PR |
/testenv up |
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.
Thanks for all the cleanup in this! Changes seem sensible to me, though a second pair of eyes sure would be very welcomed - there's a lot to comb through here!
cc @eric-briscoe for a potential reviewer as well |
@rusackas Ephemeral environment spinning up at http://54.203.164.117:8080. Credentials are |
Thanks for the valuable reviews @kgabryje and @michael-s-molina ! ❤️ I'll address the comments shortly. |
ba214e1
to
274ff53
Compare
274ff53
to
201e447
Compare
/testenv up |
@villebro Ephemeral environment spinning up at http://52.36.216.8:8080. Credentials are |
/testenv up |
@villebro Ephemeral environment spinning up at http://35.87.47.150:8080. Credentials are |
51fadf8
to
5323255
Compare
5323255
to
f5160cf
Compare
/testenv up |
@villebro Ephemeral environment spinning up at http://54.245.133.177:8080. Credentials are |
@jinghua-qa I've created an eph env http://54.245.133.177:8080/ where you can verify that the welcome page works as expected with the defaults (should display "Examples" charts/dashboards). Note the following:
|
Thank you Ville for the testing instruction! |
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 welcome page with default, LGTM
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Currently the Welcome page features an "Examples" tab for Dashboards and Charts. While this is ok for test environments utilizing the examples datasets/charts/dashboards, this is of little utility in production environments. To make the Welcome page more useful in Production environments, this PR adds a simple configuration option
WELCOME_PAGE_LAST_TAB
to show "All" charts/dashboards that would be accessible via the list views, and also makes it possible to define a custom title and filters for more custom use cases.This also fixes the birth names example datasets, charts and dashboards, which unlike other examples, were created by the admin user, causing them not to show up on the Examples tab. I also decided to clean up some types along the way, and that turned into a pretty horrible journey 😱 I think I need to follow up with some additional cleanup later.
AFTER
By changing
WELCOME_PAGE_LAST_TAB
to "all", the last tab displays all dashboards/charts that the users would see in their respective list views:By creating the following custom tab config, the last tab only shows charts/dashboards created by user number 10:
BEFORE
Previously only examples were available in the dashboard and chart sections:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION