From d1e858b9a20878243242e07271c2268b2a60a248 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Tue, 30 Jan 2024 11:32:08 +0100 Subject: [PATCH 1/2] refactor: remove share status in favour of syncEnabled --- .../components/Shares/SharedWithMeSection.vue | 24 ++--- .../src/views/shares/SharedViaLink.vue | 4 +- .../src/views/shares/SharedWithMe.vue | 4 +- .../src/views/shares/SharedWithOthers.vue | 4 +- .../unit/views/shares/SharedWithMe.spec.ts | 14 +-- .../web-client/src/helpers/share/functions.ts | 25 +++-- .../src/helpers/share/functionsNG.ts | 14 +-- .../web-client/src/helpers/share/index.ts | 1 - .../web-client/src/helpers/share/status.ts | 5 - .../web-client/src/helpers/share/types.ts | 15 +-- .../web-pkg/src/components/AppBar/AppBar.vue | 12 +-- .../components/FilesList/ContextActions.vue | 16 +-- .../components/FilesList/ResourceTable.vue | 23 ++-- .../src/composables/actions/files/index.ts | 4 +- .../actions/files/useFileActions.ts | 20 ++-- .../files/useFileActionsCopyQuicklink.ts | 13 +-- ...eShare.ts => useFileActionsDisableSync.ts} | 49 ++++----- ...ptShare.ts => useFileActionsEnableSync.ts} | 47 +++----- .../actions/files/useFileActionsNavigate.ts | 8 +- .../actions/files/useFileActionsShowShares.ts | 10 +- .../files/useFileActionsToggleHideShare.ts | 36 +++---- .../src/helpers/share/triggerShareAction.ts | 46 ++------ .../FilesList/ContextActions.spec.ts | 4 +- .../FilesList/ResourceTable.spec.ts | 1 + .../files/useFileActionsAcceptShare.spec.ts | 20 ++-- .../helpers/share/triggerShareAction.spec.ts | 101 ------------------ .../src/components/Topbar/Notifications.vue | 3 +- .../FilesPageElement/fileActionsMenu.js | 4 +- .../pageObjects/sharedWithMePage.js | 2 +- .../features/smoke/groupActions.feature | 2 +- .../features/smoke/shares/share.feature | 16 ++- tests/e2e/cucumber/steps/ui/shares.ts | 20 ++-- .../objects/app-files/share/actions.ts | 16 +-- .../support/objects/app-files/share/index.ts | 12 +-- 34 files changed, 204 insertions(+), 391 deletions(-) delete mode 100644 packages/web-client/src/helpers/share/status.ts rename packages/web-pkg/src/composables/actions/files/{useFileActionsDeclineShare.ts => useFileActionsDisableSync.ts} (66%) rename packages/web-pkg/src/composables/actions/files/{useFileActionsAcceptShare.ts => useFileActionsEnableSync.ts} (68%) delete mode 100644 packages/web-pkg/tests/unit/helpers/share/triggerShareAction.spec.ts diff --git a/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue b/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue index 8223bf05f02..3ac71e4e626 100644 --- a/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue +++ b/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue @@ -17,7 +17,6 @@ -