feat: refactor operator dashboard and report handling, add public intervention page

This commit is contained in:
gabdevele
2026-06-18 17:52:57 +02:00 Unverified
parent fce0440a41
commit 2c907044a3
9 changed files with 335 additions and 74 deletions
+4
View File
@@ -39,6 +39,9 @@ export const useOperator = () => {
const revokeInterventionLink = (id: number) =>
useApiFetch<OkResponse>(`/api/v1/reports/${id}/intervention-link`, { method: 'DELETE' })
const getPublicIntervention = (token: string) =>
useApiFetch<any>(`/api/v1/interventions/${token}`, { method: 'GET' })
return {
getOpenReports,
getAssignedReports,
@@ -50,5 +53,6 @@ export const useOperator = () => {
getInterventionSummary,
createInterventionLink,
revokeInterventionLink,
getPublicIntervention,
}
}