mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 21:27:21 +00:00
Added a SWOT analysis assistant (#1122)
Co-authored-by: hart_s3 <sabrina.hartmann@dlr.de>
This commit is contained in:
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>
|
||||
Reference in new issue
Block a user