-
Notifications
You must be signed in to change notification settings - Fork 1.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
UX: Re-use left sub-menu for Settings and License page on admin dashboard #16427
UX: Re-use left sub-menu for Settings and License page on admin dashboard #16427
Conversation
annotations in the pull request changed, but user is not allowed to start a job |
@gtsiolis Do we need to make the Settings and License pages on the admin dashboard mobile responsive? |
@Devansu-Yadav No, it's ok to leave these as they are for now for the following reasons:
/werft run with-preview-true 👍 started the job as gitpod-build-update-settings-layout-fork.0 |
/werft run with-preview=true 👍 started the job as gitpod-build-update-settings-layout-fork.1 |
Yes, it is quite responsive already, except for the Tabs component below the header, which is not that responsive due to the no of tabs present on the admin dashboard.
@gtsiolis Sure, in fact, I'd love to help out with this issue in case there haven't been any changes addressing the responsive layout for the dashboard 😄 |
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.
UX LGTM! 🌮 🌮
Left one minor comment. If that's not trivial to resolve, let's merge this and open a follow-up issue or PR about it. 🏓
}, | ||
{ | ||
title: "License", | ||
link: ["/admin/license"], |
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.
issue: The Admin menu becomes inactive when navigating to the license page. Could we keep it active?
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.
Fixed it! Was just a one-liner fix that was needed 😆
Actually, I completely missed out that updating the getAdminTabs
function to remove the License page route might cause such an issue, as this function is being used to set the active state on the admin menu 😅.
/werft run with-preview=true 👍 started the job as gitpod-build-update-settings-layout-fork.2 |
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.
UX LGTM, @Devansu-Yadav! 🌮 🌮
alternatives: [ | ||
...getAdminTabs().reduce( | ||
(prevEntry, currEntry) => | ||
currEntry.alternatives | ||
? [...prevEntry, ...currEntry.alternatives, currEntry.link] | ||
: [...prevEntry, currEntry.link], | ||
[] as string[], | ||
), | ||
], |
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.
thought: Not sure about this piece of code here, but UX looks good. I'll loop in @gitpod-io/engineering-webapp for visibility in case this needs a revert or a different approach.
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.
Sure, no problem!
Basically, this code populates all the top-level admin dashboard routes obtained through the getAdminTabs
function, which are then passed to the isSelected
function to set the active state for the admin menu on these top-level routes. Hope this makes it a bit clear 😅
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 clarifying, @Devansu-Yadav! 🙇
Description
Related Issue(s)
Fixes #16399
How to test
Release Notes
Documentation
Build Options:
Experimental feature to run the build with GitHub Actions (and not in Werft).
leeway-target=components:all
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh