Checkpoint: Automatismes séparé en onglets Import et Export. Les règles d’export ciblent un destinataire ou une ventilation, avec destination locale, Teams ou SharePoint et ouverture navigateur optionnelle. La validation BAP unique ou en masse applique la première règle active par priorité puis conserve le paramétrage historique comme repli. Paramètres d’export déplacés vers Automatismes et page renommée Paramètres. Migration additive, tests, TypeScript, build et contrôles visuels validés.

This commit is contained in:
Manus
2026-09-02 12:13:23 +00:00
parent da19629ee0
commit 582ca77f28
15 changed files with 2978 additions and 23 deletions

View File

@@ -0,0 +1,17 @@
CREATE TABLE `exportAutomationRules` (
`id` int AUTO_INCREMENT NOT NULL,
`userId` int NOT NULL,
`name` varchar(255) NOT NULL,
`isActive` int NOT NULL DEFAULT 1,
`priority` int NOT NULL DEFAULT 0,
`conditionField` enum('recipientName','ventilationComptable') NOT NULL,
`conditionValue` varchar(255) NOT NULL,
`destinationType` enum('local','teams','sharepoint') NOT NULL,
`destinationPath` text NOT NULL,
`openInBrowser` int NOT NULL DEFAULT 0,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `exportAutomationRules_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
CREATE INDEX `export_rule_user_priority_idx` ON `exportAutomationRules` (`userId`,`priority`);