refactor: remove unused components and clean up evaluation client
- Deleted CreateSkillForm and ProfileForm components as they are no longer needed. - Removed the initializeEmptyEvaluation method from EvaluationClient, as the backend handles evaluation creation. - Updated exports in evaluation index to reflect the removal of WelcomeEvaluationScreen.
This commit is contained in:
@@ -102,21 +102,4 @@ export class EvaluationClient extends BaseHttpClient {
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialise une évaluation vide pour un profil
|
||||
*/
|
||||
initializeEmptyEvaluation = async (
|
||||
profile: import("../../lib/types").UserProfile
|
||||
): Promise<void> => {
|
||||
try {
|
||||
// Simplement créer le profil via l'auth, pas besoin de créer une évaluation vide
|
||||
// Le backend créera automatiquement l'évaluation lors du premier accès
|
||||
const { authClient } = await import("../index");
|
||||
await authClient.login(profile);
|
||||
} catch (error) {
|
||||
console.error("Failed to initialize evaluation:", error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user