From aa4358ca0d2f7ee2cbc91afb2bd81f500a7a4d7f Mon Sep 17 00:00:00 2001 From: marko-kraemer Date: Tue, 20 May 2025 14:42:41 +0200 Subject: [PATCH] feat: add local mode specific maintenance messages --- .../components/maintenance/maintenance-page.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/maintenance/maintenance-page.tsx b/frontend/src/components/maintenance/maintenance-page.tsx index df107a70..54ade831 100644 --- a/frontend/src/components/maintenance/maintenance-page.tsx +++ b/frontend/src/components/maintenance/maintenance-page.tsx @@ -6,6 +6,7 @@ import { checkApiHealth } from '@/lib/api'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; +import { isLocalMode } from '@/lib/config'; export function MaintenancePage() { const [isCheckingHealth, setIsCheckingHealth] = useState(true); @@ -48,16 +49,21 @@ export function MaintenancePage() {

- We're currently performing maintenance on our systems. Our team is - working to get everything back up and running as soon as possible. + {isLocalMode() ? ( + "The backend server appears to be offline. Please check that your backend server is running." + ) : ( + "We're currently performing maintenance on our systems. Our team is working to get everything back up and running as soon as possible." + )}

Agent Executions Stopped - Any running agent executions have been stopped during maintenance. - You'll need to manually continue these executions once the system - is back online. + {isLocalMode() ? ( + "The backend server needs to be running for agent executions to work. Please start the backend server and try again." + ) : ( + "Any running agent executions have been stopped during maintenance. You'll need to manually continue these executions once the system is back online." + )}