The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
description added and templates not in alphabetical order
Ollie Hallidayf66af8bc5bcd
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.tsindex d3a6d2de484..85dc9ba6f89 100644--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts@@ -163,6 +163,7 @@ limit 100},{label: 'Error Count by User',+ description: 'Count of errors by users',mode: 'custom',searchString: `selectcount(t.timestamp) as count,diff --git a/studio/pages/project/[ref]/logs-explorer/templates.tsx b/studio/pages/project/[ref]/logs-explorer/templates.tsxindex e52d487cfd0..2f1df95616f 100644--- a/studio/pages/project/[ref]/logs-explorer/templates.tsx+++ b/studio/pages/project/[ref]/logs-explorer/templates.tsx@@ -14,59 +14,61 @@ export const LogsTemplatesPage: NextPageWithLayout = () => {return (<div><div className="grid grid-cols-3 gap-6">- {TEMPLATES.filter((template) => template.mode === 'custom').map((template, i) => {- const [showPreview, setShowPreview] = useState(false)- return (- <CardButton- key={i}- title={template.label}- icon={- <div- className="duration-400 flex h-6 w-6 items-center justify-center rounded+ {TEMPLATES.sort((a, b) => a.label!.localeCompare(b.label!))+ .filter((template) => template.mode === 'custom')+ .map((template, i) => {+ const [showPreview, setShowPreview] = useState(false)+ return (+ <CardButton+ key={i}+ title={template.label}+ icon={+ <div+ className="duration-400 flex h-6 w-6 items-center justify-center roundedbg-scale-1200text-scale-100transition-colorsgroup-hover:bg-brand-900group-hover:text-brand-1200"- >- <div className="scale-100 group-hover:scale-110">- <IconCode size={12} strokeWidth={2} />- </div>- </div>- }- containerHeightClassName="h-40"- linkHref={`/project/${ref}/logs-explorer?q=${encodeURI(template.searchString)}`}- description={template.description}- footer={- <div className="flex flex-row justify-end">- <Popover- onOpenChange={setShowPreview}- open={showPreview}- className="rounded-lg bg-scale-100"- size="content"- overlay={- <pre className="whitespace-pre-line break-words rounded-lg bg-scale-100 p-4 text-sm">- {template.searchString}- </pre>- }>- <Button- type="default"- as="span"- onClick={(e) => {- e.preventDefault()- setShowPreview(!showPreview)- }}+ <div className="scale-100 group-hover:scale-110">+ <IconCode size={12} strokeWidth={2} />+ </div>+ </div>+ }+ containerHeightClassName="h-40"+ linkHref={`/project/${ref}/logs-explorer?q=${encodeURI(template.searchString)}`}+ description={template.description}+ footer={+ <div className="flex flex-row justify-end">+ <Popover+ onOpenChange={setShowPreview}+ open={showPreview}+ className="rounded-lg bg-scale-100"+ size="content"+ overlay={+ <pre className="whitespace-pre-line break-words rounded-lg bg-scale-100 p-4 text-sm">+ {template.searchString}+ </pre>+ }>- Preview- </Button>- </Popover>- </div>- }- />- )- })}+ <Button+ type="default"+ as="span"+ onClick={(e) => {+ e.preventDefault()+ setShowPreview(!showPreview)+ }}+ >+ Preview+ </Button>+ </Popover>+ </div>+ }+ />+ )+ })}</div></div>)