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 favicon url download dialog #6614

Merged

Conversation

peshevv
Copy link
Contributor

@peshevv peshevv commented Jun 9, 2021

Previously, it was a bit cumbersome to get a favicon from a URL that you did not already have from an entry. You would need to temporarily create an entry and download the favicon with the URL before discarding it.

To make this easier, I took the "download favicon" button on the Icon selection page that previously would appear if the URL field was filled into the entry, and converted it so that it is always visible and provides a dialog popup that allows the user to download favicons. This also makes it so that you can download icons that may not already be in your icon list when editing a group.

Screenshots

Screenshot_20210609_135614
Screenshot_20210609_135849

Testing strategy

Tested manually on Linux. I reused the existing favicon download implementation, so the code change just involved creating a new Dialog and altering some connection endpoints. I confirmed that the Dialog handles valid and invalid URLs properly.

Type of change

  • ✅ New feature (change that adds functionality)

@peshevv peshevv changed the title Feature/favicon download dialog Favicon download dialog Jun 9, 2021
@peshevv peshevv marked this pull request as ready for review June 9, 2021 22:44
@peshevv peshevv changed the title Favicon download dialog Add favicon download dialog Jun 9, 2021
@droidmonkey
Copy link
Member

The dialog should be pre populated with the entry's url

@peshevv peshevv force-pushed the feature/favicon-download-dialog branch 2 times, most recently from 3188a9e to b2a2a82 Compare June 9, 2021 23:32
@peshevv peshevv changed the title Add favicon download dialog Reformat file Jun 9, 2021
@peshevv peshevv changed the title Reformat file Add favicon download dialog Jun 9, 2021
@peshevv peshevv force-pushed the feature/favicon-download-dialog branch from 02d75b9 to 88e436d Compare June 10, 2021 05:03
@droidmonkey droidmonkey changed the title Add favicon download dialog Add favicon url download dialog Sep 21, 2021
@droidmonkey droidmonkey added this to the v2.7.0 milestone Oct 11, 2021
@droidmonkey droidmonkey self-requested a review November 14, 2021 04:22
src/gui/FaviconDownloadDialog.cpp Outdated Show resolved Hide resolved
src/gui/EditWidgetIcons.cpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2021

Codecov Report

Merging #6614 (8c2fe39) into develop (12d16f6) will decrease coverage by 0.00%.
The diff coverage is 42.86%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6614      +/-   ##
===========================================
- Coverage    64.22%   64.22%   -0.00%     
===========================================
  Files          336      336              
  Lines        42369    42377       +8     
===========================================
+ Hits         27209    27214       +5     
- Misses       15160    15163       +3     
Impacted Files Coverage Δ
src/gui/EditWidgetIcons.cpp 47.35% <42.86%> (-0.82%) ⬇️
src/core/Entry.cpp 84.12% <0.00%> (+0.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12d16f6...8c2fe39. Read the comment docs.

@droidmonkey droidmonkey force-pushed the feature/favicon-download-dialog branch from dd7ed90 to 8c2fe39 Compare December 12, 2021 15:35
@droidmonkey
Copy link
Member

droidmonkey commented Dec 12, 2021

I completely rewrote the code here and moved the text box directly into the Edit Icon widget. I also took this opportunity to cleanup the buttons.

image

@droidmonkey droidmonkey merged commit 4567265 into keepassxreboot:develop Dec 12, 2021
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.

None yet

3 participants