Reverted to commit 96a961d95c

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 15:58:11 +00:00
parent 092337ee9e
commit 1df9ada8ae
37 changed files with 173 additions and 2697 deletions

View File

@@ -50,8 +50,23 @@ export function ContentTabs() {
.order('created_at', { ascending: false })
.limit(12);
// Recent changes will be populated from other sources since entity_versions requires auth
const changesData: any[] = [];
// Fetch recent entity changes
const { data: changesData } = await supabase
.from('entity_versions')
.select(`
id,
entity_type,
entity_id,
version_number,
version_data,
changed_at,
change_type,
change_reason,
changer_profile:profiles!entity_versions_changed_by_fkey(username, avatar_url)
`)
.eq('is_current', true)
.order('changed_at', { ascending: false })
.limit(24);
// Process changes to extract entity info from version_data
const processedChanges = changesData?.map(change => {