diff --git a/app/MindWork AI Studio/Components/DataSourceSelection.razor b/app/MindWork AI Studio/Components/DataSourceSelection.razor
index ac8acf6d..f99aa6fa 100644
--- a/app/MindWork AI Studio/Components/DataSourceSelection.razor
+++ b/app/MindWork AI Studio/Components/DataSourceSelection.razor
@@ -69,24 +69,29 @@
}
- @if (this.aiBasedSourceSelection is false || this.DataSourcesAISelected.Count == 0)
+ @switch (this.aiBasedSourceSelection)
{
-
- this.SelectionChanged(x))" Style="max-height: 14em;">
- @foreach (var source in this.availableDataSources)
- {
-
- @source.Name
-
- }
-
-
- }
- else
- {
-
-
-
+ case true when this.availableDataSources.Count == 0:
+
+ Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
+
+ break;
+
+ case true when this.DataSourcesAISelected.Count == 0:
+
+ The AI evaluates each of your inputs to determine whether and which data sources are necessary. Currently, the AI has not selected any source.
+
+ break;
+
+ case false when this.availableDataSources.Count == 0:
+
+ Your data sources cannot be used with the LLM provider you selected due to data privacy, or they are currently unavailable.
+
+ break;
+
+ case false:
+
+ this.SelectionChanged(x))" Style="max-height: 14em;">
@foreach (var source in this.availableDataSources)
{
@@ -94,27 +99,42 @@
}
-
-
-
- @foreach (var source in this.DataSourcesAISelected)
- {
-
-
-
- @source.DataSource.Name
-
+
+ break;
+
+ case true:
+
+
+
+ @foreach (var source in this.availableDataSources)
+ {
+
+ @source.Name
+
+ }
+
+
+
+
+ @foreach (var source in this.DataSourcesAISelected)
+ {
+
+
+
+ @source.DataSource.Name
+
-
-
- @this.GetAIReasoning(source)
-
-
-
- }
-
-
-
+
+
+ @(this.GetAIReasoning(source))
+
+
+
+ }
+
+
+
+ break;
}
}
}
diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.37.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.37.md
index 54de8040..73263072 100644
--- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.37.md
+++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.37.md
@@ -1,3 +1,4 @@
# v0.9.37, build 212 (2025-03-16 xx:xx UTC)
- Improved the experience of the data selection component when no data sources are configured yet.
+- Improved the data source selection behavior when no data source is available or selected, for whatever reason.
- Moved the data source settings into the data selection component.
\ No newline at end of file