File tree Expand file tree Collapse file tree 3 files changed +28
-15
lines changed
main/home/infrastructure-dashboard/modals Expand file tree Collapse file tree 3 files changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ export const Error: React.FC<Props> = ({
30
30
< i className = "material-icons" > error_outline</ i >
31
31
< Block >
32
32
< Text color = { "#ff385d" } > Error: { message } </ Text >
33
+ < Spacer y = { 0.5 } />
34
+ { metadata &&
35
+ Object . entries ( metadata ) . map ( ( [ key , value ] ) => (
36
+ < div key = { key } >
37
+ < ErrorMessageLabel > { key } :</ ErrorMessageLabel >
38
+ < ErrorMessageContent > { value } </ ErrorMessageContent >
39
+ </ div >
40
+ ) ) }
33
41
{ ctaText && ( errorModalContents != null || ctaOnClick != null ) && (
34
42
< >
35
43
< Spacer y = { 0.5 } />
36
- { metadata &&
37
- Object . entries ( metadata ) . map ( ( [ key , value ] ) => (
38
- < div key = { key } >
39
- < ErrorMessageLabel > { key } :</ ErrorMessageLabel >
40
- < ErrorMessageContent > { value } </ ErrorMessageContent >
41
- </ div >
42
- ) ) }
43
- < Spacer y = { 0.5 } />
44
44
< Cta
45
45
onClick = { ( ) => {
46
46
errorModalContents ? setErrorModalOpen ( true ) : ctaOnClick ?.( ) ;
Original file line number Diff line number Diff line change @@ -1216,6 +1216,10 @@ const SUPPORTED_AWS_PREFLIGHT_CHECKS: PreflightCheck[] = [
1216
1216
displayName : "vCPU availability" ,
1217
1217
resolution : AWS_VCPUS_QUOTA_RESOLUTION ,
1218
1218
} ,
1219
+ {
1220
+ name : "cidrAvailability" ,
1221
+ displayName : "CIDR availability" ,
1222
+ } ,
1219
1223
] ;
1220
1224
1221
1225
const SUPPORTED_AZURE_PREFLIGHT_CHECKS : PreflightCheck [ ] = [
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Loading from "components/Loading";
6
6
import { Error as ErrorComponent } from "components/porter/Error" ;
7
7
import Expandable from "components/porter/Expandable" ;
8
8
import Modal from "components/porter/Modal" ;
9
+ import ShowIntercomButton from "components/porter/ShowIntercomButton" ;
9
10
import Spacer from "components/porter/Spacer" ;
10
11
import StatusDot from "components/porter/StatusDot" ;
11
12
import Text from "components/porter/Text" ;
@@ -93,13 +94,21 @@ const PreflightChecksModal: React.FC<Props> = ({
93
94
following issues or change your cluster configuration and try again.
94
95
</ Text >
95
96
< Spacer y = { 1 } />
96
- { preflightChecks . map ( ( pfc , idx ) => (
97
- < CheckItem
98
- preflightCheck = { pfc }
99
- key = { pfc . title }
100
- preExpanded = { idx === 0 }
101
- />
102
- ) ) }
97
+ < div style = { { display : "flex" , flexDirection : "column" , gap : "10px" } } >
98
+ { preflightChecks . map ( ( pfc , idx ) => (
99
+ < CheckItem
100
+ preflightCheck = { pfc }
101
+ key = { pfc . title }
102
+ preExpanded = { idx === 0 }
103
+ />
104
+ ) ) }
105
+ </ div >
106
+ < Spacer y = { 1 } />
107
+ < ShowIntercomButton
108
+ message = { "I need help resolving cluster preflight checks." }
109
+ >
110
+ Talk to support
111
+ </ ShowIntercomButton >
103
112
</ AppearingDiv >
104
113
</ Modal >
105
114
) ;
You can’t perform that action at this time.
0 commit comments