-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadaptive_card.json
238 lines (238 loc) · 8.48 KB
/
adaptive_card.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"actions": [
{
"card": {
"actions": [
{
"body": "{\n \"requestedSpecific\": @{variables('WasSpecificRequest')},\"proposalId\": \"@{variables('ProposalId')}\",\"email\": \"@{items('EmailToSupervisors')}\", \"type\": \"ACCEPT\",\n\"reason\": \"ACCEPT\",\n\"comment\": \"{{acceptComment.value}}\"\n}",
"headers": [
{
"name": "Authorization",
"value": ""
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"title": "Submit",
"type": "Action.Http",
"url": "https://prod2-235.westeurope.logic.azure.com:443/workflows/687e33b82dd1454bbf1bf244b936a1db/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=RQa_8G5eA5FNPvGPU6x41tI8ZGWgTqYpLK9045lUIgg"
}
],
"body": [
{
"text": "Once you accept this proposal, the student will be asked to verify the matching. The proposal will be removed from the proposal market and assigned to you for supervision.",
"type": "TextBlock",
"wrap": true
},
{
"id": "acceptComment",
"isMultiline": true,
"isRequired": true,
"label": "Follow-Up (sent to student)",
"placeholder": "Your message will be sent to the student alongside your acceptance notification.",
"type": "Input.Text"
}
],
"originator": "@{variables('Originator')}",
"type": "AdaptiveCard",
"version": "1.0"
},
"title": "Accept",
"type": "Action.ShowCard"
},
{
"card": {
"actions": [
{
"body": "{\n \"requestedSpecific\": @{variables('WasSpecificRequest')},\"proposalId\": \"@{variables('ProposalId')}\",\"email\": \"@{items('EmailToSupervisors')}\", \"type\": \"REJECT\",\n \"reason\": \"{{rejectReason.value}}\",\n\"comment\": \"{{rejectComment.value}}\"\n}",
"headers": [
{
"name": "Authorization",
"value": ""
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"title": "Submit",
"type": "Action.Http",
"url": "https://prod2-235.westeurope.logic.azure.com:443/workflows/687e33b82dd1454bbf1bf244b936a1db/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=RQa_8G5eA5FNPvGPU6x41tI8ZGWgTqYpLK9045lUIgg"
}
],
"body": [
{
"text": "Rejecting this proposal because of lacking content quality or format requirements will cause review by the thesis coordinator. The student will need to improve and resubmit the proposal.",
"type": "TextBlock",
"wrap": true
},
{
"choices": [
{
"title": "Proposal too broad",
"value": "TOO_BROAD"
},
{
"title": "Proposal not sufficiently scientific",
"value": "NOT_SCIENTIFIC"
},
{
"title": "Proposal or scope not clear",
"value": "NOT_CLEAR"
},
{
"title": "Format unsuitable",
"value": "FORMAT_UNSUITABLE"
},
{
"title": "Mismatch in topic area",
"value": "TOPIC_AREA_INVALID"
}
],
"id": "rejectReason",
"isRequired": true,
"label": "Reason",
"placeholder": "Why should this proposal be rejected?",
"type": "Input.ChoiceSet"
},
{
"id": "rejectComment",
"isMultiline": true,
"isRequired": true,
"label": "Comment",
"placeholder": "Why do you recommend this proposal for rejection? Your comment will not be shown to the student.",
"type": "Input.Text"
}
],
"originator": "@{variables('Originator')}",
"type": "AdaptiveCard",
"version": "1.0"
},
"title": "Reject",
"type": "Action.ShowCard"
},
{
"card": {
"actions": [
{
"body": "{\n \"requestedSpecific\": @{variables('WasSpecificRequest')},\"proposalId\": \"@{variables('ProposalId')}\",\"email\": \"@{items('EmailToSupervisors')}\", \"type\": \"DECLINE\",\n \"reason\": \"{{declineReason.value}}\",\n\"comment\": \"{{declineComment.value}}\"\n}",
"headers": [
{
"name": "Authorization",
"value": ""
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"method": "POST",
"title": "Submit",
"type": "Action.Http",
"url": "https://prod2-235.westeurope.logic.azure.com:443/workflows/687e33b82dd1454bbf1bf244b936a1db/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=RQa_8G5eA5FNPvGPU6x41tI8ZGWgTqYpLK9045lUIgg"
}
],
"body": [
{
"text": "Declining this proposal because of a mismatch of interests or a high workload on your side will keep it available for other supervisors.",
"type": "TextBlock",
"wrap": true
},
{
"choices": [
{
"title": "Lack of interest in specific topic",
"value": "LACKING_INTEREST"
},
{
"title": "Personal workload too high",
"value": "PERSONAL_WORKLOAD"
},
{
"title": "Mismatch in language",
"value": "LANGUAGE"
}
],
"id": "declineReason",
"isRequired": true,
"label": "Reason",
"placeholder": "Why do you want do decline this proposal?",
"type": "Input.ChoiceSet"
},
{
"id": "declineComment",
"isMultiline": true,
"isRequired": true,
"label": "Comment",
"placeholder": "Why do you decline this proposal specifically? Your comment will not be shown to the student.",
"type": "Input.Text"
}
],
"originator": "@{variables('Originator')}",
"type": "AdaptiveCard",
"version": "1.0"
},
"title": "Decline",
"type": "Action.ShowCard"
}
],
"body": [
{
"size": "Medium",
"text": "@{body('GetResponseDetails')?['r7240915136fb41e8b884a045d08f39ce']}",
"type": "TextBlock",
"weight": "Bolder",
"wrap": true
},
{
"separator": true,
"text": "@{body('GetResponseDetails')?['r7425856917f245efbd0c4cb2a7f0c434']}",
"type": "TextBlock",
"wrap": true
},
{
"separator": true,
"text": "@{body('GetResponseDetails')?['r60d760e8828645cc84d8fde2a6fe3b27']}",
"type": "TextBlock",
"wrap": true
},
{
"facts": [
{
"title": "Submitted By",
"value": "@{body('GetResponseDetails')?['r7844031f633e4dd49368b0c116ad148d']} (@{body('GetResponseDetails')?['r6c3b387342aa4bd0b5f423aa43662850']}, @{body('GetResponseDetails')?['responder']})"
},
{
"title": "Proposed Title",
"value": "@{body('GetResponseDetails')?['r7240915136fb41e8b884a045d08f39ce']}"
},
{
"title": "Type of Proposal",
"value": "@{body('GetResponseDetails')?['rc797ecd1491b44a0ac091174abbac9f6']}"
},
{
"title": "Field of Research",
"value": "@{body('GetResponseDetails')?['r975d59f3f5114998b6e30c56c035334b']}"
},
{
"title": "Proposal Language",
"value": "@{body('GetResponseDetails')?['r8b7f3f4a7502459598d155e9b31eb25e']}"
},
{
"title": "Planned Start Date",
"value": "@{body('GetResponseDetails')?['r837fec8c113c4851a217e947217c5b7f']}"
}
],
"separator": true,
"type": "FactSet"
}
],
"originator": "@{variables('Originator')}",
"type": "AdaptiveCard",
"version": "1.0"
}