feat(ui): Streamlit polish — joint H+V, PPHPD, console, GeoJSON import#15
Merged
Conversation
…ON import Brings the optimizer UI up to the operator-facing feature set the Phase 2 MVP lacked: - Joint H+V control: a "Corridor half-width" sidebar slider wires Phase 12c into the UI. Above 0 (GA mode) the run builds a surface_fn from the DEM swath and passes it to optimize(), so the GA may shift towers laterally; the console reports how many ended up offset. NSGA-II mode shows an info note (GA-only feature). - PPHPD capacity metric: a line-speed slider plus a "Capacity" headline metric — persons per hour per direction from cabin spacing and speed. - Bottom run console: a persistent expander logging each run (terrain extent, optimizer config, feasibility, violation detail). - GeoJSON import: upload a previously-exported alignment.geojson in the Projects tab; the tower schedule is parsed, displayed, and re-evaluated against the current terrain run. CHANGELOG: also records the CI Node.js 24 action bump merged in #14. App smoke-tested headless (boots and serves cleanly). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the optimizer UI up to the operator-facing feature set the Phase 2 MVP lacked, following the requested UI blueprint (sidebar inputs · viewport tabs · bottom console).
surface_fnfrom the DEM swath and passes it tooptimize(), so the GA may shift towers laterally to route around terrain; the console reports how many towers ended up offset. NSGA-II mode shows an info note (GA-only feature).alignment.geojsonin the Projects tab; the tower schedule is parsed, displayed, and re-evaluated against the current terrain run (feasible / violations).Test plan
python -m py_compile app/streamlit_app.py— syntax cleanstreamlit run --server.headless true) and serves/without exception_pphpd,_log) exercised in isolationapp/streamlit_app.py+ CHANGELOG; no effect on the optimizer/test suite (157/157 unchanged)Note: this UI is not covered by the automated suite; the run-path logic delegates to
optimize(surface_fn=…)which is covered bytests/test_joint_hv.py.🤖 Generated with Claude Code