Is your feature request related to a problem? Please describe.
If there has been >=1 minute of downtime today the main status description will show Down for N minutes in red all day, even if we are currently back UP until it rolls to the next day.
I think it should be more clear that we are back UP so like it to say Status OK in green again if we are back UP, but continue show today's bar as red. Then the user can still mouse over the red bar to see how many minutes we were down today.
Describe the solution you'd like
Currently:
Preferred:
Describe alternatives you've considered
None
Additional context
I hacked this in my system by looking for the last update and forcing it to green.
I did something like this in ninety.js but there is probably a better solution.
in getDayData() I added:
// modified to show green if we are up right now
const last = day0[Object.keys(day0)[Object.keys(day0).length-1]].status
if (last === "UP") {
cssClass = StatusObj.UP;
message = "Status OK";
}
Is your feature request related to a problem? Please describe.
If there has been >=1 minute of downtime today the main status description will show
Down for N minutes
in red all day, even if we are currently backUP
until it rolls to the next day.I think it should be more clear that we are back
UP
so like it to sayStatus OK
in green again if we are backUP
, but continue show today's bar as red. Then the user can still mouse over the red bar to see how many minutes we were down today.Describe the solution you'd like
Currently:
![image](https://github.com/rajnandan1/kener/assets/18078751/bc7cb2ac-d7c7-4e01-9450-5417ae3d7b9c)
Preferred:
![image](https://github.com/rajnandan1/kener/assets/18078751/9c543504-70b6-4022-8917-19d01da4675a)
Describe alternatives you've considered
None
Additional context
I hacked this in my system by looking for the last update and forcing it to green.
I did something like this in
ninety.js
but there is probably a better solution.in
getDayData()
I added: