: MSGComponentBase, IAssistantCat
/// true when this block represents the owner.
private bool OwnedByThisBlock(MediaImportOwner owner)
{
- if (owner.Kind.PersistsOwnSources())
- return owner.Kind == this.Component.MediaOwnerKind();
+ if (owner.Kind.PersistsOwnSources)
+ return owner.Kind == this.Component.MediaOwnerKind;
if (string.IsNullOrWhiteSpace(this.AssistantSessionInstanceId))
return owner.Kind is MediaImportOwnerKind.ASSISTANT && owner.Id.StartsWith($"{this.Component}:", StringComparison.Ordinal);
diff --git a/app/MindWork AI Studio/Components/AssistantPluginSecurityCard.razor b/app/MindWork AI Studio/Components/AssistantPluginSecurityCard.razor
index 7a6ff20b4..59a9d71b9 100644
--- a/app/MindWork AI Studio/Components/AssistantPluginSecurityCard.razor
+++ b/app/MindWork AI Studio/Components/AssistantPluginSecurityCard.razor
@@ -256,7 +256,7 @@
|
@T("Required minimum")
|
- @state.Settings.MinimumLevel.GetName() |
+ @state.Settings.MinimumLevel.Name |
@@ -290,7 +290,7 @@
@foreach (var finding in state.Audit.Findings)
{
-
+
@finding.Category: @finding.Description
@if (!string.IsNullOrWhiteSpace(finding.Location))
{
diff --git a/app/MindWork AI Studio/Components/AttachDocuments.razor.cs b/app/MindWork AI Studio/Components/AttachDocuments.razor.cs
index ebde89830..571009793 100644
--- a/app/MindWork AI Studio/Components/AttachDocuments.razor.cs
+++ b/app/MindWork AI Studio/Components/AttachDocuments.razor.cs
@@ -185,7 +185,7 @@ public partial class AttachDocuments : MSGComponentBase
var delivery = this.MediaTranscriptionService.GetPendingDelivery(this.EffectiveMediaImportTarget);
// Owners that persist their own sources have already taken the media over when the batch
// started, so re-adding the delivered transcripts here would duplicate them.
- var completed = this.EffectiveImportOwner.Kind.PersistsOwnSources()
+ var completed = this.EffectiveImportOwner.Kind.PersistsOwnSources
? Array.Empty()
: delivery?.Attachments ?? [];
var pending = this.OwnerChat?.Draft.MediaTranscripts ?? [];
@@ -436,7 +436,7 @@ public partial class AttachDocuments : MSGComponentBase
// Owners that persist their own sources show the file right away and keep it next to the
// stored document, instead of waiting for the transcription to be delivered back.
- if (this.EffectiveImportOwner.Kind.PersistsOwnSources())
+ if (this.EffectiveImportOwner.Kind.PersistsOwnSources)
{
foreach (var mediaPath in mediaPaths)
this.DocumentPaths.Add(FileAttachment.FromPath(mediaPath));
diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs
index 88b373232..c08c655f9 100644
--- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs
+++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs
@@ -795,7 +795,7 @@ public partial class ChatComponent : MSGComponentBase
get
{
if (this.IsProviderSelected)
- return string.Format(T("Your Prompt (use selected instance '{0}', provider '{1}')"), this.Provider.InstanceName, this.Provider.UsedLLMProvider.ToName());
+ return string.Format(T("Your Prompt (use selected instance '{0}', provider '{1}')"), this.Provider.InstanceName, this.Provider.UsedLLMProvider.Name);
return this.T("Select a provider first");
}
diff --git a/app/MindWork AI Studio/Components/ConfidenceInfo.razor b/app/MindWork AI Studio/Components/ConfidenceInfo.razor
index 95980fd38..381dafe28 100644
--- a/app/MindWork AI Studio/Components/ConfidenceInfo.razor
+++ b/app/MindWork AI Studio/Components/ConfidenceInfo.razor
@@ -48,7 +48,7 @@
@T("Confidence Level")
- @this.currentConfidence.Level.GetName()
+ @this.currentConfidence.Level.Name
diff --git a/app/MindWork AI Studio/Components/DataSourceManagement.razor b/app/MindWork AI Studio/Components/DataSourceManagement.razor
index 40d7a7e3c..2d7fea481 100644
--- a/app/MindWork AI Studio/Components/DataSourceManagement.razor
+++ b/app/MindWork AI Studio/Components/DataSourceManagement.razor
@@ -58,7 +58,7 @@
@context.Name
- @context.Type.GetDisplayName()
+ @context.Type.DisplayName
@this.GetEmbeddingName(context)
@if (context is IIndexedDataSource)
diff --git a/app/MindWork AI Studio/Components/DataSourceManagement.razor.cs b/app/MindWork AI Studio/Components/DataSourceManagement.razor.cs
index 16b1c2922..19046729b 100644
--- a/app/MindWork AI Studio/Components/DataSourceManagement.razor.cs
+++ b/app/MindWork AI Studio/Components/DataSourceManagement.razor.cs
@@ -306,7 +306,7 @@ public partial class DataSourceManagement : MSGComponentBase
var dialogParameters = new DialogParameters
{
- { x => x.Message, string.Format(T("Are you sure you want to delete the data source '{0}' of type '{1}'?"), dataSource.Name, dataSource.Type.GetDisplayName()) },
+ { x => x.Message, string.Format(T("Are you sure you want to delete the data source '{0}' of type '{1}'?"), dataSource.Name, dataSource.Type.DisplayName) },
};
var dialogReference = await this.DialogService.ShowAsync(T("Delete Data Source"), dialogParameters, DialogOptions.FULLSCREEN);
diff --git a/app/MindWork AI Studio/Components/DataSourceSelection.razor b/app/MindWork AI Studio/Components/DataSourceSelection.razor
index 3717e3807..9d851122b 100644
--- a/app/MindWork AI Studio/Components/DataSourceSelection.razor
+++ b/app/MindWork AI Studio/Components/DataSourceSelection.razor
@@ -146,7 +146,7 @@
@if (source.DataSource is IInternalDataSource internalSource)
{
-
+
}
diff --git a/app/MindWork AI Studio/Components/DataSourceSelectionRow.razor b/app/MindWork AI Studio/Components/DataSourceSelectionRow.razor
index d31184fc4..03f81ee57 100644
--- a/app/MindWork AI Studio/Components/DataSourceSelectionRow.razor
+++ b/app/MindWork AI Studio/Components/DataSourceSelectionRow.razor
@@ -15,7 +15,7 @@
{
}
-
+
}
diff --git a/app/MindWork AI Studio/Components/HighlightedCodeBlock.cs b/app/MindWork AI Studio/Components/HighlightedCodeBlock.cs
index 75c0786ea..f6a09140d 100644
--- a/app/MindWork AI Studio/Components/HighlightedCodeBlock.cs
+++ b/app/MindWork AI Studio/Components/HighlightedCodeBlock.cs
@@ -66,7 +66,7 @@ public sealed class HighlightedCodeBlock : ComponentBase
builder.AddContent(2, this.Code[position..token.Start]);
builder.OpenElement(3, "span");
- builder.AddAttribute(4, "class", token.Kind.ToCssClass());
+ builder.AddAttribute(4, "class", token.Kind.CssClass);
builder.AddContent(5, this.Code.Substring(token.Start, token.Length));
builder.CloseElement();
position = token.Start + token.Length;
diff --git a/app/MindWork AI Studio/Components/LayoutChoicePanels.razor b/app/MindWork AI Studio/Components/LayoutChoicePanels.razor
index ea7bf3e33..bf7bc2221 100644
--- a/app/MindWork AI Studio/Components/LayoutChoicePanels.razor
+++ b/app/MindWork AI Studio/Components/LayoutChoicePanels.razor
@@ -4,7 +4,7 @@
@if (this.expandedAreas.Contains(area))
{
- @foreach (var purpose in Enum.GetValues().Where(purpose => purpose.Area() == area))
+ @foreach (var purpose in Enum.GetValues().Where(purpose => purpose.Area == area))
{
@this.ChoiceContent(purpose)
}
diff --git a/app/MindWork AI Studio/Components/LayoutChoicePanels.razor.cs b/app/MindWork AI Studio/Components/LayoutChoicePanels.razor.cs
index cc52da377..244da170f 100644
--- a/app/MindWork AI Studio/Components/LayoutChoicePanels.razor.cs
+++ b/app/MindWork AI Studio/Components/LayoutChoicePanels.razor.cs
@@ -35,8 +35,8 @@ public partial class LayoutChoicePanels : ComponentBase
private string HeaderTextOf(LayoutPurposeArea area)
{
- var chosen = Enum.GetValues().Count(purpose => purpose.Area() == area && this.IsChosen(purpose));
- return chosen == 0 ? area.Label() : $"{area.Label()} ({chosen})";
+ var chosen = Enum.GetValues().Count(purpose => purpose.Area == area && this.IsChosen(purpose));
+ return chosen == 0 ? area.Label : $"{area.Label} ({chosen})";
}
private void SetExpanded(LayoutPurposeArea area, bool expanded)
diff --git a/app/MindWork AI Studio/Components/OutboundDataRestrictionSelection.razor b/app/MindWork AI Studio/Components/OutboundDataRestrictionSelection.razor
index 4150f009c..dafab3a42 100644
--- a/app/MindWork AI Studio/Components/OutboundDataRestrictionSelection.razor
+++ b/app/MindWork AI Studio/Components/OutboundDataRestrictionSelection.razor
@@ -2,7 +2,7 @@
@using AIStudio.Settings.DataModel
@inherits MSGComponentBase
-
+
@foreach (var restriction in ConfigurationSelectDataFactory.GetOutboundDataRestrictionData(this.Minimum))
{
@@ -11,7 +11,7 @@
}
- @this.Value.GetDescription()
+ @this.Value.Description
@if (this.LimitationText is { } limitationText)
{
diff --git a/app/MindWork AI Studio/Components/ReadWebContentStepsExtensions.cs b/app/MindWork AI Studio/Components/ReadWebContentStepsExtensions.cs
index 419cfb37e..39fa149c4 100644
--- a/app/MindWork AI Studio/Components/ReadWebContentStepsExtensions.cs
+++ b/app/MindWork AI Studio/Components/ReadWebContentStepsExtensions.cs
@@ -12,8 +12,8 @@ public static class ReadWebContentStepsExtensions
///
/// Gets the text representation of a given ReadWebContentSteps enum value.
///
- /// >The text representation of the process step.
- public string GetText() => step switch
+ /// The text representation of the process step.
+ public string Text => step switch
{
ReadWebContentSteps.START => TB("Start"),
ReadWebContentSteps.LOADING => TB("Loading"),
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs
index 4dd638c7b..a4fc2beb7 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor.cs
@@ -128,14 +128,14 @@ public partial class SettingsPanelApp : SettingsPanelBase
// Several configuration plugins may contribute at the same time, e.g. one preview feature
// for the whole organization and another one for a single department:
if (ManagedConfiguration.TryGet(x => x.App, x => x.EnabledPreviewFeatures, out var meta) && meta.HasPluginContribution)
- return meta.PluginContributions.Values.SelectMany(contribution => contribution).Where(x => !x.IsReleased()).ToHashSet();
+ return meta.PluginContributions.Values.SelectMany(contribution => contribution).Where(x => !x.IsReleased).ToHashSet();
return [];
}
private bool IsPluginContributedPreviewFeature(PreviewFeatures feature)
{
- if (feature.IsReleased())
+ if (feature.IsReleased)
return false;
if (!ManagedConfiguration.TryGet(x => x.App, x => x.EnabledPreviewFeatures, out var meta) || !meta.HasPluginContribution)
@@ -146,7 +146,7 @@ public partial class SettingsPanelApp : SettingsPanelBase
private HashSet GetSelectedPreviewFeatures()
{
- var enabled = this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures.Where(x => !x.IsReleased()).ToHashSet();
+ var enabled = this.SettingsManager.ConfigurationData.App.EnabledPreviewFeatures.Where(x => !x.IsReleased).ToHashSet();
enabled.UnionWith(this.GetPluginContributedPreviewFeatures());
return enabled;
}
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor
index c2bbff809..b1311e156 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor
@@ -35,7 +35,7 @@
- @context.ToName()
+ @context.Name
@@ -54,7 +54,7 @@
continue;
- @confidenceLevel.GetName()
+ @confidenceLevel.Name
}
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor.cs
index ec3674a22..b416ec6ce 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor.cs
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelConfidence.razor.cs
@@ -8,7 +8,7 @@ public partial class SettingsPanelConfidence : SettingsPanelBase
private string GetCurrentConfidenceLevelName(LLMProviders llmProvider)
{
if (this.TryGetShownConfidenceLevel(llmProvider, out var level))
- return level.GetName();
+ return level.Name;
return T("Not yet configured");
}
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelEmbeddings.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelEmbeddings.razor
index e7a8c8546..792462a98 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelEmbeddings.razor
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelEmbeddings.razor
@@ -32,7 +32,7 @@
@@ -74,7 +74,7 @@
else
{
-
+
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelProviders.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelProviders.razor
index 86343dd01..313baa4d9 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelProviders.razor
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelProviders.razor
@@ -25,7 +25,7 @@
@@ -63,7 +63,7 @@
else
{
-
+
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelTools.razor.cs b/app/MindWork AI Studio/Components/Settings/SettingsPanelTools.razor.cs
index 0acbeea6a..06235b98b 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelTools.razor.cs
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelTools.razor.cs
@@ -107,7 +107,7 @@ public partial class SettingsPanelTools : SettingsPanelBase
// minimum confidence; the long wording wraps into a tall block there:
private string GetConfidenceLevelName(ConfidenceLevel confidenceLevel) => confidenceLevel is ConfidenceLevel.NONE
? this.T("No minimum")
- : confidenceLevel.GetName();
+ : confidenceLevel.Name;
private string SetCurrentConfidenceLevelColorStyle(ToolCatalogItem item) =>
$"background-color: {GetMinimumProviderConfidence(item).GetColor(this.SettingsManager)};";
diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelTranscription.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelTranscription.razor
index 537660009..b1f841e08 100644
--- a/app/MindWork AI Studio/Components/Settings/SettingsPanelTranscription.razor
+++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelTranscription.razor
@@ -29,7 +29,7 @@
@@ -68,7 +68,7 @@
else
{
-
+
diff --git a/app/MindWork AI Studio/Components/SourcePassageView.razor.cs b/app/MindWork AI Studio/Components/SourcePassageView.razor.cs
index 22c906129..5904a9d3d 100644
--- a/app/MindWork AI Studio/Components/SourcePassageView.razor.cs
+++ b/app/MindWork AI Studio/Components/SourcePassageView.razor.cs
@@ -187,7 +187,7 @@ public partial class SourcePassageView : MSGComponentBase
///
private string GetTranscriptLabel()
{
- if (!this.Passage.IsTranscript())
+ if (!this.Passage.IsTranscript)
return string.Empty;
var extension = Path.GetExtension(this.Passage.Path);
diff --git a/app/MindWork AI Studio/Components/ToolSelection.razor.cs b/app/MindWork AI Studio/Components/ToolSelection.razor.cs
index b8d9a9c04..74d8f6034 100644
--- a/app/MindWork AI Studio/Components/ToolSelection.razor.cs
+++ b/app/MindWork AI Studio/Components/ToolSelection.razor.cs
@@ -194,8 +194,8 @@ public partial class ToolSelection : MSGComponentBase
return string.Format(
this.T("This tool requires provider confidence {0}. The selected provider has {1}."),
- GetMinimumProviderConfidence(item).GetName(),
- this.ProviderConfidence.GetName());
+ GetMinimumProviderConfidence(item).Name,
+ this.ProviderConfidence.Name);
}
///
diff --git a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor
index 2fd23fc0a..c08f5b260 100644
--- a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor
@@ -219,7 +219,7 @@
else
{
- @this.audit.Level.GetName(): @this.audit.Summary
+ @this.audit.Level.Name: @this.audit.Summary
@if (this.IsActivationBlockedBySettings)
@@ -277,7 +277,7 @@
@finding.Category
- @finding.Severity.GetName()
+ @finding.Severity.Name
@finding.Location
@finding.Description
diff --git a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs
index 88af50046..d8f45086e 100644
--- a/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs
+++ b/app/MindWork AI Studio/Dialogs/AssistantPluginAuditDialog.razor.cs
@@ -64,13 +64,13 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
private string ProviderLabel => this.EffectiveProvider == AIStudio.Settings.Provider.NONE
? T("No model configured")
- : $"{this.EffectiveProvider.InstanceName} ({this.EffectiveProvider.UsedLLMProvider.ToName()})";
+ : $"{this.EffectiveProvider.InstanceName} ({this.EffectiveProvider.UsedLLMProvider.Name})";
private DataAssistantPluginAudit AuditSettings => this.SettingsManager.ConfigurationData.AssistantPluginAudit;
private AssistantAuditLevel MinimumLevel => this.SettingsManager.ConfigurationData.AssistantPluginAudit.MinimumLevel;
- private string MinimumLevelLabel => this.MinimumLevel.GetName();
+ private string MinimumLevelLabel => this.MinimumLevel.Name;
private bool CanRunAudit => this.plugin is not null && this.EffectiveProvider != AIStudio.Settings.Provider.NONE && !this.isAuditing && !this.securityState.IsEnterpriseApproved;
@@ -200,7 +200,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
string.Format(
T("The assistant plugin '{0}' was audited with the level '{1}', which is below the required safety level '{2}'. Your current settings still allow activation, but this may be unsafe. Do you really want to enable this plugin?"),
this.plugin?.Name ?? T("Unknown plugin"),
- this.audit?.Level.GetName() ?? T("Unknown"),
+ this.audit?.Level.Name ?? T("Unknown"),
this.MinimumLevelLabel)
},
};
@@ -254,7 +254,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
{
Text = this.GetComponentTreeItemText(component),
Caption = this.GetComponentTreeItemCaption(component, index),
- Icon = component.Type.GetIcon(),
+ Icon = component.Type.Icon,
Expandable = children.Count > 0,
},
Children = children,
@@ -460,7 +460,7 @@ public partial class AssistantPluginAuditDialog : MSGComponentBase
private string GetComponentTreeItemText(IAssistantComponent component)
{
- var type = component.Type.GetDisplayName();
+ var type = component.Type.DisplayName;
if (component is INamedAssistantComponent named && !string.IsNullOrWhiteSpace(named.Name))
return $"{type}: {named.Name}";
diff --git a/app/MindWork AI Studio/Dialogs/ChatTemplateDialog.razor b/app/MindWork AI Studio/Dialogs/ChatTemplateDialog.razor
index c577262e5..8c14ae94e 100644
--- a/app/MindWork AI Studio/Dialogs/ChatTemplateDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/ChatTemplateDialog.razor
@@ -253,7 +253,7 @@
- @context.Role.ToChatTemplateName()
+ @context.Role.ChatTemplateName
@switch(context.Content)
@@ -287,7 +287,7 @@
@if (this.IsReadOnly)
{
- @context.Role.ToChatTemplateName()
+ @context.Role.ChatTemplateName
}
else
{
@@ -295,7 +295,7 @@
@foreach (var role in ChatRoles.ChatTemplateRoles())
{
- @role.ToChatTemplateName()
+ @role.ChatTemplateName
}
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor
index 74395a9e9..5be0ed1c4 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1Dialog.razor
@@ -72,11 +72,11 @@
@if(this.availableAuthMethods.Count > 0 || this.dataAuthMethod != default)
{
-
+
@foreach (var authMethod in this.availableAuthMethods)
{
- @authMethod.DisplayName()
+ @authMethod.DisplayName
}
@@ -116,11 +116,11 @@
}
-
+
@foreach (var policy in Enum.GetValues())
{
- @policy.ToSelectionText()
+ @policy.SelectionText
}
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor
index a3966f939..846353231 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor
@@ -25,8 +25,8 @@
}
-
-
+
+
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor.cs b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor.cs
index 1b7568422..107874585 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor.cs
+++ b/app/MindWork AI Studio/Dialogs/DataSourceERI_V1InfoDialog.razor.cs
@@ -56,7 +56,7 @@ public partial class DataSourceERI_V1InfoDialog : MSGComponentBase, ISecretId
///
/// The level which applies, including what the organization or the security policy demands.
///
- private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).GetName();
+ private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).Name;
private async Task<(bool Success, DataSourceERI_V1 EffectiveDataSource)> CreateEffectiveDataSource()
{
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor
index d296eac82..05be158ff 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor
@@ -124,7 +124,7 @@
@T("Data sharing")
-
+
@foreach (var level in this.ConfidenceLevels)
{
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor
index 340edf6cb..536df567e 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor
@@ -43,7 +43,7 @@
}
-
+
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor.cs b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor.cs
index 36879e4de..6fcabb6d8 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor.cs
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryInfoDialog.razor.cs
@@ -65,7 +65,7 @@ public partial class DataSourceLocalDirectoryInfoDialog : MSGComponentBase
///
/// The level which applies, including what the organization demands.
///
- private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).GetName();
+ private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).Name;
///
/// Takes the next file which the directory scan found.
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor
index bb6b0382a..39e638f80 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor
@@ -86,7 +86,7 @@
@T("Data sharing")
-
+
@foreach (var level in this.ConfidenceLevels)
{
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor
index 34dd0de63..b8cda3fbe 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor
@@ -37,7 +37,7 @@
}
-
+
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor.cs b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor.cs
index 8dba0751a..ce1c967c0 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor.cs
+++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileInfoDialog.razor.cs
@@ -37,7 +37,7 @@ public partial class DataSourceLocalFileInfoDialog : MSGComponentBase
///
/// The level which applies, including what the organization demands.
///
- private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).GetName();
+ private string OutboundDataRestrictionName => this.DataSource.GetEffectiveOutboundDataRestriction(this.SettingsManager.ConfigurationData.DataSourceSecurity.MinimumOutboundDataRestriction).Name;
private void Close() => this.MudDialog.Close();
}
\ No newline at end of file
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor
index 541f60f41..705962457 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor
@@ -27,7 +27,7 @@
{
- @MailboxConnectionFailure.SERVER_NOT_ALLOWED.GetDescription()
+ @MailboxConnectionFailure.SERVER_NOT_ALLOWED.Description
}
@@ -164,7 +164,7 @@
}
- @string.Format(T("Username: {0}"), this.selectedTemplate.UsernameFormat.GetDescription())
+ @string.Format(T("Username: {0}"), this.selectedTemplate.UsernameFormat.Description)
@string.Format(T("Instructions of {0}"), this.selectedTemplate.Name)
@@ -214,7 +214,7 @@
Variant="Variant.Outlined"/>
-
+
@foreach (var transportSecurity in ConfigurationSelectDataFactory.GetMailboxTransportSecurityData())
{
@@ -301,7 +301,7 @@
}
-
+
@foreach (var maxAge in ConfigurationSelectDataFactory.GetMailboxMaxAgeData())
{
diff --git a/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor.cs b/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor.cs
index aa060f2a5..ee31dc21c 100644
--- a/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor.cs
+++ b/app/MindWork AI Studio/Dialogs/DataSourceMailboxDialog.razor.cs
@@ -339,7 +339,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
// Without a root folder, the sent mails and the drafts belong to the whole mailbox anyway:
private bool HasRootFolder => !string.IsNullOrEmpty(this.dataRootFolder);
- private string ConfidenceLevelText => this.dataConfidenceLevel is ConfidenceLevel.NONE ? string.Empty : this.dataConfidenceLevel.GetName();
+ private string ConfidenceLevelText => this.dataConfidenceLevel is ConfidenceLevel.NONE ? string.Empty : this.dataConfidenceLevel.Name;
private OutboundDataRestriction MinimumOutboundDataRestriction => this.SettingsManager.ConfigurationData.MailboxSettings.MinimumOutboundDataRestriction;
@@ -353,7 +353,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
if (this.testedSettings != this.CurrentSettings)
return this.RequiresConnectionTest ? T("Not tested yet.") : string.Empty;
- return this.testFailure is { } failure ? failure.GetDescription() : T("Connection successful.");
+ return this.testFailure is { } failure ? failure.Description : T("Connection successful.");
}
}
@@ -493,7 +493,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
// Who switches the encryption usually means the port that comes with it, unless they
// entered a port of their own:
//
- if (this.dataPort == this.dataTransportSecurity.GetUsualPort() && transportSecurity.GetUsualPort() is { } usualPort)
+ if (this.dataPort == this.dataTransportSecurity.UsualPort && transportSecurity.UsualPort is { } usualPort)
this.dataPort = usualPort;
this.dataTransportSecurity = transportSecurity;
@@ -565,7 +565,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
serverAnswer = e.InnerException?.Message ?? string.Empty;
this.folderIssue = e.Failure is MailboxConnectionFailure.SERVER_ERROR
? T("The server did not create the folder. Perhaps a folder of this name exists already.")
- : e.Failure.GetDescription();
+ : e.Failure.Description;
this.Logger.LogWarning($"Creating a folder in the mailbox '{this.dataId}' failed: {e.Failure} ({e.InnerException?.GetType().Name ?? "no inner exception"}).");
return null;
@@ -577,7 +577,7 @@ public partial class DataSourceMailboxDialog : MSGComponentBase
}
catch (OperationCanceledException)
{
- this.folderIssue = MailboxConnectionFailure.NETWORK_UNAVAILABLE.GetDescription();
+ this.folderIssue = MailboxConnectionFailure.NETWORK_UNAVAILABLE.Description;
return null;
}
finally
diff --git a/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor b/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor
index 0ed45e073..35a7faf06 100644
--- a/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor
+++ b/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor
@@ -17,15 +17,15 @@
@foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders)))
{
- if (provider.ProvideEmbeddingAPI() || provider is LLMProviders.NONE)
+ if (provider.ProvideEmbeddingAPI || provider is LLMProviders.NONE)
{
-
+
}
}
-
+
@T("Create account")