{# src/net_alpha/web/templates/_data_hygiene.html Phase 3 (I1, I2) restructure: missing-basis rows get one shared explanation card + compact inline forms (via `missing_basis_rows`). All other issue categories (unpriced, orphan_sell, dup_key, tax_config_missing) continue to render in the legacy "Data quality" panel below. #} {% set other_issues = issues | selectattr("category", "ne", "basis_unknown") | list %} {% if missing_basis_rows %}

Missing cost basis

{# I1: single explanation card — appears once regardless of row count #}
{{ missing_basis_rows|length }} item{% if missing_basis_rows|length != 1 %}s{% endif %} need attention — until basis is set, realized P/L can’t be computed for these lots. Set a cost basis for each row below.
{# I2: per-row inline forms #}
{% endif %} {% if other_issues %}

Data quality

{{ other_issues|length }} item{{ "s" if other_issues|length != 1 else "" }} need attention from your imports.

{% endif %}