Add sightings page + report form, fix stream API mapping, add nav link

This commit is contained in:
BizzleBot
2026-02-19 18:11:37 +00:00
parent 86ce153ad2
commit 857f5a2396
4 changed files with 268 additions and 0 deletions
+13
View File
@@ -60,6 +60,18 @@ export interface Event {
capacity?: number;
}
export interface Sighting {
id: string;
species: string;
gps_lat: number;
gps_lng: number;
photo_url?: string;
description: string;
verified: boolean;
created_at: string;
reporter?: { id: string; name: string };
}
export interface Burrow {
id: string;
lat: number;
@@ -81,4 +93,5 @@ export const api = {
body: JSON.stringify({ email }),
}),
getBurrows: () => apiFetch<Burrow[]>('/api/burrows'),
getSightings: () => apiFetch<Sighting[]>('/api/sightings'),
};