You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: match dashboard hasDiff and exclude deleted resources from fixes (#6)
* fix: match dashboard's hasDiff and exclude deleted resources from fixes
Switches the cost section visibility (hasDiff) and per-project diff check
to key off DiffBreakdown.Resources rather than per-resource Action, matching
the dashboard's projectHasDiff. ProjectResult.Resources is no longer read
anywhere in the comment package and has been removed.
Also filters fixed-issue counts to exclude resources that no longer appear
in any current policy result (passing or failing) — claiming a "fix" for a
resource that has disappeared, or whose policy is no longer applicable, is
misleading.
* fix: align comment formatting with dashboard
- formatCost: negative values render as `-$X` (sign before currency
symbol) and integer parts get thousand-separators (e.g. `-$1,616`).
- formatCarbonWithExample: take a pluralize flag; the run-level
summary uses it so we say `avoids`/`emits` instead of `avoid`/`emit`.
- formatNumber: rewrite to use the dashboard's "decimal places to
surface the first non-zero digit" rule. Whole numbers render with no
decimals (`16`), fractional values keep needed precision (`335.7`),
and thousand-separators are applied.
- processCostChangesAndBudgets: sort budget-tag-note keys before
joining to fix non-deterministic ordering.
- Template: blank lines around the governance sentence so HTML blocks
that follow are recognised as block-level by GitHub's markdown parser.
0 commit comments