-
Notifications
You must be signed in to change notification settings - Fork 113
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
Kedro Viz Lite User Warning UI #2092
Conversation
…ature/lite-user-warning-ui
…ature/lite-user-warning-ui
…ature/lite-user-warning-ui
…ro-org/kedro-viz into feature/lite-user-warning-ui
@@ -5,6 +5,7 @@ export const localStorageFlowchartLink = 'KedroViz-link-to-flowchart'; | |||
export const localStorageMetricsSelect = 'KedroViz-metrics-chart-select'; | |||
export const localStorageRunsMetadata = 'KedroViz-runs-metadata'; | |||
export const localStorageShareableUrl = 'KedroViz-shareable-url'; | |||
export const localStorageBannerStatus = 'KedroViz-banners'; |
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.
hey what does this localStorage do? Is it to track if user has seen the banner before? If so? I've done something similar too for feedback component, perhaps we can have a group call "localStoragePopup" something like that, and it can be shared between banner and feedback?
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.
i like that. maybe we can refactor localStorage in a future ticket.
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.
yes we can have a common key in future tickets
@@ -31,6 +31,7 @@ $run-list-controls-height: 95px; | |||
$z-index-metadata-panel: 3; | |||
$z-index-metadata-code: 3; | |||
$z-index-MuiTreeItem-icon: 1; | |||
$z-index-banner: 6; |
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.
6 is a very high number, is there something underneath it that has z-index of 5? 🤔
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.
Yes there is global toolbar and feature hints with z-index:5 . Another reason I thought is we should always have our banners on top of other components, so made it a 6.
this is pretty cool, thanks @ravi-kumar-pilla. Just a quick question about the setup, I'm trying to run it locally, but i have the error I've tested with your branch with a new environment. Is there anything else I need to do? |
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.
It works well. and I have looked through the code quickly. There are some possible refactorings we can focus on FE (not caused by this PR but previous ones as well) in the future which we can look into after this release. Thanks a lott @ravi-kumar-pilla , passing data through api/metadata
looks great
…ature/lite-user-warning-ui
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.
its working now for me, thanks @ravi-kumar-pilla
Description
Resolves #2058
Development notes
Backend changes:
get_package_compatibilities
to utilsPackageCompatibility
andMetadata
for the applicationFrontend changes:
showBanner
to the redux store and created generic actions, reducers to extend banner functionality in futureThank you @jitu5 for helping out in resolving the redux states 💯
QA notes
kedro viz --lite
. The banner should not appear again for the rest of the browser session once you close it.Learn More
button click should take you to the docs for--lite
package_compatibility
feature we have in deploy and ET.Checklist
RELEASE.md
file