mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 11:07: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,85 @@
|
||||
<div class="swot-result">
|
||||
<section class="swot-matrix-section">
|
||||
<MudText Typo="Typo.h5" Class="mb-3">@this.Result.MatrixHeading</MudText>
|
||||
<SwotQuadrantGrid Labels="@this.Labels" Context="category">
|
||||
<SwotMatrixFindings Findings="@this.CategoryOf(category).Findings" EmptyMessage="@this.CategoryOf(category).EmptyMessage"/>
|
||||
</SwotQuadrantGrid>
|
||||
</section>
|
||||
|
||||
<section class="swot-detail-section">
|
||||
<MudText Typo="Typo.h5" Class="mb-2">@this.Result.OverallAssessment.Label</MudText>
|
||||
@foreach (var paragraph in this.Result.OverallAssessment.Paragraphs)
|
||||
{
|
||||
<MudText Typo="Typo.body1" Class="mb-2">@paragraph</MudText>
|
||||
}
|
||||
</section>
|
||||
|
||||
<section class="swot-detail-section">
|
||||
<MudText Typo="Typo.h5" Class="mb-2">@this.Result.PrioritizedActions.Label</MudText>
|
||||
@if (this.Result.PrioritizedActions.Items.Count == 0)
|
||||
{
|
||||
<MudText Typo="Typo.body1">@this.Result.PrioritizedActions.EmptyMessage</MudText>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ol class="swot-actions">
|
||||
@foreach (var action in this.Result.PrioritizedActions.Items)
|
||||
{
|
||||
<li>
|
||||
<strong>@action.Action</strong>
|
||||
<span> — @action.Rationale</span>
|
||||
<div class="swot-factors">
|
||||
@foreach (var factor in action.AddressedFactors)
|
||||
{
|
||||
<span>@factor</span>
|
||||
}
|
||||
</div>
|
||||
</li>
|
||||
}
|
||||
</ol>
|
||||
}
|
||||
</section>
|
||||
|
||||
@foreach (var category in this.Result.Categories)
|
||||
{
|
||||
<section class="swot-detail-section">
|
||||
<MudText Typo="Typo.h5" Class="mb-2">@category.Label</MudText>
|
||||
@if (category.Findings.Count == 0)
|
||||
{
|
||||
<MudText Typo="Typo.body1">@category.EmptyMessage</MudText>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ul class="swot-detail-list">
|
||||
@foreach (var finding in category.Findings)
|
||||
{
|
||||
<li>
|
||||
<strong>@finding.Summary</strong>
|
||||
<span> — @finding.Explanation</span>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
<section class="swot-detail-section">
|
||||
<MudText Typo="Typo.h5" Class="mb-2">@this.Result.ModerationNotes.Label</MudText>
|
||||
@if (this.Result.ModerationNotes.Items.Count == 0)
|
||||
{
|
||||
<MudText Typo="Typo.body1">@this.Result.ModerationNotes.EmptyMessage</MudText>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ul class="swot-detail-list">
|
||||
@foreach (var note in this.Result.ModerationNotes.Items)
|
||||
{
|
||||
<li>
|
||||
<strong>@note.Change</strong>
|
||||
<span> — @note.Reason</span>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
</section>
|
||||
</div>
|
||||
Reference in new issue
Block a user