Repository navigation
Update Bootstrap to 5.3.8 in templates and Identity UI - #68898
Conversation
Import the general abstraction-boundary rule from #68885 without its unrelated Hot Reload skill and product changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: df7627de-b860-4c91-ba05-338c677a8c52
Refresh all vendored Bootstrap 5 assets, CDN integrity hashes, licenses, and package-test expectations. Extend the copy automation to cover the current Blazor template path, standalone WebAssembly, and Identity UI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90
There was a problem hiding this comment.
Pull request overview
This PR updates the repo’s shipped Bootstrap assets to 5.3.8 across web project templates and the Identity UI (including CDN URLs + SRI), and updates the template copy automation to cover the current Blazor template layout plus the standalone WebAssembly template and Identity UI asset tree.
Changes:
- Bump
bootstrapfrom^5.3.3to^5.3.8in project-template npm metadata and lockfile, and expand the copy scripts to include Blazor WASM + Identity UI. - Refresh vendored Bootstrap
dist/assets (CSS/JS/maps/license) under multiple template content trees and Identity UI assets. - Update Identity UI CDN references and test expectations to assert Bootstrap 5.3.8.
Reviewed changes
Copilot reviewed 9 out of 274 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/ProjectTemplates/Web.ProjectTemplates/package.json | Updates Bootstrap dependency to 5.3.8 and expands Bootstrap copy scripts (Blazor path fix, WASM, Identity UI). |
| src/ProjectTemplates/Web.ProjectTemplates/package-lock.json | Locks Bootstrap to 5.3.8 with updated resolved URL and integrity. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/LICENSE | Updates Bootstrap license header to current upstream year/authors. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS (UMD) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap JS (ESM) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundled JS (with Popper) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates vendored Bootstrap reboot minified CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/LICENSE | Updates Bootstrap license header to current upstream year/authors. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS (UMD) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap JS (ESM) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundled JS (with Popper) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates vendored Bootstrap reboot minified CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/LICENSE | Updates Bootstrap license header to current upstream year/authors. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS (UMD) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap JS (ESM) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundled JS (with Popper) to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to v5.3.8. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS (UMD) to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap JS (ESM) to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to v5.3.8 for the standalone WASM template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.js | Updates vendored Bootstrap JS (UMD) to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js | Updates vendored Bootstrap JS (ESM) to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates vendored Bootstrap bundle JS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates vendored Bootstrap utilities RTL CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates vendored Bootstrap utilities CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates vendored Bootstrap reboot RTL CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates vendored Bootstrap reboot CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates vendored Bootstrap grid RTL CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css | Updates vendored Bootstrap grid CSS to v5.3.8 for the Blazor Web template. |
| src/ProjectTemplates/test/Templates.Tests/IdentityUIPackageTest.cs | Updates the Identity UI package test’s expected Bootstrap version string. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/LICENSE | Updates Identity UI’s vendored Bootstrap license header. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.js | Updates Identity UI’s vendored Bootstrap JS (UMD) to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.esm.js | Updates Identity UI’s vendored Bootstrap JS (ESM) to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/js/bootstrap.bundle.js | Updates Identity UI’s vendored Bootstrap bundle JS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css | Updates Identity UI’s vendored Bootstrap utilities RTL CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-utilities.css | Updates Identity UI’s vendored Bootstrap utilities CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css | Updates Identity UI’s vendored Bootstrap reboot RTL CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.min.css | Updates Identity UI’s vendored Bootstrap reboot minified CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-reboot.css | Updates Identity UI’s vendored Bootstrap reboot CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-grid.rtl.css | Updates Identity UI’s vendored Bootstrap grid RTL CSS to v5.3.8. |
| src/Identity/UI/src/assets/V5/lib/bootstrap/dist/css/bootstrap-grid.css | Updates Identity UI’s vendored Bootstrap grid CSS to v5.3.8. |
| src/Identity/UI/src/Areas/Identity/Pages/V5/_Layout.cshtml | Updates Bootstrap CDN URLs + SRI for Identity UI V5 layout. |
| src/Components/AGENTS.md | Adds reusable Components agent guidance (cross-runtime checkpoint, build discipline, telemetry assertions). |
| .github/copilot-instructions.md | Adds task-scope/completion guidance to repo Copilot instructions. |
Files not reviewed (1)
- src/ProjectTemplates/Web.ProjectTemplates/package-lock.json: Generated file
Suppressed comments (1)
src/Identity/UI/src/Areas/Identity/Pages/V5/_Layout.cshtml:88
asp-fallback-testis checkingwindow.jQuery.fn.modal, which is the Bootstrap 4 jQuery plugin API and does not exist in Bootstrap 5. This will cause the fallback to always trigger and can result in the Bootstrap bundle being loaded twice. Switch the test to the Bootstrap 5 global (window.bootstrap) exposed by the UMD bundle.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
asp-fallback-src="~/Identity/lib/bootstrap/dist/js/bootstrap.bundle.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha256-5P1JGBOIxI7FBAvT/mb1fCnI5n/NhQKzNUuW7Hq0fMc=">
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].8/dist/css/bootstrap.min.css" | ||
| integrity="sha256-2FMn2Zx6PuH5tdBQDRNwrOo60ts5wWPC9R8jK67b3t4=" crossorigin="anonymous" | ||
| asp-fallback-href="~/Identity/lib/bootstrap/dist/css/bootstrap.min.css" | ||
| asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" /> |
|
/backport to release/11.0 |
|
Started backporting to |
|
@javiercn backporting to git am output$ git cherry-pick 833ccc210faa0fc5e104b253a4068e5978029d86
Auto-merging .github/copilot-instructions.md
CONFLICT (content): Merge conflict in .github/copilot-instructions.md
Auto-merging src/Components/AGENTS.md
error: could not apply 833ccc210f... [Blazor] Update Bootstrap to 5.3.8 in templates and Identity UI (#68898)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch
Applying: Improve agent guidance for cross-runtime Components work
Using index info to reconstruct a base tree...
M .github/copilot-instructions.md
M src/Components/AGENTS.md
Falling back to patching base and 3-way merge...
Auto-merging .github/copilot-instructions.md
CONFLICT (content): Merge conflict in .github/copilot-instructions.md
Auto-merging src/Components/AGENTS.md
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Improve agent guidance for cross-runtime Components work
Error: The process '/usr/bin/git' failed with exit code 128 |
* Improve agent guidance for cross-runtime Components work * Keep Components guidance implementation-neutral * Collect reusable Components guidance Import the general abstraction-boundary rule from #68885 without its unrelated Hot Reload skill and product changes. Co-authored-by: Copilot App <[email protected]> Copilot-Session: df7627de-b860-4c91-ba05-338c677a8c52 * Update Bootstrap to 5.3.8 in templates and Identity UI Refresh all vendored Bootstrap 5 assets, CDN integrity hashes, licenses, and package-test expectations. Extend the copy automation to cover the current Blazor template path, standalone WebAssembly, and Identity UI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90 --------- Co-authored-by: Copilot App <[email protected]> Copilot-Session: df7627de-b860-4c91-ba05-338c677a8c52 Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90
Refresh all vendored Bootstrap 5 assets, CDN integrity hashes, licenses, and package-test expectations. Extend the copy automation to cover the current Blazor template path, standalone WebAssembly, and Identity UI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90
…#68948) * [Blazor] Update Bootstrap to 5.3.8 in templates and Identity UI (#68898) Refresh all vendored Bootstrap 5 assets, CDN integrity hashes, licenses, and package-test expectations. Extend the copy automation to cover the current Blazor template path, standalone WebAssembly, and Identity UI. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90 * Use Bootstrap 5 fallback test class Use visually-hidden for the Bootstrap 5 CDN fallback probe so a successful CDN load does not trigger the local stylesheet fallback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 83dcfc7b-0305-4d3a-abe0-0d3bf535dddc --------- Co-authored-by: Copilot App <[email protected]> Copilot-Session: 95292c6a-5353-44bc-9065-d2fe86d53e90 Copilot-Session: 83dcfc7b-0305-4d3a-abe0-0d3bf535dddc
Updates Bootstrap 5 assets to 5.3.8 across project templates and Identity UI.
Description
Validation covered the Identity and ProjectTemplates area builds, both shipping package builds, byte-for-byte parity between all six vendored asset trees and
[email protected], SRI hashes, and Bootstrap versions inside the produced NuGet packages.IdentityUIPackage_WorksWithDifferentOptionswas built but could not reach its assertion locally because its generated project requires the complete matching11.0.0-devShipping/NonShipping package graph.Fixes #67666