feat: importance in db and mentorcard home colors

This commit is contained in:
Julien Froidefond
2025-08-27 11:51:43 +02:00
parent df1fd24e84
commit aee5d74445
13 changed files with 388 additions and 94 deletions

View File

@@ -51,6 +51,7 @@ export function SkillsManagementPage({
handleEditSkill,
handleUpdateSkill,
handleDeleteSkill,
handleImportanceChange,
} = useSkillsManagement(skillCategories, initialSkills);
// Utilisation du hook factorisé pour la vue arborescente
@@ -93,6 +94,13 @@ export function SkillsManagementPage({
openEditDialog();
};
const handleImportanceChangeWrapper = async (
skillId: string,
newImportance: string
) => {
await handleImportanceChange(skillId, newImportance);
};
const headerActions = (
<Button onClick={handleOpenCreateDialog}>
<Plus className="w-4 h-4 mr-2" />
@@ -137,6 +145,7 @@ export function SkillsManagementPage({
onEditSkill={handleOpenEditDialog}
onDeleteSkill={handleDeleteSkill}
onDeleteCategory={handleDeleteCategory}
onImportanceChange={handleImportanceChangeWrapper}
/>
</TreeViewPage>