Skip to content

Rewrite modpack groups around flat TOML ids, sparse selection intent, and redesigned UI - #592

Merged
Skidamek merged 29 commits into
mainfrom
rewrite/modpack-groups
Nov 29, 2026
Merged

Skidamek merged 29 commits into
mainfrom
rewrite/modpack-groups

Conversation

@Skidamek

@Skidamek Skidamek commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Replaces category-coupled group configs with flat TOML group IDs, sparse client selections, shipped-release config migration, and a redesigned group selection screen.

server.toml
├── [modpack]          # pack name, exclude, editable, auto-exclude
├── [categories.<id>]  # optional sections & pick mode (ANY | AT_MOST_ONE | EXACTLY_ONE)
└── [groups.<id>]      # 1:1 with host-modpack/<id>/; selection, requires, conflicts, compatible-platforms
  • Config & resolution: Flat [groups.<id>] and [categories.<id>] on toml-edit 0.4.0, OS-scoped REQUIRED groups, symmetric conflicts, and [modpack]/[groups.*] ordered at the top of server.toml.
  • Migration: One-shot migration from shipped v4 JSON and v5.0.0-rc.1..rc.7 .conf (including breaks-with -> conflicts) to .toml, plus selections.json v1 -> v2 in-place migration.
  • Client state: Sparse enabled / disabled / platform overrides stored via one shared SelectionFields DTO.
  • UI: Neutral vanilla list chrome (ListChrome, ListControlButton), GroupSelectionScreen.Session, scroll preservation, padlock Included automatically section, conflict notices, and ModpackSettingsScreen spacing fix.
  • Autotester: Migrated to server.toml, fixed Forge 403 downloads, added xvfb-run rendered UI support, and added the groups-ui scenario.

@Skidamek
Skidamek requested a max review from Copilot November 28, 2026 16:27

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Skidamek

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T11:36:57.647595Z 39f267a Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: aad94c974d

ℹ️ 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".

@Skidamek

Copy link
Copy Markdown
Owner Author

@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: 82e1f8266e

ℹ️ 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".

…ld generated-copy records whose digest no longer matches
@Skidamek

Copy link
Copy Markdown
Owner Author

@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

https://github.com/Skidamek/AutoModpack/blob/39f267a767b9cc06285dd9d592f8aad6cfa02dcb/src/main/java/pl/skidam/automodpack/client/ui/screen/GroupSelectionScreen.java#L714
P2 Badge Allow clearing enabled groups blocked by incompatible dependencies

When a saved enabled group still supports the current platform but has a newly incompatible requires dependency, the resolver marks it BLOCKED while leaving its ID in the draft; this check disables the row, and toggleGroup only clears saved enables when the group itself is unsupported. The screen stays in the saved-invalid state with submission blocked, so the choice can only be removed by resetting all preferences or changing platforms. This transitive-dependency case is not covered by the direct unsupported-group clearing fix.

ℹ️ 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".

…ults in one place and take the toml-edit section-comment fix
@Skidamek
Skidamek merged commit 1329e26 into main Nov 29, 2026
6 checks passed
@Skidamek
Skidamek deleted the rewrite/modpack-groups branch November 29, 2026 13:08
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.

2 participants