feat: add importance property to category breakdown and update team stats structure
This commit is contained in:
@@ -61,7 +61,7 @@ export function useTeamsManagement(
|
||||
setTeams((prev) => [...prev, newLocalTeam]);
|
||||
|
||||
// Ajouter les stats de la nouvelle équipe (avec les propriétés minimales)
|
||||
const newTeamStats = {
|
||||
const newTeamStats: TeamStats = {
|
||||
teamId: newTeam.id,
|
||||
teamName: newTeam.name,
|
||||
direction: newTeam.direction,
|
||||
@@ -70,7 +70,11 @@ export function useTeamsManagement(
|
||||
skillCoverage: 0,
|
||||
topSkills: [],
|
||||
members: [],
|
||||
} as TeamStats;
|
||||
criticalSkillsCoverage: {
|
||||
incontournable: 0,
|
||||
majeure: 0,
|
||||
},
|
||||
};
|
||||
setTeamStats((prev) => [...prev, newTeamStats]);
|
||||
return true;
|
||||
} catch (error: any) {
|
||||
|
||||
Reference in New Issue
Block a user