chore: release v2.4
- Add theme system (Dark/Light palettes, ModernTheme, ThemeManager) - Add InputDialog, Spinner common view - Add DuplicatesCsvExportService - Refresh views, dialogs, and view models across tabs - Update localization strings (en/fr) - Tweak services (transfer, permissions, search, user access, ownership elevation, bulk operations) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:loc="clr-namespace:SharepointToolbox.Localization"
|
||||
xmlns:common="clr-namespace:SharepointToolbox.Views.Common"
|
||||
xmlns:models="clr-namespace:SharepointToolbox.Core.Models"
|
||||
xmlns:converters="clr-namespace:SharepointToolbox.Core.Converters">
|
||||
|
||||
@@ -21,7 +22,9 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Left panel: Scan configuration -->
|
||||
<DockPanel Grid.Column="0" Grid.Row="0" Margin="8">
|
||||
<ScrollViewer Grid.Column="0" Grid.Row="0"
|
||||
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||
<DockPanel Margin="8">
|
||||
|
||||
<!-- Scan Options GroupBox -->
|
||||
<GroupBox Header="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[grp.scan.opts]}"
|
||||
@@ -125,6 +128,7 @@
|
||||
</StackPanel>
|
||||
|
||||
</DockPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<!-- Right panel: Summary + Results -->
|
||||
<Grid Grid.Column="1" Grid.Row="0" Margin="0,8,8,8">
|
||||
@@ -153,7 +157,8 @@
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border CornerRadius="6" Padding="14,10" Margin="0,0,10,4" MinWidth="140">
|
||||
<Border CornerRadius="6" Padding="14,10" Margin="0,0,10,4" MinWidth="140"
|
||||
TextElement.Foreground="{DynamicResource OnColoredBgBrush}">
|
||||
<Border.Style>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="Background" Value="#F3F4F6" />
|
||||
@@ -182,7 +187,7 @@
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Count}" FontSize="22" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding Count}" FontSize="22" FontWeight="Bold" Foreground="#1F2430" />
|
||||
<TextBlock Text="{Binding Label}" FontSize="11" Foreground="#555" />
|
||||
<TextBlock FontSize="10" Foreground="#888" Margin="0,2,0,0">
|
||||
<Run Text="{Binding DistinctUsers, Mode=OneWay}" />
|
||||
@@ -222,19 +227,24 @@
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding RiskLevel}" Value="{x:Static models:RiskLevel.High}">
|
||||
<Setter Property="Background" Value="#FEF2F2" />
|
||||
<Setter Property="Foreground" Value="#1F2430" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding RiskLevel}" Value="{x:Static models:RiskLevel.Medium}">
|
||||
<Setter Property="Background" Value="#FFFBEB" />
|
||||
<Setter Property="Foreground" Value="#1F2430" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding RiskLevel}" Value="{x:Static models:RiskLevel.Low}">
|
||||
<Setter Property="Background" Value="#ECFDF5" />
|
||||
<Setter Property="Foreground" Value="#1F2430" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding RiskLevel}" Value="{x:Static models:RiskLevel.ReadOnly}">
|
||||
<Setter Property="Background" Value="#EFF6FF" />
|
||||
<Setter Property="Foreground" Value="#1F2430" />
|
||||
</DataTrigger>
|
||||
<!-- Phase 18: auto-elevated rows get amber background + tooltip -->
|
||||
<DataTrigger Binding="{Binding WasAutoElevated}" Value="True">
|
||||
<Setter Property="Background" Value="#FFF9E6" />
|
||||
<Setter Property="Foreground" Value="#1F2430" />
|
||||
<Setter Property="ToolTip" Value="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[permissions.elevated.tooltip]}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
@@ -286,9 +296,8 @@
|
||||
<!-- Bottom: status bar spanning both columns -->
|
||||
<StatusBar Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
|
||||
<StatusBarItem>
|
||||
<ProgressBar Width="150" Height="14"
|
||||
Value="{Binding ProgressValue}"
|
||||
Minimum="0" Maximum="100" />
|
||||
<common:Spinner Width="14" Height="14"
|
||||
Visibility="{Binding IsRunning, Converter={StaticResource BoolToVisibilityConverter}}" />
|
||||
</StatusBarItem>
|
||||
<StatusBarItem Content="{Binding StatusMessage}" />
|
||||
</StatusBar>
|
||||
|
||||
Reference in New Issue
Block a user