From 2795c77f0666be7c25547a224f3c4cccbedda3de Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Tue, 12 May 2026 07:40:35 +0200 Subject: [PATCH] fix(procest): dashboard cleanup + header/PHPCS/i18n improvements (re-do of #272) Re-implements the still-relevant parts of #272 against current development (after the json-manifest migration): - Dashboard: remove card-in-card framing (background/border/border-radius) and inner scrollbars from the DeadlineAlerts / StalledCases / TaskDueReminders widgets so they sit cleanly inside the manifest dashboard tiles. - i18n: wrap the "Unknown" fallback labels in dashboardHelpers.js and doorlooptijdHelpers.js with t('procest', ...); add the missing dashboard translation keys (All cases active, No task reminders, SLA Compliance, View all deadline alerts) to l10n/{en,nl}.{js,json} with Dutch translations; drop four malformed extraction-artifact keys ("Case created with type \", "Case type \", "Status changed from/to \") that left l10n/en.js syntactically broken. - Headers: fix the @author email typo (dev@conductio.nl -> info@conduction.nl) in lib/ and appinfo/routes.php. Parts of #272 that are now obsolete (MainMenu.vue / Dashboard.vue nav and DEFAULT_LAYOUT changes, the duplicate-widget DEFAULT_LAYOUT fix, the "Map"/"Case Map" nav keys) were already resolved by the manifest migration and are intentionally not re-applied. The blanket phpcbf reformat from #272 is left out as out-of-scope; the codebase still has a pre-existing PHPCS baseline tracked separately. --- appinfo/routes.php | 2 +- l10n/en.js | 8 ++++---- l10n/en.json | 8 ++++---- l10n/nl.js | 8 ++++---- l10n/nl.json | 8 ++++---- lib/Controller/CaseDefinitionController.php | 2 +- lib/Controller/ConsultationController.php | 2 +- lib/Controller/EmailController.php | 2 +- lib/Controller/InspectionController.php | 2 +- lib/Controller/KpiController.php | 2 +- lib/Controller/LegesController.php | 2 +- lib/Controller/LhsController.php | 2 +- lib/Controller/MetricsController.php | 2 +- lib/Controller/MilestoneController.php | 2 +- lib/Controller/ParafeerRouteController.php | 2 +- lib/Controller/ParaferingController.php | 2 +- lib/Controller/RoutingController.php | 2 +- lib/Controller/StufController.php | 2 +- lib/Controller/TemplateController.php | 2 +- lib/Listener/ChecklistRunImmutabilityListener.php | 2 +- lib/Listener/KpiCacheInvalidationListener.php | 2 +- lib/Listener/RoleMutationListener.php | 2 +- lib/Service/AiService.php | 2 +- lib/Service/CaseDefinitionExportService.php | 2 +- lib/Service/CaseDefinitionImportService.php | 2 +- lib/Service/CaseEmailService.php | 2 +- lib/Service/ChecklistService.php | 2 +- lib/Service/ConsultationService.php | 2 +- lib/Service/DsoIntakeService.php | 2 +- lib/Service/Inspection/ChecklistService.php | 2 +- lib/Service/KpiAggregationService.php | 2 +- lib/Service/LegesCalculationService.php | 2 +- lib/Service/LegesExportService.php | 2 +- lib/Service/MilestoneService.php | 2 +- lib/Service/ParafeerRouteService.php | 2 +- lib/Service/ParaferingService.php | 2 +- lib/Service/RoleResolverService.php | 2 +- lib/Service/Routing/RoutingStrategyInterface.php | 2 +- .../Routing/RoutingStrategyMissingException.php | 2 +- .../Routing/Strategy/HierarchicalStrategy.php | 2 +- .../Routing/Strategy/LeastLoadedStrategy.php | 2 +- lib/Service/Routing/Strategy/OrSetStrategy.php | 2 +- .../Routing/Strategy/RoundRobinStrategy.php | 2 +- .../Routing/Strategy/SingleRoleStrategy.php | 2 +- lib/Service/Routing/StrategyRegistry.php | 2 +- lib/Service/StufFieldMappingService.php | 2 +- lib/Service/StufMessageBuilder.php | 2 +- lib/Service/Vth/LhsRecommendationService.php | 2 +- lib/Service/ZgwZrcRulesService.php | 2 +- src/utils/dashboardHelpers.js | 15 ++++++++------- src/utils/doorlooptijdHelpers.js | 8 +++++--- src/views/dashboard/DeadlineAlerts.vue | 10 ++++------ src/views/dashboard/StalledCases.vue | 10 ++++------ src/views/dashboard/TaskDueReminders.vue | 10 ++++------ 54 files changed, 86 insertions(+), 89 deletions(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index cf4d0c87..0a73c4dd 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -8,7 +8,7 @@ * @category Routes * @package OCA\Procest * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/l10n/en.js b/l10n/en.js index 7bba2ba0..0bf4acbc 100644 --- a/l10n/en.js +++ b/l10n/en.js @@ -20,6 +20,7 @@ OC.L10N.register( "Add note" : "Add note", "All" : "All", "All case types" : "All case types", + "All cases active" : "All cases active", "All caught up!" : "All caught up!", "All your items are completed" : "All your items are completed", "Are you sure you want to delete this case?" : "Are you sure you want to delete this case?", @@ -45,12 +46,10 @@ OC.L10N.register( "Case Type" : "Case Type", "Case Type Management" : "Case Type Management", "Case Types" : "Case Types", - "Case created with type \" : "Case created with type \", "Case handler" : "Case handler", "Case schema" : "Case schema", "Case sensitive" : "Case sensitive", "Case type" : "Case type", - "Case type \" : "Case type \", "Case type has expired (valid until {date})" : "Case type has expired (valid until {date})", "Case type is not yet valid (valid from {date})" : "Case type is not yet valid (valid from {date})", "Case type is required" : "Case type is required", @@ -189,6 +188,7 @@ OC.L10N.register( "No result recorded yet" : "No result recorded yet", "No settings available yet" : "No settings available yet", "No status types defined. Add at least one to publish this case type." : "No status types defined. Add at least one to publish this case type.", + "No task reminders" : "No task reminders", "No tasks found" : "No tasks found", "No tasks yet" : "No tasks yet", "No widgets configured" : "No widgets configured", @@ -258,6 +258,7 @@ OC.L10N.register( "Role type" : "Role type", "Save" : "Save", "Save the case type first before adding status types." : "Save the case type first before adding status types.", + "SLA Compliance" : "SLA Compliance", "Saved successfully" : "Saved successfully", "Schema ID" : "Schema ID", "Secret" : "Secret", @@ -279,8 +280,6 @@ OC.L10N.register( "Started" : "Started", "Status" : "Status", "Status Timeline" : "Status Timeline", - "Status changed from \" : "Status changed from \", - "Status changed to \" : "Status changed to \", "Status schema" : "Status schema", "Status type" : "Status type", "Status type name is required" : "Status type name is required", @@ -325,6 +324,7 @@ OC.L10N.register( "Valid until" : "Valid until", "Value Mappings (enum translations)" : "Value Mappings (enum translations)", "View all activity" : "View all activity", + "View all deadline alerts" : "View all deadline alerts", "View all my work" : "View all my work", "View all overdue" : "View all overdue", "View case" : "View case", diff --git a/l10n/en.json b/l10n/en.json index dd817e9f..b457839c 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -21,6 +21,7 @@ "Add note": "Add note", "All": "All", "All case types": "All case types", + "All cases active": "All cases active", "All caught up!": "All caught up!", "All your items are completed": "All your items are completed", "Advice": "Advice", @@ -51,12 +52,10 @@ "Case Type": "Case Type", "Case Type Management": "Case Type Management", "Case Types": "Case Types", - "Case created with type \\": "Case created with type \\", "Case handler": "Case handler", "Case schema": "Case schema", "Case sensitive": "Case sensitive", "Case type": "Case type", - "Case type \\": "Case type \\", "Case type has expired (valid until {date})": "Case type has expired (valid until {date})", "Case type is not yet valid (valid from {date})": "Case type is not yet valid (valid from {date})", "Case type is required": "Case type is required", @@ -196,6 +195,7 @@ "No result recorded yet": "No result recorded yet", "No settings available yet": "No settings available yet", "No status types defined. Add at least one to publish this case type.": "No status types defined. Add at least one to publish this case type.", + "No task reminders": "No task reminders", "No tasks found": "No tasks found", "No tasks yet": "No tasks yet", "No actions recorded yet": "No actions recorded yet", @@ -267,6 +267,7 @@ "Role type": "Role type", "Save": "Save", "Save the case type first before adding status types.": "Save the case type first before adding status types.", + "SLA Compliance": "SLA Compliance", "Saved successfully": "Saved successfully", "Schema ID": "Schema ID", "Secret": "Secret", @@ -288,8 +289,6 @@ "Started": "Started", "Status": "Status", "Status Timeline": "Status Timeline", - "Status changed from \\": "Status changed from \\", - "Status changed to \\": "Status changed to \\", "Status schema": "Status schema", "Status type": "Status type", "Status type name is required": "Status type name is required", @@ -334,6 +333,7 @@ "Valid until": "Valid until", "Value Mappings (enum translations)": "Value Mappings (enum translations)", "View all activity": "View all activity", + "View all deadline alerts": "View all deadline alerts", "View all my work": "View all my work", "View all overdue": "View all overdue", "View case": "View case", diff --git a/l10n/nl.js b/l10n/nl.js index 703c239e..cf689324 100644 --- a/l10n/nl.js +++ b/l10n/nl.js @@ -20,6 +20,7 @@ OC.L10N.register( "Add note" : "Notitie toevoegen", "All" : "Alle", "All case types" : "Alle zaaktypen", + "All cases active" : "Alle zaken actief", "All caught up!" : "Alles bijgewerkt!", "All your items are completed" : "Al uw items zijn afgerond", "Are you sure you want to delete this case?" : "Weet u zeker dat u deze zaak wilt verwijderen?", @@ -45,12 +46,10 @@ OC.L10N.register( "Case Type" : "Zaaktype", "Case Type Management" : "Zaaktype beheer", "Case Types" : "Zaaktypen", - "Case created with type \" : "Zaak aangemaakt met type \", "Case handler" : "Behandelaar", "Case schema" : "Zaak schema", "Case sensitive" : "Hoofdlettergevoelig", "Case type" : "Zaaktype", - "Case type \" : "Zaaktype \", "Case type has expired (valid until {date})" : "Zaaktype is verlopen (geldig tot {date})", "Case type is not yet valid (valid from {date})" : "Zaaktype is nog niet geldig (geldig vanaf {date})", "Case type is required" : "Zaaktype is verplicht", @@ -189,6 +188,7 @@ OC.L10N.register( "No result recorded yet" : "Nog geen resultaat geregistreerd", "No settings available yet" : "Nog geen instellingen beschikbaar", "No status types defined. Add at least one to publish this case type." : "Geen statustypen gedefinieerd. Voeg er ten minste één toe om dit zaaktype te publiceren.", + "No task reminders" : "Geen taakherinneringen", "No tasks found" : "Geen taken gevonden", "No tasks yet" : "Nog geen taken", "No widgets configured" : "Geen widgets geconfigureerd", @@ -258,6 +258,7 @@ OC.L10N.register( "Role type" : "Roltype", "Save" : "Opslaan", "Save the case type first before adding status types." : "Sla het zaaktype eerst op voordat u statustypen toevoegt.", + "SLA Compliance" : "SLA-naleving", "Saved successfully" : "Succesvol opgeslagen", "Schema ID" : "Schema ID", "Secret" : "Geheim", @@ -279,8 +280,6 @@ OC.L10N.register( "Started" : "Gestart", "Status" : "Status", "Status Timeline" : "Status tijdlijn", - "Status changed from \" : "Status gewijzigd van \", - "Status changed to \" : "Status gewijzigd naar \", "Status schema" : "Status schema", "Status type" : "Statustype", "Status type name is required" : "Statustype naam is verplicht", @@ -325,6 +324,7 @@ OC.L10N.register( "Valid until" : "Geldig tot", "Value Mappings (enum translations)" : "Waarde mappings (enum vertalingen)", "View all activity" : "Alle activiteit bekijken", + "View all deadline alerts" : "Alle deadlines bekijken", "View all my work" : "Al mijn werk bekijken", "View all overdue" : "Alle openstaande bekijken", "View case" : "Bekijk zaak", diff --git a/l10n/nl.json b/l10n/nl.json index 72be59fc..e5891609 100644 --- a/l10n/nl.json +++ b/l10n/nl.json @@ -19,6 +19,7 @@ "Add note": "Notitie toevoegen", "All": "Alle", "All case types": "Alle zaaktypen", + "All cases active": "Alle zaken actief", "All caught up!": "Alles bijgewerkt!", "All your items are completed": "Al uw items zijn afgerond", "Are you sure you want to delete this case?": "Weet u zeker dat u deze zaak wilt verwijderen?", @@ -44,12 +45,10 @@ "Case Type": "Zaaktype", "Case Type Management": "Zaaktype beheer", "Case Types": "Zaaktypen", - "Case created with type \\": "Zaak aangemaakt met type \\", "Case handler": "Behandelaar", "Case schema": "Zaak schema", "Case sensitive": "Hoofdlettergevoelig", "Case type": "Zaaktype", - "Case type \\": "Zaaktype \\", "Case type has expired (valid until {date})": "Zaaktype is verlopen (geldig tot {date})", "Case type is not yet valid (valid from {date})": "Zaaktype is nog niet geldig (geldig vanaf {date})", "Case type is required": "Zaaktype is verplicht", @@ -188,6 +187,7 @@ "No result recorded yet": "Nog geen resultaat geregistreerd", "No settings available yet": "Nog geen instellingen beschikbaar", "No status types defined. Add at least one to publish this case type.": "Geen statustypen gedefinieerd. Voeg er ten minste één toe om dit zaaktype te publiceren.", + "No task reminders": "Geen taakherinneringen", "No tasks found": "Geen taken gevonden", "No tasks yet": "Nog geen taken", "No widgets configured": "Geen widgets geconfigureerd", @@ -257,6 +257,7 @@ "Role type": "Roltype", "Save": "Opslaan", "Save the case type first before adding status types.": "Sla het zaaktype eerst op voordat u statustypen toevoegt.", + "SLA Compliance": "SLA-naleving", "Saved successfully": "Succesvol opgeslagen", "Schema ID": "Schema ID", "Secret": "Geheim", @@ -278,8 +279,6 @@ "Started": "Gestart", "Status": "Status", "Status Timeline": "Status tijdlijn", - "Status changed from \\": "Status gewijzigd van \\", - "Status changed to \\": "Status gewijzigd naar \\", "Status schema": "Status schema", "Status type": "Statustype", "Status type name is required": "Statustype naam is verplicht", @@ -324,6 +323,7 @@ "Valid until": "Geldig tot", "Value Mappings (enum translations)": "Waarde mappings (enum vertalingen)", "View all activity": "Alle activiteit bekijken", + "View all deadline alerts": "Alle deadlines bekijken", "View all my work": "Al mijn werk bekijken", "View all overdue": "Alle openstaande bekijken", "View case": "Bekijk zaak", diff --git a/lib/Controller/CaseDefinitionController.php b/lib/Controller/CaseDefinitionController.php index dd9f487a..586b5ce6 100644 --- a/lib/Controller/CaseDefinitionController.php +++ b/lib/Controller/CaseDefinitionController.php @@ -9,7 +9,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/ConsultationController.php b/lib/Controller/ConsultationController.php index f3cbf9cd..ec974f16 100644 --- a/lib/Controller/ConsultationController.php +++ b/lib/Controller/ConsultationController.php @@ -8,7 +8,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/EmailController.php b/lib/Controller/EmailController.php index 0c079f00..ade00039 100644 --- a/lib/Controller/EmailController.php +++ b/lib/Controller/EmailController.php @@ -8,7 +8,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/InspectionController.php b/lib/Controller/InspectionController.php index 8bcad5cb..18141400 100644 --- a/lib/Controller/InspectionController.php +++ b/lib/Controller/InspectionController.php @@ -9,7 +9,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/KpiController.php b/lib/Controller/KpiController.php index 1add0ff5..a3a19019 100644 --- a/lib/Controller/KpiController.php +++ b/lib/Controller/KpiController.php @@ -10,7 +10,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/LegesController.php b/lib/Controller/LegesController.php index c63fbaa9..11133fd6 100644 --- a/lib/Controller/LegesController.php +++ b/lib/Controller/LegesController.php @@ -9,7 +9,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/LhsController.php b/lib/Controller/LhsController.php index 47235b4c..a4283902 100644 --- a/lib/Controller/LhsController.php +++ b/lib/Controller/LhsController.php @@ -12,7 +12,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/MetricsController.php b/lib/Controller/MetricsController.php index 2b2c17c9..635f88bc 100644 --- a/lib/Controller/MetricsController.php +++ b/lib/Controller/MetricsController.php @@ -8,7 +8,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/MilestoneController.php b/lib/Controller/MilestoneController.php index 857d72b1..bf83a9d0 100644 --- a/lib/Controller/MilestoneController.php +++ b/lib/Controller/MilestoneController.php @@ -8,7 +8,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/ParafeerRouteController.php b/lib/Controller/ParafeerRouteController.php index 2af9ca61..c3e5c933 100644 --- a/lib/Controller/ParafeerRouteController.php +++ b/lib/Controller/ParafeerRouteController.php @@ -12,7 +12,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/ParaferingController.php b/lib/Controller/ParaferingController.php index 68431502..5e26fd1b 100644 --- a/lib/Controller/ParaferingController.php +++ b/lib/Controller/ParaferingController.php @@ -9,7 +9,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/RoutingController.php b/lib/Controller/RoutingController.php index f8cdc542..a0c64f7f 100644 --- a/lib/Controller/RoutingController.php +++ b/lib/Controller/RoutingController.php @@ -11,7 +11,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/StufController.php b/lib/Controller/StufController.php index fd9c3ba1..c1ba5d60 100644 --- a/lib/Controller/StufController.php +++ b/lib/Controller/StufController.php @@ -10,7 +10,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Controller/TemplateController.php b/lib/Controller/TemplateController.php index a658ab09..8d3cac32 100644 --- a/lib/Controller/TemplateController.php +++ b/lib/Controller/TemplateController.php @@ -8,7 +8,7 @@ * @category Controller * @package OCA\Procest\Controller * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Listener/ChecklistRunImmutabilityListener.php b/lib/Listener/ChecklistRunImmutabilityListener.php index e82c8f1c..685e302c 100644 --- a/lib/Listener/ChecklistRunImmutabilityListener.php +++ b/lib/Listener/ChecklistRunImmutabilityListener.php @@ -16,7 +16,7 @@ * @category Listener * @package OCA\Procest\Listener * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Listener/KpiCacheInvalidationListener.php b/lib/Listener/KpiCacheInvalidationListener.php index 50e5ee36..b870be0f 100644 --- a/lib/Listener/KpiCacheInvalidationListener.php +++ b/lib/Listener/KpiCacheInvalidationListener.php @@ -14,7 +14,7 @@ * @category Listener * @package OCA\Procest\Listener * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Listener/RoleMutationListener.php b/lib/Listener/RoleMutationListener.php index 5960d016..87f367e4 100644 --- a/lib/Listener/RoleMutationListener.php +++ b/lib/Listener/RoleMutationListener.php @@ -15,7 +15,7 @@ * @category Listener * @package OCA\Procest\Listener * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/AiService.php b/lib/Service/AiService.php index c21e9652..3fa59723 100644 --- a/lib/Service/AiService.php +++ b/lib/Service/AiService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/CaseDefinitionExportService.php b/lib/Service/CaseDefinitionExportService.php index 3c1713b3..8dbc7dab 100644 --- a/lib/Service/CaseDefinitionExportService.php +++ b/lib/Service/CaseDefinitionExportService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/CaseDefinitionImportService.php b/lib/Service/CaseDefinitionImportService.php index 89be7162..c233dd7b 100644 --- a/lib/Service/CaseDefinitionImportService.php +++ b/lib/Service/CaseDefinitionImportService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/CaseEmailService.php b/lib/Service/CaseEmailService.php index e9e8c92f..288476db 100644 --- a/lib/Service/CaseEmailService.php +++ b/lib/Service/CaseEmailService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/ChecklistService.php b/lib/Service/ChecklistService.php index 446dcb50..021a0031 100644 --- a/lib/Service/ChecklistService.php +++ b/lib/Service/ChecklistService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/ConsultationService.php b/lib/Service/ConsultationService.php index 6496daf1..12f2b0fd 100644 --- a/lib/Service/ConsultationService.php +++ b/lib/Service/ConsultationService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/DsoIntakeService.php b/lib/Service/DsoIntakeService.php index e9d19c01..b8453a3e 100644 --- a/lib/Service/DsoIntakeService.php +++ b/lib/Service/DsoIntakeService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Inspection/ChecklistService.php b/lib/Service/Inspection/ChecklistService.php index cabedb95..1a3a7748 100644 --- a/lib/Service/Inspection/ChecklistService.php +++ b/lib/Service/Inspection/ChecklistService.php @@ -20,7 +20,7 @@ * @category Service * @package OCA\Procest\Service\Inspection * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/KpiAggregationService.php b/lib/Service/KpiAggregationService.php index ed294fcb..d6a94949 100644 --- a/lib/Service/KpiAggregationService.php +++ b/lib/Service/KpiAggregationService.php @@ -19,7 +19,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/LegesCalculationService.php b/lib/Service/LegesCalculationService.php index d7b8ffd1..76535847 100644 --- a/lib/Service/LegesCalculationService.php +++ b/lib/Service/LegesCalculationService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/LegesExportService.php b/lib/Service/LegesExportService.php index daf6943b..e4e590bf 100644 --- a/lib/Service/LegesExportService.php +++ b/lib/Service/LegesExportService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/MilestoneService.php b/lib/Service/MilestoneService.php index 27a56cb9..ebd66516 100644 --- a/lib/Service/MilestoneService.php +++ b/lib/Service/MilestoneService.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/ParafeerRouteService.php b/lib/Service/ParafeerRouteService.php index 1ccc06f1..5120ad80 100644 --- a/lib/Service/ParafeerRouteService.php +++ b/lib/Service/ParafeerRouteService.php @@ -15,7 +15,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/ParaferingService.php b/lib/Service/ParaferingService.php index b53a7c5f..0809a22e 100644 --- a/lib/Service/ParaferingService.php +++ b/lib/Service/ParaferingService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/RoleResolverService.php b/lib/Service/RoleResolverService.php index 85c1c990..0069eafb 100644 --- a/lib/Service/RoleResolverService.php +++ b/lib/Service/RoleResolverService.php @@ -17,7 +17,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/RoutingStrategyInterface.php b/lib/Service/Routing/RoutingStrategyInterface.php index ea6611ed..d00b9f69 100644 --- a/lib/Service/Routing/RoutingStrategyInterface.php +++ b/lib/Service/Routing/RoutingStrategyInterface.php @@ -11,7 +11,7 @@ * @category Service * @package OCA\Procest\Service\Routing * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/RoutingStrategyMissingException.php b/lib/Service/Routing/RoutingStrategyMissingException.php index 3f792ccb..0ec09df3 100644 --- a/lib/Service/Routing/RoutingStrategyMissingException.php +++ b/lib/Service/Routing/RoutingStrategyMissingException.php @@ -11,7 +11,7 @@ * @category Service * @package OCA\Procest\Service\Routing * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/Strategy/HierarchicalStrategy.php b/lib/Service/Routing/Strategy/HierarchicalStrategy.php index e710b818..2f6c9d94 100644 --- a/lib/Service/Routing/Strategy/HierarchicalStrategy.php +++ b/lib/Service/Routing/Strategy/HierarchicalStrategy.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service\Routing\Strategy * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/Strategy/LeastLoadedStrategy.php b/lib/Service/Routing/Strategy/LeastLoadedStrategy.php index 084106f0..9302a465 100644 --- a/lib/Service/Routing/Strategy/LeastLoadedStrategy.php +++ b/lib/Service/Routing/Strategy/LeastLoadedStrategy.php @@ -11,7 +11,7 @@ * @category Service * @package OCA\Procest\Service\Routing\Strategy * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/Strategy/OrSetStrategy.php b/lib/Service/Routing/Strategy/OrSetStrategy.php index 5503573b..0f5e02e4 100644 --- a/lib/Service/Routing/Strategy/OrSetStrategy.php +++ b/lib/Service/Routing/Strategy/OrSetStrategy.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service\Routing\Strategy * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/Strategy/RoundRobinStrategy.php b/lib/Service/Routing/Strategy/RoundRobinStrategy.php index 856dd74a..bacd59c4 100644 --- a/lib/Service/Routing/Strategy/RoundRobinStrategy.php +++ b/lib/Service/Routing/Strategy/RoundRobinStrategy.php @@ -11,7 +11,7 @@ * @category Service * @package OCA\Procest\Service\Routing\Strategy * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/Strategy/SingleRoleStrategy.php b/lib/Service/Routing/Strategy/SingleRoleStrategy.php index 71f9f984..ac20d934 100644 --- a/lib/Service/Routing/Strategy/SingleRoleStrategy.php +++ b/lib/Service/Routing/Strategy/SingleRoleStrategy.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service\Routing\Strategy * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Routing/StrategyRegistry.php b/lib/Service/Routing/StrategyRegistry.php index fda8e469..12524569 100644 --- a/lib/Service/Routing/StrategyRegistry.php +++ b/lib/Service/Routing/StrategyRegistry.php @@ -11,7 +11,7 @@ * @category Service * @package OCA\Procest\Service\Routing * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/StufFieldMappingService.php b/lib/Service/StufFieldMappingService.php index f2ee6ba0..167937ab 100644 --- a/lib/Service/StufFieldMappingService.php +++ b/lib/Service/StufFieldMappingService.php @@ -10,7 +10,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/StufMessageBuilder.php b/lib/Service/StufMessageBuilder.php index 2870283f..5621fc8a 100644 --- a/lib/Service/StufMessageBuilder.php +++ b/lib/Service/StufMessageBuilder.php @@ -9,7 +9,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/Vth/LhsRecommendationService.php b/lib/Service/Vth/LhsRecommendationService.php index 2e989af0..586ff085 100644 --- a/lib/Service/Vth/LhsRecommendationService.php +++ b/lib/Service/Vth/LhsRecommendationService.php @@ -17,7 +17,7 @@ * @category Service * @package OCA\Procest\Service\Vth * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/lib/Service/ZgwZrcRulesService.php b/lib/Service/ZgwZrcRulesService.php index adcac1bf..0156892e 100644 --- a/lib/Service/ZgwZrcRulesService.php +++ b/lib/Service/ZgwZrcRulesService.php @@ -8,7 +8,7 @@ * @category Service * @package OCA\Procest\Service * - * @author Conduction Development Team + * @author Conduction Development Team * @copyright 2024 Conduction B.V. * @license EUPL-1.2 https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 * diff --git a/src/utils/dashboardHelpers.js b/src/utils/dashboardHelpers.js index ec45ae28..2e4c48a2 100644 --- a/src/utils/dashboardHelpers.js +++ b/src/utils/dashboardHelpers.js @@ -3,6 +3,7 @@ * overdue extraction, activity aggregation, and my work item merging. */ +import { translate as t } from '@nextcloud/l10n' import { isCaseOverdue, getDaysRemaining, formatDeadlineCountdown } from './caseHelpers.js' import { prioritySortWeight } from './taskHelpers.js' import { isTerminalStatus } from './taskLifecycle.js' @@ -78,7 +79,7 @@ export function aggregateByStatus(openCases, statusTypes) { } for (const c of openCases) { - const name = statusIdToName.get(c.status) || c.status || 'Unknown' + const name = statusIdToName.get(c.status) || c.status || t('procest', 'Unknown') statusMap.set(name, (statusMap.get(name) || 0) + 1) } @@ -97,7 +98,7 @@ export function aggregateByStatus(openCases, statusTypes) { export function getOverdueCases(openCases, caseTypes) { const typeMap = new Map() for (const ct of caseTypes) { - typeMap.set(ct.id, ct.title || ct.name || 'Unknown') + typeMap.set(ct.id, ct.title || ct.name || t('procest', 'Unknown')) } return openCases @@ -106,7 +107,7 @@ export function getOverdueCases(openCases, caseTypes) { id: c.id, identifier: c.identifier || '—', title: c.title || '—', - caseTypeName: typeMap.get(c.caseType) || 'Unknown', + caseTypeName: typeMap.get(c.caseType) || t('procest', 'Unknown'), daysOverdue: Math.abs(getDaysRemaining(c.deadline)), handler: c.assignee || '—', })) @@ -334,7 +335,7 @@ export const STALLED_THRESHOLD_DAYS = 7 export function getDeadlineAlerts(openCases, caseTypes, warningDays = DEADLINE_WARNING_DAYS) { const typeMap = new Map() for (const ct of caseTypes) { - typeMap.set(ct.id, ct.title || ct.name || 'Unknown') + typeMap.set(ct.id, ct.title || ct.name || t('procest', 'Unknown')) } const today = new Date() @@ -354,7 +355,7 @@ export function getDeadlineAlerts(openCases, caseTypes, warningDays = DEADLINE_W id: c.id, title: c.title || '\u2014', identifier: c.identifier || '\u2014', - caseTypeName: typeMap.get(c.caseType) || 'Unknown', + caseTypeName: typeMap.get(c.caseType) || t('procest', 'Unknown'), handler: c.assignee || '\u2014', } @@ -428,7 +429,7 @@ export function getTaskDueReminders(tasks, warningDays = DEADLINE_WARNING_DAYS) export function getStalledCases(openCases, caseTypes, stalledDays = STALLED_THRESHOLD_DAYS) { const typeMap = new Map() for (const ct of caseTypes) { - typeMap.set(ct.id, ct.title || ct.name || 'Unknown') + typeMap.set(ct.id, ct.title || ct.name || t('procest', 'Unknown')) } const today = new Date() @@ -451,7 +452,7 @@ export function getStalledCases(openCases, caseTypes, stalledDays = STALLED_THRE id: c.id, title: c.title || '\u2014', identifier: c.identifier || '\u2014', - caseTypeName: typeMap.get(c.caseType) || 'Unknown', + caseTypeName: typeMap.get(c.caseType) || t('procest', 'Unknown'), daysSinceActivity, handler: c.assignee || '\u2014', }) diff --git a/src/utils/doorlooptijdHelpers.js b/src/utils/doorlooptijdHelpers.js index 3963e962..8d64d75a 100644 --- a/src/utils/doorlooptijdHelpers.js +++ b/src/utils/doorlooptijdHelpers.js @@ -5,6 +5,8 @@ * monthly trends, at-risk case identification, and performance table data. */ +import { translate as t } from '@nextcloud/l10n' + /** * Parse an ISO 8601 duration string to calendar days. * @@ -111,7 +113,7 @@ export function computeSlaCompliance(completedCases, caseTypes) { const ct = caseTypeMap.get(ctId) byType.set(ctId, { id: ctId, - name: ct?.title || ct?.name || 'Unknown', + name: ct?.title || ct?.name || t('procest', 'Unknown'), total: 0, withinSla: 0, totalDays: 0, @@ -282,7 +284,7 @@ export function getAtRiskCases(openCases, caseTypes, thresholdPct) { id: c.id, title: c.title || '', identifier: c.identifier || '', - caseTypeName: ct?.title || ct?.name || 'Unknown', + caseTypeName: ct?.title || ct?.name || t('procest', 'Unknown'), targetDays, elapsedDays, remainingDays, @@ -317,7 +319,7 @@ export function computePerformanceTable(completedCases, caseTypes) { const targetDays = ct.processingDeadline ? parseDurationToDays(ct.processingDeadline) : null byType.set(ct.id, { id: ct.id, - name: ct.title || ct.name || 'Unknown', + name: ct.title || ct.name || t('procest', 'Unknown'), targetDays, totalDays: 0, total: 0, diff --git a/src/views/dashboard/DeadlineAlerts.vue b/src/views/dashboard/DeadlineAlerts.vue index d3812a3e..e57f840b 100644 --- a/src/views/dashboard/DeadlineAlerts.vue +++ b/src/views/dashboard/DeadlineAlerts.vue @@ -75,15 +75,13 @@ export default {