21 Commits

Author SHA1 Message Date
5523497e19 Gradient Routing 2025-09-28 07:42:45 -04:00
8708ea2273 MapUtil Update 2025-09-28 07:31:58 -04:00
148ead6d34 Web Update 2025-09-28 07:18:33 -04:00
8a992aa90b Flask COrs 2025-09-28 05:59:32 -04:00
694a0ad426 feat: Implement AI crash magnitude prediction API and integrate with map components 2025-09-28 04:54:41 -04:00
fbb6953473 Add Flask API endpoints and testing scripts for safety analysis
- Created requirements.txt for Flask and related libraries.
- Implemented test_api.py to validate API endpoints including health check, weather data retrieval, crash analysis, route finding, and single route fetching.
- Developed test_crash_endpoint.py for focused testing on crash analysis endpoint.
- Added test_flask_endpoints.py for lightweight tests using Flask's test client with mocked dependencies.
- Introduced SafetyAnalysisModal component in the frontend for displaying detailed safety analysis results.
- Implemented flaskApi.ts to handle API requests for weather data and crash analysis, including data transformation to match frontend interfaces.
2025-09-28 03:59:32 -04:00
9fd6dc11c3 feat: Enhance DirectionsSidebar with gradient routes and theming options
- Added `gradientRoutes` and `mapStyleChoice` props to DirectionsSidebar for customizable route rendering and theming.
- Implemented logic to handle gradient routes based on crash data availability.
- Updated route rendering colors and styles for better visual distinction.
- Refactored sidebar and toggle button styles for improved UI consistency across themes.

refactor: Introduce UnifiedControlPanel for better control management

- Replaced ControlsPanel with UnifiedControlPanel to consolidate map and crash data controls.
- Added state management for panel visibility and local storage persistence.
- Enhanced UI for map controls, including options for heatmap visibility and gradient routes.

style: Update GeocodeInput and Legend components for consistent theming

- Refactored styles in GeocodeInput to use CSS variables for background and border colors.
- Updated Legend component styles to align with new theming variables for better integration.

chore: Introduce new CSS variables for panel theming

- Added a new color palette for panels and sidebars in globals.css to support light and dark themes.
2025-09-28 02:30:52 -04:00
c63f7754e5 Refactor MapView and PopupOverlay components for improved readability and maintainability 2025-09-28 01:16:16 -04:00
e895f01216 Enhance crash data visualization with density legend and improve map interaction handling 2025-09-28 01:16:04 -04:00
f1073ef3df BIG WEB UPDATE 2025-09-27 22:45:52 -04:00
2471610d80 Maps Update 2025-09-27 17:36:07 -04:00
59422b4c12 SideBar Style Update 2025-09-27 15:40:50 -04:00
4571f8f9c9 Frontend Changes 2025-09-27 12:59:03 -04:00
Shiva Pochampally
e4a8638f28 Changed Marker colors 2025-09-27 11:19:37 -04:00
a61c8505f4 Marker Colors Update 2025-09-27 10:18:20 -04:00
775b1719f0 Controls and Mapbox Config Update 2025-09-27 09:56:23 -04:00
ca5913678c Mapbox Restriction to DC 2025-09-27 09:41:31 -04:00
7273bf13e4 MapBox Styling and component update 2025-09-27 03:37:48 -04:00
ed4922dfa2 MapBox Heatmap and Popup Update 2025-09-27 02:24:12 -04:00
845690ea14 MapBox test 1 2025-09-27 02:00:06 -04:00
941d3ec49e Web Start 2025-09-27 01:53:22 -04:00