Added whole documents to the Translation, Grammar & Spelling, and Rewrite & Improve assistants (#1179)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
Sabrina-devopsandThorsten Sommer authored and GitHub committed 2026-11-28 20:27:23 +01:00
1 parent f7666861f1
commit 918572c158
150 files changed
+12850 -302

No files matched your search

@@ -0,0 +1,35 @@
@using AIStudio.Tools.DocumentSegments
@inherits MSGComponentBase
<MudPaper Class="pa-3 mb-3 border-dashed border rounded-lg">
<MudText Typo="Typo.h6" Class="mb-2">
@this.Title
</MudText>
<MudJustifiedText Typo="Typo.body1">
@this.DoneText
</MudJustifiedText>
<MudJustifiedText Typo="Typo.body2">
@this.SectionsText
</MudJustifiedText>
@if (this.Document.Results.CountOf(SegmentStatus.FILTERED) is > 0 and var filteredCount)
{
<MudJustifiedText Typo="Typo.body2">
@string.Format(T("Sections left unchanged because the prompt injection check found suspicious content in them: {0}"), filteredCount)
</MudJustifiedText>
}
@if (this.Document.Results.CountOf(SegmentStatus.FAILED) is > 0 and var failedCount)
{
<MudJustifiedText Typo="Typo.body2">
@string.Format(T("Sections left unchanged because the AI model gave no usable answer for them: {0}"), failedCount)
</MudJustifiedText>
}
@if (DocumentSegmentFormats.For(this.Document.SourcePath) is { } format)
{
<MudJustifiedText Typo="Typo.body2" Class="mt-2">
@format.LimitsNotice
</MudJustifiedText>
}
<MudButton Variant="Variant.Filled" Color="Color.Primary" StartIcon="@AppIcons.SAVE" Disabled="@this.IsSaving" OnClick="@this.Save" Class="mt-3">
@this.SaveText
</MudButton>
</MudPaper>