-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 Browser Integration to Group Edit page #4180
Add Browser Integration to Group Edit page #4180
Conversation
4fc5fc8
to
130190b
Compare
130190b
to
6215d4f
Compare
I'm saving this for a future release |
@varjolintu do we still want to incorporate this? |
@droidmonkey Sure, why not. I can make a rebase. |
7253206
to
41df1c1
Compare
The problem with this implementation is that new entries added to the group do not have the group "desired" settings applied to it. Basically the group settings are a one-shot deal and reapplying them to child entries requires editing the group, checking the box, and pressing OK. This is obviously not the desired intention of these settings. I think it would be better to store these settings at the group level just like auto-type does. The browser plugin would then exclude entries from groups that have these specific settings applied, depending on the context. This also prevents issues when entries are moved into/out of groups and adding entries to a group with these desired settings. |
41df1c1
to
5fd740c
Compare
@droidmonkey Good idea to move the option to group level instead. |
Entry settings also need to be changed to tristate (I think checkboxes will be enough) because the state can be inherited from the group. |
My opinion is that group settings override all entries. We make things more complicated by allowing exceptions all over the place. If anything we should be disabling the entry level checkboxes if the group settings are set You can disable them and have a tool tip that says the setting is controlled at the group level |
This was the other option I thought about. However, if group settings are inherited but the setting value is default, we should allow the entry level settings. Disabling them only when the value is set or inherited value differs from the default should work. |
Right my assumption is these group settings are meant to be blanket settings across all entries in the group. They should be worded such that they apply to every entry in the group. If the group settings aren't changed then the behavior is as before |
5fd740c
to
ccb1456
Compare
03e92a5
to
22950ab
Compare
Got it. This is good to go. |
I like the current implementation, simple clean easy to understand. OK to merge this now? |
I made some tweaks to wording and positioning of elements. Unfortunately we cannot use the "WriteTriState" into the kdbx, if you do that then those XML elements will be dropped by any client that is no KeePassXC (ie, it is not part of the standard). We need to use the Custom Data of the Group. The benefit to custom data is we can eliminate all the tristate code and polluting the Group class with browser settings. |
22950ab
to
3d078b2
Compare
Ah, ok. Got it. I thought "EnableAutoType" and "EnableSearching" with |
4bcb79a
to
4842d73
Compare
@droidmonkey This should be ready now. Hopefully there's no more findings. |
4842d73
to
ace01e9
Compare
ace01e9
to
9a5e34e
Compare
@varjolintu I made the changes necessary to this PR, do a double check for me please. |
EDIT: All is working properly. Had some merge errors earlier. |
I need to update the tests |
9a5e34e
to
184b099
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4180 +/- ##
===========================================
- Coverage 63.63% 63.61% -0.02%
===========================================
Files 330 330
Lines 41646 41807 +161
===========================================
+ Hits 26499 26595 +96
- Misses 15147 15212 +65 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
184b099
to
fdd6718
Compare
Type of change
Description and Context
Adds Browser Integration page to Group Edit page. This allows to set the following options for all entries in the group and its subgroups:
Checkboxes are disabled if group level settings are used.
Fixes #1789.
Fixes #3998.
Screenshots
Testing strategy
Manually.
Checklist:
-DWITH_ASAN=ON
. [REQUIRED]