The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add db inspect docs link (#23268)
Joshen Limc304ce537fbc
diff --git a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsxindex 119c064c91c..40a7734b856 100644--- a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx+++ b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx@@ -1,16 +1,24 @@-import { Button } from 'ui'+import { Button, cn } from 'ui'import { Markdown } from '../Markdown'interface LinterPageFooterProps {isLoading: booleanisRefetching: booleanrefetch: () => void+ hideDbInspectCTA?: boolean}-const LinterPageFooter = ({ isLoading, isRefetching, refetch }: LinterPageFooterProps) => {+const LinterPageFooter = ({+ isLoading,+ isRefetching,+ refetch,+ hideDbInspectCTA,+}: LinterPageFooterProps) => {return (<div className="px-6 py-6 flex gap-x-4 border-t ">- <div className="w-[35%] flex flex-col gap-y-1 text-sm">+ <div+ className={cn(hideDbInspectCTA ? 'w-[35%]' : 'w-[33%]', 'flex flex-col gap-y-1 text-sm')}+ ><p>Reset suggestions</p><p className="text-xs text-foreground-light">Consider resetting the analysis making any changes@@ -26,13 +34,27 @@ const LinterPageFooter = ({ isLoading, isRefetching, refetch }: LinterPageFooterRerun linter</Button></div>- <div className="w-[35%] flex flex-col gap-y-1 text-sm">++ <div+ className={cn(hideDbInspectCTA ? 'w-[35%]' : 'w-[33%]', 'flex flex-col gap-y-1 text-sm')}+ ><p>How are these suggestions generated?</p><MarkdownclassName="text-xs"content="These suggestions use [splinter (Supabase Postgres LINTER)](https://github.com/supabase/splinter)."/></div>++ {!hideDbInspectCTA && (+ <div className="w-[33%] flex flex-col gap-y-1 text-sm">+ <p>Inspect your database for potential issues</p>+ <Markdown+ className="text-xs"+ content="The Supabase CLI comes with a range of tools to help inspect your Postgres instances for+ potential issues. [Learn more here](https://supabase.com/docs/guides/database/inspect)."+ />+ </div>+ )}</div>)}diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsxindex b6b8c845417..43ff5bfcb85 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx@@ -27,7 +27,7 @@ import { QueryPerformanceFilterBar } from './QueryPerformanceFilterBar'import { QueryPerformanceGrid } from './QueryPerformanceGrid'import { useLocalStorageQuery } from 'hooks'import { LOCAL_STORAGE_KEYS } from 'lib/constants'-import { X } from 'lucide-react'+import { ExternalLink, X } from 'lucide-react'interface QueryPerformanceProps {queryHitRate: PresetHookResult@@ -194,7 +194,7 @@ export const QueryPerformance = ({><X size="14" /></Button>- <div className="w-[35%] flex flex-col gap-y-1 text-sm">+ <div className="w-[33%] flex flex-col gap-y-1 text-sm"><p>Reset report</p><p className="text-xs text-foreground-light">Consider resetting the analysis after optimizing any queries@@ -207,13 +207,23 @@ export const QueryPerformance = ({Reset report</Button></div>- <div className="w-[35%] flex flex-col gap-y-1 text-sm">++ <div className="w-[33%] flex flex-col gap-y-1 text-sm"><p>How is this report generated?</p><MarkdownclassName="text-xs"content="This report uses the pg_stat_statements table, and pg_stat_statements extension. [Learn more here](https://supabase.com/docs/guides/platform/performance#examining-query-performance)."/></div>++ <div className="w-[33%] flex flex-col gap-y-1 text-sm">+ <p>Inspect your database for potential issues</p>+ <Markdown+ className="text-xs"+ content="The Supabase CLI comes with a range of tools to help inspect your Postgres instances for+ potential issues. [Learn more here](https://supabase.com/docs/guides/database/inspect)."+ />+ </div></div><ConfirmModaldiff --git a/apps/studio/pages/project/[ref]/database/security-advisor.tsx b/apps/studio/pages/project/[ref]/database/security-advisor.tsxindex d6ef70b6c49..da4641b7686 100644--- a/apps/studio/pages/project/[ref]/database/security-advisor.tsx+++ b/apps/studio/pages/project/[ref]/database/security-advisor.tsx@@ -146,7 +146,12 @@ const ProjectLints: NextPageWithLayout = () => {setSelectedLint={setSelectedLint}isLoading={isLoading}/>- <LinterPageFooter isLoading={isLoading} isRefetching={isRefetching} refetch={refetch} />+ <LinterPageFooter+ hideDbInspectCTA+ isLoading={isLoading}+ isRefetching={isRefetching}+ refetch={refetch}+ /></div>)}