Skip to content

简化列表式管理页面相关代码 [Gemini 3.1 Pro] - #6470

Open
CiiLu wants to merge 15 commits into
HMCL-dev:mainfrom
CiiLu:abc
Open

简化列表式管理页面相关代码 [Gemini 3.1 Pro]#6470
CiiLu wants to merge 15 commits into
HMCL-dev:mainfrom
CiiLu:abc

Conversation

@CiiLu

@CiiLu CiiLu commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
  • 迁移重复逻辑到 ToolbarListPageSkin
  • 同时为世界管理、原理图管理添加搜索功能

@github-actions github-actions Bot added the 1000+ label Jul 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors several list page skins (such as Java, Theme Pack, Data Pack, Game, Installer, Mod, Resource Pack, Schematics, World Backups, and World list pages) to inherit from a newly introduced common base class ToolbarListPageSkin. This centralizes toolbar, search, and selection logic, reducing code duplication. Feedback on the changes highlights a logic bug in createSelectAllButton where the button is incorrectly enabled when the list is empty, potential NullPointerException risks in the search predicates of DataPackListPageSkin and WorldListPage due to missing null checks, and performance inefficiencies in WorldListPage, SchematicsPage, and GameListPage where toLowerCase is repeatedly called inside lambda filters.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java Outdated
@Glavo

Glavo commented Jul 22, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 1057018a47

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

CiiLu added 6 commits July 30, 2026 22:02
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/GameListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ModListPageSkin.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ResourcePackListPage.java
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/GameListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/main/JavaManagementPage.java
@Glavo

Glavo commented Aug 13, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 892990f849

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/GameListPage.java Outdated
CiiLu added 4 commits August 13, 2026 21:44
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/GameListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/InstallerListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ResourcePackListPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/SchematicsPage.java
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/WorldListPage.java
@Glavo

Glavo commented Aug 25, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe4a1697f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/ToolbarListPageSkin.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants