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

Less color for the Query Log #1872

Merged
merged 2 commits into from
Sep 11, 2021
Merged

Less color for the Query Log #1872

merged 2 commits into from
Sep 11, 2021

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Sep 9, 2021

By submitting this pull request, I confirm the following:

  • I have read and understood the contributors guide, as well as this entire template.
  • I have made only one major change in my proposed changes.
  • I have commented my proposed changes within the code.
  • I have tested my proposed changes, and have included unit tests where possible.
  • I am willing to help maintain this change if there are issues with it later.
  • I give this submission freely and claim no ownership.
  • It is compatible with the EUPL 1.2 license
  • I have squashed any insignificant commits. (git rebase)

What does this PR aim to accomplish?:

Make the Query Log less colorful by, instead of coloring the entire rows, emphasize only the main part.
This is currently lost in the colorful noise IMO.

Screenshot from 2021-09-01 16-49-02

I've also tried coloring the domain as well, but this looks somehow odd to me.

How does this PR accomplish the above?:

Do not colorize the entire row but only the status.

What documentation changes (if any) are needed to support this PR?:

None

Signed-off-by: DL6ER <dl6er@dl6er.de>
Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added this to the v5.6 milestone Sep 9, 2021
@DL6ER DL6ER requested a review from a team September 9, 2021 18:56
@XhmikosR
Copy link
Contributor

I didn't test it but I like it :)

Do you have a screenshot with the default light theme?

@DL6ER
Copy link
Member Author

DL6ER commented Sep 10, 2021

Do you have a screenshot with the default light theme?

I generated one right now, see below.

Screenshot from 2021-09-10 09-21-04

@XhmikosR
Copy link
Contributor

LGTM even though the yellow color has low contrast but it's unrelated to this patch :)

@PromoFaux PromoFaux merged commit 293bc97 into release/v5.6 Sep 11, 2021
@PromoFaux PromoFaux deleted the tweak/color branch September 11, 2021 19:59
@pralor-bot
Copy link

This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there:

https://discourse.pi-hole.net/t/pi-hole-ftl-v5-9-web-v5-6-and-core-v5-4-released/49544/1

@Scraggarax
Copy link

Please consider adding a Toggle option for this. On mobile you can't tell what's blocked easily now. You have to scroll back and forth horizontally and it's frustrating.
Screenshot_20210912-213711_Chrome

@DL6ER
Copy link
Member Author

DL6ER commented Sep 13, 2021

Thanks for the suggestion. We'll check if it is even possible to automatically colorizing the domain (I don't think the time but type needs colorization) depending on your screen size. If not, I'll add a device-dependent toggle option (so it can be adjusted on every device/browser individually).

What do you think?

@sml156
Copy link

sml156 commented Sep 13, 2021

What do you think?

I think you made an issue where there were none

Now there is a issue it makes it harder to notice blocked queries, The whole page looks like a block of text.

@DL6ER
Copy link
Member Author

DL6ER commented Sep 13, 2021

Changes sometimes have unintended side-effects. Not a good justification to never change anything. Nobody realized this in our beta testing and I've seen comments that the query log is now easier to read - these users may all have used larger screens.

I was asking what users are thinking about the proposed solution. As you might have seen I've agreed that something will happen. I still want to hear your thoughts about what should happen. Pi-hole in a community-driven project after all, hence, your comments are appreciated.

@churchofnoise
Copy link

I only looked at it briefly when it was initially made available and agreed on the fact that it makes the page look less 'busy'.
However, I was actively reviewing the log today and found it harder to do as the original situation provided information on domain and 'status' in one view, now - even on big screens - your eyes need to go left and right, making the process more cumbersome when going through large amounts of data. I haven't tried on mobile yet but can imagine it to be worse because of the scrolling.

Hence, a simple toggle / checkbox would be useful so both options would be possible (not very sure if this should be automated based on screen size to be honest)

@dschaper
Copy link
Member

What about the below:

132816461-37592de6-246f-4116-bcb6-aa5148757f83

(And change the (gravity) to be black like (cache)?

@HenrysCat
Copy link

This is really not a good change, this is better.

pi-hole

@DL6ER
Copy link
Member Author

DL6ER commented Sep 13, 2021

#1888 adds a setting to toggle the pre-v5.4 behavior (colorize entire rows). As this setting will be stored per-device you can decide to have full colored rows, e.g., on mobile and colored status only on desktop computers. Or colors everywhere or nowhere. Just as you like.

@dschaper
Copy link
Member

The thing we have to be very careful of is red/green as the sole indicator. Red/Green colorblindness is a major accessibility issue.

@HenrysCat
Copy link

It's been Red/Green for a very long time.

@dschaper
Copy link
Member

That doesn't make it any easier for accessibility.

@HenrysCat
Copy link

Add a flag, tick/Green - exclamation mark/Red

@DL6ER
Copy link
Member Author

DL6ER commented Sep 13, 2021

@HenrysCat I've been playing with this thought. The question is also where to put it. Should it have its own column? And moving the query type further to the back, as suggested by @dschaper, makes sense, too.

@dschaper
Copy link
Member

Add a flag, tick/Green - exclamation mark/Red

Or the word "OK" in Green and "Blocked" in Red. Which is exactly what I proposed.

@Sassafras76
Copy link

changing the colorization to just two letters such a status of "OK" instead of the whole line (which is easier to see) should now at least also present the option for us to toggle colorizing the entire row or just the status

@Sassafras76
Copy link

Sassafras76 commented Sep 15, 2021

question, you made this change for the query list, bit you left the Long term Data alone, this should be uniform across the application

image

image

@quinnciples
Copy link

Another thought - are all queries either allowed or blocked? If so, only applying a red color to the blocked items may make things cleaner. If it’s not red, then it wasn’t blocked.

@Lycidias93
Copy link

Please, i want more colours back :-(

@DL6ER
Copy link
Member Author

DL6ER commented Sep 25, 2021

@Lycidias93 #1893 is already merged and will be part of the next Pi-hole release.

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.