Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 3 commits into from
Jan 4, 2023
Merged

refactor: move footer items into the user dropdown #5562

merged 3 commits into from
Jan 4, 2023

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Jan 3, 2023

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:
image

After:
image

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.
@kylecarbs kylecarbs requested a review from a team as a code owner January 3, 2023 22:04
@kylecarbs kylecarbs self-assigned this Jan 3, 2023
@kylecarbs kylecarbs requested review from code-asher and BrunoQuaresma and removed request for a team January 3, 2023 22:04

<Divider />

<Tooltip title="Browse Source Code">
Copy link
Member

@code-asher code-asher Jan 3, 2023

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?

Copy link
Member Author

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...

Copy link
Member

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!

Copy link
Member Author

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!

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"
Copy link
Member

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.

@BrunoQuaresma
Copy link
Collaborator

BrunoQuaresma commented Jan 4, 2023

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.

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a 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.

@kylecarbs kylecarbs merged commit a36cd0b into main Jan 4, 2023
@kylecarbs kylecarbs deleted the footer branch January 4, 2023 18:36
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants