Skip to content

Remove the retired Streamlit app - #36

Merged
DTrim99 merged 2 commits into
mainfrom
remove-streamlit-app
Nov 8, 2026
Merged

DTrim99 merged 2 commits into
mainfrom
remove-streamlit-app

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The calculator moved from Streamlit to Next.js and FastAPI, but the Streamlit app and the code only it used stayed in the repo. This PR removes them. Nothing the site or the API runs changes.

It splits the cleanup out of #24, which also deleted these files but is parked: its local-impact view waits for 120th Congress district data.

What's removed

  • The Streamlit app: app.py, app_backup.py, pages/calculator.py and .streamlit/config.toml.
  • Its Codespaces config (.devcontainer/, which ran streamlit run app.py on attach) and requirements.txt.
  • aca_calc/calculations/ptc.py and charts.py, which only the Streamlit pages used, and blue.png, the logo charts.py read.
  • The Makefile's debug target (streamlit run app.py).
  • 19 test files:
    • 11 import the Streamlit app or drive it with Streamlit's test runner: test_400_fpl_cliff, test_app_comprehensive, test_app_imports, test_calculate_ptc, test_cliff_fixed, test_cliff_simple, test_debug_app, test_employment_vs_magi, test_show_errors, test_streamlit_app and test_unique_chart_keys.
    • 8 are scripts that print results and assert nothing: test_app_function, test_austin, test_comparison, test_eligibility, test_labels, test_nj, test_reform_verification and test_texas.

What's updated

  • The README says how to run the frontend and the API locally, and describes the current stack and project structure.
  • CONTRIBUTING describes the API, the calculation modules and the frontend instead of the Streamlit app.
  • tests/test_household.py expects the household builder's 1,001-point income axis; it still expected the 10,001 points the builder used before.

Not changed

  • pyproject.toml still lists streamlit. Dropping it re-resolves uv.lock, about 1,500 changed lines, so it's left for the next policyengine-us pin, which refreshes the lock anyway.
  • The 12 remaining test files. CI runs the API tests in the Modal API workflow; the others run only with make test.

Checks

  • No remaining file imports the removed modules or the Streamlit app (a search of every .py, .js, .jsx, .mjs, .json, .toml and .yml file).
  • tests/test_household.py passes (6 tests).
  • The other remaining tests weren't run locally: the machine was short of memory. None of them imports a removed file.

🤖 Generated with Claude Code

DTrim99 and others added 2 commits November 7, 2026 18:44
The calculator moved to Next.js and FastAPI; the Streamlit app (app.py,
app_backup.py, pages/, .streamlit/), its Codespaces config and
requirements.txt, and the two calculation modules only it used (ptc.py,
charts.py, with charts.py's logo) were left behind. So were 19 test files:
11 import the Streamlit app or drive it with Streamlit's test runner, and 8
are scripts that print results without asserting anything. The README and
CONTRIBUTING describe the current frontend and API instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The builder moved from 10,001 to 1,001 points for faster charts; the test
still expected 10,001.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aca-calc Ready Ready Preview Nov 8, 2026 12:06am UTC

Request Review

@DTrim99
DTrim99 merged commit b801cf2 into main Nov 8, 2026
4 checks passed
@DTrim99
DTrim99 deleted the remove-streamlit-app branch November 8, 2026 02:44

This branch was successfully deployed

1 active deployment
Preview — 9e379744 Deployed Nov 8, 2026 by vercel[bot]
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.

1 participant