Merge pull request #17930 from selenecodes/feat/onedrive-file-picker-add-search-and-my-organisation-pivot

feat: Enable search and "My Organization" pivot in OneDrive integration
This commit is contained in:
Tim Jaeryang Baek 2025-09-30 19:26:56 -05:00 committed by GitHub
commit 2341c2e729
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,6 +176,9 @@ interface PickerParams {
origin: string; origin: string;
channelId: string; channelId: string;
}; };
search: {
enabled: boolean;
};
typesAndSources: { typesAndSources: {
mode: string; mode: string;
pivots: Record<string, boolean>; pivots: Record<string, boolean>;
@ -204,11 +207,15 @@ function getPickerParams(): PickerParams {
origin: window?.location?.origin || '', origin: window?.location?.origin || '',
channelId channelId
}, },
search: {
enabled: true
},
typesAndSources: { typesAndSources: {
mode: 'files', mode: 'files',
pivots: { pivots: {
oneDrive: true, oneDrive: true,
recent: true recent: true,
myOrganization: config.getAuthorityType() === 'organizations'
} }
} }
}; };