mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 01:40:13 -04:00
e21088144d
<img width="1575" height="1134" alt="image" src="https://github.com/user-attachments/assets/994b1113-717f-44a2-89a4-13bc0182db20" /> Attempts to improve our edge function overview pages to provide stronger insights into the health of a function, including reliability (error rates), performance (execution times) and usage (cpu and memory). As part of this work it refactors existing charts to use our new chart components. main consideration is the collective performance of error queries https://github.com/supabase/supabase/pull/44009/changes#diff-2a79cf61c5397a8ef363c333229fa7729a2efc90a4d8e0806e49c212d5aa97e7 ## To test: 1. Create an edge function that errors out randomly across requests. You can use cron to poll this function every second. 2. View the edge function and on the overview page confirm that errors are showing and grouped correctly in recent failed invocations sections. --------- Co-authored-by: Ali Waseem <waseema393@gmail.com>
21 lines
479 B
TypeScript
21 lines
479 B
TypeScript
import { BarChart2 } from 'lucide-react'
|
|
import { ChartEmptyState } from 'ui-patterns/Chart'
|
|
|
|
interface EdgeFunctionChartEmptyStateProps {
|
|
title: string
|
|
description?: string
|
|
}
|
|
|
|
export const EdgeFunctionChartEmptyState = ({
|
|
title,
|
|
description,
|
|
}: EdgeFunctionChartEmptyStateProps) => {
|
|
return (
|
|
<ChartEmptyState
|
|
icon={<BarChart2 size={16} />}
|
|
title={title}
|
|
description={description ?? 'It may take up to 24 hours for data to refresh'}
|
|
/>
|
|
)
|
|
}
|