Skip to content
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

Adjust the clickable area for logging out to include the user's icon. #976

Merged

Conversation

ntoll
Copy link
Contributor

@ntoll ntoll commented Mar 23, 2020

Description

Towards #285.

Screenie of modified behaviour:

sign-out

Took a while to work out the simplest / easiest approach. But in the end I just created a child class from QLabel which emitted click events and connected the emitted click to the button with the menu.

Test Plan

Added unit test.

Checklist

If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:

  • I have tested these changes in the appropriate Qubes environment
  • I do not have an appropriate Qubes OS workstation set up (the reviewer will need to test these changes)
  • These changes should not need testing in Qubes

If these changes add or remove files other than client code, packaging logic (e.g., the AppArmor profile) may need to be updated. Please check as applicable:

  • I have submitted a separate PR to the packaging repo
  • No update to the packaging logic (e.g., AppArmor profile) is required for these changes
  • I don't know and would appreciate guidance

Copy link
Contributor

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

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

This looks good, I think you should also add a functional test here :)

@redshiftzero
Copy link
Contributor

Requesting UX feedback from @ninavizz / @eloquence on this one - this PR seems like a concrete improvement to me as it includes the initials in the clickable region. It does not fully close #285 yet as the region around the initials/name in this image is not yet clickable and we haven't yet customized the dropdown menu. We can merge this as an improvement (for pilot beta) or we can wait for the complete behavior in #285 to be implemented (might not make it to first pilot beta). Thoughts? My preference is for the former, but we leave #285 open for further work.

@eloquence
Copy link
Member

IMO this is a valuable iterative improvement and should be merged without resolving #285 just yet.

@redshiftzero
Copy link
Contributor

hey @kushaldas, I opened #980 to follow up on your comment here, since I want to merge this for the beta pilot

@redshiftzero redshiftzero dismissed kushaldas’s stale review March 23, 2020 19:20

see my comment above

@redshiftzero redshiftzero merged commit 095a579 into freedomofpress:master Mar 23, 2020
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.

4 participants