From 9d11a725d7c0271407ec407fc28de1af3eefc24d Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Tue, 26 Aug 2025 13:06:43 +0200 Subject: [PATCH] fix: clean up admin exports and enhance skill category structure - Removed unused export for management pages in admin index. - Added id and name properties to skills being synced from JSON, improving data integrity for skill categories. --- components/admin/index.ts | 1 - scripts/sync-skills.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/admin/index.ts b/components/admin/index.ts index 7fd7641..c1f0190 100644 --- a/components/admin/index.ts +++ b/components/admin/index.ts @@ -3,7 +3,6 @@ export * from "./overview"; // Nouveaux composants de gestion export * from "./layout"; -export * from "./management/pages"; // Composants réutilisables pour l'arborescence export * from "./management"; diff --git a/scripts/sync-skills.ts b/scripts/sync-skills.ts index ea6c14b..f0e0864 100644 --- a/scripts/sync-skills.ts +++ b/scripts/sync-skills.ts @@ -109,6 +109,8 @@ async function syncSkillsToDatabase(): Promise { // Insérer/mettre à jour la skill (bulkInsert gère les conflits) await SkillsService.bulkInsertSkillsFromJSON([ { + id: categoryFromFile.category.toLowerCase(), + name: categoryFromFile.category, category: categoryFromFile.category, icon: categoryFromFile.icon, skills: [skillFromFile],