Files
jdescopingtool/NEW/src/Utils/JdeScoping.ConfigManager/Views/Editors/ScriptEditorView.axaml
T
Joseph Doherty e5fe2f06e9 feat: add startup config validation and document ConfigManager pipeline editor
Add ConfigurationValidationRunner with IConfigurationValidator interface for
validating required settings at startup. Includes SecureStore and LDAP validators.
Expand ConfigManager with pipeline editing UI, dialogs, and step editors.
Update documentation with config validation guidance.
2026-01-21 17:47:15 -05:00

52 lines
2.5 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:steps="using:JdeScoping.ConfigManager.ViewModels.PipelineSteps"
x:Class="JdeScoping.ConfigManager.Views.Editors.ScriptEditorView"
x:DataType="steps:PreScriptStepViewModel">
<StackPanel Spacing="16">
<!-- Header (dynamic based on script type) -->
<StackPanel>
<TextBlock Text="{Binding DisplayName, StringFormat='{}{0} Configuration'}"
Foreground="#E6EDF5" FontSize="14" FontWeight="SemiBold"/>
<TextBlock Text="SQL script to execute"
Foreground="#5C6A7A" FontSize="11"/>
</StackPanel>
<!-- Script Content -->
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="2">
<TextBlock Text="Script"
Foreground="#9BA8B8" FontSize="12" FontWeight="Medium"/>
</StackPanel>
<TextBox Text="{Binding Script}"
Background="#232A35" Foreground="#E6EDF5"
BorderBrush="#3D4550"
FontFamily="JetBrains Mono" FontSize="11"
AcceptsReturn="True"
TextWrapping="NoWrap"
MinHeight="200"
Watermark="-- SQL Script&#x0a;EXEC dbo.MyProcedure @Param1"/>
<TextBlock Text="SQL script or stored procedure call to execute"
Foreground="#5C6A7A" FontSize="11"/>
</StackPanel>
<!-- Info Box -->
<Border Background="#151920" BorderBrush="#2D3540" BorderThickness="1"
CornerRadius="4" Padding="12" Margin="0,8,0,0">
<StackPanel Spacing="4">
<TextBlock Text="Script Execution" Foreground="#9BA8B8" FontSize="11" FontWeight="Medium"/>
<TextBlock Foreground="#5C6A7A" FontSize="10">
<Run Text="Pre-scripts run before data extraction."/>
</TextBlock>
<TextBlock Foreground="#5C6A7A" FontSize="10">
<Run Text="Post-scripts run after data loading completes."/>
</TextBlock>
<TextBlock Foreground="#5C6A7A" FontSize="10">
<Run Text="Use for index management, statistics updates, or cleanup tasks."/>
</TextBlock>
</StackPanel>
</Border>
</StackPanel>
</UserControl>