Added a SWOT analysis assistant (#1122)

Co-authored-by: hart_s3 <sabrina.hartmann@dlr.de>
This commit is contained in:
Thorsten Sommerandhart_s3 authored and GitHub committed 2026-10-28 08:51:30 +01:00
1 parent 6cb20fd75a
commit 060a2a5734
87 files changed
+4601 -45

No files matched your search

@@ -0,0 +1,25 @@
@inherits MSGComponentBase
<div class="swot-live-progress" aria-live="polite">
<SwotQuadrantGrid Labels="@this.Labels" Context="category">
@switch (this.ProgressOf(category))
{
case { Status: SwotCategoryAnalysisStatus.RUNNING or SwotCategoryAnalysisStatus.REPAIRING } running:
<div class="swot-category-status" aria-busy="true">
<MudProgressCircular Color="Color.Primary" Size="Size.Small" Indeterminate="true"/>
<MudText Typo="Typo.body2">@this.RunningTextOf(running.Status)</MudText>
</div>
break;
case { Status: SwotCategoryAnalysisStatus.COMPLETED, Result: { } result }:
<SwotMatrixFindings Findings="@result.Findings" EmptyMessage="@result.EmptyMessage"/>
break;
case var progress:
<MudAlert Severity="@(progress.Status is SwotCategoryAnalysisStatus.FAILED ? Severity.Error : Severity.Warning)" Dense="true">
@progress.Message
</MudAlert>
break;
}
</SwotQuadrantGrid>
</div>