You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// iterate over all seeAttached type fields to check
9
+
// if any see attached is checked.
10
+
return_.some(_.map(
11
+
_.map(fields,'fieldName'),
12
+
fn=>_.get(project,`${fn}.seeAttached`)
13
+
))
14
+
}
15
+
16
+
constsections=[
17
+
{
18
+
id: 'appDefinition',
19
+
title: (project,showProduct)=>{
20
+
constproduct=_.get(project,'details.products[0]')
21
+
if(showProduct&&product){
22
+
constprd=findProduct(product)
23
+
if(prd)returnprd.name
24
+
}
25
+
return'Definition'
26
+
},
27
+
required: true,
28
+
description: 'Please answer a few basic questions about your project. You can also provide the needed information in a supporting document--add a link in the notes section or upload it below.',
29
+
subSections: [
30
+
{
31
+
id: 'projectName',
32
+
required: true,
33
+
validationError: 'Please provide a name for your project',
34
+
fieldName: 'name',
35
+
description: '',
36
+
title: 'Project Name',
37
+
type: 'project-name'
38
+
},
39
+
{
40
+
id: 'questions',
41
+
required: true,
42
+
hideTitle: true,
43
+
title: 'Questions',
44
+
description: '',
45
+
type: 'questions',
46
+
questions: [
47
+
{
48
+
icon: 'question',
49
+
title: 'Which is your primary device target?',
50
+
description: 'Select only the device that you need to develop for. \
51
+
In most cases limiting the scope of your project would result \
52
+
in better final result. Topcoder recommends to always start \
53
+
with the mobile phone view and expand to other devices as your \
// required is not needed if we specifiy validations
67
+
// required: true,
68
+
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',
72
+
validationErrors: {
73
+
isRequired : 'Please provide a description',
74
+
minLength : 'Please enter at least 160 characters'
75
+
},
76
+
fieldName: 'description',
77
+
description: 'Brief Description',
78
+
title: 'Description',
79
+
type: 'textbox'
80
+
},
81
+
{
82
+
icon: 'question',
83
+
title: 'What is the goal of your application? How will people use it?',
84
+
description: 'Describe your objectives for creating this application',
85
+
type: 'see-attached-textbox',
86
+
fieldName: 'details.appDefinition.goal'
87
+
},
88
+
{
89
+
icon: 'question',
90
+
title: 'Who are the users of your application? ',
91
+
description: 'Describe the roles and needs of your target users',
92
+
type: 'see-attached-textbox',
93
+
fieldName: 'details.appDefinition.users'
94
+
},
95
+
{
96
+
icon: 'question',
97
+
title: 'Feature requirements',
98
+
description: 'Please list all the features you would like in your application. You can use our wizard to pick from common features or define your own.',
99
+
type: 'see-attached-features',
100
+
fieldName: 'details.appDefinition.features'
101
+
}
102
+
]
103
+
},
104
+
{
105
+
id: 'notes',
106
+
fieldName: 'details.appDefinition.notes',
107
+
title: 'Notes',
108
+
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications)',
description: 'Define the visual style for your application or provide a style guide or brand guidelines. Skip this section (or particular questions) if you don\'t have any preferences or restrictions.',
126
+
subSections: [
127
+
{
128
+
id: 'questions',
129
+
required: false,
130
+
title: 'Questions',
131
+
description: '',
132
+
type: 'questions',
133
+
questions: [
134
+
{
135
+
icon: 'question',
136
+
title: 'What font style do you prefer? (Pick one)',
137
+
description: 'The typography used in your designs will fit within these broad font styles',
138
+
type: 'tiled-radio-group',
139
+
options: [
140
+
{value: 'serif',title: 'Serif',icon: Icons.IconTcSpecTypeSerif,iconOptions: {fill: '#00000'},desc: 'formal, old style'},
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timing constraints)',
173
+
type: 'notes'
174
+
}
175
+
]
176
+
},
177
+
{
178
+
id: 'devSpecification',
179
+
title: 'Development Specification',
180
+
description: 'Define some basic technical requirements for your application or provide any architecture or technical guidelines. Skip this section if you dont know what is required.',
181
+
required: false,
182
+
subSections: [
183
+
{
184
+
id: 'questions',
185
+
required: false,
186
+
title: 'Questions',
187
+
description: '',
188
+
type: 'questions',
189
+
questions: [
190
+
{
191
+
icon: 'question',
192
+
title: 'How should your application be built?',
193
+
description: 'Choose the operating system/platform for your application',
194
+
type: 'checkbox-group',
195
+
options: [
196
+
{value: 'ios',label: 'iOS'},
197
+
{value: 'android',label: 'Android'},
198
+
{value: 'web',label: 'Web'},
199
+
{value: 'hybrid',label: 'Hybrid'}
200
+
],
201
+
fieldName: 'details.devSpecification.platform'
202
+
},
203
+
{
204
+
icon: 'question',
205
+
title: 'Is offline access required for your application?',
206
+
description: 'Do your users need to use the application when they are unable to connect to the internet?',
description: 'Add any other important information regarding your project (e.g., links to documents or existing applications, budget or timing constraints)',
234
+
type: 'notes'
235
+
}
236
+
]
237
+
}
238
+
]
239
+
240
+
exportdefaultsections
241
+
242
+
exportconstbasicSections=[
243
+
{
244
+
id: 'appDefinition',
245
+
title: '',
246
+
required: true,
247
+
description: 'Please answer a few basic questions about your project and, as an option, add links to supporting documents in the “Notes” section. If you have any files to upload, you’ll be able to do so later.',
248
+
subSections: [
249
+
{
250
+
id: 'projectName',
251
+
required: true,
252
+
validationError: 'Please provide a name for your project',
253
+
fieldName: 'name',
254
+
description: '',
255
+
title: 'Project Name',
256
+
type: 'project-name'
257
+
},
258
+
{
259
+
id: 'questions',
260
+
required: true,
261
+
hideTitle: true,
262
+
title: 'Questions',
263
+
description: '',
264
+
type: 'questions',
265
+
questions: [
266
+
{
267
+
icon: 'question',
268
+
required: true,
269
+
validationError: 'Please let us know the target device',
270
+
title: 'Which is your primary device target?',
271
+
description: 'Select only the device that you need to develop for. \
272
+
In most cases limiting the scope of your project would result \
273
+
in better final result. Topcoder recommends to always start \
274
+
with the mobile phone view and expand to other devices as your \
0 commit comments