The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): label omitted worker runtime as custom FE-4314 (#49757)
Jordi Enric537f09be0f3e
diff --git a/apps/studio/components/interfaces/Workers/Workers.utils.test.ts b/apps/studio/components/interfaces/Workers/Workers.utils.test.tsindex da791ba0349..735d86fe26c 100644--- a/apps/studio/components/interfaces/Workers/Workers.utils.test.ts+++ b/apps/studio/components/interfaces/Workers/Workers.utils.test.ts@@ -112,8 +112,8 @@ describe('formatRuntime', () => {expect(formatRuntime('rust')).toBe('rust')})- it('reports unknown when the API omits the runtime', () => {- expect(formatRuntime(undefined)).toBe('Unknown')+ it('labels an omitted runtime as custom', () => {+ expect(formatRuntime(undefined)).toBe('Custom')})})diff --git a/apps/studio/components/interfaces/Workers/Workers.utils.ts b/apps/studio/components/interfaces/Workers/Workers.utils.tsindex ddbcae1ee20..11678149636 100644--- a/apps/studio/components/interfaces/Workers/Workers.utils.ts+++ b/apps/studio/components/interfaces/Workers/Workers.utils.ts@@ -42,7 +42,7 @@ export const getRuntimeMeta = (runtime: string | undefined): RuntimeMeta | undefruntime === undefined ? undefined : RUNTIMES[runtime]export const formatRuntime = (runtime: string | undefined): string =>- getRuntimeMeta(runtime)?.label ?? runtime ?? 'Unknown'+ getRuntimeMeta(runtime)?.label ?? runtime ?? 'Custom'// The API reports size as e.g. "2gb-1vcpu"; render the parts when they parse, the raw value if not.export const formatSize = (size: string): string => {