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,11 @@
@typeparam TSettings where TSettings : IComponent
@inherits AssistantBaseCore<TSettings>
@* The form comes from the assistant, see AssistantBaseCore; the base adds only what goes next to and below it: *@
@code {
private protected override RenderFragment? HeaderActions => this.OtherMode is { } otherMode ? @<AssistantModeSwitch Tooltip="@this.SwitchTooltip(otherMode)" Disabled="@(this.IsProcessing || this.SubmitDisabled)" OnSwitch="@(() => this.ChooseMode(otherMode))"/> : null;
private protected override RenderFragment? BelowSubmitContent => this.ShownEditedDocument is { } document ? @<EditedDocumentSummary Document="@document" Title="@this.DocumentResultTitle" DoneText="@this.DocumentDoneText(document)" SectionsText="@this.DocumentSectionsText(document.Results)" SaveText="@this.DocumentSaveText" IsSaving="@this.isSavingDocument" OnSave="@this.SaveEditedDocumentAsync"/> : null;
}