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

Add correct tray menu provider #126

Merged
merged 24 commits into from Apr 26, 2020
Merged

Conversation

dannoe
Copy link
Contributor

@dannoe dannoe commented Apr 19, 2020

This fixes #90

  • Refactored code for providing menu items
  • Removed unused usings.
  • Implemented the "correct" tray menu provider.

Work to do:

  • Add more unit tests

This is the new default way of accessing TOTP entries via tray

grafik

Multiple databases present

(The menu point for the database is displaying the database color)
grafik

Multiple databases, but some locked

They can be directly unlocked by clicking on them.
grafik

Legacy behavior

The legacy behavior can still be enabled (but requires an restart of keepass)
grafik

Thoughts and suggestions are welcome!

@sonarcloud

This comment has been minimized.

@dannoe dannoe marked this pull request as ready for review April 25, 2020 21:45
Copy link
Collaborator

@robinvanpoppel robinvanpoppel left a comment

Choose a reason for hiding this comment

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

Like I said, really appreciate you have refactored this. I've left some minor comments here and there, but this looks good!

KeeTrayTOTP.Tests/Menu/LegacyTrayMenuTests.cs Show resolved Hide resolved
KeeTrayTOTP/Menu/MenuItemProvider.cs Show resolved Hide resolved
KeeTrayTOTP/Menu/MenuItemProviderBase.cs Outdated Show resolved Hide resolved
KeeTrayTOTP/TrayTOTP_Plugin.cs Show resolved Hide resolved
KeeTrayTOTP.Tests/Menu/TrayMenuTests.cs Outdated Show resolved Hide resolved
KeeTrayTOTP/Helpers/ImageExtensions.cs Show resolved Hide resolved
And:
- Removed unused usings.
- Fixed some minor typos.
- Added new unit test for invalid totp entries.
@sonarcloud
Copy link

sonarcloud bot commented Apr 26, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 1 Vulnerability (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 43 Code Smells

49.4% 49.4% Coverage
0.4% 0.4% Duplication

@dannoe dannoe merged commit f080b0a into master Apr 26, 2020
@robinvanpoppel robinvanpoppel deleted the add-correct-tray-menu-provider branch May 5, 2020 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the correct way of providing menu items to keepass
2 participants