---
phase: 12-branding-ui-views
plan: 02
type: execute
wave: 2
depends_on: [12-01]
files_modified:
- SharepointToolbox/Views/Tabs/SettingsView.xaml
autonomous: true
requirements:
- BRAND-02
must_haves:
truths:
- "SettingsView displays an MSP Logo section with a labeled GroupBox below the data folder section"
- "The logo section shows a live thumbnail preview bound to MspLogoPreview via Base64ToImageConverter"
- "When MspLogoPreview is null, the preview area shows a 'No logo configured' placeholder text"
- "Import and Clear buttons are bound to BrowseMspLogoCommand and ClearMspLogoCommand respectively"
- "StatusMessage displays below the logo section when set"
artifacts:
- path: "SharepointToolbox/Views/Tabs/SettingsView.xaml"
provides: "MSP logo section with live preview, import, and clear controls"
contains: "MspLogoPreview"
key_links:
- from: "SharepointToolbox/Views/Tabs/SettingsView.xaml"
to: "SharepointToolbox/ViewModels/Tabs/SettingsViewModel.cs"
via: "data binding"
pattern: "BrowseMspLogoCommand|ClearMspLogoCommand|MspLogoPreview"
- from: "SharepointToolbox/Views/Tabs/SettingsView.xaml"
to: "SharepointToolbox/Views/Converters/Base64ToImageSourceConverter.cs"
via: "StaticResource"
pattern: "Base64ToImageConverter"
---
Add the MSP logo section to SettingsView.xaml with live thumbnail preview, Import and Clear buttons.
Purpose: Allows administrators to see the current MSP logo and manage it directly from the Settings tab.
Output: Updated SettingsView.xaml with a logo section that binds to existing ViewModel commands and properties.
@C:/Users/dev/.claude/get-shit-done/workflows/execute-plan.md
@C:/Users/dev/.claude/get-shit-done/templates/summary.md
@.planning/PROJECT.md
@.planning/ROADMAP.md
@.planning/STATE.md
@.planning/phases/12-branding-ui-views/12-RESEARCH.md
From SharepointToolbox/ViewModels/Tabs/SettingsViewModel.cs:
```csharp
public string? MspLogoPreview { get; } // data URI string or null
public IAsyncRelayCommand BrowseMspLogoCommand { get; }
public IAsyncRelayCommand ClearMspLogoCommand { get; }
public string StatusMessage { get; set; } // inherited from FeatureViewModelBase
```
From SharepointToolbox/Views/Tabs/SettingsView.xaml:
```xml
```
- `{StaticResource Base64ToImageConverter}` — converts data URI string to BitmapImage (added in 12-01)
- `{StaticResource StringToVisibilityConverter}` — returns Visible if string non-empty, else Collapsed
Task 1: Add MSP logo section to SettingsView.xaml
SharepointToolbox/Views/Tabs/SettingsView.xaml
- Below the data folder DockPanel, a Separator and a new MSP Logo section appears
- The section has a Label with localized "MSP Logo" text
- A Border contains either an Image (when logo exists) or a TextBlock placeholder (when no logo)
- Image is bound to MspLogoPreview via Base64ToImageConverter, max 80px height, max 240px width
- Placeholder TextBlock shows localized "No logo configured" text, visible only when MspLogoPreview is null/empty
- Two buttons (Import, Clear) are horizontally aligned below the preview
- A TextBlock shows StatusMessage when set (for error feedback)
1. Edit `SharepointToolbox/Views/Tabs/SettingsView.xaml`:
After the Data folder ``, before ``, add:
```xml
```
Key decisions:
- Border with light gray outline creates a visual container for the logo preview
- Grid overlays Image and placeholder TextBlock — only one visible at a time
- DataTrigger hides placeholder when StringToVisibilityConverter returns Visible
- MaxHeight="80" and MaxWidth="240" keep the preview small but readable
- Stretch="Uniform" preserves aspect ratio
- StatusMessage in red only shows when non-empty (error feedback from import failures)
dotnet build --no-restore -warnaserrorSettingsView shows MSP logo section with live preview, Import/Clear buttons, and error message area. Build passes.
```bash
dotnet build --no-restore -warnaserror
```
Build must pass with zero failures. Visual verification requires manual testing.
- SettingsView.xaml has a visible MSP Logo section below the data folder
- Image binds to MspLogoPreview via Base64ToImageConverter
- Placeholder text shows when no logo is configured
- Import and Clear buttons bind to existing ViewModel commands
- StatusMessage displays in red when set
- Build passes with zero warnings