Refactor camera feed components and add sighting tables

- Updated mode settings in camera feed reducer to use "painter"
- Renamed PlatePatch component to SightingPatch and updated imports
- Removed obsolete PlatePatch component
- Added SightingEntryTable and SightingExitTable components for displaying sighting data
- Implemented useSightingEntryAndExit hook for fetching entry and exit sightings
- Adjusted VideoFeedGridPainter for improved width calculation
- Introduced DecodeReading type for better typing
This commit is contained in:
2025-11-28 12:58:42 +00:00
parent c910a3dd50
commit ddb1fa1bf1
9 changed files with 160 additions and 13 deletions

View File

@@ -22,9 +22,9 @@ export const initialState: CameraFeedState = {
selectedRegionIndex: 0,
modeByCamera: {
A: "brush",
B: "brush",
C: "brush",
A: "painter",
B: "painter",
C: "painter",
},
};
@@ -70,7 +70,6 @@ export function reducer(state: CameraFeedState, action: CameraFeedAction) {
},
};
case "REMOVE_REGION":
console.log(action.payload);
return {
...state,
regionsByCamera: {