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 *@