The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
adjusted search bar to be in panel, as in mockup
TzeYiing981aaed26af7
diff --git a/studio/components/ui/Logs/LogPanel.tsx b/studio/components/ui/Logs/LogPanel.tsxindex 74cdf4ed08e..f8ba4b12c7e 100644--- a/studio/components/ui/Logs/LogPanel.tsx+++ b/studio/components/ui/Logs/LogPanel.tsx@@ -1,9 +1,10 @@import React from 'react'-import { Button } from '@supabase/ui'+import { Button, Input } from '@supabase/ui'import Panel from 'components/to-be-cleaned/Panel'interface Props {onRefresh?: () => void+ onSearch?: (query: string) => voidisLoading: booleanchildren?: JSX.Elementheading?: JSX.Element@@ -12,15 +13,16 @@ interface Props {/*** Logs control panel header + wrapper*/-const LogPanel = ({ onRefresh, isLoading, heading, children }: Props) => (+const LogPanel = ({ onRefresh, isLoading, heading, children, onSearch }: Props) => (<Panel- noMargintitle={<divclassName="flex items-center justify-between w-full"><Button type="secondary">Recent - All</Button>- <div>+ <div className="flex flex-row gap-x-4">++ <Input className="max-w-32" placeholder="Search" onChange={e => onSearch ? onSearch(e.target.value) : null} /><Buttontype="outline"loading={isLoading}diff --git a/studio/pages/project/[ref]/settings/logs/[type].tsx b/studio/pages/project/[ref]/settings/logs/[type].tsxindex 1d3fe76fc8b..7ad605a0ca2 100644--- a/studio/pages/project/[ref]/settings/logs/[type].tsx+++ b/studio/pages/project/[ref]/settings/logs/[type].tsx@@ -36,11 +36,7 @@ const LogPage = () => {}) : logDatareturn (<SettingsLayout title={title} className="p-4">- <LogPanel isLoading={isLoading} onRefresh={() => mutate()} />-- <div className="flex flex-row justify-end p-4">- <Input className="max-w-32" placeholder="Search" onChange={e => setSearchQuery(e.target.value)} value={searchQuery} />- </div>+ <LogPanel isLoading={isLoading} onRefresh={() => mutate()} onSearch={setSearchQuery}/>{error && (<Typography.Text className="text-center w-full block">Could not fetch data</Typography.Text>)}<LogTable data={filteredData} /></SettingsLayout>