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

Allow to disable graphs and set number of days of historical data for services #186

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

CSharpRU
Copy link

@CSharpRU CSharpRU commented Oct 19, 2022

Hello there,

I've added ability to switch off/on graphs for services and ability to set number of days of historical data to retrieve from backend for services:

image

image

image

Tested locally, all new features work as intended. Please advice in code, logic or missed things that I need to fix/add :)

Fixes? #96

@jemand771
Copy link
Member

haven't looked at all of the code yet, but as some quick feedback:

  • your PR has big whitespace changes in some files (diff viewer shows big diff but nothing changed) - maybe you can fix those so it's easier to see what you did
  • I like the idea of globally disabling all graphs, but I could also see someone wanting to hide them on a per-service basis. how do you feel about that idea?
  • nitpick: I'd probably call the option "show graphs" or "enable graphs" and have it on by default instead of "disables graphs" and having it off by default :b

@jemand771 jemand771 added the New Feature A New Feature label Oct 19, 2022
@CSharpRU
Copy link
Author

haven't looked at all of the code yet, but as some quick feedback:

  • your PR has big whitespace changes in some files (diff viewer shows big diff but nothing changed) - maybe you can fix those so it's easier to see what you did
  • I like the idea of globally disabling all graphs, but I could also see someone wanting to hide them on a per-service basis. how do you feel about that idea?
  • nitpick: I'd probably call the option "show graphs" or "enable graphs" and have it on by default instead of "disables graphs" and having it off by default :b

Thanks, I’ll look into that and change the code.

@CSharpRU
Copy link
Author

CSharpRU commented Oct 20, 2022

Renamed disable graphs to show graphs and set enabled by default:

image

Added ability to disable graph per service:

image

  • your PR has big whitespace changes in some files (diff viewer shows big diff but nothing changed) - maybe you can fix those so it's easier to see what you did

I don't see any issues in VS Code or GitHub, can you give me an example or screenshot? :)

@jemand771
Copy link
Member

nevermind on the whitespace, those are all good. you indented a lot of things because NumberOfDaysForService is longer than all of the other settings, but that's fine
(I initially thought this might be a line ending or tabs/spaces thing)

@CSharpRU
Copy link
Author

I think that's it then or should I add something else?

@CumpsD
Copy link

CumpsD commented Nov 14, 2022

This is a nice feature!

@jemand771 jemand771 self-requested a review November 15, 2022 09:08
@bretdavi89
Copy link

Not to be that guy, but wondering what the status of reviewing/merging this PR is? This would be a very nice feature to have.

@bretdavi89
Copy link

Pulled this into my fork and noticed that the status bar doesn't appropriately resize for shorter day ranges. E.g. had this set to 14 days:
image

So appears that scaling of those elements needs to occur to fill the row

@CSharpRU
Copy link
Author

CSharpRU commented Mar 4, 2023

Pulled this into my fork and noticed that the status bar doesn't appropriately resize for shorter day ranges. E.g. had this set to 14 days: image

So appears that scaling of those elements needs to occur to fill the row

I haven't touched frontend for 8 years, so if anyone can help that'd be great :D

@Appel-flappen
Copy link

Appel-flappen commented Feb 5, 2024

This would be a great feature, also would fix the issue on mobile where the little status pills become tiny and antialias weird, giving different sizes.

(oops, didn't mean to review and accept)

@Grunticus03
Copy link

Sooo....can this be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature A New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants