From 5263fa9109c4afddb15a547fb08419a0f10962e7 Mon Sep 17 00:00:00 2001 From: yasmoradi Date: Thu, 6 Aug 2026 03:06:21 +0200 Subject: [PATCH] specify mirroed files in bit Boilerplate (#12838) --- .../Bit.Boilerplate/.claude/settings.json | 14 ++++++++++++++ .../Boilerplate/Bit.Boilerplate/AGENTS.md | 1 + .../Components/Common/LoadingComponent.razor | 5 +++-- .../Components/Layout/NavBar.razor | 10 +++++++++- .../Components/_Imports.razor | 5 +++++ .../Services/MauiDeviceCoordinator.cs | 3 +++ .../Services/MauiExceptionHandler.cs | 3 +++ .../Infrastructure/Services/MauiLocalHttpServer.cs | 3 +++ .../Infrastructure/Services/MauiStorageService.cs | 3 +++ .../Services/MauiTelemetryContext.cs | 3 +++ .../Infrastructure/Services/MauiWebAuthnService.cs | 3 +++ .../MauiProgram.Services.cs | 3 +++ .../IAndroidServiceCollectionExtensions.cs | 5 +++++ .../Services/AndroidPushNotificationService.cs | 4 ++++ .../Platforms/MacCatalyst/AppDelegate.cs | 3 +++ .../Extensions/IMacServiceCollectionExtensions.cs | 5 +++++ .../MacCatalyst/Extensions/NSDataExtensions.cs | 3 +++ .../Platforms/MacCatalyst/Program.cs | 3 +++ .../AppUNUserNotificationCenterDelegate.cs | 3 +++ .../Services/MacCatalystPushNotificationService.cs | 4 ++++ .../IWindowsServiceCollectionExtensions.cs | 5 +++++ .../Services/WindowsPushNotificationService.cs | 3 +++ .../Platforms/iOS/AppDelegate.cs | 3 +++ .../Extensions/IIosServiceCollectionExtensions.cs | 5 +++++ .../Platforms/iOS/Extensions/NSDataExtensions.cs | 3 +++ .../Platforms/iOS/Program.cs | 3 +++ .../AppUNUserNotificationCenterDelegate.cs | 3 +++ .../iOS/Services/iOSPushNotificationService.cs | 4 ++++ .../Client/Boilerplate.Client.Maui/_Imports.razor | 5 +++++ .../Boilerplate.Client.Maui/wwwroot/index.html | 8 ++++++++ .../Components/AppBswupProgressBar.razor | 3 +++ .../Client/Boilerplate.Client.Web/_Imports.razor | 5 +++++ .../Boilerplate.Client.Web/wwwroot/index.html | 10 ++++++++++ .../wwwroot/service-worker.js | 3 +++ .../wwwroot/service-worker.published.js | 3 +++ .../Services/WindowsDeviceCoordinator.cs | 3 +++ .../Services/WindowsExceptionHandler.cs | 3 +++ .../Services/WindowsLocalHttpServer.cs | 3 +++ .../Services/WindowsPushNotificationService.cs | 3 +++ .../Services/WindowsStorageService.cs | 3 +++ .../Services/WindowsTelemetryContext.cs | 3 +++ .../Services/WindowsWebAuthnService.cs | 3 +++ .../Boilerplate.Client.Windows/Program.Services.cs | 3 +++ .../Boilerplate.Client.Windows/_Imports.razor | 5 +++++ .../Boilerplate.Server.Web/Components/App.razor | 4 ++++ 45 files changed, 182 insertions(+), 3 deletions(-) create mode 100644 src/Templates/Boilerplate/Bit.Boilerplate/.claude/settings.json diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/.claude/settings.json b/src/Templates/Boilerplate/Bit.Boilerplate/.claude/settings.json new file mode 100644 index 0000000000..aac0c55a9c --- /dev/null +++ b/src/Templates/Boilerplate/Bit.Boilerplate/.claude/settings.json @@ -0,0 +1,14 @@ +{ + "enableAllProjectMcpServers": true, + "env": { + "DOTNET_NOLOGO": "1" + }, + "permissions": { + "allow": [ + "mcp__DeepWiki", + "mcp__bitBlazorUI", + "mcp__MicrosoftLearn", + "mcp__playwright" + ] + } +} diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md b/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md index 109fdeae7c..e14b44603c 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md +++ b/src/Templates/Boilerplate/Bit.Boilerplate/AGENTS.md @@ -101,6 +101,7 @@ Example 2: `OnClick="WrapHandled(async () => await MyMethod())"` instead of `OnC - **Use OData Query Options**: Leverage `[EnableQuery]` and `ODataQueryOptions` for efficient data filtering and pagination. - **Follow Mapperly Conventions**: Use **partial static classes and extension methods** with Mapperly for high-performance object mapping. - **Handle Concurrency**: Always use `long Version` for optimistic concurrency control in update and delete operations. +- **Respect `[mirror]` Comments**: Some files carry (near) identical logic under different extensions or projects. Each of them starts with a `[mirror]` comment listing its counterparts. Whenever you change such a file you **MUST** open every file that comment names and apply the same change there, or state explicitly why it does not apply. Run `Grep` for `[mirror]` to see the full set. ## 6. Behavioral Directives diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Common/LoadingComponent.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Common/LoadingComponent.razor index 3ae39b1c41..2a3b28ed83 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Common/LoadingComponent.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Common/LoadingComponent.razor @@ -1,5 +1,6 @@ -@* Note: keep in mind that any changes to this file should be exactly applied to the loading implementations *@ -@* of the `index.html` files of the `Client.Web` and `Client.Maui` projects. *@ +@* [mirror] loading indicator markup and css - keep in sync with: *@ +@* - src/Client/Boilerplate.Client.Web/wwwroot/index.html *@ +@* - src/Client/Boilerplate.Client.Maui/wwwroot/index.html *@