Polish module actions and marketplace updates
This commit is contained in:
@@ -4,7 +4,8 @@ import { apiRequest } from '../../lib/api-client';
|
||||
import { z } from 'zod';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '../../components/ui/card';
|
||||
import { Badge } from '../../components/ui/badge';
|
||||
import { ErrorState, Spinner } from '../../components/ui/states';
|
||||
import { Button } from '../../components/ui/button';
|
||||
import { EmptyState, ErrorState, Spinner } from '../../components/ui/states';
|
||||
|
||||
/** Erweiterter Systemstatus (API-Vertrag /api/v1/system/status). */
|
||||
const systemStatusSchema = z.object({
|
||||
@@ -57,10 +58,9 @@ export function SystemStatusPage(): ReactNode {
|
||||
<CardHeader><CardTitle>Gesamtstatus</CardTitle></CardHeader>
|
||||
<CardContent>
|
||||
{statusQuery.isLoading && <Spinner />}
|
||||
{statusQuery.isError && (
|
||||
<ErrorState message="Der Systemstatus ist nicht erreichbar." />
|
||||
)}
|
||||
{statusQuery.data && (
|
||||
{statusQuery.isError && <ErrorState title="Systemstatus nicht erreichbar" message="Prüfe die Verbindung und versuche es erneut." action={<Button variant="secondary" onClick={() => void statusQuery.refetch()}>Erneut versuchen</Button>} />}
|
||||
{statusQuery.data && statusQuery.data.components.length === 0 && <EmptyState title="Keine Komponenten gemeldet" description="Sobald Plattformdienste registriert sind, erscheinen sie hier." />}
|
||||
{statusQuery.data && statusQuery.data.components.length > 0 && (
|
||||
<div className="flex items-center gap-3">
|
||||
<Badge
|
||||
variant={
|
||||
|
||||
Reference in New Issue
Block a user