From eba6bd646d95454d06dbe7399c74d213682c6aa2 Mon Sep 17 00:00:00 2001 From: "Janus C. H. Knudsen" Date: Sun, 25 Jan 2026 19:21:51 +0100 Subject: [PATCH] Adds Online group to application menu and localization Introduces new menu group with Booking and Website sections Updates Danish localization to include new menu items and group Enhances application navigation with online-related features --- .../Localization/Translations/da.json | 3 ++ .../Features/Menu/Services/MockMenuService.cs | 33 +++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/PlanTempus.Application/Features/Localization/Translations/da.json b/PlanTempus.Application/Features/Localization/Translations/da.json index 337bce5..be3d5cd 100644 --- a/PlanTempus.Application/Features/Localization/Translations/da.json +++ b/PlanTempus.Application/Features/Localization/Translations/da.json @@ -8,6 +8,8 @@ "customers": "Kunder", "employees": "Medarbejdere", "services": "Services", + "booking": "Booking", + "website": "Website", "reports": "Statistik & Rapporter", "settings": "Indstillinger", "account": "Abonnement & Konto" @@ -15,6 +17,7 @@ "groups": { "overview": "Overblik", "data": "Data", + "online": "Online", "analytics": "Analyse", "system": "System" }, diff --git a/PlanTempus.Application/Features/Menu/Services/MockMenuService.cs b/PlanTempus.Application/Features/Menu/Services/MockMenuService.cs index 7a916aa..1ed7046 100644 --- a/PlanTempus.Application/Features/Menu/Services/MockMenuService.cs +++ b/PlanTempus.Application/Features/Menu/Services/MockMenuService.cs @@ -143,12 +143,41 @@ public class MockMenuService : IMenuService } }, + // ONLINE GROUP + new MenuGroup + { + Id = "online", + Label = "Online", + SortOrder = 3, + Items = new List + { + new MenuItem + { + Id = "booking", + Label = "Booking", + Icon = "ph-calendar-check", + Url = "/online-booking", + MinimumRole = UserRole.Manager, + SortOrder = 1 + }, + new MenuItem + { + Id = "website", + Label = "Website", + Icon = "ph-globe", + Url = "/website", + MinimumRole = UserRole.Manager, + SortOrder = 2 + } + } + }, + // ANALYSE GROUP new MenuGroup { Id = "analytics", Label = "Analyse", - SortOrder = 3, + SortOrder = 4, Items = new List { new MenuItem @@ -168,7 +197,7 @@ public class MockMenuService : IMenuService { Id = "system", Label = "System", - SortOrder = 4, + SortOrder = 5, Items = new List { new MenuItem