The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): fix and filter Sentry issues (#44401)
Ali Waseem636dcaa264a7
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsxindex 8a661a21b4f..4cfb450546a 100644--- a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx+++ b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx@@ -59,7 +59,10 @@ function filterGroupToFilters(group: FilterGroup): Filter[] {// Custom date picker component for the FilterBarfunction DatePickerOption({ onChange, onCancel, search }: CustomOptionProps) {- const [date, setDate] = useState<Date | undefined>(search ? new Date(search) : undefined)+ const parsed = search ? new Date(search) : undefined+ const [date, setDate] = useState<Date | undefined>(+ parsed && !isNaN(parsed.getTime()) ? parsed : undefined+ )return (<div className="w-[300px] space-y-4">diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsxindex 7086d365765..9b72003c60a 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/UpgradeWarnings.tsx@@ -28,7 +28,7 @@ export const ReadReplicasWarning = ({ latestPgVersion }: { latestPgVersion: striconst getValidationErrorTitle = (error: ProjectUpgradeEligibilityValidationError): string => {switch (error.type) {case 'objects_depending_on_pg_cron':- return error.dependents.join(', ')+ return (error.dependents ?? []).join(', ') || 'Objects depending on pg_cron'case 'indexes_referencing_ll_to_earth':return `${error.schema_name}.${error.index_name}`case 'function_using_obsolete_lang':diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsxindex caba6b290f1..f422a201a50 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx@@ -108,7 +108,7 @@ export const JsonEditor = ({useEffect(() => {if (visible) {- const temp = prettifyJSON(jsonString)+ const temp = prettifyJSON(jsonString ?? '')setJsonStr(temp)}}, [visible])@@ -174,7 +174,7 @@ export const JsonEditor = ({key={jsonString}readOnly={readOnly}onInputChange={(val) => setJsonStr(val ?? '')}- value={jsonStr.toString()}+ value={(jsonStr ?? '').toString()}/></div>) : (diff --git a/apps/studio/instrumentation-client.ts b/apps/studio/instrumentation-client.tsindex eda73e22c59..61de60dd544 100644--- a/apps/studio/instrumentation-client.ts+++ b/apps/studio/instrumentation-client.ts@@ -268,6 +268,7 @@ Sentry.init({// === Browser extensions & Google Translate DOM manipulation ==='Node.insertBefore: Child to insert before is not a child of this node',+ 'Node.removeChild: The node to be removed is not a child of this node',"NotFoundError: Failed to execute 'removeChild' on 'Node'","NotFoundError: Failed to execute 'insertBefore' on 'Node'",'NotFoundError: The object can not be found here.',@@ -279,6 +280,7 @@ Sentry.init({// === Non-Error throws (extensions, third-party libs throwing strings/objects) ==='Non-Error exception captured','Non-Error promise rejection captured',+ /^Object captured as exception with keys:/,// === Cross-origin script errors (no useful info) ==='Script error.',@@ -293,6 +295,11 @@ Sentry.init({// === Web crawler / bot errors ==='instantSearchSDKJSBridgeClearHighlight',+ // === Third-party library race conditions ===+ // cmdk: useSyncExternalStore subscribe called before store context is available+ "Cannot read properties of undefined (reading 'subscribe')",+ "undefined is not an object (evaluating 't.subscribe')",+// === Misc known noise ==='r.default.setDefaultLevel is not a function',// Clipboard permission denied