The merge lands Step 7 of FN-3398, adding documentation and delivery artifacts across the mobile and desktop packages with updated READMEs, mobile-specific docs, and architecture references. Fusion-Task-Id: FN-3398
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
interface BackendConnectionErrorPageProps {
|
|
errorMessage: string;
|
|
isRetrying: boolean;
|
|
onRetry: () => void;
|
|
onManageConnection?: () => void;
|
|
}
|
|
|
|
export function BackendConnectionErrorPage({
|
|
errorMessage,
|
|
isRetrying,
|
|
onRetry,
|
|
onManageConnection,
|
|
}: BackendConnectionErrorPageProps) {
|
|
return (
|
|
<div className="project-overview-empty" role="alert" aria-live="polite">
|
|
<h2>Can't reach the Fusion backend</h2>
|
|
<p className="settings-muted">
|
|
Fusion couldn't load your projects right now. Please make sure the backend is running and try again.
|
|
</p>
|
|
<p className="settings-muted">Error: {errorMessage}</p>
|
|
<div className="modal-actions">
|
|
<button type="button" className="btn btn-primary" onClick={onRetry} disabled={isRetrying}>
|
|
{isRetrying ? "Retrying…" : "Retry Connection"}
|
|
</button>
|
|
{onManageConnection && (
|
|
<button type="button" className="btn" onClick={onManageConnection}>
|
|
Manage Connection
|
|
</button>
|
|
)}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|