newrelic / nr1-pathpoint

Pathpoint is an enterprise platform tracker that models system health in relation to actual user-impacting business stages.
Apache License 2.0
8 stars 19 forks source link

Implement grey status for stages until touchpoints are refreshed #63

Closed JimHagan closed 1 year ago

JimHagan commented 1 year ago

Previously when stages or steps were edited there would be a state when stages could go RED or ALL green while touchpoints were in an ambiguous state. this code adds a "grey" status for stages which remains until touchoints are in a determined state. This is the actionable code:

  if (stage.status_color === 'danger') {
    healthIcon = dangerHeart;
  }
  else if (stage.status_color === 'good') {
    healthIcon = goodHeart;
  }
  else if (stage.status_color === 'warning') {
    healthIcon = warningHeart;
  }