Skip to content

Commit c18350f

Browse files
authored
Merge pull request #233 from zenml-io/UAT
Merge UAT to main
2 parents 0bb7d62 + 28d3db5 commit c18350f

File tree

6 files changed

+61
-9
lines changed

6 files changed

+61
-9
lines changed
Lines changed: 6 additions & 0 deletions
Loading

src/ui/components/icons/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import { ReactComponent as ChatDots } from './assets/ChatDots.svg';
6363
import { ReactComponent as Run } from './assets/Run.svg';
6464
import { ReactComponent as ImageBuilder } from './assets/ImageBuilder.svg';
6565
import { ReactComponent as Pen } from './assets/Pen.svg';
66+
import { ReactComponent as ModelRegistry } from './assets/ModelRegistry.svg';
6667
// import { ReactComponent as Inprogress } from './assets/InProgress.svg';
6768
// import { ReactComponent as Cached } from './assets/Cached.svg';
6869
// import { ReactComponent as RightArrow } from './assets/RightArrow.svg';
@@ -200,6 +201,7 @@ const icons = {
200201
useStroke: true,
201202
}),
202203
pen: createIcon({ Component: Pen, useStroke: true }),
204+
model_registry: createIcon({ Component: ModelRegistry, useStroke: true }),
203205

204206
// paginations
205207
paginationFirst: createIcon({ Component: PaginationFirst, useStroke: true }),

src/ui/layouts/common/SidePopup/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ export const SidePopup: React.FC<{
4242
<Box paddingTop="sm">
4343
<iframe
4444
title="ZenML - Organization Embed"
45-
style={{ border: '0px', height: '100vh', width: '100%' }}
46-
// src="https://zenml.hellonext.co/embed/home?no_header=true"
45+
style={{
46+
border: '0px',
47+
height: '100vh',
48+
width: '100%',
49+
paddingBottom: '200px',
50+
}}
51+
// src="https://apidocs.zenml.io/0.35.0/"
4752
src={flavor?.docsUrl}
4853
></iframe>
4954
</Box>

src/ui/layouts/stackComponents/Component.tsx

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ const Component = (props: any) => {
8282
return (
8383
<Box
8484
style={{
85+
height: '75%',
86+
width: '20%',
87+
overflow: 'hidden',
88+
scrollBehavior: 'smooth',
89+
overflowY: 'scroll',
8590
borderRight: '1px solid #A8A8A8',
8691
padding: '0 50px 0 33px',
8792
marginTop: '10rem',
@@ -95,7 +100,7 @@ const Component = (props: any) => {
95100
/>
96101
</Box> */}
97102

98-
<Box style={{ marginTop: '-20px' }}>
103+
<Box style={{}}>
99104
{/* {props?.fromRegisterComponent && (
100105
<FlexBox
101106
onClick={() => selectSection('all_components')}
@@ -362,7 +367,7 @@ const Component = (props: any) => {
362367
...sectionStyle,
363368
background: formatSectionColor(item),
364369
}}
365-
marginTop="sm"
370+
// marginTop="sm"
366371
>
367372
<Box>
368373
<icons.orchestrator
@@ -439,6 +444,34 @@ const Component = (props: any) => {
439444
</Box>
440445
</FlexBox>
441446
)}
447+
{item === 'model_registry' && (
448+
<FlexBox
449+
onClick={() => selectSection(item)}
450+
style={{
451+
...sectionStyle,
452+
background: formatSectionColor(item),
453+
}}
454+
marginTop="sm"
455+
>
456+
<Box>
457+
<icons.model_registry
458+
color={
459+
selectedComp === item
460+
? iconColors.white
461+
: iconColors.primary
462+
}
463+
size={iconSizes.md}
464+
/>
465+
</Box>
466+
<Box>
467+
<Paragraph
468+
style={{ color: formatTextColor(item), ...textStyle }}
469+
>
470+
{formatText(item)}
471+
</Paragraph>
472+
</Box>
473+
</FlexBox>
474+
)}
442475
{item === 'image_builder' && (
443476
<FlexBox
444477
onClick={() => selectSection(item)}
@@ -480,7 +513,8 @@ const Component = (props: any) => {
480513
item !== 'annotator' &&
481514
item !== 'alerter' &&
482515
item !== 'image_builder' &&
483-
item !== 'artifact_store' && (
516+
item !== 'artifact_store' &&
517+
item !== 'model_registry' && (
484518
<FlexBox
485519
onClick={() => selectSection(item)}
486520
style={{

src/ui/layouts/stackComponents/ConfigureComponent/SidePopup/index.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ export const SidePopup: React.FC<{
2020
<Box paddingTop="sm">
2121
<iframe
2222
title="ZenML - Organization Embed"
23-
style={{ border: '0px', height: '100vh', width: '100%' }}
24-
// src="https://zenml.hellonext.co/embed/home?no_header=true"
25-
src={flavor.sdkDocsUrl}
23+
style={{
24+
border: '0px',
25+
height: '100vh',
26+
width: '100%',
27+
paddingBottom: '200px',
28+
}}
29+
// src="https://apidocs.zenml.io/0.35.0/"
30+
src={flavor?.sdkDocsUrl ? flavor?.sdkDocsUrl : flavor?.docsUrl}
2631
></iframe>
2732
</Box>
2833

src/ui/layouts/stacks/CreateStack/ListForAll/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
top: 0;
55
padding: 10px 0;
66
background-color: #fff;
7-
z-index: 99;
7+
z-index: 98;
88

99
}
1010

0 commit comments

Comments
 (0)