diff --git a/app/MindWork AI Studio/Components/AssistantBase.razor b/app/MindWork AI Studio/Components/AssistantBase.razor index 934231e7..45d86e12 100644 --- a/app/MindWork AI Studio/Components/AssistantBase.razor +++ b/app/MindWork AI Studio/Components/AssistantBase.razor @@ -16,10 +16,20 @@ } - - @if (this.ShowResult && this.resultingContentBlock is not null) + + @if (this.isProcessing) { - + + } +
+ @if (this.ShowResult && this.resultingContentBlock is not null) + { + + } +
+ +
+
} \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/AssistantBase.razor.cs b/app/MindWork AI Studio/Components/AssistantBase.razor.cs index c1568df5..a0541dc9 100644 --- a/app/MindWork AI Studio/Components/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Components/AssistantBase.razor.cs @@ -18,6 +18,9 @@ public abstract partial class AssistantBase : ComponentBase [Inject] protected ThreadSafeRandom RNG { get; init; } = null!; + internal const string AFTER_RESULT_DIV_ID = "afterAssistantResult"; + internal const string ASSISTANT_RESULT_DIV_ID = "assistantResult"; + protected abstract string Title { get; } protected abstract string Description { get; } @@ -131,5 +134,12 @@ public abstract partial class AssistantBase : ComponentBase // Return the AI response: return aiText.Text; } + + private static string? GetButtonIcon(string icon) + { + if(string.IsNullOrWhiteSpace(icon)) + return null; + + return icon; } } \ No newline at end of file