From 1eb6797ab87c5cf7babfabf64b3732950285c55b Mon Sep 17 00:00:00 2001 From: Maxime GRANDCOLAS Date: Tue, 14 Jan 2025 15:23:20 +0100 Subject: [PATCH 1/2] [MS] Replaced workspaces by recent workspaces in sidebar --- .../sidebar/SidebarRecentFileItem.vue | 2 +- .../sidebar/SidebarWorkspaceItem.vue | 6 +- client/src/components/users/types.ts | 1 + client/src/components/workspaces/utils.ts | 3 +- client/src/locales/en-US.json | 1 + client/src/locales/fr-FR.json | 1 + client/src/parsec/workspace.ts | 8 +- client/src/services/fileOpener.ts | 6 +- client/src/services/recentDocuments.ts | 137 ++++++++++++++++++ client/src/services/recentFiles.ts | 52 ------- client/src/services/storageManager.ts | 7 +- client/src/views/layouts/ConnectedLayout.vue | 51 ++++++- .../views/sidebar-menu/SidebarMenuPage.vue | 72 +++------ client/src/views/users/UsersPage.vue | 5 +- .../src/views/workspaces/WorkspacesPage.vue | 14 ++ client/tests/e2e/specs/sidebar.spec.ts | 2 +- .../e2e/specs/workspaces_actions.spec.ts | 8 +- 17 files changed, 256 insertions(+), 120 deletions(-) create mode 100644 client/src/services/recentDocuments.ts delete mode 100644 client/src/services/recentFiles.ts diff --git a/client/src/components/sidebar/SidebarRecentFileItem.vue b/client/src/components/sidebar/SidebarRecentFileItem.vue index 8d091c9da26..cac3ba109f0 100644 --- a/client/src/components/sidebar/SidebarRecentFileItem.vue +++ b/client/src/components/sidebar/SidebarRecentFileItem.vue @@ -23,7 +23,7 @@