Skip to content

Commit 7621bfc

Browse files
yasnagatjulio-rocketchatggazzo
committed
chore!: remove WebDav integration (#40856)
Co-authored-by: Julio Araujo <julio.araujo@rocket.chat> Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
1 parent 1e5873b commit 7621bfc

65 files changed

Lines changed: 54 additions & 2325 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rocket.chat/meteor': major
3+
---
4+
5+
Removes the WebDAV integration. All WebDAV accounts, settings, and file-picker functionality have been removed, and existing WebDAV settings are cleared from the database on upgrade

apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { useUnFollowMessageAction } from './useUnFollowMessageAction';
2424
import { useUnpinMessageAction } from './useUnpinMessageAction';
2525
import { useUnstarMessageAction } from './useUnstarMessageAction';
2626
import { useViewOriginalTranslationAction } from './useViewOriginalTranslationAction';
27-
import { useWebDAVMessageAction } from './useWebDAVMessageAction';
2827
import type { MessageActionContext } from '../../../../app/ui-utils/client/lib/MessageAction';
2928

3029
type MessageActionSection = {
@@ -44,7 +43,6 @@ export type MessageToolbarActionMenuProps = {
4443
const MessageToolbarActionMenu = ({ message, context, room, subscription, onChangeMenuVisibility }: MessageToolbarActionMenuProps) => {
4544
// TODO: move this to another place
4645
const menuItems = [
47-
useWebDAVMessageAction(message, { subscription }),
4846
useNewDiscussionMessageAction(message, { room, subscription }),
4947
useUnpinMessageAction(message, { room, subscription }),
5048
usePinMessageAction(message, { room, subscription }),

apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx

Lines changed: 0 additions & 43 deletions
This file was deleted.

apps/meteor/client/hooks/webdav/useWebDAVAccountIntegrationsQuery.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

apps/meteor/client/lib/getWebdavServerName.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/meteor/client/views/account/integrations/AccountIntegrationsPage.tsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

apps/meteor/client/views/account/integrations/AccountIntegrationsRoute.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/meteor/client/views/account/integrations/hooks/useRemoveWebDAVAccountIntegrationMutation.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/meteor/client/views/account/routes.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ declare module '@rocket.chat/ui-contexts' {
2020
pathname: '/account/security';
2121
pattern: '/account/security';
2222
};
23-
'integrations': {
24-
pathname: '/account/integrations';
25-
pattern: '/account/integrations';
26-
};
2723
'tokens': {
2824
pathname: '/account/tokens';
2925
pattern: '/account/tokens';
@@ -64,11 +60,6 @@ registerAccountRoute('/security', {
6460
component: lazy(() => import('./security/AccountSecurityRoute')),
6561
});
6662

67-
registerAccountRoute('/integrations', {
68-
name: 'integrations',
69-
component: lazy(() => import('./integrations/AccountIntegrationsRoute')),
70-
});
71-
7263
registerAccountRoute('/tokens', {
7364
name: 'tokens',
7465
component: lazy(() => import('./tokens/AccountTokensRoute')),

apps/meteor/client/views/account/sidebarItems.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ export const {
3030
(settings.peek('E2E_Enable') ?? false) ||
3131
(settings.peek('Accounts_AllowPasswordChange') ?? true),
3232
},
33-
{
34-
href: '/account/integrations',
35-
i18nLabel: 'Integrations',
36-
icon: 'code',
37-
permissionGranted: (): boolean => settings.peek('Webdav_Integration_Enabled') ?? false,
38-
},
3933
{
4034
href: '/account/tokens',
4135
i18nLabel: 'Personal_Access_Tokens',

0 commit comments

Comments
 (0)