Skip to content

A tracker that starts counting pledges the day after the election

Nobody tracks whether campaign pledges are kept during a term. I built a web service that splits official election-commission pledge books into individual pledges, judges each status against official press releases, and publishes it with evidence links and change history.

Client
Personal project (based on public data)
Role
Design, data structuring, implementation, deployment
Stack
React · TypeScript · Mantine · Supabase · PostgreSQL RLS · pgTAP
A tracker that starts counting pledges the day after the election

By the numbers

Every figure is a measured value with a source. Values from the rebuilt environment are marked as such.

Pledges tracked · 6 officials · 84 evidence links
227
  • Officials tracked / pledges / evidence linksReproducible measurement

    6 / 227 / 84

    Counted directly from data/pledges/daegu-mayor-2026.json and data/pledges-extra/*.json (2026-11-10)

  • Elected officials list (searchable)Reproducible measurement

    Metropolitan 16 + local 227 = 243

    Officials list load run 2 times {"upserted":243,"metro":16,"local":227}, Development log (private)

  • E2E / DB policy tests (pgTAP)Reproducible measurement

    106 / 60

    npx playwright test, supabase test db (local Supabase), Development log (private)

  • Production smoke E2EProduction measurement

    6 passed

    tests/e2e/prod/smoke.prod.ts (public URL, 2026-11-10)

A wall of pledge lamps

How this project works, redrawn as one machine. Left alone it tours itself; press or drag to take over.

How it was solved

01Problem

Elections bring dozens of pledges, yet no one tracks whether they are kept during the term, and local pledges get no attention at all.

02Principle

Without evidence, a pledge stays at not started. Consistent judgment rules matter more than filling in blanks.

Real screens

1. Situation

Elections bring dozens of pledges, yet no one tracks whether they are kept during the term. The press covers a few big ones, and by the next election voters no longer remember what was promised. The goal: a resident seeing the site for the first time can say within 5 minutes which of an official's pledges got done, every judgment has a source you can click, and the page looks the same to supporters of any party.

2. Scoping

I left out whether a pledge is good or bad, party colors, and evaluative wording. Evidence candidates are collected automatically, but a person always decides what to accept and how to judge. Events, meetings, and petitions alone do not change a status, and no evidence means not started. Party played no role in choosing whom to track. I dropped payments and an admin screen for tracking requests. Statuses on screen are demo judgments based on public press releases, and every page says so in its header.

3. Build

CategoryWhatWhy
ReusedElection commission pledge books and elected officials list, Supabase (auth, RLS), Cloud RunSource material stays as published; infrastructure is managed
ChangedOfficials list contract: metropolitan 17 → 16The real source had 1 official for a merged special city
BuiltPledge-level structuring, status/evidence/change-history pages, disputes, write paths behind DB functionsEvery status change records an evidence link and a one-line reason

4. What broke

There were not 17 metropolitan heads. The schema fixed 17 metropolitan regions as a contract, but the source data had 16 winners. Instead of forcing the data to fit, I treated the merged region as one metropolitan unit and changed the contract, keeping a record of the old version. Now validation fails if the metropolitan count differs from the contract, so any change to the list shows up immediately.

Every Busan city domain returned 401. The press release board, the city website, and the city council all returned the same block notice. I did not work around it or substitute material outside the rules. I entered 28 pledges as not started with "evidence unverified (outside review scope)" and stated this on screen and in the README.

It looked like infinite loading. With the network cut, the number fields seemed frozen. The cause was normal behavior: supabase-js retries a GET 3 times before returning an error. I left the code alone and added 2 tests that prove that behavior.

5. Results

MetricValueScopeSource
Officials tracked / pledges / evidence links6 / 227 / 84Reimplementation (demo judgments)Counted from data files
Judgment distributionIn progress 77 · not started 150 · fulfilled, modified, abandoned 0Reimplementation (demo judgments)Counted from data files
Elected officials listMetropolitan 16 + local 227 = 243ReimplementationSame result over 2 loads
E2E / pgTAP106 / 60ReimplementationDevelopment log (private)
Production smoke E2E6 passed, 0 production DB writesProductionPublic URL, 2026-11-10

6. If I did it again

Judgments rest only on official press releases, so council minutes and budget documents need to be added. LLM extraction had no API key, so all 6 officials were structured by hand and the pipeline has only passed fixture tests; I would verify it with real calls. The first thing to do is the 5-minute comprehension test with residents seeing it for the first time. I have not done it yet.