feat: Implement plan for bug fixes

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 13:27:23 +00:00
parent 827f0f8ea5
commit ce6c9d6866
14 changed files with 94 additions and 59 deletions

View File

@@ -1,4 +1,5 @@
import React, { useState } from 'react';
import { invokeWithTracking } from '@/lib/edgeFunctionTracking';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
@@ -96,9 +97,11 @@ export function UppyPhotoSubmissionUpload({
try {
// Get upload URL from edge function
const { data: uploadData, error: uploadError } = await supabase.functions.invoke('upload-image', {
body: { metadata: { requireSignedURLs: false }, variant: 'public' }
});
const { data: uploadData, error: uploadError } = await invokeWithTracking(
'upload-image',
{ metadata: { requireSignedURLs: false }, variant: 'public' },
user?.id
);
if (uploadError) throw uploadError;