UI Studio#
The SHIFT UI Studio provides a browser-based workflow for building and comparing synthetic feeder topologies using the same core primitives as the Python API.
Install#
pip install -e ".[ui]"
Run#
shift-ui-server
Open http://127.0.0.1:8000.
Current Workflow (v0.1 UI slice)#
Fetch parcels by address or
longitude,latitude.Cluster parcels using K-means.
Select source location from map click.
Choose network preset and optional strategy overrides.
Build one graph or compare two preset builds.
Available Network Presets#
balanced_default:SteinerTreeStrategy+MeshSteinerStrategyroad_optimized:WeightedSteinerTreeStrategy+OpenStreetSecondaryStrategyfull_road_exploration:FullRoadGraphStrategy+HubLineStrategy
Exposed API Endpoints#
GET /api/healthGET /api/optionsPOST /api/parcels/fetchPOST /api/clusters/buildPOST /api/graph/buildPOST /api/graph/compareGET /api/graph/{graph_id}/transformersPOST /api/mapper/phasePOST /api/mapper/voltagePOST /api/mapper/equipmentPOST /api/system/buildPOST /api/system/exportGET /api/system/{system_name}/downloadGET /api/session/summary
Notes#
Session state is in-memory and resets when the server restarts.
UI compare mode is intended for rapid topology exploration and metric inspection.
Mapper/system endpoints are available and can be progressively surfaced in the UI controls.