Skip to content

Commit ec1b998

Browse files
authored
Merge pull request #275 from zenml-io/UAT
Merge `UAT` --> `main`
2 parents a949750 + 71ea97f commit ec1b998

File tree

93 files changed

+1184
-907
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1184
-907
lines changed

src/constants/icons.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export enum iconColors {
77
red = 'red',
88
orange = 'orange',
99
mustard = 'mustard',
10+
butterflyBlue = 'butterflyBlue',
1011
green = 'green',
12+
lightGreen = 'lightGreen',
1113
}
1214

1315
export enum iconSizes {

src/redux/sagas/requestSaga.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const isUnauthenticatedError = (e: any, action: any) => {
2323
};
2424

2525
function* logoutAndNotifyUserThatSessionExpired(): any {
26+
localStorage.removeItem('persistSelectedStack');
2627
yield put(sessionActions.logout());
28+
2729
yield put(
2830
showToasterAction({
2931
description: translate(''),

src/ui/_globalStyles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $orangeColor: var(--orange);
1919
$darkerOrangeColor: var(--darkOrange);
2020
$ButterflyBlue: var(--butterflyBlue);
2121
$mustardColor: var(--mustard);
22+
$lightGreenColor: var(--lightGreen);
2223

2324
$imageFallbackBackgroundColor: var(--lightestGrey);
2425

src/ui/components/Logout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const Logout = () => {
88
const dispatch = useDispatch();
99

1010
useEffect(() => {
11+
localStorage.removeItem('persistSelectedStack');
1112
dispatch(sessionActions.logout());
1213
});
1314

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
transition: 200ms ease opacity;
1111
cursor: pointer;
1212
border: 0;
13-
height: $buttonHeight;
13+
// height: $buttonHeight;
14+
height: 50px;
1415
width: max-content;
1516
transition: 0.2s ease-in all;
1617
padding: 0 3.2rem !important;
@@ -39,7 +40,7 @@
3940
transition: 200ms ease opacity;
4041
cursor: pointer;
4142
border: 0;
42-
height: $buttonHeight;
43+
height: 50px;
4344
width: max-content;
4445
transition: 0.2s ease-in all;
4546
padding: 0 3.2rem !important;
@@ -68,7 +69,8 @@
6869
border: 1px solid $blackColor;
6970
transition: 200ms ease opacity;
7071
cursor: pointer;
71-
height: $buttonHeight;
72+
// height: $buttonHeight;
73+
height: 50px;
7274
width: max-content;
7375
transition: 0.2s ease-in all;
7476
padding: 0 3.2rem !important;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@
6060
.mustard {
6161
background-color: $mustardColor;
6262
}
63+
.lightGreen {
64+
background-color: $lightGreenColor;
65+
}
66+
.butterflyBlue {
67+
background-color: $ButterflyBlue;
68+
}

src/ui/components/circles/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ type Colors =
1414
| 'grey'
1515
| 'lightestGrey'
1616
| 'orange'
17-
| 'mustard';
17+
| 'mustard'
18+
| 'lightGreen'
19+
| 'butterflyBlue';
1820

1921
export const ColoredCircle: React.FC<{ color: Colors; size: Sizes }> = ({
2022
children,

src/ui/components/forms/index.tsx

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const CopyField = (
164164

165165
{props.showTokField && (
166166
<LinkBox
167-
style={{ position: 'absolute', right: '10px', top: '30px' }}
167+
style={{ position: 'absolute', right: '10px', top: '40px' }}
168168
onClick={handleClick}
169169
>
170170
<icons.copy color={iconColors.grey} />
@@ -210,6 +210,10 @@ export const EditField = (
210210
InputComponent={
211211
<TextInput
212212
{...props}
213+
style={{
214+
backgroundColor: props.disabled && '#E9EAEC',
215+
borderWidth: props.disabled && '0px',
216+
}}
213217
defaultValue={props?.defaultValue}
214218
value={props.value}
215219
placeholder={props.placeholder}
@@ -218,7 +222,7 @@ export const EditField = (
218222
/>
219223
{!props.disabled && (
220224
<Box style={{ position: 'absolute', right: '10px', top: '35px' }}>
221-
<icons.pen color={iconColors.grey} />
225+
<icons.pen color={iconColors.black} />
222226
</Box>
223227
)}
224228
</FlexBox>
@@ -248,6 +252,7 @@ export const EditFieldSettings = (
248252
return (
249253
<FlexBox.Column fullWidth>
250254
<FlexBox alignItems="center" fullWidth style={{ position: 'relative' }}>
255+
{console.log(disabled, 'disableddisabled')}
251256
<InputWithLabel
252257
name={props.name}
253258
label={props.label}
@@ -258,23 +263,26 @@ export const EditFieldSettings = (
258263
{...props}
259264
inputRef={inputRef}
260265
defaultValue={props?.defaultValue}
261-
value={props.value}
266+
value={disabled ? props?.defaultValue : props.value}
262267
placeholder={props.placeholder}
263268
disabled={disabled}
264269
autoFocus={!disabled}
265-
onRemoveFocus={() => setDisabled(!disabled)}
266-
// onFocus={(e: any) => e.currentTarget.select()}
270+
onRemoveFocus={(e: any) => {
271+
setTimeout(() => {
272+
if (disabled === false) setDisabled(true);
273+
}, 200);
274+
}}
267275
/>
268276
}
269277
/>
278+
{/* {console.log(props?.defaultValue , props.value , 'disableddisabled')} */}
270279
{!props.disabled && (
271280
<Box
272281
onClick={() => {
273282
setDisabled(!disabled);
274-
275-
setTimeout(() => {
276-
props.inputRef?.current?.focus();
277-
}, 10);
283+
// setTimeout(() => {
284+
// props.inputRef?.current?.focus();
285+
// }, 1000);
278286
}}
279287
style={{
280288
position: 'absolute',
@@ -283,8 +291,7 @@ export const EditFieldSettings = (
283291
cursor: 'pointer',
284292
}}
285293
>
286-
{console.log(disabled, 'disableddisabled')}
287-
<icons.pen color={iconColors.grey} />
294+
<icons.pen color={disabled ? iconColors.black : iconColors.grey} />
288295
</Box>
289296
)}
290297
</FlexBox>
Lines changed: 1 addition & 6 deletions
Loading
Lines changed: 1 addition & 4 deletions
Loading

0 commit comments

Comments
 (0)