-
Notifications
You must be signed in to change notification settings - Fork 23
Restructure samples into category-first taxonomy (apps / snippets / traditional / server-logic) #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tyaginidhi
merged 3 commits into
main
from
restructure/samples-apps-snippets-traditional
Jul 3, 2026
Merged
Restructure samples into category-first taxonomy (apps / snippets / traditional / server-logic) #109
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
ad563fc
Restructure samples into spa/apps, spa/snippets, and traditional/
tyaginidhi 4f2f484
Restructure: promote server-logic to top level, add EDM placeholder, …
tyaginidhi 525b7da
Add migration guide and tighten sample-classification docs (review P1…
tyaginidhi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Migration guide — samples reorganized | ||
|
|
||
| The `samples/` folder was reorganized (July 2026) from a **framework-first** | ||
| layout (`samples/spa/react/…`, `samples/spa/angular/…`, `samples/spa/vue/…`) to a | ||
| **category-first** layout: | ||
|
|
||
| - `spa/apps/` — full, multi-feature reference applications (`<name>/<framework>/`) | ||
| - `spa/snippets/` — single-topic samples (React-only, flat) | ||
| - `traditional/` — non-code Liquid / web-template sites | ||
| - `server-logic/` — server-side runtime code | ||
|
|
||
| GitHub does **not** redirect renamed paths, so links that pointed at the old | ||
| locations now return 404. Use the table below to find where a sample moved. | ||
|
|
||
| ## Moved paths (old → new) | ||
|
|
||
| | Sample | Old path (before reorg) | New path | | ||
| | --- | --- | --- | | ||
| | Car Sales Website (React) | `samples/spa/react/car-sales-website/` | `samples/spa/apps/car-sales-website/react/` | | ||
| | Car Sales Website (Angular) | `samples/spa/angular/car-sales-website/` | `samples/spa/apps/car-sales-website/angular/` | | ||
| | Credit Cards Website (React) | `samples/spa/react/credit-cards-website/` | `samples/spa/apps/credit-cards-website/react/` | | ||
| | Vue Admin Template (Vue) | `samples/spa/vue/vue-admin-template/` | `samples/spa/apps/vue-admin-template/vue/` | | ||
| | Environment Variables | `samples/spa/react/environment-variables-samples/vite-framework/` | `samples/spa/snippets/environment-variables/` | | ||
| | Fluent UI | `samples/spa/react/fluent-ui-sample/` | `samples/spa/snippets/fluent-ui/` | | ||
| | Localization | `samples/spa/react/localization-sample/` | `samples/spa/snippets/localization/` | | ||
| | Authentication | `samples/spa/react/authentication-sample/` | `samples/spa/snippets/authentication/` | | ||
| | Cloud Flow | `samples/spa/react/cloud-flow-sample/` | `samples/spa/snippets/cloud-flow/` | | ||
| | File Upload (all variants) | `samples/spa/react/file-upload/` | `samples/spa/snippets/file-upload/` | | ||
| | SharePoint server logic | `samples/server-logic/sharepoint-integration/` | _(unchanged)_ | | ||
|
|
||
| > Some folders were also renamed during the move (for example | ||
| > `environment-variables-samples/vite-framework` → `environment-variables`, and the | ||
| > `-sample` suffixes were dropped), so the new name may not match the old one | ||
| > exactly — use the table rather than guessing. | ||
|
|
||
| For how the categories are organized going forward, see | ||
| [CONTRIBUTING.md](CONTRIBUTING.md). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Server logic samples | ||
|
|
||
| Server-side JavaScript that runs on the Power Pages runtime and is callable from | ||
| both code sites ([`../spa/`](../spa/)) and traditional sites | ||
| ([`../traditional/`](../traditional/)). Server logic keeps secrets off the client | ||
| and lets a site reach services that the portal Web API can't. | ||
|
|
||
| | Sample | Integrates | Use this sample to learn | | ||
| | --- | --- | --- | | ||
| | [SharePoint Integration](sharepoint-integration/) | Microsoft Graph + SharePoint | Call Microsoft Graph and SharePoint Online from server logic using an Entra client-credentials app. Pairs with the [File Upload (SharePoint)](../spa/snippets/file-upload/sharepoint/) code-site sample. | | ||
|
|
||
| See the repository [CONTRIBUTING guide](../../CONTRIBUTING.md) for how the sample | ||
| categories are organized and where a new sample belongs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.