-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Tweak settings level and add changed-only toggle #2882
Conversation
Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: DL6ER <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggesting
settings.js
L44 to change title="This is an advanced level setting
to title="This is an expert level setting
Maybe we should remove the "This is" part and use only |
…is page Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
…igs/all Signed-off-by: DL6ER <[email protected]>
When users decide to manually browse to https://pi.hole/admin/settings/all they will see: |
e34c51c
to
132018b
Compare
Sending users to a different page and then back doesn't seem like the best solution. It's a bit of a bad user experience. Suggestions - If this page is accessed using basic level:
|
You have to consider that nobody may ever see this. It's the edge case of the edge case To me no. 2 sounds best, least obscure behavior in contrast to magically changing boxes or silent settings changes |
…gs level is Basic Signed-off-by: DL6ER <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some items lost/miss the "expert level" icon:
DNS/Conditional forwarding
Web/Exclusions
Web/Active sessions
Privacy/Privacy level
What shall we do with boxes that are no "settings" (don't allow interactions) but are also not shown in "basic" (eg. some boxes in system) - shall they get an icon?
So far, the settings levels (now reduced to two) were set in the web interface along - independently of FTL's flag |
I think this PR is a nice addition by reducing the overall number of "levels" and adding the "show only changed" items. This is worth to be implemented. In a subsequent step, we can think about how to deal with the "doubled" FTL and web flags and how/if we could combine them. |
We should use the same symbols for "expert level" boxes on the the settings pages (currently wrench) and in "all settings" (cog) |
|
Thinking about
Why do we need this FTL flag at all? We currently use it in two places: on various setting pages to determine if at least one "setting" within a "box" has the flag and set the wrench symbol. And on "all settings" to set the cog symbol for each setting box. My proposal: remove the flag entirely. On the setting page, manually set the wrench to the box if we think the box contains something considered "advanced/expert". On "all settings" this symbol is useless > "all settings" is only reachable if "Expert level" has been selected already. If a user is so advanced to play around in "all settings" there is no need to highlight some settings as "advanced" |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: DL6ER <[email protected]>
Signed-off-by: DL6ER <[email protected]>
The last comment makes this PR depend on pi-hole/FTL#1883 |
Conflicts have been resolved. |
Tested (both PRs) and working well. A couple of comments from my perspective (by no means mandatory for approval and up for discussion/refusal!) On the All Settings page, after toggling to show only modified settings, the group headers are still visible if there are no modified settings within that group. Could those also be removed? On the Local DNS Settings page (which is only visible with the Expert mode toggled), if you toggle the switch back to basic, you are left on the Local DNS Settings page but with zero options. Could a redirect to System be implemented in this case? |
…ly modified settings if there are no modified settings within that group Signed-off-by: DL6ER <[email protected]>
… Expert to Basic settings, redirect to admin/settings/system instead Signed-off-by: DL6ER <[email protected]>
When the page is loaded, the checkbox is visible before the toggle buttons are created: I'm adding a commit to hide it using CSS. |
f1e5ebd
to
c181cd3
Compare
Signed-off-by: RD WebDesign <[email protected]>
c181cd3
to
bff2648
Compare
What does this implement/fix?
Remove settings level selection in favor of a simple settings level toogle in the same place:
Furthermore, we add a feature requested on Discourse: A toggle in the empty place on the
All settings
page that allows you to hide all default-valued config options:Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.