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

Show "Status OK" in Green after the outage is resolved #53

Open
rayjanoka opened this issue Feb 23, 2024 · 0 comments
Open

Show "Status OK" in Green after the outage is resolved #53

rayjanoka opened this issue Feb 23, 2024 · 0 comments

Comments

@rayjanoka
Copy link

rayjanoka commented Feb 23, 2024

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:
image
image

Preferred:
image
image

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";
    }
@rayjanoka rayjanoka changed the title Show "Status OK" in Green after an outage Show "Status OK" in Green after the outage is resolved Feb 23, 2024
rajnandan1 pushed a commit that referenced this issue Nov 28, 2024
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

No branches or pull requests

1 participant