-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
data parsingTasks related to the ingestion and mapping of raw game JSONTasks related to the ingestion and mapping of raw game JSONlogicImplementation of application-specific rules, calculations, or data-driven behaviors.Implementation of application-specific rules, calculations, or data-driven behaviors.
Description
Summary
Implement support for nested crafting categories as introduced in upstream PR #8059. This includes data layer updates to handle the new nested_category type and UI changes to maintain parity with the game's hierarchical crafting organization and subcategory display.
Categorization
enhancement, logic, data parsing
Context
src/data.ts: Data loading and indexing logic.src/types.ts: Type definitions for recipes and categories.src/types/Recipe.svelte: Recipe detail rendering.src/types/Item.svelte: Item detail rendering (breadcrumb).src/types/item/Recipes.svelte: Recipe listing and indexing.
Impact
The wiki will stay synchronized with the latest C-BN data structure. Users will benefit from better-organized crafting information and a UI that matches the in-game experience (e.g., "Category / Subcategory" labels).
Severity
Medium
Tech details
- Implement
NestedCategorytype insrc/types.ts. - Update
CBNDatainsrc/data.tsto indexnested_categoryobjects even though they lack aresultfield. - Modify
Recipe.svelteto render nested category children and handle entries without components/tools. - Update
Item.svelteandRecipe.svelteto display hierarchical category information (e.g.,FOOD > SNACKS > SANDWICHES). - Update recipe indexing in
src/types/item/Recipes.svelteto surface recursive relationships in nested categories.
Examples
PR #8059 introductes FOOD > SNACKS > SANDWICHES hierarchy.
Example nested category object:
{
"type": "nested_category",
"id": "hot_drinks",
"nested_name": "hot drinks",
"category": "CC_FOOD",
"subcategory": "CSC_FOOD_DRINKS",
"description": "Warm beverages and infusions.",
"nested_category_data": ["coffee", "tea", "herbal_tea"]
}Acceptance criteria
-
nested_categoryobjects are correctly parsed and indexed. - Item/Recipe pages show full category + subcategory breadcrumbs/labels.
- Nested categories correctly list their children in the UI.
- Logic stays robust across standard recipe and nested category entries.
Dependencies
Blocked by: cataclysmbn/Cataclysm-BN#8059
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
data parsingTasks related to the ingestion and mapping of raw game JSONTasks related to the ingestion and mapping of raw game JSONlogicImplementation of application-specific rules, calculations, or data-driven behaviors.Implementation of application-specific rules, calculations, or data-driven behaviors.