Skip to content

feat(Common): 将所有通用按钮都移动到 fast 中#656

Merged
MistEO merged 3 commits intomainfrom
feat/fast-button
Feb 21, 2026
Merged

feat(Common): 将所有通用按钮都移动到 fast 中#656
MistEO merged 3 commits intomainfrom
feat/fast-button

Conversation

@he0119
Copy link
Contributor

@he0119 he0119 commented Feb 21, 2026

同时添加了 80 毫秒的全屏 post_wait_freezes。

Summary by Sourcery

将共享按钮流水线定义移动到快速流水线资源中,并相应调整与信用购物、每日奖励和配送任务相关的流水线。

新功能:

  • 为常用按钮及相关配送任务交互引入快速流水线变体。

优化改进:

  • 从默认流水线集合中移除旧版的通用按钮流水线资源,改用面向快速流水线的专用资源。
Original summary in English

Summary by Sourcery

Move shared button pipeline definitions into the fast pipeline resources and adjust related pipelines for credit shopping, daily rewards, and delivery jobs.

New Features:

  • Introduce fast pipeline variants for common buttons and related delivery job interactions.

Enhancements:

  • Remove legacy common button pipeline resource from the default pipeline set in favor of fast-specific resources.

Copilot AI review requested due to automatic review settings February 21, 2026 02:43
@he0119 he0119 changed the title feat: 将所有通用按钮都移动到 fast 中 feat(Common): 将所有通用按钮都移动到 fast 中 Feb 21, 2026
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - 我在这里给出了一些整体性的反馈:

  • 由于通用 Button pipeline 从 assets/resource/pipeline/Common/Button.json 移动到了 assets/resource_fast/pipeline/Common/Button.json,请再次确认所有现有的引用和 include 都已经指向新的 fast 路径,以避免运行时解析问题。
  • 现在在 resource_adbresource_fast 下都存在 Button 定义;建议将共享配置去重,或者清晰地拆分出平台特定字段,以避免这两套按钮行为在未来出现不一致的演化。
  • 新增的 80ms 全屏 post_wait_freezes 可能会影响用户感知到的响应速度;建议确认这个延迟只在确有必要的场景下才会生效,并且不会被那些不需要全屏停顿的流程继承。
面向 AI Agent 的提示
Please address the comments from this code review:

## Overall Comments
- 由于通用 Button pipeline 从 `assets/resource/pipeline/Common/Button.json` 移动到了 `assets/resource_fast/pipeline/Common/Button.json`,请再次确认所有现有的引用和 include 都已经指向新的 fast 路径,以避免运行时解析问题。
- 现在在 `resource_adb``resource_fast` 下都存在 Button 定义;建议将共享配置去重,或者清晰地拆分出平台特定字段,以避免这两套按钮行为在未来出现不一致的演化。
- 新增的 80ms 全屏 `post_wait_freezes` 可能会影响用户感知到的响应速度;建议确认这个延迟只在确有必要的场景下才会生效,并且不会被那些不需要全屏停顿的流程继承。

Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈来改进后续的评审。
Original comment in English

Hey - I've left some high level feedback:

  • Since the generic Button pipeline was moved from assets/resource/pipeline/Common/Button.json to assets/resource_fast/pipeline/Common/Button.json, double-check that all existing references and includes now point to the new fast path to avoid runtime resolution issues.
  • There are now Button definitions under both resource_adb and resource_fast; consider deduplicating shared configuration or clearly separating platform-specific fields to avoid divergence between the two button behaviors over time.
  • The newly added 80ms full-screen post_wait_freezes might affect perceived responsiveness; it would be good to confirm this delay is only applied where strictly necessary and not inherited by flows that don’t require a full-screen pause.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since the generic Button pipeline was moved from `assets/resource/pipeline/Common/Button.json` to `assets/resource_fast/pipeline/Common/Button.json`, double-check that all existing references and includes now point to the new fast path to avoid runtime resolution issues.
- There are now Button definitions under both `resource_adb` and `resource_fast`; consider deduplicating shared configuration or clearly separating platform-specific fields to avoid divergence between the two button behaviors over time.
- The newly added 80ms full-screen `post_wait_freezes` might affect perceived responsiveness; it would be good to confirm this delay is only applied where strictly necessary and not inherited by flows that don’t require a full-screen pause.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@he0119 he0119 requested a review from overflow65537 February 21, 2026 02:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates all common button definitions from the base resource layer to the resource_fast layer and updates the full-screen freeze detection timeout from 1ms to 80ms across all button actions.

