Openstatus www.openstatus.dev

fix: tracker bar (#1398)

* fix: tracker bar

* ci: apply automated fixes

* chore: include post-mortem

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Maximilian Kaske
autofix-ci[bot]
and committed by
GitHub
f14e8e1e 2d20bac1

+7 -1
+7 -1
apps/web/src/components/tracker/tracker.tsx
··· 154 154 const isLightIncident = incidentLength > 0 && incidentLength < 600_000; // 10 minutes in ms 155 155 156 156 const rootClassName = tracker({ 157 - report: statusReports.length > 0, 157 + report: 158 + statusReports.length > 0 && 159 + // NOTE: avoid setting true for a report with a single update (e.g. post-mortem) + maintenance at the same time 160 + statusReports.some( 161 + (report) => 162 + report.statusReportUpdates && report.statusReportUpdates?.length > 1, 163 + ), 158 164 variant: blacklist ? "blacklist" : variant, 159 165 incident: isLightIncident ? "light" : undefined, 160 166 });