Fix forecast chart bar order and snapshot month derivation

Flip stacked bar chart so non-compliant (orange) renders on top and
compliant (blue) on bottom for better visual emphasis.

Use the file's report_date for compliance_snapshots month instead of
the current date, so historical uploads land in the correct monthly
bucket. Also fix rollback to delete the correct month's snapshot.

Remove cve-frontend systemd service ( Express serves theredundant
built frontend on port 3001).
This commit is contained in:
Jordan Ramos
2026-05-21 12:22:52 -06:00
parent ae2b7e0433
commit 940cb3251c
2 changed files with 15 additions and 14 deletions

View File

@@ -1486,16 +1486,6 @@ function ForecastBurndownChart({ metricId }) {
label={{ value: 'Forecast →', position: 'top', style: { fontSize: 9, fill: PURPLE } }}
/>
)}
<Bar
yAxisId="left"
dataKey="non_compliant"
name="Non-Compliant"
stackId="devices"
fill="#F97316"
shape={renderNonCompliantBar}
label={renderNonCompliantLabel}
barSize={36}
/>
<Bar
yAxisId="left"
dataKey="compliant"
@@ -1506,6 +1496,16 @@ function ForecastBurndownChart({ metricId }) {
label={renderTotalLabel}
barSize={36}
/>
<Bar
yAxisId="left"
dataKey="non_compliant"
name="Non-Compliant"
stackId="devices"
fill="#F97316"
shape={renderNonCompliantBar}
label={renderNonCompliantLabel}
barSize={36}
/>
<Line
yAxisId="right"
type="monotone"