Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 7748f9d

Browse files
xieofxieryanisgrig
authored andcommitted
[POI] Replace the carousel of results with a single card (#2223)
* [POI] Replace the carousel of results with a single card * [POI] add AddressAlternative instead of replacing directly, add routeLimit * [POI] add ProviderDisplayText & ImageSize for different images * [POI] rename to overview
1 parent 82b43bb commit 7748f9d

31 files changed

+586
-388
lines changed

skills/src/csharp/pointofinterestskill/pointofinterestskill/Content/PointOfInterestDetails.1.0.json

Lines changed: 0 additions & 111 deletions
This file was deleted.

skills/src/csharp/pointofinterestskill/pointofinterestskill/Content/PointOfInterestDetailsWithRoute.1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,4 @@
168168
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
169169
"version": "1.0",
170170
"speak": "{Speak}"
171-
}
171+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"type": "AdaptiveCard",
3+
"body": [
4+
{
5+
"type": "Container",
6+
"items": [
7+
{
8+
"type": "ColumnSet",
9+
"columns": [
10+
{
11+
"type": "Column",
12+
"width": 75,
13+
"items": [
14+
{
15+
"type": "TextBlock",
16+
"horizontalAlignment": "Left",
17+
"spacing": "None",
18+
"size": "Medium",
19+
"weight": "Bolder",
20+
"color": "Default",
21+
"text": "{Name}"
22+
},
23+
{
24+
"type": "TextBlock",
25+
"spacing": "None",
26+
"color": "Default",
27+
"text": "{AvailableDetails}"
28+
},
29+
{
30+
"type": "TextBlock",
31+
"spacing": "None",
32+
"color": "Default",
33+
"text": "{Address}",
34+
"maxLines": 1,
35+
"wrap": true
36+
},
37+
{
38+
"type": "TextBlock",
39+
"spacing": "None",
40+
"color": "Default",
41+
"text": "{Hours}",
42+
"wrap": true
43+
}
44+
]
45+
},
46+
{
47+
"type": "Column",
48+
"width": 25,
49+
"verticalContentAlignment": "Center",
50+
"horizontalAlignment": "Center",
51+
"items": [
52+
{
53+
"type": "Image",
54+
"url": "{PointOfInterestImageUrl}",
55+
"horizontalAlignment": "Center"
56+
}
57+
]
58+
}
59+
]
60+
}
61+
],
62+
"selectAction": {
63+
"type": "Action.Submit",
64+
"data": "{SubmitText}"
65+
}
66+
}
67+
],
68+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
69+
"version": "1.0"
70+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"type": "AdaptiveCard",
3+
"body": [
4+
{
5+
"type": "Container",
6+
"items": [
7+
{
8+
"type": "ColumnSet",
9+
"columns": [
10+
{
11+
"type": "Column",
12+
"width": 75,
13+
"items": [
14+
{
15+
"type": "TextBlock",
16+
"horizontalAlignment": "Left",
17+
"spacing": "None",
18+
"size": "Medium",
19+
"weight": "Bolder",
20+
"color": "Dark",
21+
"text": "{Name}"
22+
},
23+
{
24+
"type": "TextBlock",
25+
"spacing": "None",
26+
"color": "Dark",
27+
"text": "{AvailableDetails}"
28+
},
29+
{
30+
"type": "TextBlock",
31+
"spacing": "None",
32+
"color": "Dark",
33+
"text": "{Address}",
34+
"maxLines": 1,
35+
"wrap": true
36+
},
37+
{
38+
"type": "TextBlock",
39+
"spacing": "None",
40+
"color": "Dark",
41+
"text": "{Hours}",
42+
"wrap": true
43+
}
44+
]
45+
},
46+
{
47+
"type": "Column",
48+
"width": 25,
49+
"verticalContentAlignment": "Center",
50+
"horizontalAlignment": "Center",
51+
"backgroundImage": {
52+
"url": "{PointOfInterestImageUrl}",
53+
"verticalAlignment": "Center",
54+
"horizontalAlignment": "Center"
55+
}
56+
}
57+
]
58+
}
59+
],
60+
"selectAction": {
61+
"type": "Action.Submit",
62+
"data": "{SubmitText}"
63+
}
64+
}
65+
],
66+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
67+
"version": "1.0"
68+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"type": "AdaptiveCard",
3+
"body": [
4+
{
5+
"type": "Container",
6+
"items": [
7+
{
8+
"type": "ColumnSet",
9+
"columns": [
10+
{
11+
"type": "Column",
12+
"verticalContentAlignment": "Center",
13+
"items": [
14+
{
15+
"type": "TextBlock",
16+
"horizontalAlignment": "Left",
17+
"spacing": "None",
18+
"size": "Large",
19+
"weight": "Bolder",
20+
"color": "Default",
21+
"text": "{CardTitle}"
22+
}
23+
],
24+
"width": "stretch"
25+
}
26+
]
27+
}
28+
]
29+
},
30+
{
31+
"type": "Container",
32+
"items": [
33+
{
34+
"type": "Image",
35+
"url": "{PointOfInterestImageUrl}",
36+
"horizontalAlignment": "center"
37+
}
38+
]
39+
},
40+
{
41+
"type": "Container",
42+
"id": "Container",
43+
"items": [
44+
]
45+
},
46+
{
47+
"type": "Container",
48+
"separator": true,
49+
"items": [
50+
{
51+
"type": "TextBlock",
52+
"horizontalAlignment": "Right",
53+
"size": "Small",
54+
"color": "default",
55+
"text": "{ProviderDisplayText}"
56+
}
57+
]
58+
}
59+
],
60+
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
61+
"version": "1.0"
62+
}

0 commit comments

Comments
 (0)