9e8f1bbeed
Dashboard / frontend (push) Failing after 0s
Dashboard / api (push) Failing after 0s
Lint PowerShell / powershell-lint (ubuntu-latest) (push) Failing after 1s
Python Lint / Lint Python with Ruff (push) Failing after 1s
ShellCheck / Lint shell scripts (push) Failing after 1s
Matrix Smoke / linux-smoke (push) Failing after 1s
Matrix Smoke / distro: cachyos (push) Failing after 15s
Matrix Smoke / distro: linux-mint-21.3 (push) Failing after 15s
Matrix Smoke / distro: debian-12 (push) Failing after 5m21s
Matrix Smoke / distro: fedora-41 (push) Failing after 4m56s
Matrix Smoke / distro: ubuntu-24.04 (push) Failing after 2m13s
Matrix Smoke / distro: rocky-9 (push) Failing after 10m39s
Matrix Smoke / distro: manjaro (push) Failing after 12m11s
Matrix Smoke / distro: opensuse-tw (push) Failing after 11m53s
Matrix Smoke / distro: archlinux (push) Failing after 20m3s
Matrix Smoke / distro: ubuntu-22.04 (push) Failing after 13m49s
Validate .env Schema / tier-1-env-validation (push) Successful in 52s
Validate .env Schema / tier-2-env-validation (push) Successful in 44s
Validate .env Schema / tier-3-env-validation (push) Successful in 52s
Validate .env Schema / tier-4-env-validation (push) Successful in 51s
Validate Extensions Catalog / Check catalog is up-to-date (push) Failing after 9m47s
Secret Scan / Scan for secrets (push) Failing after 21m4s
Validate Docker Compose / Validate Docker Compose files (push) Has been cancelled
Python Type Check / Type check with mypy (push) Has been cancelled
Validate .env Schema / tier-0-env-validation (push) Has been cancelled
Test Linux / integration-smoke (push) Has been cancelled
Lint PowerShell / powershell-lint (windows-latest) (push) Has been cancelled
Matrix Smoke / macos-smoke (push) Has been cancelled
55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
import Button from "../components/Button";
|
|
|
|
interface Props {
|
|
message: string;
|
|
onRetry: () => void;
|
|
}
|
|
|
|
export default function ErrorPage({ message, onRetry }: Props) {
|
|
const copyDiagnostics = () => {
|
|
const info = [
|
|
`Error: ${message}`,
|
|
`Platform: ${navigator.platform}`,
|
|
`Time: ${new Date().toISOString()}`,
|
|
`UserAgent: ${navigator.userAgent}`,
|
|
].join("\n");
|
|
navigator.clipboard.writeText(info);
|
|
};
|
|
|
|
return (
|
|
<div className="flex flex-col items-center justify-center h-full px-8 text-center">
|
|
<div className="w-16 h-16 rounded-full bg-red-500/10 flex items-center justify-center mb-6">
|
|
<span className="text-3xl text-red-400">!</span>
|
|
</div>
|
|
|
|
<h2 className="text-2xl font-bold mb-3">Something Went Wrong</h2>
|
|
|
|
<div className="bg-gray-900 border border-red-900/30 rounded-lg p-4 mb-6 w-full max-w-md">
|
|
<p className="text-sm text-red-300 font-mono whitespace-pre-wrap text-left">
|
|
{message}
|
|
</p>
|
|
</div>
|
|
|
|
<div className="space-y-2 mb-8 text-sm text-gray-500 max-w-md text-left">
|
|
<p>Things to try:</p>
|
|
<ul className="list-disc list-inside space-y-1">
|
|
<li>Make sure Docker Desktop is running</li>
|
|
<li>Check that you have a stable internet connection</li>
|
|
<li>Try running the installer again</li>
|
|
<li>
|
|
If the problem persists, copy the diagnostics below and open an
|
|
issue on GitHub
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div className="flex gap-3">
|
|
<Button variant="ghost" onClick={copyDiagnostics}>
|
|
Copy Diagnostics
|
|
</Button>
|
|
<Button onClick={onRetry}>Try Again</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|