From 07cc807bc9a2c47172ea780a4786818465135734 Mon Sep 17 00:00:00 2001 From: Selene Blok Date: Tue, 30 Sep 2025 16:43:38 +0200 Subject: [PATCH 1/2] feat(onedrive): Enable search and "My Organization" pivot --- src/lib/utils/onedrive-file-picker.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/onedrive-file-picker.ts b/src/lib/utils/onedrive-file-picker.ts index 78477e80db..e1d6df0392 100644 --- a/src/lib/utils/onedrive-file-picker.ts +++ b/src/lib/utils/onedrive-file-picker.ts @@ -176,6 +176,9 @@ interface PickerParams { origin: string; channelId: string; }; + search: { + enabled: boolean; + } typesAndSources: { mode: string; pivots: Record; @@ -204,11 +207,15 @@ function getPickerParams(): PickerParams { origin: window?.location?.origin || '', channelId }, + search: { + enabled: true + }, typesAndSources: { mode: 'files', pivots: { oneDrive: true, - recent: true + recent: true, + myOrganization: config.getAuthorityType() === "organizations", } } }; From 5c059e604ba73d0710834270e27a9be3e4ec38fb Mon Sep 17 00:00:00 2001 From: Selene Blok Date: Tue, 30 Sep 2025 16:49:53 +0200 Subject: [PATCH 2/2] style(onedrive): Formatting fix --- src/lib/utils/onedrive-file-picker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/onedrive-file-picker.ts b/src/lib/utils/onedrive-file-picker.ts index e1d6df0392..136d239294 100644 --- a/src/lib/utils/onedrive-file-picker.ts +++ b/src/lib/utils/onedrive-file-picker.ts @@ -51,7 +51,7 @@ class OneDriveConfig { this.sharepointTenantId = config.onedrive?.sharepoint_tenant_id; if (!this.clientIdPersonal && !this.clientIdBusiness) { - throw new Error('OneDrive personal or business client ID not configured'); + throw new Error('OneDrive personal or business client ID not configured'); } } @@ -178,7 +178,7 @@ interface PickerParams { }; search: { enabled: boolean; - } + }; typesAndSources: { mode: string; pivots: Record; @@ -215,7 +215,7 @@ function getPickerParams(): PickerParams { pivots: { oneDrive: true, recent: true, - myOrganization: config.getAuthorityType() === "organizations", + myOrganization: config.getAuthorityType() === 'organizations' } } };