Skip to content

Restore: Map (FEC overlay), Interactive Charts, Chapter 5 FEC — recover from accidental deletion - #19

Merged
thedatavigilante merged 1 commit into
mainfrom
restore/map-interactive-fec
Jul 9, 2026
Merged

Restore: Map (FEC overlay), Interactive Charts, Chapter 5 FEC — recover from accidental deletion#19
thedatavigilante merged 1 commit into
mainfrom
restore/map-interactive-fec

Conversation

@thedatavigilante

Copy link
Copy Markdown
Owner

What Happened (Root Cause)

Two separate commits damaged the site:

1. 9d47afc — Jun 26 — "fix: Correct Trone self-loan amount"

Accidentally deleted 1,498 lines from index.html, removing:

  • Chapter 5 — Who Funds the Freeze (FEC political layer)
  • Interactive Charts section (11 Plotly iframes)
  • Data Sources & Citations
  • Footer

A follow-up commit (bc09855) partially restored ~1,000 lines, but the page remained broken and truncated — the HTML was unclosed and the three sections were gone.

2. d769a04 — Jun 15 — "Redesign choropleth"

Replaced the county unemployment + FEC employer circle layer choropleth with a BAI-only map, removing the FEC overlay from maps/dmv_counties.html and rewriting the map section verbiage.


What This PR Restores

Section Status Before Status After
Map — County-Level Unemployment + FEC overlay ❌ Missing (BAI only) ✅ Restored
maps/dmv_counties.html FEC employer circles ❌ Removed ✅ Restored
Chapter 5 — Who Funds the Freeze ❌ Deleted ✅ Restored
Interactive Charts (11 Plotly iframes) ❌ Deleted ✅ Restored
Interactive Charts default visibility ❌ Hidden (display:none) ✅ Visible by default
Data Sources & Citations ❌ Deleted ✅ Restored
Footer / closing HTML ❌ Unclosed document ✅ Properly closed

Approach

  • Rebuilt index.html from the last complete version (f305abe, 1,498 lines)
  • Replaced the BAI map section with the original county unemployment + FEC overlay section from 05b4d1a
  • Restored maps/dmv_counties.html from 05b4d1a (FEC employer contributions layer intact)
  • Changed display:nonedisplay:block on the Interactive Charts container so charts are visible on page load

Verify

  1. Visit the PR preview / pull locally and open index.html
  2. Scroll to the County Map section — should show unemployment choropleth with FEC circle layer
  3. Scroll to Interactive Charts — 11 Plotly charts should be visible without clicking any toggle
  4. Scroll to Chapter 5 — FEC political layer content should be present
  5. Check page source: file should be ~1,496 lines, properly closed with </body></html>

Generated by Claude Code

…deletion

Root cause: commit 9d47afc (Jun 26, "fix: Correct Trone self-loan amount") deleted
1498 lines from index.html — removing Chapter 5 (FEC), Interactive Charts,
Data Sources, and the footer. A follow-up commit (bc09855) partially restored
~1000 lines but the page remained truncated and broken.

A second issue: commit d769a04 (Jun 15) replaced the county unemployment
choropleth + FEC circle layer with a BAI choropleth, removing the FEC overlay.

This commit:
- Restores full index.html (1496 lines) from last complete state (f305abe)
- Restores the county unemployment + FEC employer contributions map section
  and accompanying verbiage, replacing the BAI-only framing
- Restores maps/dmv_counties.html to the FEC-overlay version (05b4d1a)
- Restores Chapter 5 — Who Funds the Freeze (FEC political layer)
- Restores Interactive Charts section (11 Plotly iframes)
- Makes Interactive Charts visible by default (display:block, not display:none)

Co-Authored-By: Claude <noreply@anthropic.com>
@thedatavigilante
thedatavigilante marked this pull request as ready for review July 9, 2026 20:48
@thedatavigilante
thedatavigilante merged commit 722a782 into main Jul 9, 2026
1 check passed
thedatavigilante added a commit that referenced this pull request Jul 9, 2026
Corrects PR #19 which restored the map from the wrong commit.

Restores maps/dmv_counties.html from d769a04 (BAI choropleth version):
- County fill colors by BAI tier (crimson → orange → gold → green)
- Hover tooltip: BAI, Max UI Benefit, Housing Cost, Housing Gap,
  Wage Replacement Rate, WBI, Per-Worker SUI Gap
- Legend with state BAI values (DC: 0.854, MD: 0.956, VA: 1.024)

Updates index.html map section to match BAI framing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants