docs: capture todo - Add global multi-site selection option

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dev
2026-04-07 09:33:05 +02:00
parent 724fdc550d
commit 0fb35de80f
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
---
created: 2026-04-07T07:31:00.755Z
title: Add global multi-site selection option
area: ui
files:
- SharepointToolbox/Views/Dialogs/SitePickerDialog.xaml.cs
- SharepointToolbox/ViewModels/Tabs/PermissionsViewModel.cs
- SharepointToolbox/ViewModels/Tabs/StorageViewModel.cs
- SharepointToolbox/ViewModels/Tabs/SearchViewModel.cs
- SharepointToolbox/ViewModels/Tabs/DuplicatesViewModel.cs
---
## Problem
Currently each feature tab (Permissions, Storage, Search, Duplicates) has its own site URL input and optional "View Sites" picker. Users who want to run operations across multiple sites must re-select sites on each tab independently. A global multi-site selection (e.g., in the toolbar or a shared panel) would let users pick their target sites once and have all tabs operate on that selection.
This would streamline the MSP workflow where administrators typically audit the same set of sites across permissions, storage, and search in one session.
## Solution
- Add a shared `SelectedSites` collection on `MainWindowViewModel` (or a dedicated `SiteSelectionService`)
- Add a toolbar button or sidebar panel for global site selection using `SitePickerDialog`
- Broadcast selection changes via `WeakReferenceMessenger` (similar to `TenantSwitchedMessage`)
- Each feature ViewModel subscribes and uses the global selection as default, with option to override per-tab
- Preserve per-tab site URL override for single-site operations