chore: build and UI fixes
This commit is contained in:
@ -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() {
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user