Skip to content

Commit 6422f4e

Browse files
Merge pull request #683 from zenml-io/staging
Release
2 parents aacc566 + 6f40005 commit 6422f4e

File tree

28 files changed

+428
-854
lines changed

28 files changed

+428
-854
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"prismjs": "^1.29.0",
4141
"react": "^18.3.1",
4242
"react-dom": "^18.3.1",
43+
"react-error-boundary": "^4.0.13",
4344
"react-hook-form": "^7.51.5",
4445
"react-joyride": "^2.8.2",
4546
"react-markdown": "^9.0.1",

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/onboarding/Header.tsx

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
import { Box } from "@zenml-io/react-component-library";
1+
import { useCurrentUser } from "@/data/users/current-user-query";
2+
import { getUsername } from "@/lib/user";
3+
import { Skeleton } from "@zenml-io/react-component-library";
4+
import { ProgressIndicatior } from "./ProgressIndicator";
25

36
export function HeaderOnboardingBox() {
47
return (
5-
<Box className="flex flex-col-reverse items-stretch overflow-hidden md:flex-row">
6-
<div className="w-full px-7 py-5 md:w-2/3">
7-
<h2 className="text-display-xs font-semibold">Welcome to ZenML</h2>
8-
<p className="mt-2 text-text-lg text-theme-text-secondary">
9-
You successfully installed the ZenML dashboard. Now you can get started with your new
10-
ZenML server.
8+
<div className="space-between flex flex-col flex-wrap items-center gap-1 space-x-5 overflow-x-hidden lg:flex-row">
9+
<div className="flex-1 space-y-1 overflow-x-hidden">
10+
<h2 className="truncate text-display-xs font-semibold">
11+
Welcome to ZenML
12+
<Username />
13+
</h2>
14+
<p className="truncate text-display-xs text-theme-text-secondary">
15+
You can start by following your quick setup.
1116
</p>
1217
</div>
13-
{/* <div className="flex w-full flex-1 items-center justify-center bg-primary-50 md:w-1/3"></div> */}
14-
</Box>
18+
<ProgressIndicatior />
19+
</div>
1520
);
1621
}
22+
23+
function Username() {
24+
const user = useCurrentUser();
25+
26+
if (user.isError) return null;
27+
if (user.isPending) return <Skeleton className="h-6 w-[70px]" />;
28+
const name = getUsername(user.data);
29+
return <>{name ? `, ${name}` : ""}</>;
30+
}

src/app/onboarding/ProductionSetup/ArtifactStore.tsx

Lines changed: 0 additions & 207 deletions
This file was deleted.

src/app/onboarding/ProductionSetup/ConnectorContent.tsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)