Files
property-match/src/hooks/useActivityLog.ts
T
Benjamin Sutter fdf4de37db 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>
2026-05-18 18:12:50 +02:00

13 lines
421 B
TypeScript

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,
})
}