feat: Aktivitätslog tab in PropertyDetailView — per-property timeline

Adds a new "Aktivitätslog" tab (9th tab) to the supply-side property
drawer. Shows match approvals/rejections, need registrations, data
quality flags, and governance actions linked to this specific property.
Only visible to Verwaltung users in their own property view.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Sutter
2026-05-18 18:12:50 +02:00
parent c4c29ef7d3
commit fdf4de37db
4 changed files with 316 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
import { useQuery } from '@tanstack/react-query'
import { governanceService } from '../services/governanceService'
export function usePropertyActivityLog(propertyId: string) {
return useQuery({
queryKey: ['activityLog', 'property', propertyId],
queryFn: () => governanceService.getActivityLogByProperty(propertyId),
staleTime: 30_000,
select: (res) => res.data ?? [],
enabled: !!propertyId,
})
}