Skip to content

Commit

Permalink
feat: onboard retail dashboard sample (#1006)
Browse files Browse the repository at this point in the history
* chore: add retail dashboard sample
* feat: add sample config
* ci: update code owner
  • Loading branch information
HuihuiWu-Microsoft authored Aug 30, 2023
1 parent 6de22a2 commit c598942
Show file tree
Hide file tree
Showing 150 changed files with 5,768 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .config/samples-config-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,26 @@
"configuration": "Ready for debug",
"gifPath": "src/assets/screenshot.png",
"suggested": false
},
{
"id": "react-retail-dashboard",
"shortId": "retail-dashboard",
"onboardDate": "2023-09-15",
"title": "Contoso Retail Dashboard",
"shortDescription": "Microsoft Teams tab powered by SharePoint Framework to show a Contoso retail dashboard based on demo sample data.",
"fullDescription": "Contoso Retail Dashboard sample shows you how to build a dashboard for viewing different control layouts. It also shows you how to create a Microsoft Teams personal app with SharePoint Framework, hosting the solution also in Outlook.com and in the Microsoft 365 Portal as a Microsoft 365 app.",
"types": [
"Tab"
],
"tags": [
"Tab",
"TS",
"SPFx"
],
"time": "5min to run",
"configuration": "Ready for debug",
"gifPath": "assets/screenshot.png",
"suggested": false
}
]
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
/whos-next-meeting-app @MSFT-yiz @HuihuiWu-Microsoft
/teams-chef-bot @MSFT-yiz @HuihuiWu-Microsoft
/spfx-productivity-dashboard @MSFT-yiz @HuihuiWu-Microsoft
/react-retail-dashboard @MSFT-yiz @HuihuiWu-Microsoft
/.config/samples-config-v3.json @HuihuiWu-Microsoft @wenytang-ms @tecton
/.github/workflows/cd.yml @adashen @LongOddCode @Siglud @qinezh @wenytang-ms
20 changes: 20 additions & 0 deletions react-retail-dashboard/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TeamsFx files
env/.env.*.user
env/.env.local
.DS_Store
build
appPackage/build

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env
.deployment
245 changes: 245 additions & 0 deletions react-retail-dashboard/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Hosted workbench (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"runtimeArgs": [
"--remote-debugging-port=9222",
"-incognito"
],
"preLaunchTask": "gulp serve",
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "remote",
"order": 1
}
},
{
"name": "Hosted workbench (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://enter-your-SharePoint-site/_layouts/workbench.aspx",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"runtimeArgs": [
"--remote-debugging-port=9222",
"-incognito"
],
"preLaunchTask": "gulp serve",
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "remote",
"order": 2
}
},
{
"name": "Start Teams workbench (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Start Teams workbench (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Frontend in Outlook (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Frontend in Outlook (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Frontend in the Microsoft 365 app (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Frontend in the Microsoft 365 app (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
"webRoot": "${workspaceRoot}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///.././src/*": "${webRoot}/src/*",
"webpack:///../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../src/*": "${webRoot}/src/*",
"webpack:///../../../../../src/*": "${webRoot}/src/*"
},
"postDebugTask": "Terminate All Tasks",
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
}
],
"compounds": [
{
"name": "Teams workbench (Edge)",
"configurations": [
"Start Teams workbench (Edge)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "forteams",
"order": 1
},
"stopAll": true
},
{
"name": "Teams workbench (Chrome)",
"configurations": [
"Start Teams workbench (Chrome)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "forteams",
"order": 2
},
"stopAll": true
},
{
"name": "Outlook workbench (Edge)",
"configurations": [
"Attach to Frontend in Outlook (Edge)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group2: Outlook",
"order": 3
},
"stopAll": true
},
{
"name": "Outlook workbench (Chrome)",
"configurations": [
"Attach to Frontend in Outlook (Chrome)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group2: Outlook",
"order": 4
},
"stopAll": true
},
{
"name": "The Microsoft 365 app workbench (Edge)",
"configurations": [
"Attach to Frontend in the Microsoft 365 app (Edge)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group3: the Microsoft 365 app",
"order": 5
},
"stopAll": true
},
{
"name": "The Microsoft 365 app workbench (Chrome)",
"configurations": [
"Attach to Frontend in the Microsoft 365 app (Chrome)"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "group3: the Microsoft 365 app",
"order": 6
},
"stopAll": true
}
]
}
3 changes: 3 additions & 0 deletions react-retail-dashboard/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"debug.onTaskErrors": "abort"
}
Loading

0 comments on commit c598942

Please sign in to comment.