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:
@@ -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,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user