Skip to content

Commit bccf0b3

Browse files
author
Sachin Maheshwari
committed
Merge branch 'feature/project-listing-updates' into feature/project-listing-updates#1268
2 parents c77fc7f + ff3f803 commit bccf0b3

File tree

8 files changed

+80
-32
lines changed

8 files changed

+80
-32
lines changed

src/config/projectQuestions/app_dev.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ const sections = [
6666
// required is not needed if we specifiy validations
6767
// required: true,
6868
validations: 'isRequired,minLength:160',
69+
// providing default error message to handle isRequired validation
70+
// somehow, it is not picking up error message from validationErrors object
71+
validationError: 'Please provide a description',
6972
validationErrors: {
70-
'isRequired' : 'Please provide a description',
71-
'minLength' : 'Please enter at least 160 characters'
73+
isRequired : 'Please provide a description',
74+
minLength : 'Please enter at least 160 characters'
7275
},
7376
fieldName: 'description',
7477
description: 'Brief Description',
@@ -329,9 +332,12 @@ export const basicSections = [
329332
// required is not needed if we specifiy validations
330333
// required: true,
331334
validations: 'isRequired,minLength:160',
335+
// providing default error message to handle isRequired validation
336+
// somehow, it is not picking up error message from validationErrors object
337+
validationError: 'Please provide a description',
332338
validationErrors: {
333-
'isRequired' : 'Please provide a description',
334-
'minLength' : 'Please enter at least 160 characters'
339+
isRequired : 'Please provide a description',
340+
minLength : 'Please enter at least 160 characters'
335341
},
336342
fieldName: 'description',
337343
description: 'Brief Description',

src/config/projectQuestions/avd.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,12 @@ const sections = [
8181
fieldName: 'description',
8282
description: 'Brief Description',
8383
validations: 'isRequired,minLength:160',
84+
// providing default error message to handle isRequired validation
85+
// somehow, it is not picking up error message from validationErrors object
86+
validationError: 'Please provide a description',
8487
validationErrors: {
85-
'isRequired' : 'Please provide a description',
86-
'minLength' : 'Please enter at least 160 characters'
88+
isRequired : 'Please provide a description',
89+
minLength : 'Please enter at least 160 characters'
8790
},
8891
title: 'Description',
8992
type: 'textbox'
@@ -296,9 +299,12 @@ export const basicSections = [
296299
// required is not needed if we specifiy validations
297300
// required: true,
298301
validations: 'isRequired,minLength:160',
302+
// providing default error message to handle isRequired validation
303+
// somehow, it is not picking up error message from validationErrors object
304+
validationError: 'Please provide a description',
299305
validationErrors: {
300-
'isRequired' : 'Please provide a description',
301-
'minLength' : 'Please enter at least 160 characters'
306+
isRequired : 'Please provide a description',
307+
minLength : 'Please enter at least 160 characters'
302308
},
303309
id: 'projectInfo',
304310
fieldName: 'description',

src/config/projectQuestions/generic_chatbot.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ const sections = [
4848
id: 'projectInfo',
4949
fieldName: 'description',
5050
validations: 'isRequired,minLength:160',
51+
// providing default error message to handle isRequired validation
52+
// somehow, it is not picking up error message from validationErrors object
53+
validationError: 'Please provide a description',
5154
validationErrors: {
52-
'isRequired' : 'Please provide a description',
53-
'minLength' : 'Please enter at least 160 characters'
55+
isRequired : 'Please provide a description',
56+
minLength : 'Please enter at least 160 characters'
5457
},
5558
description: 'Brief Description',
5659
title: 'Description',
@@ -146,9 +149,12 @@ export const basicSections = [
146149
// required is not needed if we specifiy validations
147150
// required: true,
148151
validations: 'isRequired,minLength:160',
152+
// providing default error message to handle isRequired validation
153+
// somehow, it is not picking up error message from validationErrors object
154+
validationError: 'Please provide a description',
149155
validationErrors: {
150-
'isRequired' : 'Please provide a description',
151-
'minLength' : 'Please enter at least 160 characters'
156+
isRequired : 'Please provide a description',
157+
minLength : 'Please enter at least 160 characters'
152158
},
153159
description: 'Brief Description',
154160
title: 'Description',

src/config/projectQuestions/ibm_chatbot.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ const sections = [
4848
id: 'projectInfo',
4949
fieldName: 'description',
5050
validations: 'isRequired,minLength:160',
51+
// providing default error message to handle isRequired validation
52+
// somehow, it is not picking up error message from validationErrors object
53+
validationError: 'Please provide a description',
5154
validationErrors: {
52-
'isRequired' : 'Please provide a description',
53-
'minLength' : 'Please enter at least 160 characters'
55+
isRequired : 'Please provide a description',
56+
minLength : 'Please enter at least 160 characters'
5457
},
5558
description: 'Brief Description',
5659
title: 'Description',
@@ -158,9 +161,12 @@ export const basicSections = [
158161
// required is not needed if we specifiy validations
159162
// required: true,
160163
validations: 'isRequired,minLength:160',
164+
// providing default error message to handle isRequired validation
165+
// somehow, it is not picking up error message from validationErrors object
166+
validationError: 'Please provide a description',
161167
validationErrors: {
162-
'isRequired' : 'Please provide a description',
163-
'minLength' : 'Please enter at least 160 characters'
168+
isRequired : 'Please provide a description',
169+
minLength : 'Please enter at least 160 characters'
164170
},
165171
description: 'Brief Description',
166172
title: 'Description',

src/config/projectQuestions/mobility_testing.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ const sections = [
8686
// required is not needed if we specifiy validations
8787
// required: true,
8888
validations: 'isRequired,minLength:160',
89+
// providing default error message to handle isRequired validation
90+
// somehow, it is not picking up error message from validationErrors object
91+
validationError: 'Please provide a description',
8992
validationErrors: {
90-
'isRequired' : 'Please provide a description',
91-
'minLength' : 'Please enter at least 160 characters'
93+
isRequired : 'Please provide a description',
94+
minLength : 'Please enter at least 160 characters'
9295
},
9396
description: 'Brief Description',
9497
title: 'Description',
@@ -377,9 +380,12 @@ export const basicSections = [
377380
// required is not needed if we specifiy validations
378381
// required: true,
379382
validations: 'isRequired,minLength:160',
383+
// providing default error message to handle isRequired validation
384+
// somehow, it is not picking up error message from validationErrors object
385+
validationError: 'Please provide a description',
380386
validationErrors: {
381-
'isRequired' : 'Please provide a description',
382-
'minLength' : 'Please enter at least 160 characters'
387+
isRequired : 'Please provide a description',
388+
minLength : 'Please enter at least 160 characters'
383389
},
384390
id: 'projectInfo',
385391
fieldName: 'description',

src/config/projectQuestions/real_world_testing.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ const sections = [
8080
// required is not needed if we specifiy validations
8181
// required: true,
8282
validations: 'isRequired,minLength:160',
83+
// providing default error message to handle isRequired validation
84+
// somehow, it is not picking up error message from validationErrors object
85+
validationError: 'Please provide a description',
8386
validationErrors: {
84-
'isRequired' : 'Please provide a description',
85-
'minLength' : 'Please enter at least 160 characters'
87+
isRequired : 'Please provide a description',
88+
minLength : 'Please enter at least 160 characters'
8689
},
8790
description: 'Brief Description',
8891
title: 'Description',
@@ -427,9 +430,12 @@ export const basicSections = [
427430
// required is not needed if we specifiy validations
428431
// required: true,
429432
validations: 'isRequired,minLength:160',
433+
// providing default error message to handle isRequired validation
434+
// somehow, it is not picking up error message from validationErrors object
435+
validationError: 'Please provide a description',
430436
validationErrors: {
431-
'isRequired' : 'Please provide a description',
432-
'minLength' : 'Please enter at least 160 characters'
437+
isRequired : 'Please provide a description',
438+
minLength : 'Please enter at least 160 characters'
433439
},
434440
id: 'projectInfo',
435441
fieldName: 'description',

src/config/projectQuestions/visual_design.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ const sections = [
8282
id: 'projectInfo',
8383
fieldName: 'description',
8484
validations: 'isRequired,minLength:160',
85+
// providing default error message to handle isRequired validation
86+
// somehow, it is not picking up error message from validationErrors object
87+
validationError: 'Please provide a description',
8588
validationErrors: {
86-
'isRequired' : 'Please provide a description',
87-
'minLength' : 'Please enter at least 160 characters'
89+
isRequired : 'Please provide a description',
90+
minLength : 'Please enter at least 160 characters'
8891
},
8992
description: 'Brief Description',
9093
title: 'Description',
@@ -315,9 +318,12 @@ export const basicSections = [
315318
// required is not needed if we specifiy validations
316319
// required: true,
317320
validations: 'isRequired,minLength:160',
321+
// providing default error message to handle isRequired validation
322+
// somehow, it is not picking up error message from validationErrors object
323+
validationError: 'Please provide a description',
318324
validationErrors: {
319-
'isRequired' : 'Please provide a description',
320-
'minLength' : 'Please enter at least 160 characters'
325+
isRequired : 'Please provide a description',
326+
minLength : 'Please enter at least 160 characters'
321327
},
322328
id: 'projectInfo',
323329
fieldName: 'description',

src/config/projectQuestions/wireframes.v1.0.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ const sections = [
8080
id: 'projectInfo',
8181
fieldName: 'description',
8282
validations: 'isRequired,minLength:160',
83+
// providing default error message to handle isRequired validation
84+
// somehow, it is not picking up error message from validationErrors object
85+
validationError: 'Please provide a description',
8386
validationErrors: {
84-
'isRequired' : 'Please provide a description',
85-
'minLength' : 'Please enter at least 160 characters'
87+
isRequired : 'Please provide a description',
88+
minLength : 'Please enter at least 160 characters'
8689
},
8790
description: 'Brief Description',
8891
title: 'Description',
@@ -296,9 +299,12 @@ export const basicSections = [
296299
// required is not needed if we specifiy validations
297300
// required: true,
298301
validations: 'isRequired,minLength:160',
302+
// providing default error message to handle isRequired validation
303+
// somehow, it is not picking up error message from validationErrors object
304+
validationError: 'Please provide a description',
299305
validationErrors: {
300-
'isRequired' : 'Please provide a description',
301-
'minLength' : 'Please enter at least 160 characters'
306+
isRequired : 'Please provide a description',
307+
minLength : 'Please enter at least 160 characters'
302308
},
303309
id: 'projectInfo',
304310
fieldName: 'description',

0 commit comments

Comments
 (0)