Skip to content

style: 更正 PgaeHomepage 和 PageHonepageNewsView#2620

Merged
xrlzu merged 2 commits intodevfrom
style/PgaeHomepage
Mar 19, 2026
Merged

style: 更正 PgaeHomepage 和 PageHonepageNewsView#2620
xrlzu merged 2 commits intodevfrom
style/PgaeHomepage

Conversation

@xrlzu
Copy link
Copy Markdown
Member

@xrlzu xrlzu commented Mar 19, 2026

由 Sourcery 提供的摘要

增强内容:

  • 在整个代码库中,将主页新闻视图类型和变量名称统一为拼写正确的 PageHomepageNewsView
Original summary in English

Summary by Sourcery

Enhancements:

  • Standardize the homepage news view type and variable names to the correctly spelled PageHomepageNewsView across the codebase.

@pcl-ce-automation pcl-ce-automation bot added 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 size: XS PR 大小评估:微型 labels Mar 19, 2026
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Mar 19, 2026

审阅者指南(在小型 PR 上折叠)

审阅者指南

将首页新闻视图类型及其用法重命名为拼写正确的 PageHomepageNewsView,并将对应的 XAML 文件移动/重命名到名称正确的 PageHomepage 文件夹和文件名下。

重命名后的 PageHomepageNewsView 类图

classDiagram
    class ModMain {
        +PageHomepageNewsView FrmHomepageNews
    }

    class PageHonepageNewsView {
    }

    class PageHomepageNewsView {
    }

    ModMain --> PageHomepageNewsView
    %% Old reference (before rename):
    %% ModMain --> PageHonepageNewsView
Loading

文件级变更

变更 详情 文件
将首页新闻视图类名及其引用统一为 PageHomepageNewsView。
  • 将 FrmHomepageNews 字段类型从拼写错误的 PageHonepageNewsView 重命名为 PageHomepageNewsView。
  • 在实例化位置改为构造 PageHomepageNewsView,而不是 PageHonepageNewsView。
Plain Craft Launcher 2/Modules/ModMain.vb
Plain Craft Launcher 2/Pages/PageLaunch/PageLaunchRight.xaml.vb
重命名并移动首页新闻视图 XAML 文件,使其与更正后的名称和文件夹结构保持一致。
  • 将文件夹名从 PgaeHomepage 修改为 PageHomepage。
  • 将 XAML 视图文件从 PageHonepageNewsView.xaml 重命名为 PageHomepageNewsView.xaml,以与修正后的类标识符保持一致。
Plain Craft Launcher 2/Pages/PgaeHomepage/PageHonepageNewsView.xaml
Plain Craft Launcher 2/Pages/PageHomepage/PageHomepageNewsView.xaml

提示与命令

与 Sourcery 交互

  • 触发新的代码审阅: 在 pull request 中评论 @sourcery-ai review
  • 继续讨论: 直接回复 Sourcery 的审阅评论。
  • 从审阅评论生成 GitHub issue: 在某条审阅评论下回复,请求 Sourcery 从该评论创建 issue。你也可以直接回复 @sourcery-ai issue,从该评论创建 issue。
  • 生成 pull request 标题: 在 pull request 标题任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在 pull request 中评论 @sourcery-ai title,随时(重新)生成标题。
  • 生成 pull request 摘要: 在 pull request 正文任意位置写入 @sourcery-ai summary,即可在指定位置生成 PR 摘要。你也可以在 pull request 中评论 @sourcery-ai summary,随时(重新)生成摘要。
  • 生成审阅者指南: 在 pull request 中评论 @sourcery-ai guide,即可随时(重新)生成审阅者指南。
  • 一次性解决所有 Sourcery 评论: 在 pull request 中评论 @sourcery-ai resolve,即可将所有 Sourcery 评论标记为已解决。如果你已经处理完所有评论且不再希望看到它们,这非常有用。
  • 一次性驳回所有 Sourcery 审阅: 在 pull request 中评论 @sourcery-ai dismiss,即可驳回所有现有的 Sourcery 审阅。如果你希望从一次全新的审阅开始,这尤其有用——别忘了再评论 @sourcery-ai review 来触发新的审阅!

自定义使用体验

访问你的 控制面板 以:

  • 启用或停用审阅功能,例如 Sourcery 自动生成的 pull request 摘要、审阅者指南等。
  • 更改审阅语言。
  • 添加、移除或编辑自定义审阅说明。
  • 调整其他审阅相关设置。

获取帮助

Original review guide in English
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Renames the homepage news view type and its usages to the correctly spelled PageHomepageNewsView and moves/renames the corresponding XAML file to the correctly named PageHomepage folder and file name.

Class diagram for renamed PageHomepageNewsView

classDiagram
    class ModMain {
        +PageHomepageNewsView FrmHomepageNews
    }

    class PageHonepageNewsView {
    }

    class PageHomepageNewsView {
    }

    ModMain --> PageHomepageNewsView
    %% Old reference (before rename):
    %% ModMain --> PageHonepageNewsView
Loading

File-Level Changes

Change Details Files
Standardize the homepage news view class name and its references to PageHomepageNewsView.
  • Rename the FrmHomepageNews field type from the misspelled PageHonepageNewsView to PageHomepageNewsView.
  • Update the instantiation site to construct PageHomepageNewsView instead of PageHonepageNewsView.
Plain Craft Launcher 2/Modules/ModMain.vb
Plain Craft Launcher 2/Pages/PageLaunch/PageLaunchRight.xaml.vb
Rename and relocate the homepage news view XAML file to match the corrected name and folder structure.
  • Change the folder name from PgaeHomepage to PageHomepage.
  • Rename the XAML view file from PageHonepageNewsView.xaml to PageHomepageNewsView.xaml to align with the corrected class identifier.
Plain Craft Launcher 2/Pages/PgaeHomepage/PageHonepageNewsView.xaml
Plain Craft Launcher 2/Pages/PageHomepage/PageHomepageNewsView.xaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@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 - 我已经审查了你的更改,看起来很棒!


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

Hey - I've reviewed your changes and they look great!


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.

@xrlzu xrlzu requested a review from a team March 19, 2026 09:22
Copy link
Copy Markdown
Member

@MoYuan-CN MoYuan-CN left a comment

Choose a reason for hiding this comment

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

怎么还有 typo 的事

@pcl-ce-automation pcl-ce-automation bot added 🕑 等待合并 已处理完毕,正在等待代码合并入主分支 and removed 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 labels Mar 19, 2026
@xrlzu xrlzu merged commit a251288 into dev Mar 19, 2026
3 checks passed
@pcl-ce-automation pcl-ce-automation bot added 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线 and removed 🕑 等待合并 已处理完毕,正在等待代码合并入主分支 labels Mar 19, 2026
@xrlzu xrlzu deleted the style/PgaeHomepage branch March 19, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XS PR 大小评估:微型 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants