From f9263b02ddcd39dfcdfa0cb9ea4e86d63de763ef Mon Sep 17 00:00:00 2001 From: Paul Koudelka Date: Mon, 10 Aug 2026 22:06:26 +0200 Subject: [PATCH] fixed the expert settings for datasource_file --- .../DataSourceLocalDirectoryDialog.razor | 15 ++- .../Dialogs/DataSourceLocalFileDialog.razor | 113 ++++++++++-------- 2 files changed, 72 insertions(+), 56 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor index 954c1f56..5f384525 100644 --- a/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor +++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalDirectoryDialog.razor @@ -138,7 +138,7 @@ ReadOnly="@true" Variant="Variant.Outlined" Adornment="Adornment.Start" - AdornmentIcon="@Icons.Material.Filled.DataObject" + AdornmentIcon="@Icons.Material.Filled.TextFields" AdornmentColor="Color.Info"/> } @@ -155,7 +155,7 @@ HelperText="@T("Maximum number of tokens per chunk for this data source. Use 0 to use the embedding provider setting.")" Variant="Variant.Outlined" Adornment="Adornment.Start" - AdornmentIcon="@Icons.Material.Filled.DataObject" + AdornmentIcon="@Icons.Material.Filled.FormatListNumbered" AdornmentColor="Color.Info"/> - + diff --git a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor index 912c016b..09b87154 100644 --- a/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor +++ b/app/MindWork AI Studio/Dialogs/DataSourceLocalFileDialog.razor @@ -99,18 +99,6 @@ @if (!string.IsNullOrWhiteSpace(this.dataEmbeddingId)) { - - if (this.SelectedCloudEmbedding) { @@ -121,45 +109,6 @@ @T("The embedding you selected runs locally or in your organization. Your data is not sent to the cloud.") } - - - - @(this.showExpertSettings ? T("Hide Expert Settings") : T("Show Expert Settings")) - - - - - @T("Optional expert settings for how this data source is split before embedding.") - - - - - } @@ -172,8 +121,66 @@ } - - + + + + @(this.showExpertSettings ? T("Hide Expert Settings") : T("Show Expert Settings")) + + + + @if (!string.IsNullOrWhiteSpace(this.dataEmbeddingId)) + { + + } + + @T("Optional expert settings for how this data source is split before embedding.") + + + + + +