{# Storage Optimization — one compact card per dataset where switching from logical to physical storage billing would lower monthly cost. Filters out datasets with sub-$1 monthly savings (rounding noise — no point recommending an action that saves nothing). Audit is read-only; the ALTER SCHEMA + evidence lives on the opportunity detail page that each card links to. #} {% set worth_acting = storage_panel | selectattr('monthly_savings', 'ge', 1) | list %} {% if worth_acting %}

Storage Optimization

Datasets where switching from logical to physical storage billing would lower monthly cost.

{{ worth_acting | length }} dataset{{ '' if worth_acting | length == 1 else 's' }}

{% for row in worth_acting %} {# A saving is "significant" when it'd cut the dataset's storage bill by either ≥$25 in absolute terms or ≥25% in relative terms. Significant cards get a soft emerald gradient background so they catch the eye in a wall of cards; smaller wins stay neutral so the page reads calm. Text weight stays normal in both cases. #} {% set _significant = (row.monthly_savings >= 25) or (row.savings_pct >= 25) %}

{{ row.dataset_short }}

Switch to physical billing

Save ~${{ "%.0f"|format(row.monthly_savings) }}/mo · {{ "%.0f"|format(row.savings_pct) }}%

{% endfor %}
{# Soft diagonal emerald gradient used by significant-savings cards. Tailwind's gradient utilities aren't in the audit's pre-compiled CSS bundle, so we inline a tiny rule here rather than depend on classes that won't render. Light + dark variants pair with the slate / emerald palette already used elsewhere in the app. #} {% endif %}