+ There are unsaved changes. Are you sure you want to close the panel? Your changes will be + lost. +
+{item.name}
-{item.name}
{dayjs(item.updated_at).fromNow()}
+
Query's performance can be improved by{' '}
{improvement.toFixed(2)}% by creating this{' '}
{indexStatements.length > 1 ? 'indexes' : 'index'}:
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
index 3c68de3b599..036b2bfb867 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
@@ -124,9 +124,9 @@ export const QueryIndexes = ({ selectedRow }: QueryIndexesProps) => {
return (
Indexes in use
This query is using the following index{(usedIndexes ?? []).length > 1 ? 's' : ''}:
New index recommendations
+
This recommendation serves to prevent your queries from slowing down as your
application grows, and hence the index may not be used immediately after
- it's created. (e.g If your table is still small at this time)
+ it's created (e.g If your table is still small at this time).
Query costs FAQ
This chart is available from{' '}
- {!!report.availableIn?.length ? report.availableIn[0] : 'Pro'}
+ {Array.isArray(report.availableIn) && report.availableIn.length > 0
+ ? report.availableIn[0]
+ : 'Pro'}
{' '}
plan and above
View table Query in SQL Editor Stop replication Start replication
+ Data within the "{table.name}" table will stop replicating. However do note that,
+ restarting replication on the table will clear and re-sync all data in it. Are you sure?
+
+ Restarting replication on the "{table.name}" table will clear and re-sync all data in it.
+ Are you sure?
+ View table Query in SQL Editor View replication status Delete table {sourceType === 'direct' ? 'Analytics' : 'Postgres'} schema {sourceType === 'direct' ? 'Analytics' : 'Postgres'} schema Postgres schema{tables.length === 0 && ' that will be created'} {scanTooltip} {scanTooltip}
+ Connecting {tablesToPoll.length} table{tablesToPoll.length > 1 ? 's' : ''}
+
- {data.title}{' '}
-
- {daysFromNow > 1 ? formattedInsertedAt : formattedTimeFromNow}
-
-
- Not all projects are shown here. Try searching to find a specific project.
- Notifications
- {activeTab === 'archived'
- ? `No archived notifications${
- snap.numFiltersApplied > 0
- ? ` based on the ${snap.numFiltersApplied} filter${
- snap.numFiltersApplied > 1 ? 's' : ''
- } applied`
- : ''
- }`
- : snap.numFiltersApplied > 0
- ? `No notifications based on the ${snap.numFiltersApplied} filter${
- snap.numFiltersApplied > 1 ? 's' : ''
- } applied`
- : 'All caught up'}
-
- {activeTab === 'archived'
- ? 'Notifications that you have previously archived will be shown here'
- : 'You will be notified here for any notices on your organizations and projects'}
-
@@ -218,118 +295,40 @@ export const AdvisorPanel = () => {
>
) : (
<>
- Please try again later. Project required
+ Select a project to view security and performance advisories
+ Please try again later.Indexes in use
New index recommendations
{isLoadingExtensions ? (
Query costs
+ FAQ
-
Error loading advisories
- Error loading advisories
+ Context
+ Message
+ Actions
+