Repository navigation
chore(AIAgents): update collaboration guidance - #1418
Conversation
Reviewer's GuideConfiguration删除根目录的
Documentation精简根级协作说明并调整编码、测试和参考文档指引;结合组件自检规范一并核对这些规则是否一致、可执行。
更新依赖说明,补充部分组件的上游依赖链接及依赖变更约束。
更新提交信息模板中的提交类型说明与格式,核对其是否符合仓库提交惯例。
调整分支、提交和 Issue / PR 操作指引,核对其与仓库 PR 模板及技能流程是否一致。
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Linked issuesChecked at commit 5096c10 #1417 chore(AIAgents): update collaboration guidance · 5 of 6 met
|
| ## 项目与命令 | ||
|
|
||
| - 解决方案为 [BootstrapBlazor.Extensions.slnx](BootstrapBlazor.Extensions.slnx)。`src/components/` 按包组织 Razor 组件和服务,`src/extensions/` 包含数据访问、OPC、SignalR 等扩展,`src/middleware/` 包含服务端中间件。`test/` 按项目组织测试,例如 `UnitTestEditor`、`UnitTestHoliday` 和 `UnitTestSvgIcon`。 | ||
| - 从仓库根目录运行命令。CI 通过 `actions/setup-dotnet` 读取 `global.json`,按该文件选择 .NET 11 SDK。源码项目默认面向 `net6.0` 至 `net11.0`,测试和工具使用 `net11.0`。查看具体项目的引用及条件编译时,以项目文件和导入的配置为准。[SDK 配置](global.json) · [源码框架](src/Frameworks.props) · [测试配置](test/Directory.Build.props) · [单目标框架](Framework.props) · [工具配置](tools/Directory.Build.props) |
There was a problem hiding this comment.
🔴 Critical · GitHub workflows fail before running
When the push, PR, or release workflow runs after global.json is deleted, actions/setup-dotnet still receives global.json as global-json-file, so SDK setup fails before the workflows can build, test, or publish.
Provide a replacement SDK selection or update the affected workflows so actions/setup-dotnet does not read the deleted file.
From #1417:
移除 global.json 并处理 SDK 配置及 CI 风险|
|
||
| - 样式基于 Bootstrap 5,优先使用 CSS Variables,兼容现有主题。 | ||
| - 所有用户可见文本必须使用 `IStringLocalizer`,禁止硬编码中文/英文 UI 文本。 | ||
| - 增删资源键时同步检查 `src/BootstrapBlazor/Locales/` 和 `localization/`,保留其他组件仍使用的资源。 |
There was a problem hiding this comment.
🟡 Medium · Component translations stay unsynchronized
When a contributor adds, removes, or changes a localized resource key in a component package, the checklist points contributors to src/BootstrapBlazor/Locales/ and localization/, not the component-local Locales directories, so the package resources remain unsynchronized and localized UI text is missing or falls back.
Direct contributors to synchronize the component-local Locales resources instead of the specified paths.
| - [ ] 不引入新依赖;必要的依赖变更已说明原因。 | ||
| - [ ] 样式兼容主题,无硬编码 UI 字符串,本地化资源已同步。 | ||
| - [ ] 文档、示例已更新或确认无需更新。 | ||
| - [ ] 按根 [AGENTS.md 的测试约定](../../AGENTS.md#测试约定) 完成适用验证,准确记录未执行的检查。 |
There was a problem hiding this comment.
🟡 Medium · Testing links do not navigate
When a reader follows a testing-guidance link, the #测试约定 fragment no longer matches the root guide's 编码与测试 heading, so the link does not take readers to the testing guidance.
Update the links to use the current #编码与测试 heading fragment.
Also at docs/agents/pr-guide.md:19.
|
|
||
| ### JavaScript 与 DOM | ||
|
|
||
| - 不直接操作 DOM(用 JSInterop) |
There was a problem hiding this comment.
🟡 Medium · DOM 操作被错误禁止
When 贡献者为组件编写需要访问或操作 DOM 的 JavaScript 模块, 组件的 .razor.js 模块需要直接使用浏览器 DOM API;这条规则却要求改用 JSInterop,导致贡献者避开组件现有的互操作模式,无法按规范实现 DOM 交互。
明确规则是 C# 组件不得直接操作 DOM,应通过 JSInterop 调用 JavaScript 模块;模块内可按需使用 DOM API。
| ## 编码规范 | ||
|
|
||
| - **术语**。BootstrapBlazor 组件库简称 BB,BootstrapBlazor 组件简称 BB 组件,BootstrapBlazor.Extensions 简称 BB.Extensions。 | ||
| - **C#**。遵循 `.editorconfig` 和相邻文件的风格,优先使用文件范围命名空间,添加源文件时沿用文件头。源码启用可空引用类型和隐式 `using`。处理无效输入或已释放状态时可用早期返回,新增异步方法优先用 `Async` 后缀,保留已有公开签名和接口约定。[编辑器配置](.editorconfig) · [共享构建属性](Directory.Build.props) |
There was a problem hiding this comment.
⚪ Low · Component abbreviation guidance is lost
the updated glossary retains the BB and BB.Extensions abbreviations but drops the prescribed BB 组件 abbreviation, so collaborators no longer have the repository's terminology rule for BootstrapBlazor components.
Restore the BootstrapBlazor 组件简称 BB 组件 definition in the glossary.
From AGENTS.md L17:
BootstrapBlazor 组件简称 BB 组件
Link issues
fixes #1417
Summary By Copilot
Regression?
现有推送及 PR 工作流仍使用 global-json-file: global.json,删除该文件可能导致 SDK 安装步骤失败;合并前需要处理。
Risk
除文档变更外,删除 global.json 会影响 SDK 选择,并可能阻断现有 CI。
Verification
Manual (required)
Automated
git diff --check origin/master...HEAD:通过。按 bb-pr skill 的限制未运行构建、测试或手动运行验证;CI 尚待验证。
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
更新仓库协作指南与组件维护文档,并移除根目录的 .NET SDK 配置文件。
Enhancements:
Build:
Documentation: