feat(planner): implement cancellation for planning calculations
- Refactor leave-planner.worker.ts to support cancellation of ongoing calculations. - Introduce `calculatePlanningAsyncInternal` for asynchronous planning calculations. - Add cancellation handling in the worker message event. - Update planning-date.ts with new utility functions for date manipulation. - Extend translation-service.ts and translation files (en.json, de.json, es.json, fr.json) to include new strings related to planning horizon and cancellation. - Create documentation for the cancellation feature in planner-cancellation.md. - Add unit tests for cancellation functionality in leave-planner-cancellation.spec.ts and leave-planner.worker.spec.ts. #57 #58
This commit is contained in:
1 parent
5c35a59805
commit
2edf2004f5
31 files changed
+2275
-304
No files matched your search
+12
-1
@@ -48,7 +48,14 @@
|
||||
"selectLanguage": "Idioma",
|
||||
"selectTheme": "Tema",
|
||||
"themeOptions": { "system": "Sistema", "light": "Claro", "dark": "Oscuro" },
|
||||
"systemAppearance": "Apariencia actual del sistema"
|
||||
"systemAppearance": "Apariencia actual del sistema",
|
||||
"planningHorizon": "Horizonte de planificación",
|
||||
"planningStart": "Fecha de inicio (incluida)",
|
||||
"lastPlanningDate": "Última fecha de planificación (incluida)",
|
||||
"planningDatesHelp": "Elige cualquier fecha, incluso pasada. El calendario se actualiza al seleccionar Calcular plan.",
|
||||
"invalidDate": "Introduce dos fechas válidas.",
|
||||
"horizonOrder": "La última fecha de planificación debe ser igual o posterior a la fecha de inicio.",
|
||||
"invalidHorizon": "Corrige las fechas de planificación en Ajustes antes de calcular."
|
||||
},
|
||||
"rules": {
|
||||
"title": "Reglas de planificación",
|
||||
@@ -109,6 +116,10 @@
|
||||
"invalidInput": "Los datos de planificación no son válidos.",
|
||||
"conflict": "Las obligaciones no se pueden satisfacer juntas.",
|
||||
"incomplete": "El cálculo se detuvo antes de completar todas las etapas de calidad.",
|
||||
"cancel": "Cancelar",
|
||||
"cancelling": "Cancelando…",
|
||||
"cancelled": "Cálculo cancelado",
|
||||
"cancelledPartial": "Cálculo cancelado — plan parcial",
|
||||
"error": "El planificador encontró un error inesperado.",
|
||||
"complete": "Plan calculado.",
|
||||
"whyPlacement": "Entender tus días de permiso",
|
||||
|
||||
Reference in new issue
Block a user