{% extends "base.html" %} {% set active_page = 'overview' %} {% block title %}Portfolio · net-alpha{% endblock %} {% block topbar_right %}{% endblock %} {% block content %} {# A2.2: Alpine helper for the account multi-select dropdown. Loaded unconditionally so it's available in both the toolbar (full state) and stays in scope even if the toolbar lazily appears via HTMX swap. Dispatches a 'change' Event on the parent form so HTMX's `hx-trigger="change from:..."` listener picks it up — we deliberately do NOT call requestSubmit() because the toolbar's hx-trigger does not include 'submit', so requestSubmit() would fall through to a native form GET and cause a full page reload. #}

Portfolio

{% if selected_accounts %}{{ selected_accounts | join(', ') }}{% else %}All accounts{% endif %} · {{ selected_period|default('YTD')|upper }}
{% with _skel_variant='pill' %}{% include "_skeleton.html" %}{% endwith %}
{% if imports %}{% include "_portfolio_toolbar.html" %}{% endif %}
{% if not imports %} {% include "_portfolio_empty_state.html" %} {% else %} {%- set _body_qs %}period={{ selected_period }}{% for _a in selected_accounts %}&account={{ _a|urlencode }}{% endfor %}{%- endset -%}
{% with _skel_variant='kpi-row' %}{% include "_skeleton.html" %}{% endwith %} {% with _skel_variant='chart-panel' %}{% include "_skeleton.html" %}{% endwith %} {% with _skel_variant='chart-panel' %}{% include "_skeleton.html" %}{% endwith %}
{% endif %} {% endblock %}