[PR #7584] [MERGED] Native mods: recipe book categories for a mod's own recipe types #7693

Closed
opened 2026-11-03 07:22:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7584
Author: @Xmilon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: content/recipe-book-categories


📝 Commits (6)

  • 8487906 feat(mods): declare and resolve custom recipe book categories
  • 04d7674 test(mods): cover recipe category hook dispatch
  • 2bca4a9 test(mods): include category type in API generator fixture
  • e346c40 Merge upstream/main
  • 4071527 Merge upstream/main
  • 3521028 Merge main into #7584

📊 Changes

13 files changed (+295 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/mod_api_host_generated.rs (+3 -0)
📝 crates/horizon-client/src/game/native_hooks.rs (+17 -1)
📝 crates/horizon-client/src/game/native_recipes.rs (+16 -0)
📝 crates/horizon-client/src/game/recipe_book.rs (+1 -0)
📝 crates/horizon-client/src/mod_api.rs (+1 -0)
📝 crates/horizon-client/src/mod_api/generated.rs (+23 -0)
📝 crates/horizon-client/src/mod_api/generated_host.rs (+7 -0)
📝 crates/horizon-client/src/recipe_book.rs (+137 -0)
📝 crates/horizon-client/tests/mod_api_hooks.rs (+32 -0)
📝 docs/native-mods.md (+38 -0)
➕ tools/native-hook-fragments/recipe_book_categories.json (+18 -0)
📝 xtask/src/mod_api.rs (+1 -0)

📄 Description

🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Sol), not by Xmilon personally.

Part of #5501 (stays open: recipes do not show in the book yet (no tabs, search, display or own book type)).

A mod can declare recipe book categories (with an icon) for its own recipe types through recipe_book_categories, and the recipe book lists, searches and unlocks its recipes there. Vanilla categories and layout are unchanged when no mod declares any; bad declarations are logged and skipped.

Not run: a client build or in-game check; CI only. Local: xtask mod-api --check, stamp tests.

Written by an AI agent (Claude Code orchestrating GPT-6.1 Sol) for Xmilon


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7584 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `content/recipe-book-categories` --- ### 📝 Commits (6) - [`8487906`](https://github.com/horizon-rust/horizon/commit/8487906f8c9487d4748173ae4232bccee327fd0d) feat(mods): declare and resolve custom recipe book categories - [`04d7674`](https://github.com/horizon-rust/horizon/commit/04d7674f13bc0c63c59e1f3c569e60878d8ac836) test(mods): cover recipe category hook dispatch - [`2bca4a9`](https://github.com/horizon-rust/horizon/commit/2bca4a9fc266dd14258a739fada6c85e233fdc96) test(mods): include category type in API generator fixture - [`e346c40`](https://github.com/horizon-rust/horizon/commit/e346c40f484856fe3c3fd713f359d47ada7ee922) Merge upstream/main - [`4071527`](https://github.com/horizon-rust/horizon/commit/4071527bcdbe017441e599062057786ae7e0a551) Merge upstream/main - [`3521028`](https://github.com/horizon-rust/horizon/commit/35210289dda1329d3c86c87f11b4c2157f396335) Merge main into #7584 ### 📊 Changes **13 files changed** (+295 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/mod_api_host_generated.rs` (+3 -0) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+17 -1) 📝 `crates/horizon-client/src/game/native_recipes.rs` (+16 -0) 📝 `crates/horizon-client/src/game/recipe_book.rs` (+1 -0) 📝 `crates/horizon-client/src/mod_api.rs` (+1 -0) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+23 -0) 📝 `crates/horizon-client/src/mod_api/generated_host.rs` (+7 -0) 📝 `crates/horizon-client/src/recipe_book.rs` (+137 -0) 📝 `crates/horizon-client/tests/mod_api_hooks.rs` (+32 -0) 📝 `docs/native-mods.md` (+38 -0) ➕ `tools/native-hook-fragments/recipe_book_categories.json` (+18 -0) 📝 `xtask/src/mod_api.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Sol), not by Xmilon personally. Part of #5501 (stays open: recipes do not show in the book yet (no tabs, search, display or own book type)). A mod can declare recipe book categories (with an icon) for its own recipe types through `recipe_book_categories`, and the recipe book lists, searches and unlocks its recipes there. Vanilla categories and layout are unchanged when no mod declares any; bad declarations are logged and skipped. Not run: a client build or in-game check; CI only. Local: `xtask mod-api --check`, stamp tests. Written by an AI agent (Claude Code orchestrating GPT-6.1 Sol) for Xmilon --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:22:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7693
No description provided.