feat(nutrition): route entry template to catalog list and register category renderers

- Set entryTemplateCode to m0031_ct0001 in module-index.ts
- Register nutrition_category_collection, card, and detail in registry.ts
This commit is contained in:
ShivaniKhaire 2026-11-04 12:35:46 +05:30
parent 93543583d6
commit 30d4235e4d
2 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,7 @@ export const collectionRenderers: Readonly<Record<string, CollectionRendererComp
pathogenic_factors_collection: PathogenicFactorsCollectionRenderer,
chinese_scalp_acupuncture_collection: ModuleCatalogCollectionRenderer,
nutrition_food_collection: ModuleCatalogCollectionRenderer,
nutrition_category_collection: ModuleCatalogCollectionRenderer,
nutrition_effect_collection: ModuleCatalogCollectionRenderer,
disease_collection: ModuleCatalogCollectionRenderer,
auriculotherapy_collection: ModuleCatalogCollectionRenderer,
@ -94,6 +95,7 @@ export const collectionItemRenderers: Readonly<Record<string, CollectionItemRend
five_elements_card: FiveElementsCardRenderer,
chinese_scalp_acupuncture_card: ModuleCatalogCardRenderer,
nutrition_food_card: ModuleCatalogCardRenderer,
nutrition_category_card: ModuleCatalogCardRenderer,
nutrition_effect_card: ModuleCatalogCardRenderer,
disease_card: ModuleCatalogCardRenderer,
auriculotherapy_card: ModuleCatalogCardRenderer,
@ -103,6 +105,7 @@ export const collectionItemRenderers: Readonly<Record<string, CollectionItemRend
export const detailRenderers: Readonly<Record<string, DetailRendererComponent>> = Object.freeze({
extra_ordinary_vessel_detail: ExtraOrdinaryVesselsDetailRenderer,
module_catalog_detail: IndexEntryDetailRenderer,
nutrition_category_detail: IndexEntryDetailRenderer,
acu_point_index_detail: IndexEntryDetailRenderer,
meridian_index_detail: MeridianPointsDetailRenderer,
meridian_points_detail: MeridianPointsDetailRenderer,

View File

@ -114,7 +114,7 @@ const MODULE_VISUALS: Record<string, ModuleVisualConfig> = {
color: "#10B981",
isDefaultFree: true,
planCode: "NUTRITION_CORE",
entryTemplateCode: "m0031_ct0002",
entryTemplateCode: "m0031_ct0001",
},
m0041: {
icon: "body-outline",