{% extends "brickwork/shell/app.html" %} {% comment %} A dashboard: a weighted headline scorecard, the shape of the answer over time, then activity that explains it. COPY THIS FILE into your project and edit it. It is not on the template loader path, so you cannot extend it (ADR-056). What your view must supply: headline_tiles weighted scorecard items (see below) trend_mount / trend_data_table chart card mount + accessible table top_accounts_rows ranked_list rows (label / amount / value) activity_rows / activity_columns the recent-activity table data nav_items / nav_active as in list.html WHY THE SCORECARD IS WEIGHTED (icvoss/django-brickwork#512): a dashboard is an argument, not a row of equal tiles. Equal tiles say every number matters the same, which is never true. The scorecard's span= carries the ranking: the metric this page exists to report gets span=2, supporting metrics take one column. The ops analysis-dashboard example teaches the same shape in denser form; this page is the simpler app Overview, with a server-rendered trend SVG so the page still reads finished before a JS chart engine is wired. _scorecard.html takes items as a list of {content, span} dicts whose content is already-rendered safe markup, so the grid comes from the view (ADR-090). States: the scorecard tiles' own trend states (see _stat.html / _stat_comparison.html); the chart card's mount / data-table sibling (CHT-012); the activity table's loading/empty/row-link states. Accessibility: inherits shell/app.html's skip link, sidebar/drawer nav and page-header region; every trend reading pairs a decorative glyph with visually-hidden direction text, never colour alone. The trend SVG carries an aria-label; the chart data table is a sibling of the mount. Covered by the archetype harness's full gate sweep at every W0.1 breakpoint, both themes. Responsive: inherits shell/app.html's sidebar-to-drawer collapse at --bw-breakpoint-md (48rem). The scorecard grid reflows via its own column tokens; .bw-band-grid--2 stacks the ranked list and table. {% endcomment %} {% load brickwork_components brickwork_nav %} {% block page_title %}Overview - Northwind{% endblock %} {% block sidebar %}{% bw_nav nav_items nav_active %}{% endblock %} {% block sidebar_mobile %}{% bw_nav nav_items nav_active %}{% endblock %} {% block brand_wordmark %}Northwind{% endblock %} {% block page_header %} {% include "brickwork/components/_page_header.html" with title="Overview" description="How the last 30 days compare with the 30 before." %} {% endblock %} {% block page_actions %} {% bw_button "Export" variant="secondary" icon="download" href="/reports/export/" %} {% endblock %} {% block content %}