mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 16:31:13 -05:00
Fix moderation type errors
This commit is contained in:
@@ -12,11 +12,11 @@ interface ActivityCardProps {
|
|||||||
entity_type?: string;
|
entity_type?: string;
|
||||||
entity_name?: string;
|
entity_name?: string;
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
moderator_id?: string;
|
moderator_id?: string | null;
|
||||||
moderator?: {
|
moderator?: {
|
||||||
username: string;
|
username: string;
|
||||||
display_name?: string;
|
display_name?: string | null;
|
||||||
avatar_url?: string;
|
avatar_url?: string | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -295,8 +295,8 @@ export function ItemEditDialog({ item, items, open, onOpenChange, onComplete }:
|
|||||||
// Simple photo editing form for caption and credit
|
// Simple photo editing form for caption and credit
|
||||||
interface PhotoItem {
|
interface PhotoItem {
|
||||||
url: string;
|
url: string;
|
||||||
caption?: string;
|
caption?: string | null;
|
||||||
credit?: string;
|
credit?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function PhotoEditForm({
|
function PhotoEditForm({
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import { logger } from '@/lib/logger';
|
|||||||
interface Moderator {
|
interface Moderator {
|
||||||
user_id: string;
|
user_id: string;
|
||||||
username: string;
|
username: string;
|
||||||
display_name?: string;
|
display_name?: string | null;
|
||||||
role: string;
|
role: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ interface ActivityItem {
|
|||||||
entity_type?: string;
|
entity_type?: string;
|
||||||
entity_name?: string;
|
entity_name?: string;
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
moderator_id?: string;
|
moderator_id?: string | null;
|
||||||
moderator?: {
|
moderator?: {
|
||||||
username: string;
|
username: string;
|
||||||
display_name?: string;
|
display_name?: string | null;
|
||||||
avatar_url?: string;
|
avatar_url?: string | null;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,12 +71,12 @@ interface Report {
|
|||||||
reported_entity_type: ReportEntityType;
|
reported_entity_type: ReportEntityType;
|
||||||
reported_entity_id: string;
|
reported_entity_id: string;
|
||||||
report_type: string;
|
report_type: string;
|
||||||
reason: string;
|
reason: string | null;
|
||||||
status: string;
|
status: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
reporter_profile?: {
|
reporter_profile?: {
|
||||||
username: string;
|
username: string;
|
||||||
display_name?: string;
|
display_name?: string | null;
|
||||||
};
|
};
|
||||||
reported_content?: ReportedContent;
|
reported_content?: ReportedContent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -277,9 +277,9 @@ export interface UserTopList {
|
|||||||
id: string;
|
id: string;
|
||||||
user_id: string;
|
user_id: string;
|
||||||
title: string;
|
title: string;
|
||||||
description?: string;
|
description?: string | null;
|
||||||
list_type: 'parks' | 'rides' | 'coasters' | 'companies' | 'mixed';
|
list_type: 'parks' | 'rides' | 'coasters' | 'companies' | 'mixed';
|
||||||
is_public: boolean;
|
is_public: boolean | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
items?: UserTopListItem[]; // New relational data
|
items?: UserTopListItem[]; // New relational data
|
||||||
@@ -291,7 +291,7 @@ export interface UserTopListItem {
|
|||||||
entity_type: 'park' | 'ride' | 'company';
|
entity_type: 'park' | 'ride' | 'company';
|
||||||
entity_id: string;
|
entity_id: string;
|
||||||
position: number;
|
position: number;
|
||||||
notes?: string;
|
notes?: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
// Populated via joins
|
// Populated via joins
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ export interface PhotoSubmissionItem {
|
|||||||
photo_submission_id: string;
|
photo_submission_id: string;
|
||||||
cloudflare_image_id: string;
|
cloudflare_image_id: string;
|
||||||
cloudflare_image_url: string;
|
cloudflare_image_url: string;
|
||||||
caption?: string;
|
caption?: string | null;
|
||||||
title?: string;
|
title?: string | null;
|
||||||
filename?: string;
|
filename?: string | null;
|
||||||
order_index: number;
|
order_index: number;
|
||||||
file_size?: number;
|
file_size?: number | null;
|
||||||
mime_type?: string;
|
mime_type?: string | null;
|
||||||
date_taken?: string;
|
date_taken?: string | null;
|
||||||
date_taken_precision?: string;
|
date_taken_precision?: string | null;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ export interface PhotoItem {
|
|||||||
id: string;
|
id: string;
|
||||||
url: string;
|
url: string;
|
||||||
filename: string;
|
filename: string;
|
||||||
caption?: string;
|
caption?: string | null;
|
||||||
size?: number;
|
size?: number;
|
||||||
type?: string;
|
type?: string;
|
||||||
title?: string;
|
title?: string | null;
|
||||||
date_taken?: string;
|
date_taken?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalized photo for consistent display
|
// Normalized photo for consistent display
|
||||||
|
|||||||
Reference in New Issue
Block a user