Skip to content

Commit bd93940

Browse files
committed
feat: add tutorial types for find, compare, completeness and validate
1 parent 1cb0324 commit bd93940

File tree

5 files changed

+356
-0
lines changed

5 files changed

+356
-0
lines changed
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
FbEnumInformationPageBlockType:
2+
model: alias
3+
type:
4+
type: enum
5+
members:
6+
- label: 'TEXT'
7+
value: 'text'
8+
- label: 'IMAGE'
9+
value: 'image'
10+
11+
FbInformationPageBlock:
12+
model: alias
13+
type:
14+
type: object
15+
fields:
16+
blockNumber:
17+
type: int
18+
blockType:
19+
type: FbEnumInformationPageBlockType
20+
textDescription: # NOTE: required if type is TEXT
21+
type: string
22+
optional: true
23+
image: # NOTE: required if tyoe is IMAGE
24+
type: string
25+
optional: true
26+
27+
FbInformationPage:
28+
model: alias
29+
type:
30+
type: object
31+
fields:
32+
pageNumber:
33+
type: int
34+
title:
35+
type: string
36+
blocks:
37+
type:
38+
type: list
39+
elementType: FbInformationPageBlock
40+
41+
FbScreenBlock:
42+
model: alias
43+
type:
44+
type: object
45+
fields:
46+
title:
47+
type: string
48+
description:
49+
type: string
50+
# FIXME: Do we add enum here?
51+
icon:
52+
type: string
53+
54+
FbScreen:
55+
model: alias
56+
type:
57+
type: object
58+
fields:
59+
hint:
60+
type: FbScreenBlock
61+
instructions:
62+
type: FbScreenBlock
63+
success:
64+
type: FbScreenBlock
65+
66+
FbBaseTutorial:
67+
model: alias
68+
type:
69+
type: object
70+
fields:
71+
# deprecated
72+
exampleImage1:
73+
type: string
74+
optional: true
75+
exampleImage2:
76+
type: string
77+
optional: true
78+
contributorCount: # NOTE: intially zero
79+
type: int
80+
informationPages:
81+
type:
82+
type: list
83+
elementType: FbInformationPage
84+
lookFor:
85+
type: string
86+
name:
87+
type: string
88+
progress:
89+
type: int
90+
projectDetails:
91+
type: string
92+
projectId:
93+
type: string
94+
projectTopicKey: # NOTE: deprecated
95+
type: string
96+
status:
97+
type:
98+
type: literal
99+
value: tutorial
100+
tutorialDraftId: # NOTE: deprecated
101+
type: string
102+
103+
FbBaseTutorialGroup:
104+
model: alias
105+
type:
106+
type: object
107+
fields:
108+
finishedCount: # NOTE: initially zero
109+
type: int
110+
groupId: # NOTE: initially 101
111+
type: int
112+
numberOfTasks:
113+
type: int
114+
progress: # NOTE: initially zero
115+
type: int
116+
projectId:
117+
type: string
118+
requiredCount: # NOTE: always 5?
119+
type: int
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
FbCompareTutorial:
2+
model: alias
3+
type:
4+
type: object
5+
fields:
6+
projectType:
7+
type:
8+
type: literal
9+
value: 3
10+
tileServer:
11+
type: FbObjRasterTileServer
12+
tileServerB:
13+
type: FbObjRasterTileServer
14+
zoomLevel:
15+
type: int
16+
screens:
17+
type:
18+
type: list
19+
elementType: FbScreen
20+
21+
FbCompareTutorialGroup:
22+
model: alias
23+
type:
24+
type: object
25+
fields:
26+
xMax:
27+
type: int
28+
xMin:
29+
type: int
30+
yMax:
31+
type: int
32+
yMin:
33+
type: int
34+
35+
FbCompareTutorialTask:
36+
model: alias
37+
type:
38+
type: object
39+
fields:
40+
geometry: # NOTE: initially empty string
41+
type: string
42+
groupId:
43+
type: int
44+
projectId:
45+
type: string
46+
referenceAnswer:
47+
type: int
48+
screen:
49+
type: int
50+
taskId:
51+
type: string
52+
taskId_real:
53+
type: string
54+
taskX:
55+
type: int
56+
taskY:
57+
type: int
58+
url:
59+
type: string
60+
urlB:
61+
type: string
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
FbCompletenessTutorial:
2+
model: alias
3+
type:
4+
type: object
5+
fields:
6+
projectType:
7+
type:
8+
type: literal
9+
value: 4
10+
tileServer:
11+
type: FbObjRasterTileServer
12+
tileServerB:
13+
type: FbObjRasterTileServer
14+
overlayTileServer:
15+
type: FbObjUnifiedOverlayTileServer
16+
zoomLevel:
17+
type: int
18+
screens:
19+
type:
20+
type: list
21+
elementType: FbScreen
22+
23+
FbCompletenessTutorialGroup:
24+
model: alias
25+
type:
26+
type: object
27+
fields:
28+
xMax:
29+
type: int
30+
xMin:
31+
type: int
32+
yMax:
33+
type: int
34+
yMin:
35+
type: int
36+
37+
FbCompletenessTutorialTask:
38+
model: alias
39+
type:
40+
type: object
41+
fields:
42+
geometry: # NOTE: initially empty string
43+
type: string
44+
groupId:
45+
type: int
46+
projectId:
47+
type: string
48+
referenceAnswer:
49+
type: int
50+
screen:
51+
type: int
52+
taskId:
53+
type: string
54+
taskId_real:
55+
type: string
56+
taskX:
57+
type: int
58+
taskY:
59+
type: int
60+
url:
61+
type: string
62+
urlB:
63+
type: string
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FbFindTutorial:
2+
model: alias
3+
type:
4+
type: object
5+
fields:
6+
projectType:
7+
type:
8+
type: literal
9+
value: 1
10+
tileServer:
11+
type: FbObjRasterTileServer
12+
zoomLevel:
13+
type: int
14+
screens:
15+
type:
16+
type: list
17+
elementType: FbScreen
18+
19+
FbFindTutorialGroup:
20+
model: alias
21+
type:
22+
type: object
23+
fields:
24+
xMax:
25+
type: int
26+
xMin:
27+
type: int
28+
yMax:
29+
type: int
30+
yMin:
31+
type: int
32+
33+
FbFindTutorialTask:
34+
model: alias
35+
type:
36+
type: object
37+
fields:
38+
geometry: # NOTE: initially empty string
39+
type: string
40+
groupId:
41+
type: int
42+
projectId:
43+
type: string
44+
referenceAnswer:
45+
type: int
46+
screen:
47+
type: int
48+
taskId:
49+
type: string
50+
taskId_real:
51+
type: string
52+
taskX:
53+
type: int
54+
taskY:
55+
type: int
56+
url:
57+
type: string
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FbValidateTutorial:
2+
model: alias
3+
type:
4+
type: object
5+
fields:
6+
inputGeometries: # NOTE: local path to geometry file
7+
type: string
8+
projectType:
9+
type:
10+
type: literal
11+
value: 2
12+
tileServer:
13+
type: FbObjRasterTileServer
14+
zoomLevel:
15+
type: int
16+
screens:
17+
type:
18+
type: list
19+
elementType: FbScreen
20+
customOptions:
21+
# optional: true
22+
type:
23+
type: list
24+
elementType: FbObjCustomOption
25+
26+
FbValidateTutorialTaskProperties:
27+
model: alias
28+
type:
29+
type: object
30+
fields:
31+
building:
32+
type: string
33+
description:
34+
type: string
35+
reference:
36+
type: string # NOTE: not sure if this is int or string
37+
screen:
38+
type: string # NOTE: not sure if this is int or string
39+
40+
FbValidateTutorialTask:
41+
model: alias
42+
type:
43+
type: object
44+
fields:
45+
taskId:
46+
type: string
47+
geojson: # NOTE: polygon geometry object
48+
type: unknown
49+
properties:
50+
type: FbValidateTutorialTaskProperties
51+
screen:
52+
type: int
53+
reference:
54+
type: int
55+
geometry: # NOTE: geometry as WKT
56+
type: string

0 commit comments

Comments
 (0)