From 356add1857a299db83f9d9dc89a565673744b588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Thu, 29 Jan 2026 14:16:52 +1100 Subject: [PATCH 1/2] fix(ci): resolve codecov coverage reporting and add UI package docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove overly aggressive ignore patterns in codecov.yml that filtered out coverage data from test directories and Editor code - Add UI flag to codecov.yml for tracking JEngine.UI package coverage - Add JEngine.UI package to README.md with coverage badge and features - Add JEngine.UI package to README_zh_cn.md with Chinese translations Co-Authored-By: Claude Opus 4.5 Signed-off-by: JasonXuDeveloper - 傑 --- README.md | 5 +++++ README_zh_cn.md | 5 +++++ codecov.yml | 7 ++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d4118c4d..eeb295d7 100644 --- a/README.md +++ b/README.md @@ -47,11 +47,16 @@ JEngine is a Unity framework that enables **runtime hot updates** for games. Des |---------|------|----------|-------------| | **JEngine.Core** | Required | N/A | Hot update support with secure, high-performance features | | **JEngine.Util** | Optional | [![Util Coverage](https://codecov.io/gh/JasonXuDeveloper/JEngine/branch/master/graph/badge.svg?flag=util)](https://codecov.io/gh/JasonXuDeveloper/JEngine) | Utility classes including JAction and JObjectPool | +| **JEngine.UI** | Optional | [![UI Coverage](https://codecov.io/gh/JasonXuDeveloper/JEngine/branch/master/graph/badge.svg?flag=ui)](https://codecov.io/gh/JasonXuDeveloper/JEngine) | UI utilities for both runtime and editor | **JEngine.Util Features:** - **JAction** - Zero-GC chainable async task framework with fluent API, object pooling, delays, conditions, and loops - **JObjectPool** - Thread-safe, lock-free generic object pooling using CAS operations +**JEngine.UI Features:** +- **MessageBox** - Zero-allocation async prompt system with UniTask integration and object pooling for runtime UI +- **Editor UI** - Shadcn-inspired modern UI Toolkit framework with theming support and Bootstrap/Panel UI integration + ### Third-Party Packages | Package | Description | Link | diff --git a/README_zh_cn.md b/README_zh_cn.md index ebfeca66..f3f32f33 100644 --- a/README_zh_cn.md +++ b/README_zh_cn.md @@ -49,11 +49,16 @@ JEngine是针对Unity开发者设计的**开箱即用**的框架,封装了强 |------|------|--------|------| | **JEngine.Core** | 必需 | N/A | 支持运行时热更,附带安全且高性能的功能 | | **JEngine.Util** | 可选 | [![Util Coverage](https://codecov.io/gh/JasonXuDeveloper/JEngine/branch/master/graph/badge.svg?flag=util)](https://codecov.io/gh/JasonXuDeveloper/JEngine) | 工具类库,包含JAction和JObjectPool | +| **JEngine.UI** | 可选 | [![UI Coverage](https://codecov.io/gh/JasonXuDeveloper/JEngine/branch/master/graph/badge.svg?flag=ui)](https://codecov.io/gh/JasonXuDeveloper/JEngine) | 运行时和编辑器UI工具类 | **JEngine.Util 功能:** - **JAction** - 零GC链式异步任务框架,提供流畅API、对象池、延迟、条件和循环功能 - **JObjectPool** - 线程安全、无锁的通用对象池,使用CAS操作 +**JEngine.UI 功能:** +- **MessageBox** - 零分配异步提示系统,支持UniTask集成和对象池,用于运行时UI +- **编辑器UI** - 借鉴shadcn的现代化UI Toolkit框架,支持主题系统和Bootstrap/Panel UI集成 + ### 第三方包 | 包名 | 描述 | 链接 | diff --git a/codecov.yml b/codecov.yml index d1097e3b..7b87a36a 100644 --- a/codecov.yml +++ b/codecov.yml @@ -22,6 +22,10 @@ flag_management: paths: - UnityProject/Packages/com.jasonxudeveloper.jengine.util/ carryforward: true + - name: ui + paths: + - UnityProject/Packages/com.jasonxudeveloper.jengine.ui/ + carryforward: true # Add future packages here as they become testable # - name: another-package # paths: @@ -30,9 +34,6 @@ flag_management: # Ignore files that shouldn't affect coverage ignore: - - "**/*Tests*/**" - - "**/*.Tests.cs" - - "**/Editor/**" - "**/Samples/**" # Ignore third-party packages (not JEngine's) - "UnityProject/Packages/com.code-philosophy.*/**" From 6e50fb660053cf5d57852b17ca5dc030138757b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JasonXuDeveloper=20-=20=E5=82=91?= Date: Thu, 29 Jan 2026 14:23:57 +1100 Subject: [PATCH 2/2] fix(ci): trigger auto-approve on Copilot review submission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add pull_request_review trigger so auto-approve runs when Copilot finishes reviewing, even if it completes after check runs finish. Co-Authored-By: Claude Opus 4.5 Signed-off-by: JasonXuDeveloper - 傑 --- .github/workflows/auto-approve.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 5c60a00b..1f0a410f 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -8,6 +8,9 @@ on: workflow_run: workflows: ["PR Tests"] types: [completed] + # Trigger when Copilot (or any reviewer) submits a review + pull_request_review: + types: [submitted] permissions: read-all @@ -17,7 +20,8 @@ jobs: # Only run on pull requests, not pushes if: | github.event.check_suite.pull_requests[0] != null || - github.event.workflow_run.pull_requests[0] != null + github.event.workflow_run.pull_requests[0] != null || + github.event.pull_request != null permissions: pull-requests: write @@ -27,6 +31,8 @@ jobs: run: | if [ "${{ github.event_name }}" == "check_suite" ]; then PR_NUMBER="${{ github.event.check_suite.pull_requests[0].number }}" + elif [ "${{ github.event_name }}" == "pull_request_review" ]; then + PR_NUMBER="${{ github.event.pull_request.number }}" else PR_NUMBER="${{ github.event.workflow_run.pull_requests[0].number }}" fi