Migration to a ServiceWorker for most tasks.
Implementation of basic PatchComplianceTask. First real iteration, basic/raw asf.
This commit is contained in:
@@ -230,6 +230,7 @@
|
||||
<TabItem Header="InstalledApps" FontSize="16"/>
|
||||
<TabItem Header="Status" FontSize="16"/>
|
||||
<TabItem Header="Osquery" FontSize="16"/>
|
||||
<TabItem Header="Service" FontSize="16"/>
|
||||
</TabControl>
|
||||
|
||||
<!--
|
||||
@@ -456,6 +457,106 @@
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
<!-- 🔹 Service Tab -->
|
||||
<TabItem Header="Service">
|
||||
<Grid Background="{DynamicResource BackgroundDarkBrush}" Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Service Status Section -->
|
||||
<Border Grid.Row="0" Background="{DynamicResource CardBackgroundBrush}"
|
||||
CornerRadius="8" Padding="15" Margin="0,0,0,15">
|
||||
<StackPanel>
|
||||
<TextBlock Text="PSG-Oversight Service Status"
|
||||
FontSize="16" FontWeight="Bold"
|
||||
Foreground="{DynamicResource TextDarkBrush}"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,5">
|
||||
<TextBlock Text="Status:" FontWeight="Bold" Width="100"
|
||||
Foreground="{DynamicResource TextDarkBrush}"/>
|
||||
<TextBlock x:Name="ServiceStatusText" Text="Unknown"
|
||||
Foreground="{DynamicResource AccentBrush}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,5">
|
||||
<TextBlock Text="Last Check:" FontWeight="Bold" Width="100"
|
||||
Foreground="{DynamicResource TextDarkBrush}"/>
|
||||
<TextBlock x:Name="ServiceLastCheckText" Text="Never"
|
||||
Foreground="{DynamicResource TextDarkBrush}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="Refresh Status" Click="RefreshServiceStatus_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Margin="0,10,0,0" Width="150" HorizontalAlignment="Left"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Test Operations Section -->
|
||||
<Border Grid.Row="1" Background="{DynamicResource CardBackgroundBrush}"
|
||||
CornerRadius="8" Padding="15" Margin="0,0,0,15">
|
||||
<StackPanel>
|
||||
<TextBlock Text="Test Operations"
|
||||
FontSize="16" FontWeight="Bold"
|
||||
Foreground="{DynamicResource TextDarkBrush}"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<TextBlock Text="Click buttons below to test service operations:"
|
||||
TextWrapping="Wrap"
|
||||
Foreground="{DynamicResource TextDarkBrush}"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<Button Content="🔍 Run Patch Compliance Check Now"
|
||||
Click="TestPatchCompliance_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Margin="0,5" Width="280" HorizontalAlignment="Left"/>
|
||||
|
||||
<Button Content="📊 View Task Scheduler State"
|
||||
Click="ViewSchedulerState_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Margin="0,5" Width="280" HorizontalAlignment="Left"/>
|
||||
|
||||
<Button Content="🔄 Test API Connection"
|
||||
Click="TestAPIConnection_Click"
|
||||
Style="{StaticResource SmallRoundedButtonStyle}"
|
||||
Margin="0,5" Width="280" HorizontalAlignment="Left"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- Log Output Section -->
|
||||
<Border Grid.Row="2" Background="{DynamicResource CardBackgroundBrush}"
|
||||
CornerRadius="8" Padding="15">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0" Text="Service Logs"
|
||||
FontSize="14" FontWeight="Bold"
|
||||
Foreground="{DynamicResource TextDarkBrush}"
|
||||
Margin="0,0,0,10"/>
|
||||
|
||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||
<TextBox x:Name="ServiceLogOutput"
|
||||
Background="#1e1e1e"
|
||||
Foreground="#dcdcdc"
|
||||
FontFamily="Consolas"
|
||||
FontSize="12"
|
||||
AcceptsReturn="True"
|
||||
IsReadOnly="True"
|
||||
TextWrapping="Wrap"
|
||||
MinHeight="200"
|
||||
Text="Service logs will appear here..."/>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
|
||||
</TabControl>
|
||||
</Border>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user