Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Small fixes

Joshen Lim37ee288476cc
diff --git a/studio/components/interfaces/Functions/CommandRender.tsx b/studio/components/interfaces/Functions/CommandRender.tsx
index 3c213495df7..bd7a842cd9e 100644
--- a/studio/components/interfaces/Functions/CommandRender.tsx
+++ b/studio/components/interfaces/Functions/CommandRender.tsx
@@ -4,10 +4,10 @@ import { useState } from 'react'
const CommandRender = ({ commands }: any) => {
return (
<div className="space-y-4">
- {commands.map((item: any) => {
+ {commands.map((item: any, idx: number) => {
const [isCopied, setIsCopied] = useState(false)
return (
- <div className="space-y-1">
+ <div key={`command-${idx}`} className="space-y-1">
<span className="font-mono text-sm text-scale-900">{`> ${item.comment}`}</span>
<div className="flex items-center gap-2">
<div className="flex gap-2 text-scale-1200 font-mono text-sm font-normal">
diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsx
index 14d830aac29..d82aeae034d 100644
--- a/studio/components/layouts/BillingLayout.tsx
+++ b/studio/components/layouts/BillingLayout.tsx
@@ -17,14 +17,14 @@ const BillingLayout: FC<Props> = ({ children }) => {
<BaseLayout hideHeader hideIconBar>
<div className="flex h-full w-full flex-col">
{/* Header */}
- <div className="dark:border-dark flex items-center space-x-3 border-b py-4 px-5">
+ <div className="dark:border-dark flex items-center space-x-4 border-b py-4 px-5">
<Link href={`/project/${ui.selectedProject?.ref}/settings/billing`} passHref>
<a className="text-scale-900 hover:text-scale-1200 transition-colors">
<IconX size={16} strokeWidth={1.5} />
</a>
</Link>
<div className="flex items-center space-x-6">
- <h1 className="text-scale-1200 text-base">Customize your plan</h1>
+ <h1 className="text-scale-1200 text-sm">Customize your plan</h1>
<div className="bg-scale-600 h-6 w-px"></div>
<div className="flex items-center space-x-3">
<p className="text-scale-1100 text-sm">{ui.selectedOrganization?.name}</p>
diff --git a/studio/components/to-be-cleaned/Docs/Description.js b/studio/components/to-be-cleaned/Docs/Description.js
index a6258425d14..e1e680434c4 100644
--- a/studio/components/to-be-cleaned/Docs/Description.js
+++ b/studio/components/to-be-cleaned/Docs/Description.js
@@ -44,8 +44,8 @@ export default function Description({ content, metadata, onChange = () => {} })
let query = ''
let description = value.replaceAll("'", "''")
if (table && column)
- query = `comment on column public.${table}.${column} is '${description}';`
- if (table && !column) query = `comment on table public.${table} is '${description}';`
+ query = `comment on column public."${table}"."${column}" is '${description}';`
+ if (table && !column) query = `comment on table public."${table}" is '${description}';`
if (rpc) query = `comment on function ${rpc} is '${description}';`
if (query) {
diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsx
index 1a04c006b55..02039f27d6e 100644
--- a/studio/pages/project/[ref]/settings/api.tsx
+++ b/studio/pages/project/[ref]/settings/api.tsx
@@ -545,14 +545,10 @@ const PostgrestConfig = observer(({ config, projectRef }: any) => {
}
emptyMessage={
<>
- <Typography.Text className="mb-2">
- <IconAlertCircle />
- </Typography.Text>
- <Typography.Text>No schema available to choose</Typography.Text>
- <div>
- <Typography.Text small className="opacity-50">
- New schema you create will appear here
- </Typography.Text>
+ <IconAlertCircle strokeWidth={2} />
+ <div className="mt-2 flex flex-col text-center">
+ <p className="text-sm align-center">No schema available to choose</p>
+ <p className="text-xs opacity-50">New schemas you create will appear here</p>
</div>
</>
}