diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx index 95dedbc237f..141a59d0c41 100644 --- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx @@ -18,6 +18,7 @@ import { useQueryPerformanceQuery } from '../Reports/Reports.queries' import { PresetHookResult } from '../Reports/Reports.utils' import { QueryPerformanceFilterBar } from './QueryPerformanceFilterBar' import { QueryPerformanceGrid } from './QueryPerformanceGrid' +import { QueryPerformanceGlance } from './QueryPerformanceGlance' interface QueryPerformanceProps { queryHitRate: PresetHookResult @@ -66,7 +67,7 @@ export const QueryPerformance = ({ return ( <> -
stats
+ { + const cards = useMemo(() => { + return [ + { + icon: , + title: 'Queries', + values: [ + { + label: 'Most time consuming', + value: 'here', + }, + { + label: 'Slow queries', + value: 'here', + }, + ], + }, + { + icon: , + title: 'Calls', + values: [ + { + label: 'Unique', + value: 'here', + }, + { + label: 'Unique', + value: 'here', + }, + ], + }, + { + icon: , + title: 'Cache hits', + values: [ + { + label: 'Hits', + value: 'here', + }, + { + label: 'Misses', + value: 'here', + }, + ], + }, + ] + }, []) + return ( +
+
+ {cards.map((card, index) => ( + + +
+ {card.icon} + + {card.title} + +
+
+ {card.values.map((value, index) => ( +
+ + {value.label}{' '} + + {value.value} +
+ ))} +
+
+
+ ))} +
+
+ ) +}