Skip to content
Ariel Luján Giamportone

← Projects

Open package 10/2026 · Autor

Field inspections dashboard

The team used to discover data problems at month end. Now the dashboard refreshes every 3 hours, with no database, no BI licences and no servers to maintain.

AI-powered softwarePublic-sector data

Repository ↗The six lessons ↗

  • every 3 hdata refreshed automatically, previously monthly and by hand
  • −78 %size of the client-facing dashboard (3.6 to 0.8 MB)
  • 85×more evidence photos found in the nested payloads
  • 1.7 % → 0records shown on the wrong day (UTC read as local time)
  • 16 of 16rows of the official valuation report reproduced by code
  • ~200checks in 22 suites before every extraction

Try it: the repository code, in your browser

Two pieces rewritten from scratch (clean-room) with their tests. The proxy runs against a simulated upstream and the history is synthetic: no request goes out to any third party.

The photos live in a third-party app that needs a session. The browser never sees the token: it asks the proxy, which only fetches from an allow-list of hosts, re-checks every redirect and refuses anything that is not an image. This is the repository's photo-proxy.js running in your browser against a simulated upstream: no request leaves this page.

Scenarios

Allowed host: files.inspections.example

The code that runs

photo-proxy.js and src/incremental_merge.py are loaded unchanged from the repository. The Python bridge only converts the form into DataFrames and the result into JSON:

Context

A team of technicians runs compliance inspections across about 1,800 commercial sites of a public-sector client, in 15 business lines, capturing checklists and photos in a third-party mobile app.

Monthly reporting was manual: exports pasted into Excel macros, the Word report assembled by hand and the certification sheet filled in cell by cell. The client had no real-time visibility and the team found out about data problems at month end. On top of that, the API documentation did not match what production returned.

My role

Sole designer and developer end to end: architecture, extraction, dashboard, CI/CD, authentication, report automation and operations. I worked with the operations team to turn their rules into code and with the client’s IT to get access approved. About 360 commits in five months.

Decisions that matter

  • A precomputed dashboard instead of the initial proposal of a SQL database, webhooks and a commercial BI tool: the volume fits easily, there are no servers to patch or licences to pay, and every build is reproducible from code.
  • Cached history plus a three-month live window: about 20 times fewer API calls, and periods already reported stay frozen.
  • Deletions only inside the queried window, with an abort threshold: what is deleted at source disappears, but a partial response cannot take real data with it.
  • A server-side photo proxy with a host allow-list: the token never reaches the browser.
  • A file proxy that answers 302 to a short-lived pre-signed URL: no size limits, no traffic through the function, and the original file name preserved.
  • Internal views are removed at build time from the client version, not hidden with CSS: hidden data is still in the HTML.

What went wrong and stayed fixed

The repository documents six lessons. The most telling one: for years the team saw times «sometimes one or two hours off, with no pattern». There was a pattern, +1 h in winter and +2 h in summer: the API returned UTC and the pipeline read it as local time. A 23-case test with DST changes, midnights and month ends keeps it fixed.

A clean-room case study

The work was done at Intervalor Data. This repository is a case study and a from-scratch reimplementation of some patterns, published with the company’s permission: it contains no client code, data, names or infrastructure details.

No database and no BI: a precomputed site, reproducible from versioned code and cached data.