feat: move test buttons to right panel, add user auth dialog for reports

Move Start/Stop/Report buttons from the middle panel to the top of
TestPanelView (automated tests section), matching the old application
layout. Remove inline Operator/Client text fields — operator identity
now comes from a UserCheckDialog (username/password) shown before the
existing ReportDialog. Add credential storage to ConfigurationService.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 16:41:20 +02:00
parent d34e81163a
commit 4964806de1
10 changed files with 267 additions and 53 deletions

View File

@@ -0,0 +1,30 @@
using System.Windows;
using System.Windows.Controls;
using HC_APTBS.ViewModels.Dialogs;
namespace HC_APTBS.Views.Dialogs
{
/// <summary>
/// Authentication dialog that collects username and password before report generation.
/// </summary>
public partial class UserCheckDialog : Window
{
/// <summary>Creates the dialog and wires the ViewModel.</summary>
public UserCheckDialog(UserCheckViewModel vm)
{
InitializeComponent();
DataContext = vm;
vm.RequestClose += Close;
}
/// <summary>
/// Forwards the PasswordBox value to the ViewModel.
/// WPF intentionally does not expose Password as a DependencyProperty.
/// </summary>
private void OnPasswordChanged(object sender, RoutedEventArgs e)
{
if (DataContext is UserCheckViewModel vm)
vm.Password = ((PasswordBox)sender).Password;
}
}
}