Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: redirection issues and instance validation changes
- Loading branch information
1 parent
0ad8bf7
commit 2ef3c06
Showing
14 changed files
with
170 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./not-ready-view"; | ||
export * from "./not-ready-view"; | ||
export * from "./instance-failure-view"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { FC } from "react"; | ||
import Image from "next/image"; | ||
import { useTheme } from "next-themes"; | ||
import { Button } from "@plane/ui"; | ||
// assets | ||
import InstanceFailureDarkImage from "public/instance/instance-failure-dark.svg"; | ||
import InstanceFailureImage from "public/instance/instance-failure.svg"; | ||
|
||
type InstanceFailureViewProps = { | ||
mutate: () => void; | ||
}; | ||
|
||
export const InstanceFailureView: FC<InstanceFailureViewProps> = (props) => { | ||
const { mutate } = props; | ||
const { resolvedTheme } = useTheme(); | ||
|
||
const instanceImage = resolvedTheme === "dark" ? InstanceFailureDarkImage : InstanceFailureImage; | ||
|
||
return ( | ||
<div className="h-full w-full relative container px-5 mx-auto flex justify-center items-center mt-10"> | ||
<div className="w-auto max-w-2xl relative space-y-8 py-10"> | ||
<div className="relative flex flex-col justify-center items-center space-y-4"> | ||
<Image src={instanceImage} alt="Plane Logo" /> | ||
<h3 className="font-medium text-2xl text-white ">Unable to fetch instance details.</h3> | ||
<p className="font-medium text-base text-center"> | ||
We were unable to fetch the details of the instance. <br /> | ||
Fret not, it might just be a connectivity issue. | ||
</p> | ||
</div> | ||
<div className="flex justify-center"> | ||
<Button size="md" onClick={mutate}> | ||
Retry | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.