2026-01-27 08:24:22 +00:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-05-10 14:04:40 +00:00
|
|
|
import { useTheme } from "next-themes";
|
2025-09-30 10:01:00 +00:00
|
|
|
import { Button } from "@plane/propel/button";
|
2024-05-10 14:04:40 +00:00
|
|
|
// assets
|
2025-11-06 08:28:24 +00:00
|
|
|
import InstanceFailureDarkImage from "@/app/assets/instance/instance-failure-dark.svg?url";
|
|
|
|
|
import InstanceFailureImage from "@/app/assets/instance/instance-failure.svg?url";
|
2024-05-10 14:04:40 +00:00
|
|
|
|
2025-11-20 12:09:40 +00:00
|
|
|
export function InstanceFailureView() {
|
2024-05-10 14:04:40 +00:00
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
|
|
|
|
|
const instanceImage = resolvedTheme === "dark" ? InstanceFailureDarkImage : InstanceFailureImage;
|
|
|
|
|
|
2024-05-14 08:56:54 +00:00
|
|
|
const handleRetry = () => {
|
|
|
|
|
window.location.reload();
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-10 14:04:40 +00:00
|
|
|
return (
|
2026-03-02 15:10:50 +00:00
|
|
|
<div className="relative container mx-auto flex h-screen items-center justify-center overflow-x-hidden overflow-y-auto px-5">
|
|
|
|
|
<div className="relative w-auto max-w-2xl space-y-8 py-10">
|
|
|
|
|
<div className="relative flex flex-col items-center justify-center space-y-4">
|
2025-11-13 13:03:18 +00:00
|
|
|
<img src={instanceImage} alt="Plane instance failure image" />
|
2026-03-02 15:10:50 +00:00
|
|
|
<h3 className="text-20 font-medium text-on-color">Unable to fetch instance details.</h3>
|
|
|
|
|
<p className="text-center text-14 font-medium">
|
2024-05-10 14:04:40 +00:00
|
|
|
We were unable to fetch the details of the instance. <br />
|
2025-02-06 15:11:31 +00:00
|
|
|
Fret not, it might just be a connectivity work items.
|
2024-05-10 14:04:40 +00:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex justify-center">
|
2025-12-12 15:20:14 +00:00
|
|
|
<Button size="lg" onClick={handleRetry}>
|
2024-05-10 14:04:40 +00:00
|
|
|
Retry
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2025-11-20 12:09:40 +00:00
|
|
|
}
|