test(app): sample card, server quota, current archive and sample report checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
4 files changed
+139
-43
No files matched your search
@@ -97,50 +97,59 @@
|
||||
VerticalContentAlignment="Top">
|
||||
<TextBlock Text="{l:Loc Import.Devices.Auto}" TextWrapping="Wrap" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
</CheckBox>
|
||||
<Button DockPanel.Dock="Bottom" Height="44" HorizontalContentAlignment="Left" Background="Transparent" Command="{Binding PickFolderCommand}"
|
||||
ToolTip="{l:Loc Tooltips.Import.Folder}" Margin="0,0,0,8">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:Icon Glyph="{StaticResource Icon.Folder}" Margin="0,0,10,0" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
<TextBlock Text="{l:Loc Import.Devices.Folder}" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" Focusable="False">
|
||||
<StackPanel>
|
||||
<ListBox ItemsSource="{Binding Sources}" SelectedItem="{Binding SelectedSource}" ItemContainerStyle="{StaticResource ListBoxItem.Device}"
|
||||
AutomationProperties.Name="{l:Loc Import.Devices.Title}">
|
||||
<!-- The surrounding ScrollViewer scrolls the list and "Folder…" together (Import.html: Folder… follows the cards). -->
|
||||
<ListBox.Template>
|
||||
<ControlTemplate TargetType="ListBox">
|
||||
<ItemsPresenter />
|
||||
</ControlTemplate>
|
||||
</ListBox.Template>
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type imp:ImportSource}">
|
||||
<Grid x:Name="Root">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:Icon x:Name="Glyph" Glyph="{StaticResource Icon.Card}" Size="18" Margin="0,0,10,0" VerticalAlignment="Center" />
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
||||
<TextBlock Text="{Binding Title}" FontWeight="SemiBold" TextTrimming="CharacterEllipsis" />
|
||||
<TextBlock Text="{Binding Subtitle}" Style="{StaticResource Text.Secondary}" TextTrimming="CharacterEllipsis" Margin="0,2,0,0" />
|
||||
</StackPanel>
|
||||
<ui:StatusGlyph x:Name="State" Grid.Column="2" Kind="Online" Margin="8,0,0,0" VerticalAlignment="Center" ToolTip="{Binding StateText}" />
|
||||
</Grid>
|
||||
<DataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Kind}" Value="Drive">
|
||||
<Setter TargetName="Glyph" Property="Glyph" Value="{StaticResource Icon.Drive}" />
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Kind}" Value="Folder">
|
||||
<Setter TargetName="Glyph" Property="Glyph" Value="{StaticResource Icon.Folder}" />
|
||||
<Setter TargetName="State" Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding IsKnown}" Value="False">
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding IsInserted}" Value="False">
|
||||
<Setter TargetName="Root" Property="Opacity" Value="0.6" />
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<Button Height="44" HorizontalContentAlignment="Left" Background="Transparent" Command="{Binding PickFolderCommand}" ToolTip="{l:Loc Tooltips.Import.Folder}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ui:Icon Glyph="{StaticResource Icon.Folder}" Margin="0,0,10,0" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
<TextBlock Text="{l:Loc Import.Devices.Folder}" Foreground="{DynamicResource Brush.TextMuted}" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<ListBox ItemsSource="{Binding Sources}" SelectedItem="{Binding SelectedSource}" ItemContainerStyle="{StaticResource ListBoxItem.Device}"
|
||||
AutomationProperties.Name="{l:Loc Import.Devices.Title}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type imp:ImportSource}">
|
||||
<Grid x:Name="Root">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ui:Icon x:Name="Glyph" Glyph="{StaticResource Icon.Card}" Size="18" Margin="0,0,10,0" VerticalAlignment="Center" />
|
||||
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
||||
<TextBlock Text="{Binding Title}" FontWeight="SemiBold" TextTrimming="CharacterEllipsis" />
|
||||
<TextBlock Text="{Binding Subtitle}" Style="{StaticResource Text.Secondary}" TextTrimming="CharacterEllipsis" Margin="0,2,0,0" />
|
||||
</StackPanel>
|
||||
<ui:StatusGlyph x:Name="State" Grid.Column="2" Kind="Online" Margin="8,0,0,0" VerticalAlignment="Center" ToolTip="{Binding StateText}" />
|
||||
</Grid>
|
||||
<DataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Kind}" Value="Drive">
|
||||
<Setter TargetName="Glyph" Property="Glyph" Value="{StaticResource Icon.Drive}" />
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Kind}" Value="Folder">
|
||||
<Setter TargetName="Glyph" Property="Glyph" Value="{StaticResource Icon.Folder}" />
|
||||
<Setter TargetName="State" Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding IsKnown}" Value="False">
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding IsInserted}" Value="False">
|
||||
<Setter TargetName="Root" Property="Opacity" Value="0.6" />
|
||||
<Setter TargetName="State" Property="Kind" Value="Offline" />
|
||||
</DataTrigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</DockPanel>
|
||||
|
||||
<!-- ===================== Profile, form and plan ===================== -->
|
||||
|
||||
Reference in new issue
Block a user