The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Clean up support upload flag (#39550)
Joshen Lim8dc5ee77f339
diff --git a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx b/apps/studio/components/interfaces/Support/AttachmentUpload.tsxindex a1713ff2218..d875d3ee46c 100644--- a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx+++ b/apps/studio/components/interfaces/Support/AttachmentUpload.tsx@@ -12,7 +12,6 @@ import {import { toast } from 'sonner'// End of third-party imports-import { useFlag } from 'common'import { useGenerateAttachmentURLsMutation } from 'data/support/generate-attachment-urls-mutation'import { uuidv4 } from 'lib/helpers'import { useProfile } from 'lib/profile'@@ -143,19 +142,6 @@ export function AttachmentUploadDisplay({removeFileUpload,}: AttachmentUploadDisplayProps) {const { profile } = useProfile()- const enableUploads = useFlag('supportFormAttachments')-- if (!enableUploads) {- return (- <div>- <h3 className="text-sm text-foreground">Attachments</h3>- <p className="text-sm text-foreground-lighter mt-2">- Uploads are temporarily disabled. Please reply to the acknowledgement email you will- receive with any screenshots you'd like to upload.- </p>- </div>- )- }if (!profile) {return (diff --git a/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx b/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsxindex 4daa0e2e14c..69e55cd24cd 100644--- a/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx+++ b/apps/studio/components/interfaces/Support/__tests__/SupportFormPage.test.tsx@@ -93,7 +93,6 @@ vi.mock(import('common'), async (importOriginal) => {})return {...actual,- useFlag: vi.fn().mockReturnValue(true),useParams: vi.fn().mockReturnValue({ ref: 'default' }),useIsLoggedIn: vi.fn().mockReturnValue(true),isFeatureEnabled: vi.fn((feature: any, disabledFeatures: any) => {