Skip to content

Commit 73b02f2

Browse files
Merge pull request #442 from zenml-io/dev
2 parents bda853f + 36744f2 commit 73b02f2

File tree

5 files changed

+49
-42
lines changed

5 files changed

+49
-42
lines changed

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,7 @@ html {
132132
top: 50%;
133133
transform: translateY(-50%);
134134
}
135+
136+
.react-flow__controls-button svg {
137+
background-color: transparent !important;
138+
}

src/ui/components/lineage/index.module.scss

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@
2828
display: flex;
2929
flex-direction: row-reverse;
3030
font-family: Arial, Helvetica, sans-serif !important;
31-
border: 1px solid #443E99 !important;
31+
border: 1px solid #443e99 !important;
3232
border-radius: 4px;
3333
font-size: 8px;
3434
background: #ffffff;
3535
min-width: 6rem;
3636
}
37-
.stepBody:hover{
37+
.stepBody:hover {
3838
display: flex;
3939
flex-direction: row-reverse;
4040
font-family: Arial, Helvetica, sans-serif !important;
41-
border: 1px solid #443E9980 !important;
41+
border: 1px solid #443e9980 !important;
4242
border-radius: 4px;
4343
font-size: 8px;
4444
background-color: #f5f4ff;
@@ -50,7 +50,7 @@
5050
display: flex;
5151
flex-direction: row-reverse;
5252
font-family: Arial, Helvetica, sans-serif !important;
53-
border: 3px solid #443E99 !important;
53+
border: 3px solid #443e99 !important;
5454
border-radius: 4px;
5555
font-size: 8px;
5656
background: #ffffff;
@@ -60,7 +60,7 @@
6060
display: flex;
6161
flex-direction: row-reverse;
6262
font-family: Arial, Helvetica, sans-serif !important;
63-
border: 3px solid #443E99 !important;
63+
border: 3px solid #443e99 !important;
6464
border-radius: 4px;
6565
font-size: 8px;
6666
background: #f5f4ff;
@@ -103,8 +103,7 @@
103103
clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
104104
}
105105

106-
.nodeContainer
107-
{
106+
.nodeContainer {
108107
display: flex;
109108
flex-direction: column;
110109
align-items: center;
@@ -189,20 +188,17 @@
189188
width: 100%;
190189
padding-left: 20px;
191190
padding-right: 20px;
192-
background-color: "pink";
191+
background-color: 'pink';
193192
justify-content: center;
194193
align-items: center;
195194
}
196195

197-
198196
.closeArrow {
199197
height: 500px;
200198
width: 500px;
201199
background-color: aqua;
202200
}
203201

204-
205-
206202
// SIDE BAR
207203

208204
.sidebarMainContainer {
@@ -230,7 +226,7 @@
230226
z-index: -1000;
231227
}
232228

233-
.btnContainer>img {
229+
.btnContainer > img {
234230
z-index: -1000;
235231
}
236232

src/ui/components/lineage/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,13 @@ export const LayoutFlow: React.FC<any> = (graph: any) => {
230230
}}
231231
fitView
232232
>
233-
<Controls />
233+
<Controls
234+
style={{
235+
top: '0px',
236+
bottom: '50%',
237+
boxShadow: 'none',
238+
}}
239+
/>
234240
</ReactFlow>
235241
</div>
236242
</div>

src/ui/components/lineage/sidebarTabsSwitchers/stepTabSwitcher.tsx

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ const stylesInActive = {
2121

2222
const tabs = [
2323
{
24-
title: 'Attributes',
25-
case: '__ATTRIBUTE',
24+
title: 'Logs',
25+
case: '__LOG',
2626
},
2727
{
2828
title: 'Code',
2929
case: '__CODE',
3030
},
3131
{
32-
title: 'Logs',
33-
case: '__LOG',
32+
title: 'Attributes',
33+
case: '__ATTRIBUTE',
3434
},
3535
];
3636

@@ -76,7 +76,7 @@ const tabs = [
7676
// };
7777

7878
const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
79-
const [show, setShow] = useState('__ATTRIBUTE');
79+
const [show, setShow] = useState('__LOG');
8080
const [dynamicWidth, setDynamicWidth] = useState<number | undefined>(79);
8181
const [dynamicLeft, setDynamicLeft] = useState<number | undefined>(21);
8282
const divRefs = useRef<(HTMLSpanElement | null)[]>([]);
@@ -101,10 +101,11 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
101101
switch (tab) {
102102
case '__LOG':
103103
return setShow('__LOG');
104-
case '__ATTRIBUTE':
105-
return setShow('__ATTRIBUTE');
106104
case '__CODE':
107105
return setShow('__CODE');
106+
case '__ATTRIBUTE':
107+
return setShow('__ATTRIBUTE');
108+
108109
default:
109110
return '';
110111
}
@@ -150,7 +151,20 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
150151
</div>
151152
) : (
152153
<>
153-
{show === '__ATTRIBUTE' ? (
154+
{show === '__LOG' && <DisplayLogs selectedNode={node} />}
155+
{show === '__CODE' && (
156+
<div className={styles.codeContainer}>
157+
<SyntaxHighlighter
158+
customStyle={{ width: '100%', height: '80%', fontSize: 20 }}
159+
wrapLines={true}
160+
language="python"
161+
style={okaidia}
162+
>
163+
{node.source_code ? node.source_code : ''}
164+
</SyntaxHighlighter>
165+
</div>
166+
)}
167+
{show === '__ATTRIBUTE' && (
154168
<>
155169
<table cellSpacing="0" className="sidebar_table">
156170
<tbody>
@@ -386,24 +400,7 @@ const StepnodeTabHeader: React.FC<any> = ({ node, fetching }) => {
386400
</tbody>
387401
</table>
388402
</>
389-
) : (
390-
''
391-
)}
392-
{show === '__CODE' ? (
393-
<div className={styles.codeContainer}>
394-
<SyntaxHighlighter
395-
customStyle={{ width: '100%', height: '80%', fontSize: 20 }}
396-
wrapLines={true}
397-
language="python"
398-
style={okaidia}
399-
>
400-
{node.source_code ? node.source_code : ''}
401-
</SyntaxHighlighter>
402-
</div>
403-
) : (
404-
''
405403
)}
406-
{show === '__LOG' ? <DisplayLogs selectedNode={node} /> : ''}
407404
</>
408405
)}
409406
</>

src/ui/layouts/connectors/RegisterConnector/CreateConnector/index.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,13 +1241,17 @@ export const CreateConnector: React.FC<{ connectorType: any; state: any }> = ({
12411241
const currentValue = e.target.value;
12421242
const previousValues = previousValuesRef.current;
12431243
if (currentValue !== previousValues) {
1244-
// matchedAuthMethod?.config_schema?.required?.includes(
1245-
// elementName,
1246-
// ) &&
12471244
onVerify();
12481245
}
12491246
previousValuesRef.current = currentValue;
1250-
// inputRef.current.value = currentValue;
1247+
}
1248+
if (!e.target.value && previousValuesRef.current) {
1249+
const currentValue = e.target.value;
1250+
const previousValues = previousValuesRef.current;
1251+
if (currentValue !== previousValues) {
1252+
onVerify();
1253+
}
1254+
previousValuesRef.current = currentValue;
12511255
}
12521256
}}
12531257
onChange={(e: any) => {

0 commit comments

Comments
 (0)