Checkpoint: isSubscription appliqué lors des imports. Seuil de confiance persisté en base (champ learningConfidenceThreshold dans userSettings). LearningSettings.tsx charge et sauvegarde le seuil via settings.get/upsert.

This commit is contained in:
Manus
2026-04-12 15:27:19 -04:00
parent 95aee693ea
commit 132f8ccec2
6 changed files with 1752 additions and 9 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `userSettings` ADD `learningConfidenceThreshold` int DEFAULT 2 NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -134,6 +134,13 @@
"when": 1776019747088,
"tag": "0018_warm_changeling",
"breakpoints": true
},
{
"idx": 19,
"version": "5",
"when": 1776021930426,
"tag": "0019_smooth_lord_hawal",
"breakpoints": true
}
]
}

View File

@@ -146,6 +146,8 @@ export const userSettings = mysqlTable("userSettings", {
sftpAutoExport: int("sftpAutoExport").default(0).notNull(), // 0 = manual, 1 = automatic
// LLM Logs retention
llmLogsRetentionMonths: int("llmLogsRetentionMonths").default(3).notNull(), // Durée de conservation des logs LLM en mois (défaut: 3 mois)
// Seuil de confiance pour les apprentissages IA
learningConfidenceThreshold: int("learningConfidenceThreshold").default(2).notNull(), // Nombre minimum d'applications pour marquer un apprentissage comme Confirmé
createdAt: timestamp("createdAt").defaultNow().notNull(),
updatedAt: timestamp("updatedAt").defaultNow().onUpdateNow().notNull(),
});