fdf4de37db
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>
13 lines
421 B
TypeScript
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,
|
|
})
|
|
}
|