Skip to content

Commit ef3a272

Browse files
JeanRocalicanhua
andauthored
Scenario cards + Website indentation fix (#6733)
* Changed teams target version to 1.4 * added RTL scenario card * Added scenario card for tooltip and isEnabled * Added order confirmation scenario * Added flight update table scenario * Added restaurant order scenario card * Added app login scenario * Fixed indentation in schema explorer * Testing application login on the samples page * Added extended 1.5 scenario cards * Fixed boolean and duplicate id on cards * added flightupdatetable and restaurant order to ignored cards for .NET tests Co-authored-by: Canhua Li <licanhua@live.com>
1 parent f1b5339 commit ef3a272

20 files changed

+1454
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ApplicationInfo": {
3+
"title": "Application Login"
4+
}
5+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
3+
"type": "AdaptiveCard",
4+
"version": "1.5",
5+
"body": [
6+
{
7+
"type": "TextBlock",
8+
"size": "Medium",
9+
"weight": "Bolder",
10+
"text": " ${ApplicationInfo.title}",
11+
"horizontalAlignment": "Center",
12+
"wrap": true,
13+
"style": "heading"
14+
},
15+
{
16+
"type": "TextBlock",
17+
"text": "Username",
18+
"wrap": true
19+
},
20+
{
21+
"type": "Input.Text",
22+
"style": "text",
23+
"id": "UserVal",
24+
"isRequired": true
25+
},
26+
{
27+
"type": "TextBlock",
28+
"text": "Password",
29+
"wrap": true
30+
},
31+
{
32+
"type": "Input.Text",
33+
"id": "PassVal",
34+
"style": "password",
35+
"isRequired": true
36+
}
37+
],
38+
"actions": [
39+
{
40+
"type": "Action.Submit",
41+
"title": "Login",
42+
"data": {
43+
"id": "LoginVal"
44+
}
45+
}
46+
]
47+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"@context": "http://schema.org",
3+
"@type": "FlightReservation",
4+
"reservationId": "RXJ34P",
5+
"reservationStatus": "http://schema.org/ReservationConfirmed",
6+
"passengerPriorityStatus": "Fast Track",
7+
"passengerSequenceNumber": "ABC123",
8+
"securityScreening": "TSA PreCheck",
9+
"underName": {
10+
"@type": "Person",
11+
"name": "Sarah Hum"
12+
},
13+
"reservationFor": {
14+
"@type": "Flight",
15+
"flightNumber": "KL605",
16+
"provider": {
17+
"@type": "Airline",
18+
"name": "KLM",
19+
"iataCode": "KL",
20+
"boardingPolicy": "http://schema.org/ZoneBoardingPolicy"
21+
},
22+
"seller": {
23+
"@type": "Airline",
24+
"name": "KLM",
25+
"iataCode": "KL"
26+
},
27+
"departureAirport": {
28+
"@type": "Airport",
29+
"name": "Amsterdam Airport",
30+
"iataCode": "AMS"
31+
},
32+
"departureTime": "2017-03-04T09:20:00-01:00",
33+
"arrivalAirport": {
34+
"@type": "Airport",
35+
"name": "San Francisco Airport",
36+
"iataCode": "SFO"
37+
},
38+
"arrivalTime": "2017-03-05T08:20:00+04:00"
39+
}
40+
}
Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
{
2+
"type": "AdaptiveCard",
3+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
4+
"version": "1.5",
5+
"body": [
6+
{
7+
"type": "Table",
8+
"columns": [
9+
{
10+
"width": 1
11+
},
12+
{
13+
"width": 1
14+
},
15+
{
16+
"width": 1
17+
}
18+
],
19+
"rows": [
20+
{
21+
"type": "TableRow",
22+
"cells": [
23+
{
24+
"type": "TableCell",
25+
"items": [
26+
{
27+
"type": "Image",
28+
"size": "Small",
29+
"url": "https://adaptivecards.io/content/airplane.png"
30+
}
31+
]
32+
},
33+
{
34+
"type": "TableCell"
35+
},
36+
{
37+
"type": "TableCell",
38+
"items": [
39+
{
40+
"type": "TextBlock",
41+
"text": "Flight Status",
42+
"horizontalAlignment": "Right",
43+
"isSubtle": true,
44+
"wrap": true
45+
},
46+
{
47+
"type": "TextBlock",
48+
"text": "DELAYED",
49+
"horizontalAlignment": "Right",
50+
"spacing": "None",
51+
"size": "Large",
52+
"color": "Attention",
53+
"wrap": true
54+
}
55+
]
56+
}
57+
]
58+
},
59+
{
60+
"type": "TableRow",
61+
"cells": [
62+
{
63+
"type": "TableCell",
64+
"items": [
65+
{
66+
"type": "TextBlock",
67+
"text": "Passengers",
68+
"isSubtle": true,
69+
"weight": "Bolder",
70+
"wrap": true,
71+
"spacing": "None"
72+
},
73+
{
74+
"type": "TextBlock",
75+
"text": "${underName.name}",
76+
"spacing": "Small",
77+
"wrap": true
78+
},
79+
{
80+
"type": "TextBlock",
81+
"text": "Jeremy Goldberg",
82+
"spacing": "Small",
83+
"wrap": true
84+
},
85+
{
86+
"type": "TextBlock",
87+
"text": "Evan Litvak",
88+
"spacing": "Small",
89+
"wrap": true
90+
}
91+
]
92+
},
93+
{
94+
"type": "TableCell"
95+
},
96+
{
97+
"type": "TableCell",
98+
"items": [
99+
{
100+
"type": "TextBlock",
101+
"text": "Seat",
102+
"horizontalAlignment": "Right",
103+
"isSubtle": true,
104+
"weight": "Bolder",
105+
"wrap": true
106+
},
107+
{
108+
"type": "TextBlock",
109+
"text": "14A",
110+
"horizontalAlignment": "Right",
111+
"spacing": "Small",
112+
"wrap": true
113+
},
114+
{
115+
"type": "TextBlock",
116+
"text": "14B",
117+
"horizontalAlignment": "Right",
118+
"spacing": "Small",
119+
"wrap": true
120+
},
121+
{
122+
"type": "TextBlock",
123+
"text": "14C",
124+
"horizontalAlignment": "Right",
125+
"spacing": "Small",
126+
"wrap": true
127+
}
128+
]
129+
}
130+
]
131+
},
132+
{
133+
"type": "TableRow",
134+
"cells": [
135+
{
136+
"type": "TableCell",
137+
"items": [
138+
{
139+
"type": "TextBlock",
140+
"text": "Flight",
141+
"isSubtle": true,
142+
"weight": "Bolder",
143+
"wrap": true
144+
},
145+
{
146+
"type": "TextBlock",
147+
"text": "${reservationFor.flightNumber}",
148+
"spacing": "Small",
149+
"wrap": true
150+
}
151+
]
152+
},
153+
{
154+
"type": "TableCell",
155+
"items": [
156+
{
157+
"type": "TextBlock",
158+
"text": "Departs",
159+
"isSubtle": true,
160+
"horizontalAlignment": "Center",
161+
"weight": "Bolder",
162+
"wrap": true
163+
},
164+
{
165+
"type": "TextBlock",
166+
"text": "{{TIME(${string(reservationFor.departureTime)})}}",
167+
"color": "Attention",
168+
"weight": "Bolder",
169+
"horizontalAlignment": "Center",
170+
"spacing": "Small",
171+
"wrap": true
172+
}
173+
]
174+
},
175+
{
176+
"type": "TableCell",
177+
"items": [
178+
{
179+
"type": "TextBlock",
180+
"text": "Arrives",
181+
"isSubtle": true,
182+
"horizontalAlignment": "Right",
183+
"weight": "Bolder",
184+
"wrap": true
185+
},
186+
{
187+
"type": "TextBlock",
188+
"text": "{{TIME(${string(reservationFor.arrivalTime)})}}",
189+
"color": "Attention",
190+
"horizontalAlignment": "Right",
191+
"weight": "Bolder",
192+
"spacing": "Small",
193+
"wrap": true
194+
}
195+
]
196+
}
197+
]
198+
},
199+
{
200+
"type": "TableRow",
201+
"cells": [
202+
{
203+
"type": "TableCell",
204+
"items": [
205+
{
206+
"type": "TextBlock",
207+
"text": "${reservationFor.departureAirport.name}",
208+
"isSubtle": true,
209+
"wrap": true
210+
},
211+
{
212+
"type": "TextBlock",
213+
"text": "${reservationFor.departureAirport.iataCode}",
214+
"size": "ExtraLarge",
215+
"color": "Accent",
216+
"spacing": "None",
217+
"wrap": true
218+
}
219+
]
220+
},
221+
{
222+
"type": "TableCell",
223+
"items": [
224+
{
225+
"type": "Image",
226+
"url": "https://adaptivecards.io/content/airplane.png",
227+
"horizontalAlignment": "Center",
228+
"size": "Small"
229+
}
230+
],
231+
"verticalContentAlignment": "Center"
232+
},
233+
{
234+
"type": "TableCell",
235+
"items": [
236+
{
237+
"type": "TextBlock",
238+
"text": "${reservationFor.arrivalAirport.name}",
239+
"isSubtle": true,
240+
"horizontalAlignment": "Right",
241+
"wrap": true
242+
},
243+
{
244+
"type": "TextBlock",
245+
"text": "${reservationFor.arrivalAirport.iataCode}",
246+
"horizontalAlignment": "Right",
247+
"size": "ExtraLarge",
248+
"color": "Accent",
249+
"spacing": "None",
250+
"wrap": true
251+
}
252+
]
253+
}
254+
],
255+
"spacing": "None"
256+
}
257+
],
258+
"showGridLines": false
259+
}
260+
]
261+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"FormInfo":{
3+
"titleENG":"Registration Form",
4+
"titleARA":"إستمارة تسجيل"
5+
}
6+
}

0 commit comments

Comments
 (0)