Skip to content

Commit ae2bfc7

Browse files
authored
Merge pull request #31 from yibeichan/test-slider
add slider example to match changes in UI
2 parents 440ac2b + 807a479 commit ae2bfc7

File tree

4 files changed

+58
-13
lines changed

4 files changed

+58
-13
lines changed

activities/responsesReferenceActivity/responsesReferenceActivity_schema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Activity",
4-
"@id": "responseReferenceActivity_schema",
4+
"@id": "responsesReferenceActivity_schema",
55
"prefLabel": "Global Responses Reference Activity",
66
"description": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses.",
77
"preamble": "Demonstrates conditional visibility by referring to the global responses variable that stores all responses. After answering the first question, the second question will be determined by referring to your first answer in the global responses object.",
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
3+
"@type": "reproschema:Field",
4+
"@id": "slider_item_with_max",
5+
"prefLabel": "slider item with max value",
6+
"description": "This is a slider item with max value.",
7+
"schemaVersion": "1.0.0",
8+
"version": "0.0.1",
9+
"question": "This is an example of a slider item with max value.",
10+
"ui": {
11+
"inputType": "slider"
12+
},
13+
"responseOptions": {
14+
"valueType": "xsd:integer",
15+
"minValue": 0,
16+
"maxValue": 100,
17+
"multipleChoice": false,
18+
"choices": [
19+
{
20+
"name": "Response option 1",
21+
"value": 0
22+
},
23+
{
24+
"name": "Response option 2",
25+
"value": 25
26+
},
27+
{
28+
"name": "Response option 3",
29+
"value": 50
30+
},
31+
{
32+
"name": "Response option 4",
33+
"value": 75
34+
},
35+
{
36+
"name": "Response option 5",
37+
"value": 100
38+
}
39+
]
40+
}
41+
}

activities/selectActivity/items/slider_item renamed to activities/selectActivity/items/slider_item_without_max

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
33
"@type": "reproschema:Field",
4-
"@id": "slider_item",
5-
"prefLabel": "slider item",
6-
"description": "This is a slider item.",
4+
"@id": "slider_item_without_max",
5+
"prefLabel": "slider item without max",
6+
"description": "This is a slider item without max value.",
77
"schemaVersion": "1.0.0",
88
"version": "0.0.1",
9-
"question": "This is an example of a slider item.",
9+
"question": "This is an example of a slider item without max value.",
1010
"ui": {
1111
"inputType": "slider"
1212
},
1313
"responseOptions": {
1414
"valueType": "xsd:integer",
15-
"minValue": 0,
16-
"maxValue": 4,
1715
"multipleChoice": false,
1816
"choices": [
1917
{
@@ -31,13 +29,11 @@
3129
{
3230
"name": "Response option 4",
3331
"value": 3
34-
}
35-
,
32+
},
3633
{
3734
"name": "Response option 5",
3835
"value": 4
3936
}
40-
4137
]
4238
}
4339
}

activities/selectActivity/selectActivity_schema

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@
3737
"reproschema:Skipped"
3838
]
3939
},
40-
{"isAbout": "items/slider_item",
41-
"variableName": "slider_item",
40+
{"isAbout": "items/slider_item_with_max",
41+
"variableName": "slider_item_with_max",
42+
"isVis": true,
43+
"allow": [
44+
"reproschema:Skipped"
45+
]
46+
},
47+
{"isAbout": "items/slider_item_without_max",
48+
"variableName": "slider_item_without_max",
4249
"isVis": true,
4350
"allow": [
4451
"reproschema:Skipped"
@@ -50,7 +57,8 @@
5057
"items/radio_item_multiple_choice",
5158
"items/select_item",
5259
"items/select_item_multiple_choice",
53-
"items/slider_item"
60+
"items/slider_item_with_max",
61+
"items/slider_item_without_max"
5462
],
5563
"shuffle": false,
5664
"allow": [

0 commit comments

Comments
 (0)