Build Simple UI to be able to visually test new API for Incidents #192
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.
Goal
Add simple incidents management interface to the Alerts Dashboard, enabling users to view, create, and manage incidents with advanced multi-select source functionality including custom bounding box selection. This is just a first phase to:
To get this to work, I use local Docker to get this up and running, leveraging the tests DB. Changes we made to
dbConnection.tsare just to get this app up and running using the existingguardianconnectorDB for existing stuff AND using the test DB for the new incidents (warehouse) stuff.All you need to do is run:
And it'll create the new tables and then run:
it'll start up and connect to both DBs.
Screenshots
<img width="1470" height="956" alt="Screenshot 2025-09-29 at 15 01 18" src="https://github.com/user-attachments/assets/aa3b34a8-2f05-4bc3-b7ee-703c84c6c0



f3" />
What I changed
Frontend Components
• components/AlertsDashboard.vue : Added comprehensive incidents management functionality
Key Features Added
• Incidents View: Toggle button to show/hide incidents with right sidebar
• Source Highlighting: Yellow highlighting of incident sources on the map
• Multi-Select: Ctrl+click and bounding box selection (ctrl + click as well) of map features
• Incident Creation: Comprehensive form for creating new incidents
• Visual Feedback: Real-time highlighting and selection counters
• Error Handling: Proper error handling and user feedback
What I'm not doing here