feat: add modal dialog, paged results, scan status, and trend value table components

- Introduced ModalDialog component for displaying modal dialogs with accessibility features.
- Added PagedResults component to handle pagination of items with customizable rendering.
- Created ScanStatus component to display the status of a scan with elapsed time.
- Implemented TrendValueTable component for displaying trend data in a paginated table format.
- Added measurement utility functions for formatting and validating measurement values.
- Included tests for measurement functions and trend series fetching logic to ensure correctness.
This commit is contained in:
jhartworks committed 2026-11-25 15:45:49 +01:00
1 parent c19c77334f
commit a8b6cd4061
23 files changed
+1479 -2157

No files matched your search

+19
View File
@@ -40,6 +40,25 @@ namespace SeLtd.Setup
Application.SetCompatibleTextRenderingDefault(false);
using (var wizard = new SetupWizard(setup)) Assert(wizard.Text == "SE-LTD Setup", "wizard initialization");
using (var pause = new CancellationTokenSource())
{
int announced = 0;
bool paused = false;
try
{
setup.Prepare(Path.Combine(root, "paused install"), phase =>
{
Assert(phase.StartsWith("Schritt 1 von 2:"), "visible progress position");
announced++;
pause.Cancel();
}, pause.Token);
}
catch (OperationCanceledException) { paused = true; }
Assert(paused && announced == 1, "pause between safe setup steps");
Assert(Directory.Exists(Path.Combine(root, "paused install", ".git")), "active checkout completed before pausing");
Assert(!File.Exists(Path.Combine(root, "paused install", ".env")), "pause does not write settings");
}
foreach (bool legacy in new[] { false, true })
{
string target = Path.Combine(root, legacy ? "legacy install" : "new install");