File tree Expand file tree Collapse file tree 13 files changed +683
-220
lines changed Expand file tree Collapse file tree 13 files changed +683
-220
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ module.exports = {
12
12
plugins : [ 'prettier' ] ,
13
13
rules : {
14
14
'import/prefer-default-export' : 'off' ,
15
+ '@typescript-eslint/no-unsafe-assignment' : 'off' ,
16
+ '@typescript-eslint/no-unsafe-call' : 'off' ,
17
+ '@typescript-eslint/no-unsafe-member-access' : 'off' ,
15
18
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
19
+ '@typescript-eslint/no-explicit-any' : 'off' ,
16
20
'react/jsx-props-no-spreading' : 'off' ,
17
21
'react/react-in-jsx-scope' : 'off' ,
18
22
'prettier/prettier' : [
Original file line number Diff line number Diff line change 2249
2249
"description" : null ,
2250
2250
"args" : [],
2251
2251
"type" : {
2252
- "kind" : " LIST " ,
2252
+ "kind" : " NON_NULL " ,
2253
2253
"name" : null ,
2254
2254
"ofType" : {
2255
- "kind" : " UNION" ,
2256
- "name" : " MissionContent" ,
2257
- "ofType" : null
2255
+ "kind" : " LIST" ,
2256
+ "name" : null ,
2257
+ "ofType" : {
2258
+ "kind" : " NON_NULL" ,
2259
+ "name" : null ,
2260
+ "ofType" : {
2261
+ "kind" : " UNION" ,
2262
+ "name" : " MissionContent" ,
2263
+ "ofType" : null
2264
+ }
2265
+ }
2258
2266
}
2259
2267
},
2260
2268
"isDeprecated" : false ,
4285
4293
}
4286
4294
],
4287
4295
"type" : {
4288
- "kind" : " OBJECT" ,
4289
- "name" : " Mission" ,
4290
- "ofType" : null
4296
+ "kind" : " NON_NULL" ,
4297
+ "name" : null ,
4298
+ "ofType" : {
4299
+ "kind" : " OBJECT" ,
4300
+ "name" : " Mission" ,
4301
+ "ofType" : null
4302
+ }
4291
4303
},
4292
4304
"isDeprecated" : false ,
4293
4305
"deprecationReason" : null
4310
4322
}
4311
4323
],
4312
4324
"type" : {
4313
- "kind" : " LIST " ,
4325
+ "kind" : " NON_NULL " ,
4314
4326
"name" : null ,
4315
4327
"ofType" : {
4316
- "kind" : " OBJECT" ,
4317
- "name" : " Mission" ,
4318
- "ofType" : null
4328
+ "kind" : " LIST" ,
4329
+ "name" : null ,
4330
+ "ofType" : {
4331
+ "kind" : " NON_NULL" ,
4332
+ "name" : null ,
4333
+ "ofType" : {
4334
+ "kind" : " OBJECT" ,
4335
+ "name" : " Mission" ,
4336
+ "ofType" : null
4337
+ }
4338
+ }
4319
4339
}
4320
4340
},
4321
4341
"isDeprecated" : false ,
5126
5146
"isDeprecated" : false ,
5127
5147
"deprecationReason" : null
5128
5148
},
5149
+ {
5150
+ "name" : " getAllEnrolledStudentMissionProgress" ,
5151
+ "description" : null ,
5152
+ "args" : [
5153
+ {
5154
+ "name" : " courseId" ,
5155
+ "description" : null ,
5156
+ "type" : {
5157
+ "kind" : " NON_NULL" ,
5158
+ "name" : null ,
5159
+ "ofType" : {
5160
+ "kind" : " SCALAR" ,
5161
+ "name" : " String" ,
5162
+ "ofType" : null
5163
+ }
5164
+ },
5165
+ "defaultValue" : null ,
5166
+ "isDeprecated" : false ,
5167
+ "deprecationReason" : null
5168
+ },
5169
+ {
5170
+ "name" : " missionId" ,
5171
+ "description" : null ,
5172
+ "type" : {
5173
+ "kind" : " NON_NULL" ,
5174
+ "name" : null ,
5175
+ "ofType" : {
5176
+ "kind" : " SCALAR" ,
5177
+ "name" : " String" ,
5178
+ "ofType" : null
5179
+ }
5180
+ },
5181
+ "defaultValue" : null ,
5182
+ "isDeprecated" : false ,
5183
+ "deprecationReason" : null
5184
+ }
5185
+ ],
5186
+ "type" : {
5187
+ "kind" : " NON_NULL" ,
5188
+ "name" : null ,
5189
+ "ofType" : {
5190
+ "kind" : " LIST" ,
5191
+ "name" : null ,
5192
+ "ofType" : {
5193
+ "kind" : " NON_NULL" ,
5194
+ "name" : null ,
5195
+ "ofType" : {
5196
+ "kind" : " OBJECT" ,
5197
+ "name" : " MissionProgress" ,
5198
+ "ofType" : null
5199
+ }
5200
+ }
5201
+ }
5202
+ },
5203
+ "isDeprecated" : false ,
5204
+ "deprecationReason" : null
5205
+ },
5206
+ {
5207
+ "name" : " getMissionProgress" ,
5208
+ "description" : null ,
5209
+ "args" : [
5210
+ {
5211
+ "name" : " missionId" ,
5212
+ "description" : null ,
5213
+ "type" : {
5214
+ "kind" : " NON_NULL" ,
5215
+ "name" : null ,
5216
+ "ofType" : {
5217
+ "kind" : " SCALAR" ,
5218
+ "name" : " String" ,
5219
+ "ofType" : null
5220
+ }
5221
+ },
5222
+ "defaultValue" : null ,
5223
+ "isDeprecated" : false ,
5224
+ "deprecationReason" : null
5225
+ },
5226
+ {
5227
+ "name" : " username" ,
5228
+ "description" : null ,
5229
+ "type" : {
5230
+ "kind" : " SCALAR" ,
5231
+ "name" : " String" ,
5232
+ "ofType" : null
5233
+ },
5234
+ "defaultValue" : null ,
5235
+ "isDeprecated" : false ,
5236
+ "deprecationReason" : null
5237
+ }
5238
+ ],
5239
+ "type" : {
5240
+ "kind" : " NON_NULL" ,
5241
+ "name" : null ,
5242
+ "ofType" : {
5243
+ "kind" : " OBJECT" ,
5244
+ "name" : " MissionProgress" ,
5245
+ "ofType" : null
5246
+ }
5247
+ },
5248
+ "isDeprecated" : false ,
5249
+ "deprecationReason" : null
5250
+ },
5129
5251
{
5130
5252
"name" : " getAllMissionProgress" ,
5131
5253
"description" : null ,
8218
8340
"isDeprecated" : false ,
8219
8341
"deprecationReason" : null
8220
8342
},
8343
+ {
8344
+ "name" : " username" ,
8345
+ "description" : null ,
8346
+ "args" : [],
8347
+ "type" : {
8348
+ "kind" : " NON_NULL" ,
8349
+ "name" : null ,
8350
+ "ofType" : {
8351
+ "kind" : " SCALAR" ,
8352
+ "name" : " String" ,
8353
+ "ofType" : null
8354
+ }
8355
+ },
8356
+ "isDeprecated" : false ,
8357
+ "deprecationReason" : null
8358
+ },
8221
8359
{
8222
8360
"name" : " submission" ,
8223
8361
"description" : " Null indicates that this task does not yet have an associated submission" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import StudentPicture from '../../assets/images/images-1.png';
12
12
import { User } from '../../interfaces/User' ;
13
13
import LinearProgressWithLabel from '../LinearProgressWithLabel/LinearProgressWithLabel' ;
14
14
import {
15
- MissionProgress ,
16
15
TaskObjectiveProgress ,
17
16
TaskStats ,
18
17
useGetMissionProgressQuery ,
@@ -114,10 +113,11 @@ function getTaskObjectiveProgress(task: TaskStats) {
114
113
}
115
114
116
115
// eslint-disable-next-line consistent-return
117
- function getMissionProgress ( missionData : MissionProgress [ ] , name : string ) {
116
+ function getMissionProgress ( missionData : any , name : string ) {
118
117
// eslint-disable-next-line no-restricted-syntax
119
118
for ( const mission of missionData ) {
120
119
if ( mission . mission . name === name ) {
120
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
121
121
return mission . progress ;
122
122
}
123
123
}
@@ -155,7 +155,7 @@ function SingleMissionOverview() {
155
155
156
156
const missionData = data ?. getAllMissionProgress ;
157
157
158
- const missionProgressData = getMissionProgress ( missionData as MissionProgress [ ] , name as string ) ;
158
+ const missionProgressData = getMissionProgress ( missionData , name as string ) ;
159
159
160
160
return (
161
161
< div
Original file line number Diff line number Diff line change @@ -18,20 +18,21 @@ import TableComponent from '../TableComponent/TableComponent';
18
18
import {
19
19
CmStudentFieldsFragment ,
20
20
CtmObjectiveMasteryFieldsFragment ,
21
+ Maybe ,
21
22
Target ,
22
23
useClassMissionMasteryQuery ,
23
24
} from '../../__generated__/types' ;
24
- import { LIST_TARGETS_BY_COURSE } from '../../hooks/ListTargetsByCourse' ;
25
25
import SelectedLTStudentViewTable from './SelectedLTStudentViewTable' ;
26
26
import { Mastery } from '../../Screens/ClassMastery/StudentMasteryRow' ;
27
+ import { LIST_TARGETS_BY_COURSE } from '../../hooks/ListTargetsByCourse' ;
27
28
28
29
interface LTStudentViewRow {
29
30
row : {
30
31
section : string ;
31
32
name : string ;
32
33
firstName : string ;
33
34
lastName : string ;
34
- team ?: string ;
35
+ team : Maybe < string > ;
35
36
recent : string ;
36
37
average : string ;
37
38
progress : string ;
You can’t perform that action at this time.
0 commit comments