🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(layout): Replace error page with sentry version (#10676)
Michael Fröhlich55c2c7e66f03
diff --git a/web/src/components/error-page.tsx b/web/src/components/error-page.tsxindex 5a546a0f78..a029830a3e 100644--- a/web/src/components/error-page.tsx+++ b/web/src/components/error-page.tsx@@ -63,9 +63,19 @@ export const ErrorPage = ({export const ErrorPageWithSentry = ({title = "Error",message,+ additionalButton,}: {title?: string;message: string;+ additionalButton?:+ | {+ label: string;+ href: string;+ }+ | {+ label: string;+ onClick: () => void;+ };}) => {useEffect(() => {// Capture the error with Sentry@@ -75,5 +85,11 @@ export const ErrorPageWithSentry = ({);}, [title, message]); // Empty dependency array means this effect runs once on mount- return <ErrorPage title={title} message={message} />;+ return (+ <ErrorPage+ title={title}+ message={message}+ additionalButton={additionalButton}+ />+ );};diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex 6dc914a1c6..b5745182aa 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -47,7 +47,7 @@ import {type NavigationItem,} from "@/src/components/layouts/utilities/routes";import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";-import { ErrorPage } from "@/src/components/error-page";+import { ErrorPageWithSentry } from "@/src/components/error-page";const signOutUser = async () => {sessionStorage.clear();@@ -318,7 +318,7 @@ export default function Layout(props: PropsWithChildren) {!userHasProjectAccess) {return (- <ErrorPage+ <ErrorPageWithSentrytitle="Project Not Found"message="The project you are trying to access does not exist or you do not have access to it."additionalButton={{