Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kie-issues#2568: [sonataflow-management-console-webapp] Restyle 503 Keycloak page #2595

Merged
merged 7 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,52 +16,40 @@
* specific language governing permissions and limitations
* under the License.
*/
import { Card, CardBody, CardHeader, CardHeaderMain, CardTitle } from "@patternfly/react-core/dist/js/components/Card";
import { Button } from "@patternfly/react-core/dist/js/components/Button";
import { Brand } from "@patternfly/react-core/dist/js/components/Brand";
import { Bullseye } from "@patternfly/react-core/dist/js/layouts/Bullseye";
import React from "react";
import kogitoLogo from "../../static/kogito.png";
import kieLogo from "../../static/kie.svg";
import { OUIAProps, componentOuiaProps } from "../../ouiaTools";
import { Text, TextContent, TextVariants } from "@patternfly/react-core/dist/js/components/Text";
import { Title } from "@patternfly/react-core/dist/js/components/Title";
import { Page, PageSection } from "@patternfly/react-core/dist/js/components/Page";
import { EmptyState } from "@patternfly/react-core/dist/js/components/EmptyState";

export const KeycloakUnavailablePage: React.FC<OUIAProps> = ({ ouiaId, ouiaSafe }) => {
return (
<div
style={{
display: "flex",
justifyContent: "center",
paddingTop: "5%",
background: "#868686",
height: "100%",
}}
{...componentOuiaProps(ouiaId, "server-unavailable", ouiaSafe)}
>
{" "}
<Card
style={{
maxHeight: "300px",
}}
>
<CardHeader>
<CardHeaderMain>
<Brand src={kogitoLogo} alt="Kogito keycloak" style={{ height: "30px" }} />
</CardHeaderMain>
</CardHeader>
<CardBody isFilled={false}></CardBody>
<CardTitle>Error:503 - Server unavailable</CardTitle>
<CardBody isFilled={false}></CardBody>
<CardBody>Sorry.. the keycloak server seems to be down</CardBody>
<CardBody isFilled={false}></CardBody>
<Page>
<PageSection>
<Bullseye>
<span>
Please contact administrator or{" "}
<Button variant="link" onClick={() => window.location.reload()} isInline>
click here to retry
</Button>
</span>
<EmptyState {...componentOuiaProps(ouiaId, "server-unavailable", ouiaSafe)}>
<Brand src={kieLogo} alt="KIE keycloak" heights={{ default: "100px" }} />
kumaradityaraj marked this conversation as resolved.
Show resolved Hide resolved
<TextContent>
<Text component={TextVariants.h1}>Error: 503 - Server unavailable</Text>
</TextContent>
<Title headingLevel="h6" style={{ marginTop: "10px" }}>
Sorry.. the keycloak server seems to be down.
</Title>
<Title headingLevel="h6">
Please contact administrator or{" "}
<Button variant="link" onClick={() => window.location.reload()} isInline>
{" "}
click here to retry
</Button>
</Title>
</EmptyState>
</Bullseye>
<CardBody isFilled={false}></CardBody>
</Card>
</div>
</PageSection>
</Page>
);
};
40 changes: 40 additions & 0 deletions packages/runtime-tools-components/src/common/static/kie.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
40 changes: 40 additions & 0 deletions packages/runtime-tools-components/src/static/kie.svg
fantonangeli marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading