Re-runs the environment checks against the installed configuration (worker.config.json + detected install dir) without blocking navigation and without auto-running on window open, only on a "Recheck" click. Extracted the check-row rendering and check-run logic (busy state, summary, Recheck command) out of SystemCheckPage into a shared Checks/CheckListViewModel + Checks/CheckListView, composed by both SystemCheckPage (wizard) and the new DiagnosePage (settings) instead of duplicating it.
28 lines
1.3 KiB
XML
28 lines
1.3 KiB
XML
<UserControl x:Class="ClaudeDo.Installer.Pages.DiagnosePage.DiagnosePageView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:ClaudeDo.Installer.Pages.DiagnosePage"
|
|
xmlns:checks="clr-namespace:ClaudeDo.Installer.Checks"
|
|
xmlns:loc="clr-namespace:ClaudeDo.Installer.Localization"
|
|
d:DataContext="{d:DesignInstance local:DiagnosePageViewModel}"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Header -->
|
|
<StackPanel Grid.Row="0" Margin="0,0,0,16">
|
|
<TextBlock Text="{loc:Tr installer.diagnose.title}" FontSize="18" FontWeight="SemiBold" Margin="0,0,0,4"/>
|
|
<TextBlock Text="{loc:Tr installer.diagnose.subtitle}"
|
|
Foreground="{StaticResource TextSecondaryBrush}" TextWrapping="Wrap"/>
|
|
</StackPanel>
|
|
|
|
<checks:CheckListView Grid.Row="1" DataContext="{Binding Checks}"/>
|
|
</Grid>
|
|
</UserControl>
|