feat: add local mode specific maintenance messages

This commit is contained in:
marko-kraemer 2025-05-20 14:42:41 +02:00
parent 714a70c822
commit aa4358ca0d
1 changed files with 11 additions and 5 deletions

View File

@ -6,6 +6,7 @@ import { checkApiHealth } from '@/lib/api';
import { Button } from '@/components/ui/button'; import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils'; import { cn } from '@/lib/utils';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import { isLocalMode } from '@/lib/config';
export function MaintenancePage() { export function MaintenancePage() {
const [isCheckingHealth, setIsCheckingHealth] = useState(true); const [isCheckingHealth, setIsCheckingHealth] = useState(true);
@ -48,16 +49,21 @@ export function MaintenancePage() {
</h1> </h1>
<p className="text-muted-foreground"> <p className="text-muted-foreground">
We're currently performing maintenance on our systems. Our team is {isLocalMode() ? (
working to get everything back up and running as soon as possible. "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."
)}
</p> </p>
<Alert className="mt-6"> <Alert className="mt-6">
<AlertTitle>Agent Executions Stopped</AlertTitle> <AlertTitle>Agent Executions Stopped</AlertTitle>
<AlertDescription> <AlertDescription>
Any running agent executions have been stopped during maintenance. {isLocalMode() ? (
You'll need to manually continue these executions once the system "The backend server needs to be running for agent executions to work. Please start the backend server and try again."
is back online. ) : (
"Any running agent executions have been stopped during maintenance. You'll need to manually continue these executions once the system is back online."
)}
</AlertDescription> </AlertDescription>
</Alert> </Alert>
</div> </div>