Checkpoint: Ajout du bouton "Effacer les logs" dans la page Historique d'import avec confirmation de suppression.

This commit is contained in:
Manus
2026-02-11 05:24:18 -05:00
parent cd61c75c4c
commit fcf9e8f7b7
4 changed files with 83 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ import {
findDuplicateInvoice,
createImportLog,
getImportLogsByUser,
deleteAllImportLogs,
getLlmLogsBySourceFile,
getLlmLogsByInvoice,
getImportSettingsByUser,
@@ -560,6 +561,11 @@ export const appRouter = router({
getByUser: protectedProcedure.query(async ({ ctx }) => {
return getImportLogsByUser(ctx.user.id);
}),
deleteAll: protectedProcedure.mutation(async ({ ctx }) => {
await deleteAllImportLogs(ctx.user.id);
return { success: true };
}),
}),
// ============= LLM LOGS ROUTES =============