@coorpacademy/app-review 0.2.7 → 0.2.9-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/actions/api/fetch-rank.d.ts +32 -0
- package/es/actions/api/fetch-rank.js +30 -0
- package/es/actions/api/test/fetch-correction.test.js +2 -1
- package/es/actions/api/test/fetch-rank.test.d.ts +1 -0
- package/es/actions/api/test/fetch-rank.test.js +100 -0
- package/es/actions/api/test/fetch-skills.test.js +2 -1
- package/es/actions/api/test/fetch-slide.test.js +2 -1
- package/es/actions/api/test/post-answer.test.js +2 -1
- package/es/actions/api/test/post-progression.test.js +2 -1
- package/es/actions/data/test/token.test.js +2 -1
- package/es/actions/ui/test/answers.test.js +2 -1
- package/es/actions/ui/test/slides.test.js +2 -1
- package/es/reducers/data/corrections.d.ts +1 -1
- package/es/reducers/data/index.d.ts +4 -1
- package/es/reducers/data/index.js +2 -1
- package/es/reducers/data/rank.d.ts +7 -0
- package/es/reducers/data/rank.js +36 -0
- package/es/reducers/data/test/rank.test.d.ts +1 -0
- package/es/reducers/data/test/rank.test.js +59 -0
- package/es/reducers/index.d.ts +4 -3
- package/es/reducers/ui/slide.d.ts +1 -0
- package/es/reducers/ui/slide.js +1 -1
- package/es/services/index.js +2 -0
- package/es/test/util/services.mock.d.ts +1 -0
- package/es/test/util/services.mock.js +21 -1
- package/es/types/common.d.ts +1 -0
- package/es/views/skills/test/skills.test.js +4 -2
- package/es/views/slides/index.d.ts +21 -19
- package/es/views/slides/index.js +29 -3
- package/es/views/slides/test/fixtures/qcm-graphic.js +190 -28
- package/es/views/slides/test/index.test.js +200 -19
- package/es/views/slides/test/slide.free-text.on-change.test.js +4 -1
- package/es/views/slides/test/slide.qcm-drag.on-click.test.js +4 -1
- package/es/views/slides/test/slide.qcm-graphic.on-click.test.js +6 -3
- package/es/views/slides/test/slide.qcm.on-click.test.js +4 -1
- package/es/views/slides/test/slide.slider.on-change.test.js +4 -1
- package/es/views/slides/test/slide.template.on-change.test.js +6 -1
- package/lib/actions/api/fetch-rank.d.ts +32 -0
- package/lib/actions/api/fetch-rank.js +32 -0
- package/lib/actions/api/test/fetch-correction.test.js +2 -1
- package/lib/actions/api/test/fetch-rank.test.d.ts +1 -0
- package/lib/actions/api/test/fetch-rank.test.js +171 -0
- package/lib/actions/api/test/fetch-skills.test.js +2 -1
- package/lib/actions/api/test/fetch-slide.test.js +2 -1
- package/lib/actions/api/test/post-answer.test.js +2 -1
- package/lib/actions/api/test/post-progression.test.js +2 -1
- package/lib/actions/data/test/token.test.js +2 -1
- package/lib/actions/ui/test/answers.test.js +2 -1
- package/lib/actions/ui/test/slides.test.js +2 -1
- package/lib/reducers/data/corrections.d.ts +1 -1
- package/lib/reducers/data/index.d.ts +4 -1
- package/lib/reducers/data/index.js +2 -1
- package/lib/reducers/data/rank.d.ts +7 -0
- package/lib/reducers/data/rank.js +37 -0
- package/lib/reducers/data/test/rank.test.d.ts +1 -0
- package/lib/reducers/data/test/rank.test.js +59 -0
- package/lib/reducers/index.d.ts +4 -3
- package/lib/reducers/ui/slide.d.ts +1 -0
- package/lib/reducers/ui/slide.js +1 -1
- package/lib/services/index.js +2 -0
- package/lib/test/util/services.mock.d.ts +1 -0
- package/lib/test/util/services.mock.js +12 -1
- package/lib/types/common.d.ts +1 -0
- package/lib/views/skills/test/skills.test.js +4 -2
- package/lib/views/slides/index.d.ts +21 -19
- package/lib/views/slides/index.js +29 -3
- package/lib/views/slides/test/fixtures/qcm-graphic.js +190 -28
- package/lib/views/slides/test/index.test.js +211 -22
- package/lib/views/slides/test/slide.free-text.on-change.test.js +4 -1
- package/lib/views/slides/test/slide.qcm-drag.on-click.test.js +4 -1
- package/lib/views/slides/test/slide.qcm-graphic.on-click.test.js +6 -3
- package/lib/views/slides/test/slide.qcm.on-click.test.js +4 -1
- package/lib/views/slides/test/slide.slider.on-change.test.js +4 -1
- package/lib/views/slides/test/slide.template.on-change.test.js +6 -1
- package/package.json +4 -4
- package/src/actions/api/fetch-rank.ts +84 -0
- package/src/actions/api/test/fetch-correction.test.ts +2 -1
- package/src/actions/api/test/fetch-rank.test.ts +130 -0
- package/src/actions/api/test/fetch-skills.test.ts +2 -1
- package/src/actions/api/test/fetch-slide.test.ts +2 -1
- package/src/actions/api/test/post-answer.test.ts +2 -1
- package/src/actions/api/test/post-progression.test.ts +2 -1
- package/src/actions/data/test/token.test.ts +2 -1
- package/src/actions/ui/test/answers.test.ts +2 -1
- package/src/actions/ui/test/slides.test.ts +2 -1
- package/src/reducers/data/corrections.ts +1 -1
- package/src/reducers/data/index.ts +3 -1
- package/src/reducers/data/rank.ts +60 -0
- package/src/reducers/data/test/rank.test.ts +78 -0
- package/src/reducers/index.ts +2 -2
- package/src/reducers/ui/slide.ts +2 -1
- package/src/services/index.ts +2 -0
- package/src/test/util/services.mock.ts +23 -1
- package/src/types/common.ts +1 -0
- package/src/views/skills/test/skills.test.ts +4 -2
- package/src/views/slides/index.ts +65 -22
- package/src/views/slides/test/fixtures/qcm-graphic.ts +196 -29
- package/src/views/slides/test/index.test.ts +210 -21
- package/src/views/slides/test/slide.free-text.on-change.test.ts +4 -1
- package/src/views/slides/test/slide.qcm-drag.on-click.test.ts +4 -1
- package/src/views/slides/test/slide.qcm-graphic.on-click.test.ts +6 -4
- package/src/views/slides/test/slide.qcm.on-click.test.ts +4 -1
- package/src/views/slides/test/slide.slider.on-change.test.ts +4 -1
- package/src/views/slides/test/slide.template.on-change.test.ts +6 -1
|
@@ -55,6 +55,10 @@ const fetchSkillsResponse = [
|
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
57
|
|
|
58
|
+
const fetchRankResponse = {
|
|
59
|
+
rank: 93
|
|
60
|
+
};
|
|
61
|
+
|
|
58
62
|
export const postProgressionResponse: ProgressionFromAPI = {
|
|
59
63
|
_id: '62b1d1087aa12f00253f40ee',
|
|
60
64
|
content,
|
|
@@ -284,6 +288,23 @@ export const postAnswerResponses: Record<string, ProgressionFromAPI> = {
|
|
|
284
288
|
}
|
|
285
289
|
};
|
|
286
290
|
|
|
291
|
+
export const incorrectFreeTextPostAnswerResponse: ProgressionFromAPI = {
|
|
292
|
+
...postAnswerResponses[freeTextSlide.universalRef],
|
|
293
|
+
state: {
|
|
294
|
+
...postAnswerResponses[freeTextSlide.universalRef].state,
|
|
295
|
+
isCorrect: false,
|
|
296
|
+
allAnswers: [
|
|
297
|
+
{
|
|
298
|
+
slideRef: freeTextSlide.universalRef,
|
|
299
|
+
isCorrect: false,
|
|
300
|
+
answer: ['NOPE']
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
pendingSlides: [freeTextSlide.universalRef],
|
|
304
|
+
stars: 0
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
|
|
287
308
|
export const progressionSlideWithPendingSlide: ProgressionFromAPI = {
|
|
288
309
|
_id: '62b1d1087aa12f00253f40ee',
|
|
289
310
|
content,
|
|
@@ -419,5 +440,6 @@ export const services: Services = {
|
|
|
419
440
|
const currentSlide = progression.state.nextContent.ref;
|
|
420
441
|
return Promise.resolve(get(currentSlide, postAnswerResponses));
|
|
421
442
|
},
|
|
422
|
-
fetchCorrection: ref => Promise.resolve(getChoicesCorrection(ref))
|
|
443
|
+
fetchCorrection: ref => Promise.resolve(getChoicesCorrection(ref)),
|
|
444
|
+
fetchRank: () => Promise.resolve(fetchRankResponse)
|
|
423
445
|
};
|
package/src/types/common.ts
CHANGED
|
@@ -11,7 +11,8 @@ test('should create initial props when there are no skills on the state', t => {
|
|
|
11
11
|
skills: [],
|
|
12
12
|
slides: {},
|
|
13
13
|
token: '1234',
|
|
14
|
-
corrections: {}
|
|
14
|
+
corrections: {},
|
|
15
|
+
rank: {}
|
|
15
16
|
},
|
|
16
17
|
ui: {
|
|
17
18
|
currentSlideRef: '',
|
|
@@ -56,7 +57,8 @@ test('should create initial props when skills on the state', t => {
|
|
|
56
57
|
],
|
|
57
58
|
slides: {},
|
|
58
59
|
token: '1234',
|
|
59
|
-
corrections: {}
|
|
60
|
+
corrections: {},
|
|
61
|
+
rank: {}
|
|
60
62
|
},
|
|
61
63
|
ui: {
|
|
62
64
|
currentSlideRef: '',
|
|
@@ -8,11 +8,12 @@ import reduce from 'lodash/fp/reduce';
|
|
|
8
8
|
import set from 'lodash/fp/set';
|
|
9
9
|
import slice from 'lodash/fp/slice';
|
|
10
10
|
import toInteger from 'lodash/fp/toInteger';
|
|
11
|
-
import {Dispatch} from 'redux';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import type {Dispatch} from 'redux';
|
|
12
|
+
import join from 'lodash/fp/join';
|
|
13
|
+
import type {ProgressionAnswerItem, ProgressionFromAPI} from '../../types/common';
|
|
14
|
+
import type {SlideIndexes} from '../../common';
|
|
15
|
+
import type {StoreState} from '../../reducers';
|
|
16
|
+
import type {AnswerUI} from '../../types/slides';
|
|
16
17
|
import {postAnswer} from '../../actions/api/post-answer';
|
|
17
18
|
import {mapApiSlideToUi} from './map-api-slide-to-ui';
|
|
18
19
|
|
|
@@ -47,22 +48,27 @@ type SlidesStack = {
|
|
|
47
48
|
[key in SlideIndexes]: UISlide;
|
|
48
49
|
};
|
|
49
50
|
|
|
51
|
+
type CorrectionPopinInformation = {
|
|
52
|
+
label: string;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
type CorrectionPopinKlf = {
|
|
57
|
+
label: string;
|
|
58
|
+
tooltip: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
type CorrectionPopinNext = {
|
|
62
|
+
label: string;
|
|
63
|
+
ariaLabel: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
50
66
|
export type CorrectionPopinProps = {
|
|
51
|
-
klf
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
information: {
|
|
57
|
-
label: string;
|
|
58
|
-
message: string;
|
|
59
|
-
};
|
|
60
|
-
next: {
|
|
61
|
-
label: string;
|
|
62
|
-
ariaLabel: string;
|
|
63
|
-
};
|
|
64
|
-
successLabel: string;
|
|
65
|
-
failureLabel: string;
|
|
67
|
+
klf?: CorrectionPopinKlf;
|
|
68
|
+
information: CorrectionPopinInformation;
|
|
69
|
+
next: CorrectionPopinNext;
|
|
70
|
+
resultLabel: string;
|
|
71
|
+
type: 'right' | 'wrong';
|
|
66
72
|
};
|
|
67
73
|
|
|
68
74
|
export type SlidesViewProps = {
|
|
@@ -164,7 +170,15 @@ const buildStackSlides = (state: StoreState, dispatch: Dispatch): SlidesStack =>
|
|
|
164
170
|
const parentContentTitle = getOr('', 'parentContentTitle.title', slideFromAPI);
|
|
165
171
|
const parentContentType = getOr('', 'parentContentTitle.type', slideFromAPI);
|
|
166
172
|
|
|
173
|
+
const isCurrentSlideRef = currentSlideRef === slideRef;
|
|
174
|
+
const animateCorrectionPopin =
|
|
175
|
+
isCurrentSlideRef && getOr(false, ['ui', 'slide', 'animateCorrectionPopin'], state);
|
|
176
|
+
const showCorrectionPopin =
|
|
177
|
+
isCurrentSlideRef && getOr(false, ['ui', 'slide', 'showCorrectionPopin'], state);
|
|
178
|
+
|
|
167
179
|
const updatedUiSlide = pipe(
|
|
180
|
+
set('showCorrectionPopin', showCorrectionPopin),
|
|
181
|
+
set('animateCorrectionPopin', animateCorrectionPopin),
|
|
168
182
|
set('loading', false),
|
|
169
183
|
set('questionText', questionText),
|
|
170
184
|
set('answerUI', answerUI),
|
|
@@ -261,7 +275,35 @@ export const buildStepItems = (state: StoreState): StepItem[] => {
|
|
|
261
275
|
return steps;
|
|
262
276
|
};
|
|
263
277
|
|
|
278
|
+
const getCorrectionPopinProps = (
|
|
279
|
+
isCorrect: boolean,
|
|
280
|
+
correctAnswer: string[],
|
|
281
|
+
klf: string
|
|
282
|
+
): CorrectionPopinProps => ({
|
|
283
|
+
klf: isCorrect
|
|
284
|
+
? undefined
|
|
285
|
+
: {
|
|
286
|
+
label: '_klf',
|
|
287
|
+
tooltip: klf
|
|
288
|
+
},
|
|
289
|
+
resultLabel: isCorrect ? '_right' : '_wrong',
|
|
290
|
+
information: {
|
|
291
|
+
label: isCorrect ? '_klf' : '_correctAnswer',
|
|
292
|
+
message: isCorrect ? klf : join(',', correctAnswer)
|
|
293
|
+
},
|
|
294
|
+
next: {
|
|
295
|
+
ariaLabel: '_correctionNextAriaLabel',
|
|
296
|
+
label: '_correctionNextLabel'
|
|
297
|
+
},
|
|
298
|
+
type: isCorrect ? 'right' : 'wrong'
|
|
299
|
+
});
|
|
300
|
+
|
|
264
301
|
export const mapStateToSlidesProps = (state: StoreState, dispatch: Dispatch): SlidesViewProps => {
|
|
302
|
+
const currentSlideRef = get(['ui', 'currentSlideRef'], state);
|
|
303
|
+
const correction = get(['data', 'corrections', currentSlideRef], state);
|
|
304
|
+
const isCorrect = get(['data', 'progression', 'state', 'isCorrect'], state);
|
|
305
|
+
const klf = getOr('', ['data', 'slides', currentSlideRef, 'klf'], state);
|
|
306
|
+
|
|
265
307
|
return {
|
|
266
308
|
header: {
|
|
267
309
|
mode: '__revision_mode',
|
|
@@ -279,11 +321,12 @@ export const mapStateToSlidesProps = (state: StoreState, dispatch: Dispatch): Sl
|
|
|
279
321
|
validateButton: {
|
|
280
322
|
label: '__validate',
|
|
281
323
|
disabled: !get('ui.slide.validateButton', state),
|
|
282
|
-
onClick: (): void => {
|
|
324
|
+
onClick: /* istanbul ignore next */ (): void => {
|
|
283
325
|
dispatch(postAnswer);
|
|
284
326
|
}
|
|
285
327
|
},
|
|
286
|
-
correctionPopinProps:
|
|
328
|
+
correctionPopinProps:
|
|
329
|
+
correction && getCorrectionPopinProps(isCorrect, correction.correctAnswer, klf),
|
|
287
330
|
endReview: false
|
|
288
331
|
},
|
|
289
332
|
congratsProps: undefined
|
|
@@ -15,10 +15,10 @@ export const qcmGraphicSlide: SlideFromAPI = {
|
|
|
15
15
|
media: {
|
|
16
16
|
src: [
|
|
17
17
|
{
|
|
18
|
-
_id: '
|
|
18
|
+
_id: '616dbbb61a50f8051c1971ba',
|
|
19
19
|
mimeType: 'image/jpeg',
|
|
20
|
-
url: '//static.coorpacademy.com/content/CoorpAcademy/content-
|
|
21
|
-
id: '
|
|
20
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_180530003-1618999931321.jpg',
|
|
21
|
+
id: '616dbbb61a50f8051c1971ba'
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
24
|
posters: [],
|
|
@@ -26,19 +26,19 @@ export const qcmGraphicSlide: SlideFromAPI = {
|
|
|
26
26
|
type: 'img'
|
|
27
27
|
},
|
|
28
28
|
items: [],
|
|
29
|
-
_id: '
|
|
30
|
-
label: '
|
|
31
|
-
value: '
|
|
32
|
-
id: '
|
|
29
|
+
_id: '616dbbb61a50f8051c1971b9',
|
|
30
|
+
label: 'La consolidation des acquis',
|
|
31
|
+
value: 'sli_4k5O3zaN5.choice_E1ebZYyF8q',
|
|
32
|
+
id: '616dbbb61a50f8051c1971b9'
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
media: {
|
|
36
36
|
src: [
|
|
37
37
|
{
|
|
38
|
-
_id: '
|
|
38
|
+
_id: '616dbbb61a50f8051c1971bc',
|
|
39
39
|
mimeType: 'image/jpeg',
|
|
40
|
-
url: '//static.coorpacademy.com/content/CoorpAcademy/content-
|
|
41
|
-
id: '
|
|
40
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_1170951868-1618999931510.jpg',
|
|
41
|
+
id: '616dbbb61a50f8051c1971bc'
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
posters: [],
|
|
@@ -46,19 +46,139 @@ export const qcmGraphicSlide: SlideFromAPI = {
|
|
|
46
46
|
type: 'img'
|
|
47
47
|
},
|
|
48
48
|
items: [],
|
|
49
|
-
_id: '
|
|
50
|
-
label: '
|
|
51
|
-
value: '
|
|
52
|
-
id: '
|
|
49
|
+
_id: '616dbbb61a50f8051c1971bb',
|
|
50
|
+
label: 'Le retour d’information',
|
|
51
|
+
value: 'sli_4k5O3zaN5.choice_NygF~FJFIc',
|
|
52
|
+
id: '616dbbb61a50f8051c1971bb'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
media: {
|
|
56
|
+
src: [
|
|
57
|
+
{
|
|
58
|
+
_id: '616dbbb61a50f8051c1971be',
|
|
59
|
+
mimeType: 'image/jpeg',
|
|
60
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_439207960-1618999931642.jpg',
|
|
61
|
+
id: '616dbbb61a50f8051c1971be'
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
posters: [],
|
|
65
|
+
subtitles: [],
|
|
66
|
+
type: 'img'
|
|
67
|
+
},
|
|
68
|
+
items: [],
|
|
69
|
+
_id: '616dbbb61a50f8051c1971bd',
|
|
70
|
+
label: 'L’engagement actif',
|
|
71
|
+
value: 'sli_4k5O3zaN5.choice_4yx5bKJKIc',
|
|
72
|
+
id: '616dbbb61a50f8051c1971bd'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
media: {
|
|
76
|
+
src: [
|
|
77
|
+
{
|
|
78
|
+
_id: '616dbbb61a50f8051c1971c0',
|
|
79
|
+
mimeType: 'image/jpeg',
|
|
80
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_538654849-1618999935091.jpg',
|
|
81
|
+
id: '616dbbb61a50f8051c1971c0'
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
posters: [],
|
|
85
|
+
subtitles: [],
|
|
86
|
+
type: 'img'
|
|
87
|
+
},
|
|
88
|
+
items: [],
|
|
89
|
+
_id: '616dbbb61a50f8051c1971bf',
|
|
90
|
+
label: 'La motivation',
|
|
91
|
+
value: 'sli_4k5O3zaN5.choice_VkzcZY1F8q',
|
|
92
|
+
id: '616dbbb61a50f8051c1971bf'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
media: {
|
|
96
|
+
src: [
|
|
97
|
+
{
|
|
98
|
+
_id: '616dbbb61a50f8051c1971c2',
|
|
99
|
+
mimeType: 'image/jpeg',
|
|
100
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_485162803-1618999941454.jpg',
|
|
101
|
+
id: '616dbbb61a50f8051c1971c2'
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
posters: [],
|
|
105
|
+
subtitles: [],
|
|
106
|
+
type: 'img'
|
|
107
|
+
},
|
|
108
|
+
items: [],
|
|
109
|
+
_id: '616dbbb61a50f8051c1971c1',
|
|
110
|
+
label: 'L’attention',
|
|
111
|
+
value: 'sli_4k5O3zaN5.choice_Vken~YJFI5',
|
|
112
|
+
id: '616dbbb61a50f8051c1971c1'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
media: {
|
|
116
|
+
src: [
|
|
117
|
+
{
|
|
118
|
+
_id: '616dbbb61a50f8051c1971c4',
|
|
119
|
+
mimeType: 'image/jpeg',
|
|
120
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_374136655-1619000050478.jpg',
|
|
121
|
+
id: '616dbbb61a50f8051c1971c4'
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
posters: [],
|
|
125
|
+
subtitles: [],
|
|
126
|
+
type: 'img'
|
|
127
|
+
},
|
|
128
|
+
items: [],
|
|
129
|
+
_id: '616dbbb61a50f8051c1971c3',
|
|
130
|
+
label: 'La confiance en soi',
|
|
131
|
+
value: 'sli_4k5O3zaN5.choice_4JgpWKkFLq',
|
|
132
|
+
id: '616dbbb61a50f8051c1971c3'
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
media: {
|
|
136
|
+
src: [
|
|
137
|
+
{
|
|
138
|
+
_id: '616dbbb61a50f8051c1971c6',
|
|
139
|
+
mimeType: 'image/jpeg',
|
|
140
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_142530529-1618999997389.jpg',
|
|
141
|
+
id: '616dbbb61a50f8051c1971c6'
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
posters: [],
|
|
145
|
+
subtitles: [],
|
|
146
|
+
type: 'img'
|
|
147
|
+
},
|
|
148
|
+
items: [],
|
|
149
|
+
_id: '616dbbb61a50f8051c1971c5',
|
|
150
|
+
label: 'La capacité d’abstraction',
|
|
151
|
+
value: 'sli_4k5O3zaN5.choice_NJfabKkK8q',
|
|
152
|
+
id: '616dbbb61a50f8051c1971c5'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
media: {
|
|
156
|
+
src: [
|
|
157
|
+
{
|
|
158
|
+
_id: '616dbbb61a50f8051c1971c8',
|
|
159
|
+
mimeType: 'image/jpeg',
|
|
160
|
+
url: '//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_5948041-1618999993222.jpg',
|
|
161
|
+
id: '616dbbb61a50f8051c1971c8'
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
posters: [],
|
|
165
|
+
subtitles: [],
|
|
166
|
+
type: 'img'
|
|
167
|
+
},
|
|
168
|
+
items: [],
|
|
169
|
+
_id: '616dbbb61a50f8051c1971c7',
|
|
170
|
+
label: 'L’abnégation',
|
|
171
|
+
value: 'sli_4k5O3zaN5.choice_41xAWYJYI9',
|
|
172
|
+
id: '616dbbb61a50f8051c1971c7'
|
|
53
173
|
}
|
|
54
174
|
]
|
|
55
175
|
},
|
|
56
176
|
type: 'qcmGraphic',
|
|
57
|
-
header: '
|
|
58
|
-
explanation: 'Sélectionnez
|
|
177
|
+
header: 'Quels sont les 4 piliers de l’apprentissage ?',
|
|
178
|
+
explanation: 'Sélectionnez les 4 bonnes réponses.'
|
|
59
179
|
},
|
|
60
|
-
klf:
|
|
61
|
-
tips:
|
|
180
|
+
klf: 'Avec l’engagement actif, le retour d’information et la consolidation des acquis, l’attention est le premier des quatre piliers de l’apprentissage, identifiés par les chercheurs en neuroscience, spécialistes de l’éducation.',
|
|
181
|
+
tips: 'Une configuration idéale pour l’apprentissage, mettant en œuvre ces 4 piliers : présenter à un apprenant un contenu de durée raisonnable, qui respecte le temps d’attention qu’il peut lui accorder ; proposer ensuite un exercice sur le contenu qui vient d’être expliqué ; puis donner à l’apprenant un retour en direct sur sa production.',
|
|
62
182
|
universalRef: 'sli_VkSQroQnx',
|
|
63
183
|
_id: 'sli_VkSQroQnx',
|
|
64
184
|
parentContentTitle: {
|
|
@@ -68,28 +188,75 @@ export const qcmGraphicSlide: SlideFromAPI = {
|
|
|
68
188
|
};
|
|
69
189
|
|
|
70
190
|
export const qcmGraphicUISlide: Partial<UISlide> = {
|
|
71
|
-
questionText:
|
|
72
|
-
'Pour mener une bonne négociation, il ne faut ressentir aucune émotion. Vrai ou faux ?',
|
|
191
|
+
questionText: 'Quels sont les 4 piliers de l’apprentissage ?',
|
|
73
192
|
answerUI: {
|
|
74
|
-
help: 'Sélectionnez
|
|
193
|
+
help: 'Sélectionnez les 4 bonnes réponses.',
|
|
75
194
|
model: {
|
|
76
195
|
type: 'qcmGraphic',
|
|
77
196
|
answers: [
|
|
78
197
|
{
|
|
79
|
-
title: '
|
|
198
|
+
title: 'La consolidation des acquis',
|
|
199
|
+
image:
|
|
200
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_180530003-1618999931321.jpg',
|
|
201
|
+
selected: false,
|
|
202
|
+
ariaLabel: 'La consolidation des acquis',
|
|
203
|
+
onClick: noop
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
title: 'Le retour d’information',
|
|
207
|
+
image:
|
|
208
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_1170951868-1618999931510.jpg',
|
|
209
|
+
selected: false,
|
|
210
|
+
ariaLabel: 'Le retour d’information',
|
|
211
|
+
onClick: noop
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
title: 'L’engagement actif',
|
|
215
|
+
image:
|
|
216
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_439207960-1618999931642.jpg',
|
|
217
|
+
selected: false,
|
|
218
|
+
ariaLabel: 'L’engagement actif',
|
|
219
|
+
onClick: noop
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
title: 'La motivation',
|
|
223
|
+
image:
|
|
224
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_538654849-1618999935091.jpg',
|
|
225
|
+
selected: false,
|
|
226
|
+
ariaLabel: 'La motivation',
|
|
227
|
+
onClick: noop
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
title: 'L’attention',
|
|
231
|
+
image:
|
|
232
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_485162803-1618999941454.jpg',
|
|
233
|
+
selected: false,
|
|
234
|
+
ariaLabel: 'L’attention',
|
|
235
|
+
onClick: noop
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
title: 'La confiance en soi',
|
|
239
|
+
image:
|
|
240
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_374136655-1619000050478.jpg',
|
|
241
|
+
selected: false,
|
|
242
|
+
ariaLabel: 'La confiance en soi',
|
|
243
|
+
onClick: noop
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
title: 'La capacité d’abstraction',
|
|
80
247
|
image:
|
|
81
|
-
'//static.coorpacademy.com/content/CoorpAcademy/content-
|
|
248
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_142530529-1618999997389.jpg',
|
|
82
249
|
selected: false,
|
|
83
|
-
|
|
84
|
-
|
|
250
|
+
ariaLabel: 'La capacité d’abstraction',
|
|
251
|
+
onClick: noop
|
|
85
252
|
},
|
|
86
253
|
{
|
|
87
|
-
title: '
|
|
254
|
+
title: 'L’abnégation',
|
|
88
255
|
image:
|
|
89
|
-
'//static.coorpacademy.com/content/CoorpAcademy/content-
|
|
256
|
+
'//static.coorpacademy.com/content/CoorpAcademy/content-science-et-vie/cockpit-science-et-vie/default/shutterstock_5948041-1618999993222.jpg',
|
|
90
257
|
selected: false,
|
|
91
|
-
|
|
92
|
-
|
|
258
|
+
ariaLabel: 'L’abnégation',
|
|
259
|
+
onClick: noop
|
|
93
260
|
}
|
|
94
261
|
]
|
|
95
262
|
}
|