Skip to content

Remove sync/sign in language from avatar menu. #1035

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 1 commit into from
Dec 6, 2018

Conversation

mkarolin
Copy link
Collaborator

@mkarolin mkarolin commented Dec 6, 2018

Fixes brave/brave-browser#2234

This fix modifies the current profile's button in the avatar popup menu.
It removes the sync overlay from the profile icon and replaces "Sync
disabled"/"Not signed in" labels with the profile's name.

Adds a browser test to verify that the button shows profile name.

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Verified that these changes build without errors on
    • Windows
    • macOS
    • Linux
  • Verified that these changes pass automated tests (npm test brave_unit_tests && npm test brave_browser_tests) on
    • Windows
    • macOS
    • Linux
  • Ran git rebase master (if needed).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.
  • Add appropriate QA labels (QA/Yes or QA/No) to include the closed issue in milestone

Test Plan:

Automated test:
npm run test -- brave_browser_tests --filter=BraveProfileChooserViewTest.TestCurrentProfileView

Manual test:

  • Start Brave browser,
  • Click on the avatar menu button in the toolbar,
  • Verify that the first button in the menu shows profile avatar with no overlays and the text is the name of the profile.
  • Click on the button - this should result in profile settings page showing up,
  • In the profile settings page change the profile name,
  • Click on the avatar menu button again,
  • Verify that the profile button shows the new name.

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

Fixes brave/brave-browser#2234

This fix modifies the current profile's button in the avatar popup menu.
It removes the sync overlay from the profile icon and replaces "Sync
disabled"/"Not signed in" labels with the profile's name.

Adds a browser test to verify that the button shows profile name.
@mkarolin mkarolin self-assigned this Dec 6, 2018
@mkarolin mkarolin requested a review from darkdh December 6, 2018 16:39
Copy link
Member

@darkdh darkdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@mkarolin mkarolin merged commit 3e0028d into master Dec 6, 2018
@mkarolin mkarolin deleted the maxk-no-singin-profile-chooser branch December 6, 2018 22:37
mkarolin added a commit that referenced this pull request Dec 6, 2018
Remove sync/sign in language from avatar menu.
@mkarolin
Copy link
Collaborator Author

mkarolin commented Dec 6, 2018

master: 3e0028d
0.59.x: daf1680

@kjozwiak
Copy link
Member

kjozwiak commented Dec 7, 2018

@mkarolin approving uplift request to 0.58.x after deliberating with @rebron & @srirambv 👍Please make sure that all the appropriate labels are removed/added and the corresponding issue is moved to the correct milestone.

mkarolin added a commit that referenced this pull request Dec 7, 2018
Remove sync/sign in language from avatar menu.
@mkarolin
Copy link
Collaborator Author

mkarolin commented Dec 7, 2018

0.58.x: 12882ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove sign in message on person profile icon
4 participants