From f10bb0d4318814c53d6ee1d791e925e10f5ff026 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 12 Aug 2026 18:32:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88(frontend)=20downgrade=20unreachabl?= =?UTF-8?q?e=20external=20home=20URL=20from=20error=20to=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "unreachable external home URL" check was reporting failures as errors. In practice, it fired a lot for users behind corporate networks that cannot reach our public landing page, which is expected behavior and not something to investigate. Capture it as a regular telemetry event instead of an error, so it still gives us visibility on the frequency of the case without polluting error dashboards. --- CHANGELOG.md | 4 ++++ src/frontend/src/features/home/routes/Home.tsx | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 404e8084..418f190f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [Unreleased] +### Fixed + +- 📈(frontend) downgrade unreachable external home URL from error to event + ## [1.26.0] - 2026-08-12 ### Added diff --git a/src/frontend/src/features/home/routes/Home.tsx b/src/frontend/src/features/home/routes/Home.tsx index f9f11752..3293c574 100644 --- a/src/frontend/src/features/home/routes/Home.tsx +++ b/src/frontend/src/features/home/routes/Home.tsx @@ -15,7 +15,7 @@ import { css } from '@/styled-system/css' import { useConfig } from '@/api/useConfig' import { LoginButton } from '@/components/LoginButton' import { LoadingScreen } from '@/components/LoadingScreen' -import { reportError } from '@/features/analytics/telemetry' +import { captureEvent } from '@/features/analytics/telemetry' const Columns = ({ children }: { children?: ReactNode }) => { return ( @@ -161,8 +161,10 @@ const Home = () => { window.location.replace(data.external_home_url) } catch (error) { setRedirectFailed(true) - reportError('generic_failure', error, { - context: 'Site is not reachable:', + captureEvent('external-home-unreachable', { + error_name: error instanceof Error ? error.name : 'Unknown', + error_message: + error instanceof Error ? error.message : String(error), }) } }