Skip to content

Commit

Permalink
Scenario cards + Website indentation fix (#6733)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
JeanRoca and licanhua authored Nov 19, 2021
1 parent f1b5339 commit ef3a272
Show file tree
Hide file tree
Showing 20 changed files with 1,454 additions and 2 deletions.
5 changes: 5 additions & 0 deletions samples/Templates/Scenarios/ApplicationLogin.data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ApplicationInfo": {
"title": "Application Login"
}
}
47 changes: 47 additions & 0 deletions samples/Templates/Scenarios/ApplicationLogin.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": " ${ApplicationInfo.title}",
"horizontalAlignment": "Center",
"wrap": true,
"style": "heading"
},
{
"type": "TextBlock",
"text": "Username",
"wrap": true
},
{
"type": "Input.Text",
"style": "text",
"id": "UserVal",
"isRequired": true
},
{
"type": "TextBlock",
"text": "Password",
"wrap": true
},
{
"type": "Input.Text",
"id": "PassVal",
"style": "password",
"isRequired": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Login",
"data": {
"id": "LoginVal"
}
}
]
}
40 changes: 40 additions & 0 deletions samples/Templates/Scenarios/FlightUpdateTable.data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationId": "RXJ34P",
"reservationStatus": "http://schema.org/ReservationConfirmed",
"passengerPriorityStatus": "Fast Track",
"passengerSequenceNumber": "ABC123",
"securityScreening": "TSA PreCheck",
"underName": {
"@type": "Person",
"name": "Sarah Hum"
},
"reservationFor": {
"@type": "Flight",
"flightNumber": "KL605",
"provider": {
"@type": "Airline",
"name": "KLM",
"iataCode": "KL",
"boardingPolicy": "http://schema.org/ZoneBoardingPolicy"
},
"seller": {
"@type": "Airline",
"name": "KLM",
"iataCode": "KL"
},
"departureAirport": {
"@type": "Airport",
"name": "Amsterdam Airport",
"iataCode": "AMS"
},
"departureTime": "2017-03-04T09:20:00-01:00",
"arrivalAirport": {
"@type": "Airport",
"name": "San Francisco Airport",
"iataCode": "SFO"
},
"arrivalTime": "2017-03-05T08:20:00+04:00"
}
}
261 changes: 261 additions & 0 deletions samples/Templates/Scenarios/FlightUpdateTable.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "Table",
"columns": [
{
"width": 1
},
{
"width": 1
},
{
"width": 1
}
],
"rows": [
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "Image",
"size": "Small",
"url": "https://adaptivecards.io/content/airplane.png"
}
]
},
{
"type": "TableCell"
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Flight Status",
"horizontalAlignment": "Right",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "DELAYED",
"horizontalAlignment": "Right",
"spacing": "None",
"size": "Large",
"color": "Attention",
"wrap": true
}
]
}
]
},
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Passengers",
"isSubtle": true,
"weight": "Bolder",
"wrap": true,
"spacing": "None"
},
{
"type": "TextBlock",
"text": "${underName.name}",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Jeremy Goldberg",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Evan Litvak",
"spacing": "Small",
"wrap": true
}
]
},
{
"type": "TableCell"
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Seat",
"horizontalAlignment": "Right",
"isSubtle": true,
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "14A",
"horizontalAlignment": "Right",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "14B",
"horizontalAlignment": "Right",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "14C",
"horizontalAlignment": "Right",
"spacing": "Small",
"wrap": true
}
]
}
]
},
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Flight",
"isSubtle": true,
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "${reservationFor.flightNumber}",
"spacing": "Small",
"wrap": true
}
]
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Departs",
"isSubtle": true,
"horizontalAlignment": "Center",
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "{{TIME(${string(reservationFor.departureTime)})}}",
"color": "Attention",
"weight": "Bolder",
"horizontalAlignment": "Center",
"spacing": "Small",
"wrap": true
}
]
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "Arrives",
"isSubtle": true,
"horizontalAlignment": "Right",
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "{{TIME(${string(reservationFor.arrivalTime)})}}",
"color": "Attention",
"horizontalAlignment": "Right",
"weight": "Bolder",
"spacing": "Small",
"wrap": true
}
]
}
]
},
{
"type": "TableRow",
"cells": [
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "${reservationFor.departureAirport.name}",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "${reservationFor.departureAirport.iataCode}",
"size": "ExtraLarge",
"color": "Accent",
"spacing": "None",
"wrap": true
}
]
},
{
"type": "TableCell",
"items": [
{
"type": "Image",
"url": "https://adaptivecards.io/content/airplane.png",
"horizontalAlignment": "Center",
"size": "Small"
}
],
"verticalContentAlignment": "Center"
},
{
"type": "TableCell",
"items": [
{
"type": "TextBlock",
"text": "${reservationFor.arrivalAirport.name}",
"isSubtle": true,
"horizontalAlignment": "Right",
"wrap": true
},
{
"type": "TextBlock",
"text": "${reservationFor.arrivalAirport.iataCode}",
"horizontalAlignment": "Right",
"size": "ExtraLarge",
"color": "Accent",
"spacing": "None",
"wrap": true
}
]
}
],
"spacing": "None"
}
],
"showGridLines": false
}
]
}
6 changes: 6 additions & 0 deletions samples/Templates/Scenarios/InputFormWithRTL.data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"FormInfo":{
"titleENG":"Registration Form",
"titleARA":"إستمارة تسجيل"
}
}
Loading

0 comments on commit ef3a272

Please sign in to comment.