Spaces:
Running
Running
fix (onboard): CSS fix to handle overflow during on-boarding process.
Browse files
src/views/on-board/DataUploader.module.scss
CHANGED
|
@@ -20,6 +20,7 @@
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
|
|
|
| 23 |
height: 100%;
|
| 24 |
width: 100%;
|
| 25 |
display: flex;
|
|
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
| 23 |
+
margin-top: $spacing-05;
|
| 24 |
height: 100%;
|
| 25 |
width: 100%;
|
| 26 |
display: flex;
|
src/views/on-board/DataVerification.module.scss
CHANGED
|
@@ -20,13 +20,14 @@
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
| 23 |
-
margin-top: $spacing-
|
| 24 |
height: 100%;
|
| 25 |
width: 100%;
|
| 26 |
display: flex;
|
| 27 |
flex-direction: column;
|
| 28 |
row-gap: $spacing-05;
|
| 29 |
justify-content: flex-end;
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
.title {
|
|
@@ -56,34 +57,33 @@
|
|
| 56 |
height: 70%;
|
| 57 |
display: flex;
|
| 58 |
flex-direction: column;
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
-
.
|
| 62 |
margin-top: auto;
|
| 63 |
margin-bottom: $spacing-09;
|
| 64 |
display: flex;
|
| 65 |
-
|
| 66 |
}
|
| 67 |
|
| 68 |
-
.
|
| 69 |
-
|
| 70 |
-
|
| 71 |
}
|
| 72 |
|
| 73 |
.warningContainer {
|
| 74 |
-
margin: $spacing-
|
| 75 |
display: flex;
|
| 76 |
-
column-gap: $spacing-
|
| 77 |
-
justify-content: center;
|
| 78 |
-
align-items: center;
|
| 79 |
}
|
| 80 |
|
| 81 |
.warningContainerIcon {
|
| 82 |
-
color:
|
| 83 |
}
|
| 84 |
|
| 85 |
.warningContainerText {
|
| 86 |
-
font-size:
|
| 87 |
-
line-height:
|
| 88 |
-
color:
|
| 89 |
}
|
|
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
| 23 |
+
margin-top: $spacing-05;
|
| 24 |
height: 100%;
|
| 25 |
width: 100%;
|
| 26 |
display: flex;
|
| 27 |
flex-direction: column;
|
| 28 |
row-gap: $spacing-05;
|
| 29 |
justify-content: flex-end;
|
| 30 |
+
overflow-y: auto;
|
| 31 |
}
|
| 32 |
|
| 33 |
.title {
|
|
|
|
| 57 |
height: 70%;
|
| 58 |
display: flex;
|
| 59 |
flex-direction: column;
|
| 60 |
+
overflow: auto;
|
| 61 |
}
|
| 62 |
|
| 63 |
+
.navigationContainer {
|
| 64 |
margin-top: auto;
|
| 65 |
margin-bottom: $spacing-09;
|
| 66 |
display: flex;
|
| 67 |
+
flex-direction: column;
|
| 68 |
}
|
| 69 |
|
| 70 |
+
.navigationButtons {
|
| 71 |
+
display: flex;
|
| 72 |
+
column-gap: $spacing-05;
|
| 73 |
}
|
| 74 |
|
| 75 |
.warningContainer {
|
| 76 |
+
margin-bottom: $spacing-03;
|
| 77 |
display: flex;
|
| 78 |
+
column-gap: $spacing-03;
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
.warningContainerIcon {
|
| 82 |
+
color: var(--cds-support-warning);
|
| 83 |
}
|
| 84 |
|
| 85 |
.warningContainerText {
|
| 86 |
+
font-size: 16px;
|
| 87 |
+
line-height: 20px;
|
| 88 |
+
color: var(--cds-support-warning);
|
| 89 |
}
|
src/views/on-board/DataVerification.tsx
CHANGED
|
@@ -212,37 +212,39 @@ export default memo(function DataVerificationView({
|
|
| 212 |
)}
|
| 213 |
</>
|
| 214 |
)}
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
{
|
| 224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
</div>
|
| 226 |
-
) : null}
|
| 227 |
-
<div className={classes.navigationButtons}>
|
| 228 |
-
<Button
|
| 229 |
-
kind="secondary"
|
| 230 |
-
renderIcon={ArrowLeft}
|
| 231 |
-
iconDescription="Return to uploading data"
|
| 232 |
-
onClick={onPrev}
|
| 233 |
-
>
|
| 234 |
-
Return to uploading data
|
| 235 |
-
</Button>
|
| 236 |
-
<Button
|
| 237 |
-
disabled={!exampleData}
|
| 238 |
-
renderIcon={ArrowRight}
|
| 239 |
-
iconDescription="Proceed"
|
| 240 |
-
onClick={() => {
|
| 241 |
-
onNext(exampleData);
|
| 242 |
-
}}
|
| 243 |
-
>
|
| 244 |
-
Visualize
|
| 245 |
-
</Button>
|
| 246 |
</div>
|
| 247 |
</>
|
| 248 |
) : null}
|
|
|
|
| 212 |
)}
|
| 213 |
</>
|
| 214 |
)}
|
| 215 |
+
|
| 216 |
+
<div className={classes.navigationContainer}>
|
| 217 |
+
{exampleData.tasks.length > 500 ? (
|
| 218 |
+
<div className={classes.warningContainer}>
|
| 219 |
+
<WarningAlt
|
| 220 |
+
className={classes.warningContainerIcon}
|
| 221 |
+
size={18}
|
| 222 |
+
/>
|
| 223 |
+
<span className={classes.warningContainerText}>
|
| 224 |
+
{`Due to high number of data points, it might take us a moment to get everything ready once you click the "visualize" button.`}
|
| 225 |
+
</span>
|
| 226 |
+
</div>
|
| 227 |
+
) : null}
|
| 228 |
+
<div className={classes.navigationButtons}>
|
| 229 |
+
<Button
|
| 230 |
+
kind="secondary"
|
| 231 |
+
renderIcon={ArrowLeft}
|
| 232 |
+
iconDescription="Return to uploading data"
|
| 233 |
+
onClick={onPrev}
|
| 234 |
+
>
|
| 235 |
+
Return to uploading data
|
| 236 |
+
</Button>
|
| 237 |
+
<Button
|
| 238 |
+
disabled={!exampleData}
|
| 239 |
+
renderIcon={ArrowRight}
|
| 240 |
+
iconDescription="Proceed"
|
| 241 |
+
onClick={() => {
|
| 242 |
+
onNext(exampleData);
|
| 243 |
+
}}
|
| 244 |
+
>
|
| 245 |
+
Visualize
|
| 246 |
+
</Button>
|
| 247 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
</div>
|
| 249 |
</>
|
| 250 |
) : null}
|
src/views/on-board/Instructions.module.scss
CHANGED
|
@@ -20,6 +20,7 @@
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
|
|
|
| 23 |
height: 100%;
|
| 24 |
width: 100%;
|
| 25 |
display: flex;
|
|
|
|
| 20 |
@use '@carbon/colors' as *;
|
| 21 |
|
| 22 |
.root {
|
| 23 |
+
margin-top: $spacing-05;
|
| 24 |
height: 100%;
|
| 25 |
width: 100%;
|
| 26 |
display: flex;
|
src/views/on-board/Onboard.module.scss
CHANGED
|
@@ -34,8 +34,6 @@
|
|
| 34 |
|
| 35 |
.progressTracker {
|
| 36 |
margin-top: $spacing-05;
|
| 37 |
-
margin-left: $spacing-03;
|
| 38 |
-
height: $spacing-12;
|
| 39 |
}
|
| 40 |
|
| 41 |
.reconfigureBanner {
|
|
|
|
| 34 |
|
| 35 |
.progressTracker {
|
| 36 |
margin-top: $spacing-05;
|
|
|
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
.reconfigureBanner {
|
src/views/on-board/Onboard.tsx
CHANGED
|
@@ -81,7 +81,6 @@ export default memo(function OnboardingView({ onVisualize }: Props) {
|
|
| 81 |
<ProgressStep
|
| 82 |
disabled={!rawData}
|
| 83 |
label="3. Verify data"
|
| 84 |
-
secondaryLabel="Verify data for any formatting issues"
|
| 85 |
></ProgressStep>
|
| 86 |
</ProgressIndicator>
|
| 87 |
</div>
|
|
|
|
| 81 |
<ProgressStep
|
| 82 |
disabled={!rawData}
|
| 83 |
label="3. Verify data"
|
|
|
|
| 84 |
></ProgressStep>
|
| 85 |
</ProgressIndicator>
|
| 86 |
</div>
|