pushing the enhancement versions

This commit is contained in:
Mrigango Deb 2024-09-13 20:37:35 +05:30
parent 01f03d34a2
commit 99d6278688
8 changed files with 65876 additions and 54098 deletions

View File

@ -0,0 +1 @@
v16.15.1

View File

@ -4,11 +4,31 @@
This sample is the source code for the Rhythm of Business Calendar app and is intended to demonstrate patterns and practices for building enterprise apps on the SharePoint platform.
This application requires below Graph Api Permissions-
# Send Approval notifications to approvers over teams in personal chat
1. Chat.Create - It is required for creating the chat and getting the chat id for sending an adaptive card to the approver.
2. ChatMessage.Send - It is required for sending the adaptive card (with @mention activity feed) to all the approvers whenever any event is created with approval rule applied for any refiner.
# Share event details to teams channel where the app is installed
1. ChannelMessage.Send - It is required for sharing the event details on click of "Share" button into the same teams channel in which the app is added.
Note: Sharing events details to teams channel feature will be disbled if the webpart is installed on a SharePoint page.
### versions
node v16.15.1
npm 8.13.2
spfx 1.15.0
TypeScript 4.5
<!-- TODO: link to the app once published
This sample is the source code for the Rhythm of Business Calendar app published in [AppSource](https://appsource.microsoft.com/en-us/marketplace/apps?product=sharepoint) and is intended to demonstrate patterns and practices for building enterprise apps on the SharePoint platform.
-->
Rhythm of Business (RoB) Calendar keeps you on top of your business goals by managing all team and organizational events seamlessly. Simplify and expedite the coordination and planning process for your team and subgroups with the help of color-coded events, approval workflow, refiners and confidential events. Ideal for Chiefs of Staff, Executive Assistants, or anyone who manages a team calendar, you can empower your teams by enabling better insights on your business goals and team events.
Rhythm of Business (RoB) Calendar keeps you on top of your business goals by managing all team and organizational events seamlessly. Simplify and expedite the coordination and planning process for your team and subgroups with the help of color-coded events, approval workflow, refiners and confidential events. Ideal for Chiefs of Staff, Executive Assistants, or anyone who manages a team calendar, you can empower your teams by enabling better insights on your business goals and team events.
Month view
![Screenshot of month view](./assets/screenshot-month-view.png)
@ -21,16 +41,16 @@ Edit refiner
## Compatibility
| :warning: Important |
|:---------------------------|
| Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.|
|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |
| :warning: Important |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node. |
| Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. |
![SPFx 1.15](https://img.shields.io/badge/SPFx-1.15-green.svg)
![Node.js v16](https://img.shields.io/badge/Node.js-v16-green.svg)
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
![Does not work with SharePoint 2016 (Feature Pack 2)](<https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg> "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg "Local workbench is no longer available as of SPFx 1.13 and above")
![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg)
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
@ -38,29 +58,30 @@ Edit refiner
## Applies to
* [SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
* [Microsoft 365 tenant](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment)
- [SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
- [Microsoft 365 tenant](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-development-environment)
> Get your own free development tenant by subscribing to [Microsoft 365 developer program](https://aka.ms/m365/devprogram)
## Contributors
* [Dan Turley](https://github.com/d-turley)
- [Dan Turley](https://github.com/d-turley)
co- author [Mrigango Deb]
## Version history
Version|Date|Comments
-------|----|--------
1.0|September 26, 2022|Initial release
| Version | Date | Comments |
| ------- | ------------------ | ------------------- |
| 1.0 | September 26, 2022 | Initial release |
| 5.0.1 | September 16, 2024 | Enhancement release |
## Minimal path to awesome
* Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-rhythm-of-business-calendar) then unzip it)
* From your command line, change your current directory to the directory containing this sample (`react-rhythm-of-business-calendar`, located under `samples`)
* in the command line run:
* `npm install`
* `gulp serve --nobrowser`
- Clone this repository (or [download this solution as a .ZIP file](https://pnp.github.io/download-partial/?url=https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-rhythm-of-business-calendar) then unzip it)
- From your command line, change your current directory to the directory containing this sample (`react-rhythm-of-business-calendar`, located under `samples`)
- in the command line run:
- `npm install`
- `gulp serve --nobrowser`
<!--
TODO: add support for containers
@ -69,20 +90,20 @@ TODO: add support for containers
## Features
This sample is a complete app that demonstrates the "SPFx Solution Accelerator" framework, along with patterns and practices for building enterprise-class apps on SharePoint. Inspired by Domain Driven Design and Onion Architecture, this accelerator has evolved since SPFx v1.0, and we want to share it with the world!
This sample is a complete app that demonstrates the "SPFx Solution Accelerator" framework, along with patterns and practices for building enterprise-class apps on SharePoint. Inspired by Domain Driven Design and Onion Architecture, this accelerator has evolved since SPFx v1.0, and we want to share it with the world!
At a high-level, the accelerator includes the following features:
* Prescribed [solution structure](./documentation/solution-structure.md) separates web parts, components, model, services, and schema (data) layers
* Robust [entity domain model](./documentation/entities.md) with relationships, validation, change tracking, and text search
* Robust [schema provisioning](./documentation/schema.md) and versioning; use SharePoint lists as a simple relational database
* [Services](./documentation/services.md) for interacting with SharePoint, timezones, domain isolation, and users and groups, plus patterns for building custom services for app-specific logic
* [Component library](./documentation/components.md) with customizable wizard, panel/dialog for quickly building view/edit screens, validation, and more
* [Live Update](./documentation/live-update.md) feature ensures users are always working with the latest data without manaually reloading the page
* Built on the latest SPFx with TypeScript, React, and Fluent UI, plus PnPjs, Moment.js, Lodash, and Jest
- Prescribed [solution structure](./documentation/solution-structure.md) separates web parts, components, model, services, and schema (data) layers
- Robust [entity domain model](./documentation/entities.md) with relationships, validation, change tracking, and text search
- Robust [schema provisioning](./documentation/schema.md) and versioning; use SharePoint lists as a simple relational database
- [Services](./documentation/services.md) for interacting with SharePoint, timezones, domain isolation, and users and groups, plus patterns for building custom services for app-specific logic
- [Component library](./documentation/components.md) with customizable wizard, panel/dialog for quickly building view/edit screens, validation, and more
- [Live Update](./documentation/live-update.md) feature ensures users are always working with the latest data without manaually reloading the page
- Built on the latest SPFx with TypeScript, React, and Fluent UI, plus PnPjs, Moment.js, Lodash, and Jest
A deep dive into the various features of the accelerator can be found in the [documentation](./documentation/README.md) folder.
<!--
RESERVED FOR REPO MAINTAINERS
@ -111,6 +132,6 @@ Finally, if you have an idea for improvement, [make a suggestion](https://github
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
**THIS CODE IS PROVIDED _AS IS_ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
<img src="https://m365-visitor-stats.azurewebsites.net/sp-dev-fx-webparts/samples/react-rhythm-of-business-calendar" />

View File

@ -1,20 +1,21 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"rhythm-of-business-web-parts": {
"components": [
{
"entrypoint": "./lib/webparts/rhythmOfBusinessCalendar/RhythmOfBusinessCalendarWebPart.js",
"manifest": "./src/webparts/rhythmOfBusinessCalendar/RhythmOfBusinessCalendarWebPart.manifest.json"
}
]
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"bundles": {
"rhythm-of-business-web-parts": {
"components": [
{
"entrypoint": "./lib/webparts/rhythmOfBusinessCalendar/RhythmOfBusinessCalendarWebPart.js",
"manifest": "./src/webparts/rhythmOfBusinessCalendar/RhythmOfBusinessCalendarWebPart.manifest.json"
}
},
"externals": { },
"localizedResources": {
"CommonStrings": "lib/common/components/loc/{locale}.js",
"ComponentStrings": "lib/components/loc/{locale}.js",
"RhythmOfBusinessCalendarWebPartStrings": "lib/webparts/rhythmOfBusinessCalendar/loc/{locale}.js"
]
}
},
"externals": {},
"localizedResources": {
"CommonStrings": "lib/common/components/loc/{locale}.js",
"ComponentStrings": "lib/components/loc/{locale}.js",
"RhythmOfBusinessCalendarWebPartStrings": "lib/webparts/rhythmOfBusinessCalendar/loc/{locale}.js",
"ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js"
}
}

View File

@ -1,11 +1,25 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "LOCAL Rhythm of Business Calendar",
"id": "37df9a1c-b53e-46ad-9efb-2e4da77a724f",
"version": "1.0.0.0",
"name": "Rhythm of Business Calendar",
"id": "8588904e-d33f-40ac-9ee0-2fcfcfb0ebc2",
"version": "5.0.1.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"webApiPermissionRequests": [
{
"resource": "Microsoft Graph",
"scope": "ChatMessage.Send"
},
{
"resource": "Microsoft Graph",
"scope": "Chat.Create"
},
{
"resource": "Microsoft Graph",
"scope": "ChannelMessage.Send"
}
],
"developer": {
"name": "",
"websiteUrl": "",
@ -15,6 +29,6 @@
}
},
"paths": {
"zippedPackage": "solution/RhythmOfBusinessCalendar-LOCAL.sppkg"
"zippedPackage": "solution/RhythmOfBusinessCalendar.sppkg"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,84 +1,103 @@
{
"name": "rhythm-of-business-calendar",
"version": "1.0.0",
"version": "5.0.1",
"main": "lib/index.js",
"private": true,
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"deploy": "gulp deploy",
"package": "gulp package",
"test": "./node_modules/.bin/jest"
"refreshVSToken": "vsts-npm-auth -config .npmrc",
"build": "gulp bundle",
"clean": "gulp clean",
"deploy": "gulp deploy",
"package": "gulp package",
"test": "./node_modules/.bin/jest",
"preinstall": "npx npm-force-resolutions"
},
"resolutions": {
"@types/react": "~16.9.51"
"@types/react": "16.9.56",
"loader-utils": "2.0.4",
"json5": "2.2.2",
"nanoid": "3.1.31",
"fast-xml-parser": "4.4.1",
"@babel/traverse": "7.23.2",
"browserify-sign":"4.2.2",
"jszip":"3.8.0",
"braces":"3.0.3",
"fast-loops": "1.1.4",
"semver": "7.5.2"
},
"dependencies": {
"@fluentui/react": "^8.77.2",
"@fluentui/react-hooks": "^8.6.0",
"@fluentui/react-icons-mdl2": "^1.3.11",
"@microsoft/sp-component-base": "^1.15.2",
"@microsoft/sp-core-library": "^1.15.2",
"@microsoft/sp-http": "^1.15.2",
"@microsoft/sp-list-subscription": "^1.15.2",
"@microsoft/sp-loader": "^1.15.2",
"@microsoft/sp-property-pane": "1.15.2",
"@microsoft/sp-webpart-base": "1.15.2",
"@pnp/common": "^2.13.0",
"@pnp/graph": "^2.13.0",
"@pnp/logging": "^2.13.0",
"@pnp/odata": "^2.13.0",
"@pnp/sp": "^2.13.0",
"compressed-json": "^1.0.16",
"he": "^1.2.0",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.34",
"office-ui-fabric-react": "7.185.7",
"react": "~16.13.1",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "~16.13.1",
"react-router-dom": "^6.3.0",
"sanitize-html": "^2.12.1",
"swiped-events": "^1.1.6"
"@fluentui/react": "^8.77.2",
"@fluentui/react-hooks": "^8.6.0",
"@fluentui/react-icons-mdl2": "^1.3.11",
"@microsoft/sp-component-base": "^1.15.2",
"@microsoft/sp-core-library": "^1.15.2",
"@microsoft/sp-http": "^1.15.2",
"@microsoft/sp-list-subscription": "^1.15.2",
"@microsoft/sp-loader": "^1.15.2",
"@microsoft/sp-property-pane": "1.15.2",
"@microsoft/sp-webpart-base": "1.15.2",
"@pnp/common": "^2.13.0",
"@pnp/graph": "^2.13.0",
"@pnp/logging": "^2.13.0",
"@pnp/odata": "^2.13.0",
"@pnp/sp": "^2.13.0",
"@pnp/spfx-controls-react": "^3.13.0",
"compressed-json": "^1.0.16",
"eslint": "^7.32.0",
"he": "^1.2.0",
"hoist-non-react-statics": "^3.3.0",
"html2canvas": "^1.4.1",
"react-export-table-to-excel": "^1.0.6",
"lodash": "^4.17.21",
"moment-timezone": "^0.5.35",
"office-ui-fabric-react": "7.185.7",
"pptxgenjs": "^3.12.0",
"react": "~16.13.1",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "~16.13.1",
"react-router-dom": "^6.3.0",
"sanitize-html": "^2.7.1",
"swiped-events": "^1.1.6",
"typescript": "^4.5.2"
},
"devDependencies": {
"@microsoft/eslint-config-spfx": "^1.15.2",
"@microsoft/eslint-plugin-spfx": "^1.15.2",
"@microsoft/gulp-core-build": "3.17.19",
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
"@microsoft/sp-build-core-tasks": "^1.20.1",
"@microsoft/sp-build-web": "^1.20.1",
"@microsoft/sp-module-interfaces": "^1.15.2",
"@rushstack/eslint-config": "2.5.1",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@types/he": "^1.1.2",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^26.0.24",
"@types/react": "~16.9.51",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-dom": "~16.9.8",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "~16.9.5",
"@types/sanitize-html": "^2.3.2",
"@types/sharepoint": "^2016.1.10",
"@types/webpack-env": "^1.16.2",
"acorn": "^8.4.1",
"ajv": "^8.6.1",
"enhanced-resolve": "^5.8.2",
"eslint-plugin-react-hooks": "^4.3.0",
"gulp": "^4.0.2",
"gulp-zip": "^5.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"json5": "^2.2.2",
"raf": "^3.4.1",
"react-test-renderer": "~16.13.1",
"stateful-process-command-proxy": "^1.0.1",
"ts-jest": "^26.5.6"
"@microsoft/eslint-config-spfx": "^1.15.2",
"@microsoft/eslint-plugin-spfx": "^1.15.2",
"@microsoft/gulp-core-build": "3.17.19",
"@microsoft/rush-stack-compiler-4.5": "0.2.2",
"@microsoft/sp-build-core-tasks": "^1.15.2",
"@microsoft/sp-build-web": "^1.15.2",
"@microsoft/sp-module-interfaces": "^1.15.2",
"@rushstack/eslint-config": "2.5.1",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@types/he": "^1.1.2",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^26.0.24",
"@types/react": "~16.9.51",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-dom": "~16.9.8",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "~16.9.5",
"@types/sanitize-html": "^2.3.2",
"@types/sharepoint": "^2016.1.10",
"@types/webpack-env": "^1.16.2",
"acorn": "^8.4.1",
"ajv": "^8.6.1",
"enhanced-resolve": "^5.8.2",
"eslint-plugin-react-hooks": "^4.3.0",
"gulp": "^4.0.2",
"gulp-zip": "^5.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"json5": "^2.2.0",
"raf": "^3.4.1",
"react-test-renderer": "~16.13.1",
"stateful-process-command-proxy": "^1.0.1",
"ts-jest": "^26.5.6"
},
"engines": {
"node": ">=16.15.1"
"node": ">=16.15.1"
}
}
}

View File

@ -8,7 +8,7 @@ const Environments = {
PROD: { TeamsAppId: Guid.parse('1e92a7c2-d849-4fa7-bd2d-8fb9f876609d') }
};
const Environment = Environments.LOCAL;
const Environment = Environments.PROD;
export const Defaults = {
TeamsAppId: Environment.TeamsAppId

View File

@ -1,7 +1,7 @@
{
"$schema": "https://dev.office.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "ff77b45a-483c-4fe7-94b4-b5fc8def29c0",
"alias": "RhythmOfBusinessCalendarWebPartLOCAL",
"id": "077f5c4a-37bf-4531-ac24-6369ca0f5f51",
"alias": "RhythmOfBusinessCalendarWebPart",
"componentType": "WebPart",
"version": "*",
"manifestVersion": 2,
@ -20,7 +20,7 @@
"default": "Other"
},
"title": {
"default": "(LOCAL) Rhythm of Business Calendar"
"default": "Rhythm of Business Calendar"
},
"description": {
"default": "One calendar for managing and maintaining all team and organizational events"