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.
This commit is contained in:
Julien Froidefond
2025-08-26 13:06:43 +02:00
parent ad5aa04d69
commit 9d11a725d7
2 changed files with 2 additions and 1 deletions

View File

@@ -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";

View File

@@ -109,6 +109,8 @@ async function syncSkillsToDatabase(): Promise<void> {
// 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],