-
Notifications
You must be signed in to change notification settings - Fork 18
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
Revamp MLP UI Sidebar Menu #15
Conversation
@@ -52,29 +39,123 @@ export const NavDrawer = ({ homeUrl = "/", appLinks }) => { | |||
} | |||
]; | |||
|
|||
const docLinks = [ |
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 has to be configurable and I don't think we should include link to gojek internal documentations
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.
+1 on making it configurable.
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.
🤦 just realised this. Should we make it configurable from db?
ui/packages/app/src/PrivateLayout.js
Outdated
{({ projectId }) => projectId && <NavDrawer />} | ||
</CurrentProjectContext.Consumer> | ||
<Component {...props} /> | ||
<div style={{ paddingTop: "49px" }}> |
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.
Can we not do in-line style?
} | ||
aria-label="Machine Learning Platform" | ||
/> | ||
<EuiText style={{ padding: "10px" }}> |
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.
Can we remove in-line style?
showCloseButton={false} | ||
isDocked={navIsDocked} | ||
showButtonIfDocked={true} | ||
style={{ top: "49px", height: "calc(100% - 49px)", width: "262px" }} |
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.
Can we remove in-line stype?
</EuiFlexItem> | ||
|
||
<EuiHorizontalRule margin="none" /> |
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'm not sure if it's a good idea to have component-level user manuals be shown at once, independently from what product is currently in-use. |
Since we already touching sidebar, I think it makes sense to make product menu items (e.g. 'Merlin', 'Feast') to be expandable and have quick-access links to specific resources of a relevant component under them. Somethin like: v Merlin |
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.
LGTM, Can you explicitly mention in the MR description how the new NavDrawer behave especially in term of how respective product can add their docs link.
I think we can implement your suggestion in the next milestone |
Change the looks and experience of sidebar menu. In this PR only UI files that modified. Below are attached screenshots
When merlin integrate with new sidebar menu, merlin app is highlighted because currently active app is merlin
Sidebar menu will be moved to Header, hence to use this new sidebar menu, user just need to specify the header
where docLinks is list of documentation that relevant to be shown which has format like: