← Status board  /  Phase 11

Phase 11 — Dashboard v2: twice the charts, five tabs Twenty-two charts and five tables, up from ten and one. Half of the new charts needed no backend at all — the API was already returning two numbers per row and the page was only drawing one.

Status complete Charts 22 Tables 5 Endpoints 17 Next F10 packaging · F7 video

1 What doubled, exactly

TabChartsContent
Overview5Contracts per year · by system (stacked) · share donut · value per year · median contract per year
Time & money7Value per month · seasonality · calendar heatmap · cumulative · year-on-year change · value bands · share of the money · plus the bands table
Geography4Top departments · share donut · municipalities treemap · municipalities by count · plus the departments table
Suppliers5Concentration by value · concentration by count · legal representatives · buyers by contract count · biggest buyers · plus the buyers table
Text & records1Contracts by weekday · plus the description search and the paginated contract table

Bold entries are new. Five tables replaced one: value bands, departments, buyers, description search, and a contract-level table with pagination — 71,901 contracts for 2024 alone, twelve rows at a time, page 1 of 5,992.

2 Half of the doubling was already paid for

Every aggregation endpoint returns two measures per row: a count and a value. The v1 dashboard drew one of them and dropped the other on the floor. Ten of the new charts are that second number:

New chartCame from
Value signed per monthpor-mes, which already carried valor
Share of the money (donut)por-fuente
Municipalities by countpor-municipio
Concentration by countpor-contratista
Contracts accumulatedpor-anio
Year-on-year changepor-anio
Median contract per yearNew endpoint, percentile_approx by group
The cheap half

Ten charts, zero new queries, zero new round trips: the payloads were already on the wire. The expensive half was the seven aggregations the API did not have — and those were measured at 74 ms for the two heaviest.

3 Seven new endpoints

EndpointFeeds
/por-anio-statYear totals with percentile_approx(valor, 0.5) — the median trend.
/por-dia-semanaDAYOFWEEK over rows with a signature date: Saturday 255,834 · Sunday 40,571.
/por-anio-mesThe calendar heatmap, 2000–2026.
/distribucion-compradoresBuyers bucketed by contract count: 2,706 have between 21 and 100.
/por-representanteTop legal representatives as recorded on the contract.
/contratosThe paginated contract table: year, limit, offset, ordered by value.
/resumen · /por-fuente · /por-anio-fuente · /por-mes · /por-rango-valor · /por-contratista · /por-municipioAlready existed from Phase 9; three of them feed two charts each now.

4 Why tabs, and what they bought

Twenty-two charts in one scroll is a wall, not a dashboard. Five tabs, each loading only what it shows:

BehaviourEffect
enabled: tab === 'x'A tab's queries do not run until the tab is opened. The first paint makes 3 requests instead of 17.
One global Year in the headerGeography and Suppliers read the same year. Two selectors that mirrored each other were worse than one that says so.
Pagination, not virtual scrollTwelve rows per page over 71,901 contracts, with the page counter and the year total in the footer.

5 What the new views show

The median is not the average

Median contract per year: $18.3 M COP in 2023, $18.0 M in 2024, $21.0 M in 2025. The mean of the same years is three orders of magnitude larger, because a handful of entries carry quadrillions. The gap between the two lines is the story of this dataset.

Procurement has a weekday

Signatures cluster Monday to Friday and collapse on Sunday — 255,834 on Saturdays against 40,571 on Sundays. It is the least surprising chart on the page and the one that best shows the data is real activity, not a formality.

6 The QA loop: twelve defects in two passes

First pass found four chart-rendering faults; the second found eight more. Every one was found by looking, none by a failing test.

DefectFix
"Municipalities by count" axis read 0B, 0B, 0BThe horizontal-bar builder always formatted pesos; it now takes the axis formatter, and counts are counts.
Donut labels collided — "5%7%"Slices under 8 % lose both label and leader line.
Representatives overlapped across rowsCard height raised; labels break instead of truncating.
Concentration x labels wrapped to four linesSingle-line ellipsis with 26° rotation.
Buyer distribution showed "3k, 3k, 2k, 2k"Rounding collisions: the axis now prints exact counts.
Tab badges undercounted (4 vs 5 charts)Badges recomputed from the actual panels: 5 · 7 · 4 · 5 · 1.
Value-bands table unorderedThe six bands are imposed client-side, same list as the chart.
Two year selectors that mirrored each otherOne control in the header; the cards say "year 2024".
Final state

22 of 22 canvases painted across the five tabs, pagination verified (page 1 → 2, rows and counter both move), the year change repaints chart and table together, zero console messages, all API calls 200.

7 The page itself

Five screenshots, one per tab, taken on 2026-11-28 at 1440 × 900 against the running engine. They are not mock-ups: every number is a live answer from StarRocks, and the metadata line in the first one names the version that produced it.

Viewport captures — a chart that continues below the fold is described in its caption.

Dashboard overview: header, SECOP explainer, six key figures and the volume-over-time chart
Overview. The header carries the only two controls: the global year and Refresh. Below it the explainer for a reader who has never heard of SECOP, then six figures — 1,309,594 contracts, $8,681.2 T, 13,183 buyers, 844,213 suppliers, a median of $10.8 M and 9.2 % without a date. The orange bar at the left of the chart is the s/f bucket: 120,778 contracts whose date cannot be trusted.
Time and money tab: value per month, seasonality, calendar heatmap
Time & money. Seven charts in this tab. Value signed per month and the seasonality line open the panel; the calendar heatmap below shows year against month, which is the only view where the December rush and the January trough are visible at once. The accumulated and year-on-year charts continue under the fold.
Geography tab: departments bar, share donut, municipalities treemap and count bars
Geography. Four charts for the year selected in the header. The bars put Bogotá D.C. an order of magnitude above the next department; the donut only labels slices above 8 %, because a ten-slice ring with every label on is unreadable; the treemap sizes municipalities by value and the bars below count them, which is a different ranking.
Suppliers tab: concentration by value and by count, legal representatives
Suppliers. The concentration chart is bars plus a cumulative line — the Pareto shape. Read it with the warning underneath: one contract of $2,540 T dwarfs everything, so the top supplier is a single record, not a pattern of state capture. The same suppliers are then counted instead of summed, and the two answers differ.
Text and records tab: weekday chart, description search, paginated contract table
Text & records. The weekday chart is the least surprising on the page and the best proof the data is real activity. The search returns 2,018 contracts for computadores — the same figure the Phase 5 benchmark measured. The table below is contract-level, twelve rows at a time, page 1 of 5,992 for 2024.

8 Gate

Gate met

More than double the charts (22 against 10) and five tables against one; every one fed by a measured endpoint or by a field the endpoint already returned; tabs keep the first paint to three requests; pagination and the year filter verified in a browser; no console error; tsc --noEmit clean; bundle 818 kB / 268 kB gzip.

How those numbers get from a tablet to this page is described in the architecture page.

Not in this phase: authentication, export to CSV, and any streaming. The remaining work in the plan is F10 (one-command packaging) and F7 (the six-minute script).