Skip to content

Commit a73f551

Browse files
Merge pull request #1748 from OfficeDev/v-mfurquan/Bot-All-Cards-Python-Migration-2
Bot All Cards Python Migration
2 parents c4c6654 + c632a11 commit a73f551

36 files changed

+1263
-1
lines changed

.github/workflows/build-complete-samples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,10 @@ jobs:
12461246
name: 'agent-knowledge-hub'
12471247
version: '3.13.x'
12481248

1249+
- project_path: 'samples/bot-all-cards/python'
1250+
name: 'bot-all-cards'
1251+
version: '3.13.x'
1252+
12491253
fail-fast: false
12501254
name: Build all "${{ matrix.name }}" python
12511255
defaults:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ The [Teams Toolkit](https://marketplace.visualstudio.com/items?itemName=TeamsDev
110110
| 24 | Bot configuration app with auth | This sample demonstrates the features of bot configuration auth and reconfiguration for both teams and group chats. | Advanced | [View][BotConfigurationAppAuth#csharp] | [View][BotConfigurationAppAuth#nodejs]![toolkit-icon](assets/toolkit-icon.png) | | |[View](/samples/bot-configuration-app-auth/csharp/demo-manifest/bot-configuration-auth-app.zip)|
111111
| 25 | Tag mention bot | This sample app demonstrates the use of tag mention functionality in teams scope using Bot Framework. | Advanced | [View][Tagmention#csharp] | [View][Tagmention#nodejs] ![toolkit-icon](assets/toolkit-icon.png) | | |
112112
| 26 | Commands menu and prompt starters bot | This sample adds a command menu with a dropdown list of commands for your bot. Users can select a command from the list, which will insert the command title into the compose box. Then, they can select Send to execute the command. | Advanced | [View][CommandsMenu#csharp] | [View][CommandsMenu#nodejs] ![toolkit-icon](assets/toolkit-icon.png) | | | [View](/samples/bot-commands-menu/csharp/demo-manifest/bot-commands-menu.zip)|
113-
| 27 | Bot All Cards | Sample which demonstrates sending different types cards supported in teams using bot. | Advanced | [View][TypesCards#csharp] | [View][TypesCards#nodejs] ![toolkit-icon](assets/toolkit-icon.png) | | | [View](/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip) |
113+
| 27 | Bot All Cards | Sample which demonstrates sending different types cards supported in teams using bot. | Advanced | [View][TypesCards#csharp] | [View][TypesCards#nodejs] ![toolkit-icon](assets/toolkit-icon.png) |[View][TypesCards#python] ![toolkit-icon](assets/toolkit-icon.png) | | [View](/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip) |
114114
| 28 | Apps in Federated | This sample app allows users to easily view a list of group members. When a new member is added, their details are promptly displayed. | Advanced | [View][bot-feed-members#js] ![toolkit-icon](assets/toolkit-icon.png) | | | | [View](/samples/bot-feed-members/nodejs/demo-manifest/bot-feed-members.zip) |
115115
| 29 | Requirement Targeting OneWay Dependency | Microsoft M365 RT sample app in Node.js which specifies one-way-dependency relationships between app capabilities (using elementRelationshipSet) and functionality using hostMustSupportFunctionalities. | Advanced | | [View][RequirementTargetingOneWayDependency#nodejs] ![toolkit-icon](assets/toolkit-icon.png) | | |
116116
| 30 | Requirement Targeting Mutual Dependency | Microsoft M365 RT sample app in Node.js which specifies mutual-dependency relationships between app capabilities using elementRelationshipSet. | Advanced | | [View][RequirementTargetingMutualDependency#nodejs] ![toolkit-icon](assets/toolkit-icon.png) | | |
@@ -426,6 +426,7 @@ The [Teams Toolkit](https://marketplace.visualstudio.com/items?itemName=TeamsDev
426426
[BotSSOAdaptiveCard#nodejs]:samples/bot-sso-adaptivecard/nodejs
427427
[TypesCards#csharp]:samples/bot-all-cards/csharp
428428
[TypesCards#nodejs]:samples/bot-all-cards/nodejs
429+
[TypesCards#python]:samples/bot-all-cards/python
429430
[app-localization#cs]:samples/app-localization/csharp
430431
[app-localization#js]:samples/app-localization/nodejs
431432
[meetings-details-tab#cs]:samples/meetings-details-tab/csharp
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# TeamsFx files
2+
env/.env.*.user
3+
env/.env.local
4+
appManifest/build/
5+
6+
# python virtual environment
7+
.venv/
8+
9+
# misc
10+
.env
11+
.deployment/
12+
13+
# tmp files
14+
__pycache__/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CLIENT_ID=
2+
CLIENT_SECRET=
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"TeamsDevApp.ms-teams-vscode-extension",
4+
"ms-python.python"
5+
]
6+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch App (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
9+
"cascadeTerminateToConfigurations": [
10+
"Python: Run App Locally"
11+
],
12+
"presentation": {
13+
"group": "all",
14+
"hidden": true
15+
},
16+
"internalConsoleOptions": "neverOpen"
17+
},
18+
{
19+
"name": "Launch App (Chrome)",
20+
"type": "chrome",
21+
"request": "launch",
22+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
23+
"cascadeTerminateToConfigurations": [
24+
"Python: Run App Locally"
25+
],
26+
"presentation": {
27+
"group": "all",
28+
"hidden": true
29+
},
30+
"internalConsoleOptions": "neverOpen"
31+
},
32+
{
33+
"name": "Python: Run App Locally",
34+
"type": "debugpy",
35+
"request": "launch",
36+
"program": "${workspaceFolder}/index.py",
37+
"cwd": "${workspaceFolder}",
38+
"console": "integratedTerminal",
39+
}
40+
],
41+
"compounds": [
42+
{
43+
"name": "Debug (Edge)",
44+
"configurations": [
45+
"Launch App (Edge)",
46+
"Python: Run App Locally"
47+
],
48+
"preLaunchTask": "Prepare Teams App Resources",
49+
"presentation": {
50+
"group": "all",
51+
"order": 1
52+
},
53+
"stopAll": true
54+
},
55+
{
56+
"name": "Debug (Chrome)",
57+
"configurations": [
58+
"Launch App (Chrome)",
59+
"Python: Run App Locally"
60+
],
61+
"preLaunchTask": "Prepare Teams App Resources",
62+
"presentation": {
63+
"group": "all",
64+
"order": 2
65+
},
66+
"stopAll": true
67+
}
68+
]
69+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"debug.onTaskErrors": "abort"
3+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// This file is automatically generated by Microsoft 365 Agents Toolkit.
2+
// The teamsfx tasks defined in this file require Microsoft 365 Agents Toolkit version >= 5.0.0.
3+
// See https://aka.ms/teamsfx-tasks for details on how to customize each task.
4+
{
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Prepare Teams App Resources",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Start local tunnel",
12+
"Provision",
13+
"Deploy"
14+
],
15+
"dependsOrder": "sequence"
16+
},
17+
{
18+
// Check all required prerequisites.
19+
// See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
20+
"label": "Validate prerequisites",
21+
"type": "teamsfx",
22+
"command": "debug-check-prerequisites",
23+
"args": {
24+
"prerequisites": [
25+
"m365Account", // Sign-in prompt for Microsoft 365 account, then validate if the account enables the uploading permission.
26+
"portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
27+
],
28+
"portOccupancy": [
29+
3978 // app service port
30+
]
31+
}
32+
},
33+
{
34+
// Start the local tunnel service to forward public URL to local port and inspect traffic.
35+
// See https://aka.ms/teamsfx-tasks/local-tunnel for the detailed args definitions.
36+
"label": "Start local tunnel",
37+
"type": "teamsfx",
38+
"command": "debug-start-local-tunnel",
39+
"args": {
40+
"type": "dev-tunnel",
41+
"ports": [
42+
{
43+
"portNumber": 3978,
44+
"protocol": "http",
45+
"access": "public",
46+
"writeToEnvironmentFile": {
47+
"endpoint": "BOT_ENDPOINT", // output tunnel endpoint as BOT_ENDPOINT
48+
"domain": "BOT_DOMAIN" // output tunnel domain as BOT_DOMAIN
49+
}
50+
}
51+
],
52+
"env": "local"
53+
},
54+
"isBackground": true,
55+
"problemMatcher": "$teamsfx-local-tunnel-watch"
56+
},
57+
{
58+
// Create the debug resources.
59+
// See https://aka.ms/teamsfx-tasks/provision to know the details and how to customize the args.
60+
"label": "Provision",
61+
"type": "teamsfx",
62+
"command": "provision",
63+
"args": {
64+
"env": "local"
65+
}
66+
},
67+
{
68+
// Build project.
69+
// See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
70+
"label": "Deploy",
71+
"type": "teamsfx",
72+
"command": "deploy",
73+
"args": {
74+
"env": "local"
75+
}
76+
}
77+
]
78+
}
183 KB
Loading
94.3 KB
Loading

0 commit comments

Comments
 (0)