mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:07:21 +00:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
@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> |