Changes:

  • Moves common button definitions from assets/resource/pipeline/Common/Button.json to assets/resource_fast/pipeline/Common/Button.json
  • Adds new assets/resource_fast/pipeline/Common/Status.json file containing WaitLoadingColor and ESCMenu status detection nodes
  • Updates all post_wait_freezes.time values from 1ms to 80ms for full-screen freeze detection across multiple pipeline files
  • Replaces BackButton node references with the more specific CloseButtonType1 node
  • Migrates button template images to resource_fast/image/Common/Button/ directory for both PC and ADB resources

Reviewed changes

Copilot reviewed 9 out of 41 changed files in this pull request and generated no comments.

Show a summary per file
File Description
assets/resource_fast/pipeline/Common/Button.json Adds comprehensive button definitions with 80ms post_wait_freezes, including all button types previously in base resource plus new button background detection nodes
assets/resource_fast/pipeline/Common/Status.json New file defining WaitLoadingColor and ESCMenu status detection nodes
assets/resource_fast/pipeline/Common/ChangeRegion.json Updates post_wait_freezes from 1ms to 80ms and replaces BackButton with CloseButtonType1
assets/resource_fast/pipeline/DeliveryJobs/*.json Updates post_wait_freezes from 1ms to 80ms and replaces BackButton with CloseButtonType1
assets/resource_fast/image/Common/Button/*.png Adds all button template images to resource_fast layer
assets/resource/pipeline/Common/Button.json Deleted - fully migrated to resource_fast
assets/resource/pipeline/DailyRewards/Emails.json Updates BackButton reference to CloseButtonType1
assets/resource/pipeline/CreditShopping/Shopping.json Updates BackButton reference to CloseButtonType1
assets/resource_adb/pipeline/Common/Button.json Updates post_wait_freezes from 1ms to 80ms for ADB-specific button actions
assets/resource_adb/image/Common/Button/*.png Adds ADB-specific button template images

@MistEO MistEO merged commit 5382464 into main Feb 21, 2026
21 checks passed
@MistEO MistEO deleted the feat/fast-button branch February 21, 2026 05:53
@MistEO
Copy link
Contributor

MistEO commented Feb 21, 2026

奈斯,鲁棒性++

HYY1116 pushed a commit to HYY1116/MaaEnd that referenced this pull request Feb 25, 2026
同时添加了 80 毫秒的全屏 post_wait_freezes。

## Summary by Sourcery

将共享按钮流水线定义移动到快速流水线资源中,并相应调整与信用购物、每日奖励和配送任务相关的流水线。

新功能:
- 为常用按钮及相关配送任务交互引入快速流水线变体。

优化改进:
- 从默认流水线集合中移除旧版的通用按钮流水线资源,改用面向快速流水线的专用资源。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Move shared button pipeline definitions into the fast pipeline resources
and adjust related pipelines for credit shopping, daily rewards, and
delivery jobs.

New Features:
- Introduce fast pipeline variants for common buttons and related
delivery job interactions.

Enhancements:
- Remove legacy common button pipeline resource from the default
pipeline set in favor of fast-specific resources.

</details>
MistEO pushed a commit that referenced this pull request Mar 9, 2026
同时添加了 80 毫秒的全屏 post_wait_freezes。

## Summary by Sourcery

将共享按钮流水线定义移动到快速流水线资源中,并相应调整与信用购物、每日奖励和配送任务相关的流水线。

新功能:
- 为常用按钮及相关配送任务交互引入快速流水线变体。

优化改进:
- 从默认流水线集合中移除旧版的通用按钮流水线资源,改用面向快速流水线的专用资源。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Move shared button pipeline definitions into the fast pipeline resources
and adjust related pipelines for credit shopping, daily rewards, and
delivery jobs.

New Features:
- Introduce fast pipeline variants for common buttons and related
delivery job interactions.

Enhancements:
- Remove legacy common button pipeline resource from the default
pipeline set in favor of fast-specific resources.

</details>
MistEO pushed a commit that referenced this pull request Mar 9, 2026
同时添加了 80 毫秒的全屏 post_wait_freezes。

## Summary by Sourcery

将共享按钮流水线定义移动到快速流水线资源中,并相应调整与信用购物、每日奖励和配送任务相关的流水线。

新功能:
- 为常用按钮及相关配送任务交互引入快速流水线变体。

优化改进:
- 从默认流水线集合中移除旧版的通用按钮流水线资源,改用面向快速流水线的专用资源。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Move shared button pipeline definitions into the fast pipeline resources
and adjust related pipelines for credit shopping, daily rewards, and
delivery jobs.

New Features:
- Introduce fast pipeline variants for common buttons and related
delivery job interactions.

Enhancements:
- Remove legacy common button pipeline resource from the default
pipeline set in favor of fast-specific resources.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants