chore: build and UI fixes

This commit is contained in:
2026-02-26 20:58:10 -05:00
parent 34a73f0f94
commit 1f0229461b
10 changed files with 17 additions and 18 deletions

View File

@ -1,6 +1,6 @@
/** analyticsService — stub. Analytics via Supabase can be implemented in v3 */
export const analyticsService = {
logEvent(_event: { event_name: string; properties?: Record<string, any> }) {
logEvent(_event: any) {
// no-op
},
async getDashboardStats() {

View File

@ -26,6 +26,13 @@ export const reportsService = {
if (error) throw new Error(error.message)
},
async sendReport(message: string): Promise<void> {
const { error } = await supabase.from('reports').insert([
{ message, status: 'pending' }
]);
if (error) throw new Error(error.message);
},
async getRoutesReport() {
const { data, error } = await supabase.from('routes').select('*')
if (error) throw new Error(error.message)

View File

@ -1,5 +1,3 @@
import { supabase } from '@/supabase';
/** telemetryService — Previously sent GPS data to the Python backend.
* Now it's a no-op stub since we don't have a custom backend.
* Realtime GPS tracking can be implemented via Supabase Realtime in the future. */