Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/sharepoint-sidepane.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: SharePoint sidepane

on:
pull_request:
paths:
- 'ui/embed/sharepoint-customizer/**'
- '.github/workflows/sharepoint-sidepane.yml'
push:
branches: [main]
paths:
- 'ui/embed/sharepoint-customizer/**'
- '.github/workflows/sharepoint-sidepane.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
package:
name: Package (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
defaults:
run:
working-directory: ui/embed/sharepoint-customizer
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm install --no-audit --no-fund
- run: npm test
- name: Build and inspect configured production package (no tenant access)
run: npm run deploy -- --site-url https://contoso.sharepoint.com/sites/team --app-client-id 11111111-1111-4111-8111-111111111111 --properties tests/fixtures/deployment.json --package-only
- name: Ensure tracked source was not modified
run: git diff --exit-code
- uses: actions/upload-artifact@v4
with:
name: sidepane-${{ matrix.os }}
path: ui/embed/sharepoint-customizer/sharepoint/solution/sidebar-agent.sppkg
retention-days: 7
2 changes: 1 addition & 1 deletion ui/embed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Plug a Copilot Studio chat agent into an existing platform.
| [minimizable-widget/](./minimizable-widget/) | Minimizable/expandable WebChat widget for any website |
| [pcf-canvas-app/](./pcf-canvas-app/) | PCF control to embed a chat agent in Power Apps canvas apps |
| [servicenow-widget/](./servicenow-widget/) | Floating chat widget for ServiceNow Service Portal |
| [sharepoint-customizer/](./sharepoint-customizer/) | SharePoint app customizer with SSO |
| [sharepoint-customizer/](./sharepoint-customizer/) | Fluent SharePoint side panel for GHCP and standard harness agents, with SSO, local files, and optional agent activity |
| [typeahead-suggestions/](./typeahead-suggestions/) | Typeahead suggestions for WebChat |
| [WebChat React](../custom-ui/webchat-react/) | WebChat React client with auth (Node) — *M365 Agents SDK repo* |
| [Web Client](../custom-ui/webclient/) | Web client with auth (Node) — *M365 Agents SDK repo* |
5 changes: 5 additions & 0 deletions ui/embed/sharepoint-customizer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lib
release
solution/*
!solution/*.sppkg
sharepoint/solution/
temp
.heft

Expand All @@ -32,3 +33,7 @@ obj

# Styles Generated Code
*.scss.ts

# Local review configuration and browser artifacts
*.local.json
.playwright-cli/
422 changes: 242 additions & 180 deletions ui/embed/sharepoint-customizer/README.md

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions ui/embed/sharepoint-customizer/config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"solution": {
"name": "sidebar-agent-client-side-solution",
"id": "54cbba6a-2459-43a9-80a4-bc0675a81ac0",
"version": "1.0.0.0",
"version": "1.1.0.1",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"skipFeatureDeployment": false,
"isDomainIsolated": false,
"developer": {
"name": "",
Expand All @@ -30,11 +30,10 @@
"title": "Application Extension - Deployment of custom action",
"description": "Deploys a custom action with ClientSideComponentId association",
"id": "f757a2ed-fea6-4478-abd2-080c4a1f6a84",
"version": "1.0.0.0",
"version": "1.1.0.1",
"assets": {
"elementManifests": [
"elements.xml",
"ClientSideInstance.xml"
"elements.xml"
]
}
}
Expand Down
24 changes: 16 additions & 8 deletions ui/embed/sharepoint-customizer/config/serve.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,41 @@
"https": true,
"serveConfigurations": {
"default": {
"pageUrl": "https://m365x66364744.sharepoint.com/sites/GlobalSales/SitePages/Home.aspx",
"pageUrl": "https://YOUR-TENANT.sharepoint.com/sites/YOUR-SITE/",
"customActions": {
"4c6e29f2-7eee-4f9f-bbd2-20c8859d0ba2": {
"location": "ClientSideExtension.ApplicationCustomizer",
"properties": {
"appClientId": "APP-REGISTRATION-ID",
"tenantId": "TENANT-ID",
"environmentId": "ENV-ID",
"agentIdentifier": "AGENT-ID",
"directConnectUrl": "YOUR-DIRECT-CONNECT-URL",
"showTyping": true
"schemaName": "AGENT-SCHEMA-NAME",
"startConversation": false,
"showTyping": true,
"enableFileUpload": true,
"showReasoning": false,
"showToolCalls": false,
"starterPrompts": [{ "title": "Get started", "text": "What can you help me with?" }]
}
}
}
},
"sidebarAgent": {
"pageUrl": "https://m365x66364744.sharepoint.com/sites/GlobalSales/SitePages/Home.aspx",
"pageUrl": "https://YOUR-TENANT.sharepoint.com/sites/YOUR-SITE/",
"customActions": {
"4c6e29f2-7eee-4f9f-bbd2-20c8859d0ba2": {
"location": "ClientSideExtension.ApplicationCustomizer",
"properties": {
"appClientId": "APP-REGISTRATION-ID",
"tenantId": "TENANT-ID",
"environmentId": "ENV-ID",
"agentIdentifier": "AGENT-ID",
"directConnectUrl": "YOUR-DIRECT-CONNECT-URL",
"showTyping": true
"schemaName": "AGENT-SCHEMA-NAME",
"startConversation": false,
"showTyping": true,
"enableFileUpload": true,
"showReasoning": false,
"showToolCalls": false,
"starterPrompts": [{ "title": "Get started", "text": "What can you help me with?" }]
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions ui/embed/sharepoint-customizer/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
'use strict';

const build = require('@microsoft/sp-build-web');
const path = require('node:path');

// The SDK beta's Activity browser mapping points at TypeScript; use its shipped JavaScript shim.
const activityRoot = path.dirname(require.resolve('@microsoft/agents-activity/package.json'));
build.configureWebpack.mergeConfig({
additionalConfiguration: config => {
config.resolve.alias = {
...config.resolve.alias,
[path.join(activityRoot, 'src/browser/crypto.ts')]: path.join(activityRoot, 'dist/src/browser/crypto.js')
};
return config;
}
});

build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions ui/embed/sharepoint-customizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,25 @@
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "gulp test"
"test": "tsc -p tsconfig.test.json && node --test tests/*.test.cjs",
"serve": "gulp serve --nobrowser",
"sideload": "node scripts/sideload.cjs",
"deploy": "node scripts/deploy.cjs"
},
"dependencies": {
"@azure/msal-browser": "^4.13.1",
"@fluentui/react": "^8.121.4",
"@microsoft/agents-copilotstudio-client": "^1.0.0",
"@microsoft/agents-activity": "1.10.0-beta.7.g65f69dfa27",
"@microsoft/agents-copilotstudio-client": "1.10.0-beta.7.g65f69dfa27",
"@microsoft/decorators": "1.21.1",
"@microsoft/sp-application-base": "1.21.1",
"@microsoft/sp-core-library": "1.21.1",
"botframework-webchat": "4.18.1-main.20250804.93043a9",
"botframework-webchat-fluent-theme": "4.18.1-main.20250804.93043a9",
"@microsoft/sp-component-base": "1.21.1",
"botframework-webchat": "4.19.2",
"botframework-webchat-fluent-theme": "4.19.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"rxjs": "7.8.2",
"tslib": "2.3.1"
},
"devDependencies": {
Expand All @@ -30,10 +36,12 @@
"@microsoft/rush-stack-compiler-5.3": "0.1.0",
"@microsoft/sp-build-web": "1.21.1",
"@microsoft/sp-module-interfaces": "1.21.1",
"@pnp/cli-microsoft365": "11.5.0",
"@rushstack/eslint-config": "4.0.1",
"@types/webpack-env": "~1.15.2",
"ajv": "^6.12.5",
"eslint": "8.57.1",
"fflate": "0.8.2",
"gulp": "4.0.2",
"typescript": "~5.3.3"
}
Expand Down
Loading
Loading