From e5386d613385565f8355139d2adc709b068ee0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Tue, 3 Nov 2026 11:38:28 +0500 Subject: [PATCH] fix(catalog): remove Solocraft from recommended, exclude vanilla playerbots and dungeon-clear --- crates/coa-core/src/coa-modules-overlay.json | 26 +++++++++++- src/screens/ModulesPage.tsx | 42 ++++++++++---------- 2 files changed, 45 insertions(+), 23 deletions(-) diff --git a/crates/coa-core/src/coa-modules-overlay.json b/crates/coa-core/src/coa-modules-overlay.json index b58bec3..635e6ea 100644 --- a/crates/coa-core/src/coa-modules-overlay.json +++ b/crates/coa-core/src/coa-modules-overlay.json @@ -127,6 +127,30 @@ "status": "RequiresAdapter", "is_recommended": false, "reason": "Redundant: CoA already provides a built-in wardrobe and transmog system configured in coa.conf." + }, + { + "repo_slug": "mod-playerbots/mod-playerbots", + "status": "Blocked", + "is_recommended": false, + "reason": "Конфликт с ядром CoA: используйте SQUID's Playerbots (Zyth45/mod-playerbots) или CoA Companions, специально адаптированные под CoA." + }, + { + "repo_slug": "azerothcore/mod-playerbots", + "status": "Blocked", + "is_recommended": false, + "reason": "Конфликт с ядром CoA: используйте SQUID's Playerbots (Zyth45/mod-playerbots) или CoA Companions, специально адаптированные под CoA." + }, + { + "repo_slug": "jrad7/mod-dungeon-clear", + "status": "Blocked", + "is_recommended": false, + "reason": "Конфликт с ядром CoA: функционал прохождения подземелий уже встроен в SQUID's Playerbots и CoA Companions." + }, + { + "repo_slug": "nathanhandley/mod-ah-bot-plus", + "status": "Blocked", + "is_recommended": false, + "reason": "Конфликт с ядром CoA: в ядро уже встроен официальный модуль Auction House Bot." } ] -} +} \ No newline at end of file diff --git a/src/screens/ModulesPage.tsx b/src/screens/ModulesPage.tsx index 1449d65..882447f 100644 --- a/src/screens/ModulesPage.tsx +++ b/src/screens/ModulesPage.tsx @@ -428,26 +428,7 @@ const VERIFIED_CATALOG: VerifiedCatalogModule[] = [ icon: "plug", }, - { - id: "solocraft", - name: "Solocraft", - repo: "https://github.com/azerothcore/mod-solocraft", - category: "scaling", - description: { - ru: "Масштабирование характеристик персонажа при одиночном прохождении группового контента.", - en: "Dynamically boosts player stats in group dungeons and raids for solo play.", - }, - qualification: "BUILT", - tier: "Tier 1: Dynamic DLL", - verificationLevel: "L0-L2 PASS", - notes: { - ru: "Сборка и связывание успешны. Параметры настраиваются через конфигурационный файл.", - en: "Build and link successful. Configurable via settings.", - }, - sqlRequired: true, - canInstall: true, - icon: "scaling", - }, + ]; @@ -888,6 +869,15 @@ export function ModulesPage({ return parts.length >= 2 ? `${parts[parts.length - 2]}/${parts[parts.length - 1]}` : clean; } + // Repositories incompatible with CoA forks (squid playerbots and integrated dungeon clear) + const EXCLUDED_COMMUNITY_SLUGS = new Set([ + "mod-playerbots/mod-playerbots", + "azerothcore/mod-playerbots", + "jrad7/mod-dungeon-clear", + "nathanhandley/mod-ah-bot-plus", + "azerothcore/mod-ahbot", + ]); + // Set of slugs from VERIFIED_CATALOG to avoid duplicate cards in community list const verifiedRepoSlugs = new Set( VERIFIED_CATALOG.map((m) => normalizeUrlSlug(m.repo)) @@ -911,9 +901,17 @@ export function ModulesPage({ // Group B: AzerothCore Community Modules const filteredCommunityCatalog = (publicCatalog?.items ?? []) .filter((item) => { - // Exclude items already curated in Group A + // Exclude items already curated in Group A, or upstream forks replaced by CoA const slug = (item.full_name || item.name || "").toLowerCase(); - if (verifiedRepoSlugs.has(slug) || verifiedRepoSlugs.has(normalizeUrlSlug(item.html_url))) { + const urlSlug = normalizeUrlSlug(item.html_url); + if ( + verifiedRepoSlugs.has(slug) || + verifiedRepoSlugs.has(urlSlug) || + EXCLUDED_COMMUNITY_SLUGS.has(slug) || + EXCLUDED_COMMUNITY_SLUGS.has(urlSlug) || + item.name.toLowerCase() === "mod-playerbots" || + item.name.toLowerCase() === "mod-dungeon-clear" + ) { return false; }