|
| 1 | +# My Sites Hub |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +My Sites Hub is a SharePoint Framework (SPFx) Application Customizer Extension that provides users with a centralized “My Sites” dashboard accessible directly from any SharePoint site. |
| 6 | + |
| 7 | +It helps users discover, manage, and quickly navigate to their Followed, Frequent, and Recently Visited SharePoint sites — without needing to open the SharePoint start page or search manually. |
| 8 | + |
| 9 | +This extension offers a modern, responsive, and fluid experience, seamlessly blending into SharePoint’s native design language. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +## Compatibility |
| 15 | + |
| 16 | +| :warning: Important | |
| 17 | +|:---------------------------| |
| 18 | +| Every SPFx version is optimally compatible with specific versions of Node.js. In order to be able to build this sample, you need to 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.| |
| 19 | +|Refer to <https://aka.ms/spfx-matrix> for more information on SPFx compatibility. | |
| 20 | + |
| 21 | +## Used SharePoint Framework Version |
| 22 | + |
| 23 | +This sample is optimally compatible with the following environment configuration: |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +Tested using Node.js v22.18.0 |
| 35 | + |
| 36 | +## Applies to |
| 37 | + |
| 38 | +- [SharePoint Framework](https://aka.ms/spfx) |
| 39 | +- [Microsoft 365 tenant](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-developer-tenant) |
| 40 | + |
| 41 | +> Get your own free development tenant by subscribing to [Microsoft 365 developer program](https://aka.ms/m365devprogram) |
| 42 | +
|
| 43 | +## Prerequisites |
| 44 | + |
| 45 | +No special setup required — the extension works across any SharePoint Online environment. |
| 46 | + |
| 47 | +## Contributors🧑💻 |
| 48 | + |
| 49 | +- [Sandeep P S](https://github.com/Sandeep-FED) |
| 50 | + |
| 51 | +## Version history |
| 52 | + |
| 53 | +| Version | Date | Comments | |
| 54 | +| ------- | ---------------- | --------------- | |
| 55 | +| 1.0 | October 30, 2025 | Initial release | |
| 56 | + |
| 57 | +## Minimal Path to Awesome |
| 58 | + |
| 59 | +- Clone this repository |
| 60 | +- Ensure that you are at the solution folder |
| 61 | +- in the command-line run: |
| 62 | + - `npm install` |
| 63 | + - `gulp serve` |
| 64 | + |
| 65 | +## Debug URL for Testing |
| 66 | + |
| 67 | +```javascript |
| 68 | +debugManifestsFile=https%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fbuild%2Fmanifests.js&loadSPFX=true&customActions=%7B%2201ec7cba-7bc2-4ae6-8f69-0a577999cad1%22%3A%7B%22location%22%3A%22ClientSideExtension.ApplicationCustomizer%22%2C%22properties%22%3A%7B%22testMessage%22%3A%22Test+message%22%7D%7D%7D |
| 69 | +``` |
| 70 | + |
| 71 | +## Deploy Package Solution |
| 72 | +- Ensure that you are at the solution folder |
| 73 | +- in the command-line run: |
| 74 | + - `gulp build --ship` |
| 75 | + - `gulp bundle --ship` |
| 76 | + - `gulp package-solution --ship` |
| 77 | +- Upload package to AppCatalog & add it to the SharePoint site. |
| 78 | + |
| 79 | +## Features💡 |
| 80 | + |
| 81 | +Key capabilities of My Sites Hub: |
| 82 | +- Displays Followed, Frequent sites |
| 83 | +- Uses SP native APIs for followed/frequent API calls |
| 84 | +- Allows users to Follow / Unfollow sites directly |
| 85 | +- Built with React, Fluent UI v9 |
| 86 | + |
| 87 | +## References |
| 88 | + |
| 89 | +- [Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) - Guidance, tooling, samples and open-source controls for your Microsoft 365 development. |
| 90 | +- [SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-developer-tenant) |
| 91 | +- [React Docs](https://react.dev/learn) |
| 92 | + |
| 93 | +## Help |
| 94 | + |
| 95 | +We do not support samples, but we this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. |
| 96 | + |
| 97 | +If you're having issues building the solution, please run [spfx doctor](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment. |
| 98 | + |
| 99 | +If you encounter any issues while using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-extensions/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected%2Csample%3A%20react-my-sites-hub&template=bug-report.yml&sample=react-my-sites-hub&authors=@Sandeep-FED&title=react-my-sites-hub%20-%20). |
| 100 | + |
| 101 | +For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-extensions/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aquestion%2Csample%3A%20react-my-sites-hub&template=question.yml&sample=react-my-sites-hub&authors=@Sandeep-FED&title=react-my-sites-hub%20-%20). |
| 102 | + |
| 103 | +Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-extensions/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20react-my-sites-hub&template=question.yml&sample=react-my-sites-hub&authors=@Sandeep-FED&title=react-my-sites-hub%20-%20). |
| 104 | + |
| 105 | +## Disclaimer |
| 106 | + |
| 107 | +**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.** |
| 108 | + |
| 109 | + |
0 commit comments