From 2268b7d95ce64384d8b2bf808132a22ab1912c53 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Fri, 22 Nov 2024 17:09:04 +0100 Subject: [PATCH] feat: Adjust Default configuration on first Server startup - MEED-7833 - Meeds-io/MIPs#159 --- .../plugin/SpaceTemplateSidebarPlugin.java | 2 +- .../NavigationConfigurationInitService.java | 2 +- .../NavigationSettingsSidebarPreviewItem.vue | 18 +++++++++++------- ...avigationSettingsAddSidebarSpacesDrawer.vue | 5 ++++- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/component/core/src/main/java/io/meeds/social/navigation/plugin/SpaceTemplateSidebarPlugin.java b/component/core/src/main/java/io/meeds/social/navigation/plugin/SpaceTemplateSidebarPlugin.java index 8f62c05dad9..06a500dd489 100644 --- a/component/core/src/main/java/io/meeds/social/navigation/plugin/SpaceTemplateSidebarPlugin.java +++ b/component/core/src/main/java/io/meeds/social/navigation/plugin/SpaceTemplateSidebarPlugin.java @@ -103,7 +103,7 @@ private Map buildSpaceTemplateProperties(SpaceTemplate spaceTemp Map properties = new HashMap<>(); properties.put(SPACE_TEMPLATE_ID_PROP_NAME, String.valueOf(spaceTemplate.getId())); properties.put(SPACES_LIMIT, String.valueOf(SPACES_LIMIT_DEFAULT)); - properties.put(SPACES_SORT_BY, SidebarSpaceSortBy.TITLE.name()); + properties.put(SPACES_SORT_BY, SidebarSpaceSortBy.LAST_ACCESS.name()); return properties; } diff --git a/component/core/src/main/java/io/meeds/social/navigation/service/NavigationConfigurationInitService.java b/component/core/src/main/java/io/meeds/social/navigation/service/NavigationConfigurationInitService.java index 7237cf5e54b..ad74caf1a11 100644 --- a/component/core/src/main/java/io/meeds/social/navigation/service/NavigationConfigurationInitService.java +++ b/component/core/src/main/java/io/meeds/social/navigation/service/NavigationConfigurationInitService.java @@ -75,7 +75,7 @@ public class NavigationConfigurationInitService { @Value("${navigation.configuration.allowUserCustomHome:true}") private boolean allowUserCustomHome; - @Value("${navigation.configuration.defaultMode:HIDDEN}") + @Value("${navigation.configuration.defaultMode:ICON}") private SidebarMode defaultMode; private List defaultTopbarApplications; diff --git a/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/NavigationSettingsSidebarPreviewItem.vue b/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/NavigationSettingsSidebarPreviewItem.vue index 8c943f99831..792134c07a8 100644 --- a/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/NavigationSettingsSidebarPreviewItem.vue +++ b/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/NavigationSettingsSidebarPreviewItem.vue @@ -31,8 +31,10 @@
-