The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/minor fix in events telemetry (#29810)
Joshen Lim6fd686b29617
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsxindex 50a7f86fe1d..692f0ef8af2 100644--- a/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx+++ b/apps/studio/components/interfaces/BranchManagement/BranchStatusBadge.tsx@@ -37,6 +37,7 @@ const STATUS_TO_LABEL: Record<Status, string> = {REMOVED: 'Removed',RESTORING: 'Restoring',UPGRADING: 'Upgrading',+ RESIZING: 'Resizing',CREATING_PROJECT: 'Creating project',RUNNING_MIGRATIONS: 'Running migrations',MIGRATIONS_FAILED: 'Migrations failed',diff --git a/apps/studio/data/telemetry/send-event-mutation.ts b/apps/studio/data/telemetry/send-event-mutation.tsindex 3324df9bde3..6fda99f2f3a 100644--- a/apps/studio/data/telemetry/send-event-mutation.ts+++ b/apps/studio/data/telemetry/send-event-mutation.ts@@ -1,4 +1,5 @@import { useMutation, UseMutationOptions } from '@tanstack/react-query'+import { components } from 'api-types'import { isBrowser } from 'common'import { handleError, post } from 'data/fetchers'@@ -7,35 +8,8 @@ import { LOCAL_STORAGE_KEYS } from 'lib/constants'import { useRouter } from 'next/router'import type { ResponseError } from 'types'-type SendEventGA = {- action: string- category: string- label: string- value: string- page_referrer: string- page_title: string- page_location: string- ga: {- screen_resolution: string- language: string- }-}--type SendEventPH = {- action: string- page_url: string- page_title: string- pathname: string- ph: {- language: string- referrer: string- userAgent: string- search: string- viewport_height: number- viewport_width: number- }- custom_properties: { [key: string]: string }-}+type SendEventGA = components['schemas']['TelemetryEventBody']+type SendEventPH = components['schemas']['TelemetryEventBodyV2']export type SendEventVariables = {action: string@@ -87,7 +61,7 @@ export const useSendEventMutation = ({ph: {referrer,language: router?.locale ?? 'en-US',- userAgent: navigator.userAgent,+ user_agent: navigator.userAgent,search: window.location.search,viewport_height: isBrowser ? window.innerHeight : 0,viewport_width: isBrowser ? window.innerWidth : 0,@@ -113,7 +87,7 @@ export const useSendEventMutation = ({action,...(payload as Omit<SendEventPH, 'action'>),custom_properties: otherVars,- } as SendEventPH)+ } as unknown as SendEventPH): ({ ...vars, ...payload } as SendEventGA)return sendEvent(type, body)},diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 1c57c882648..63adaeaa462 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -2635,6 +2635,7 @@ export interface components {| 'RESTORING'| 'RESTORE_FAILED'| 'PAUSE_FAILED'+ | 'RESIZING'}BranchResetResponse: {message: string@@ -3112,6 +3113,8 @@ export interface components {| 'UPGRADING'| 'INIT_READ_REPLICA'| 'INIT_READ_REPLICA_FAILED'+ | 'RESTARTING'+ | 'RESIZING'}DatabaseStatusResponse: {identifier: string@@ -3129,6 +3132,8 @@ export interface components {| 'UPGRADING'| 'INIT_READ_REPLICA'| 'INIT_READ_REPLICA_FAILED'+ | 'RESTARTING'+ | 'RESIZING'}DatabaseUpgradeStatus: {/** @enum {string} */@@ -4157,6 +4162,7 @@ export interface components {| 'RESTORING'| 'RESTORE_FAILED'| 'PAUSE_FAILED'+ | 'RESIZING'/*** @description Supabase organization id* @example fly_123456789@@ -4699,6 +4705,7 @@ export interface components {| 'RESTORING'| 'RESTORE_FAILED'| 'PAUSE_FAILED'+ | 'RESIZING'subscription_id: stringv2MaintenanceWindow: {end?: string@@ -4938,6 +4945,8 @@ export interface components {| 'UPGRADING'| 'INIT_READ_REPLICA'| 'INIT_READ_REPLICA_FAILED'+ | 'RESTARTING'+ | 'RESIZING'}ResetPasswordBody: {email: string@@ -5062,6 +5071,7 @@ export interface components {| 'RESTORING'| 'RESTORE_FAILED'| 'PAUSE_FAILED'+ | 'RESIZING'/*** @description Supabase organization id* @example fly_123456789@@ -6198,6 +6208,7 @@ export interface components {max_wal_senders?: numbermax_wal_size?: stringmax_worker_processes?: number+ restart_database?: boolean/** @enum {string} */session_replication_role?: 'origin' | 'replica' | 'local'shared_buffers?: string@@ -6637,6 +6648,7 @@ export interface components {| 'RESTORING'| 'RESTORE_FAILED'| 'PAUSE_FAILED'+ | 'RESIZING'}V1RestorePitrBody: {recovery_time_target_unix: number