-
Notifications
You must be signed in to change notification settings - Fork 897
refactor: move footer items into the user dropdown #5562
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
Conversation
The items at the bottom looked unprofessional. Users don't always need to be prompted to join our Discord or see the active version of Coder. This moves the items in the user dropdown which looks better.
|
||
<Divider /> | ||
|
||
<Tooltip title="Browse Source Code"> |
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 curious why a Tooltip
over the native title
prop on the anchor? So it pops up faster maybe?
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.
The title
property wasn't appearing for me for some reason...
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.
Ahh gotcha, there was a title="View Source"
on the Discord link so it might have been on the wrong one!
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.
Ahh my bad. I'll fix!
site/src/components/UserDropdownContent/UserDropdownContent.tsx
Outdated
Show resolved
Hide resolved
import { FC } from "react" | ||
import { Link } from "react-router-dom" | ||
import * as TypesGen from "../../api/typesGenerated" | ||
import { navHeight } from "../../theme/constants" | ||
import { DocsIcon } from "../Icons/DocsIcon" | ||
import { LogoutIcon } from "../Icons/LogoutIcon" | ||
import { UserAvatar } from "../UserAvatar/UserAvatar" | ||
import Tooltip from "@material-ui/core/Tooltip" |
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.
Does v2 have sorting preferences for frontend imports? We might need a linting rule to help automate it.
FYI: I'm going to push a few improvements later today but feel free to merge it. I can do the improvement on the main. |
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. I think @code-asher already made a good review.
The items at the bottom looked unprofessional. Users don't always need to be prompted to join our Discord or see the active version of Coder.
This moves the items in the user dropdown which looks better.
Related #5465
Before:

After:
