diff --git a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor index 01405125..6ec7afad 100644 --- a/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor +++ b/app/MindWork AI Studio/Assistants/LegalCheck/AssistantLegalCheck.razor @@ -1,5 +1,4 @@ @attribute [Route(Routes.ASSISTANT_LEGAL_CHECK)] -@using AIStudio.Settings.DataModel @inherits AssistantBaseCore @if (!this.SettingsManager.ConfigurationData.LegalCheck.HideWebContentReader) @@ -7,11 +6,7 @@ } -@if (PreviewFeatures.PRE_READ_PDF_2025.IsEnabled(this.SettingsManager)) -{ - -} - + \ No newline at end of file diff --git a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor index 3f49d185..277767ef 100644 --- a/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor +++ b/app/MindWork AI Studio/Assistants/TextSummarizer/AssistantTextSummarizer.razor @@ -1,5 +1,4 @@ @attribute [Route(Routes.ASSISTANT_SUMMARIZER)] -@using AIStudio.Settings.DataModel @inherits AssistantBaseCore @if (!this.SettingsManager.ConfigurationData.TextSummarizer.HideWebContentReader) @@ -7,11 +6,7 @@ } -@if (PreviewFeatures.PRE_READ_PDF_2025.IsEnabled(this.SettingsManager)) -{ - -} - + diff --git a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor index 571b408e..d7bf0e52 100644 --- a/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor +++ b/app/MindWork AI Studio/Assistants/Translation/AssistantTranslation.razor @@ -1,5 +1,4 @@ @attribute [Route(Routes.ASSISTANT_TRANSLATION)] -@using AIStudio.Settings.DataModel @inherits AssistantBaseCore @if (!this.SettingsManager.ConfigurationData.Translation.HideWebContentReader) @@ -7,11 +6,7 @@ } -@if (PreviewFeatures.PRE_READ_PDF_2025.IsEnabled(this.SettingsManager)) -{ - -} - + @if (this.liveTranslation) { diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor index 97bd672d..88eb9f9c 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor @@ -26,7 +26,7 @@ var availablePreviewFeatures = ConfigurationSelectDataFactory.GetPreviewFeaturesData(this.SettingsManager).ToList(); if (availablePreviewFeatures.Count > 0) { - + } } diff --git a/app/MindWork AI Studio/Settings/ConfigurationSelectDataFactory.cs b/app/MindWork AI Studio/Settings/ConfigurationSelectDataFactory.cs index 9d066a7a..4e461f9d 100644 --- a/app/MindWork AI Studio/Settings/ConfigurationSelectDataFactory.cs +++ b/app/MindWork AI Studio/Settings/ConfigurationSelectDataFactory.cs @@ -108,7 +108,7 @@ public static class ConfigurationSelectDataFactory public static IEnumerable> GetPreviewFeaturesData(SettingsManager settingsManager) { - foreach (var source in settingsManager.ConfigurationData.App.PreviewVisibility.GetPreviewFeatures()) + foreach (var source in settingsManager.ConfigurationData.App.PreviewVisibility.GetPreviewFeatures().Where(x => !x.IsReleased())) yield return new(source.GetPreviewDescription(), source); } diff --git a/app/MindWork AI Studio/Settings/DataModel/PreviewFeaturesExtensions.cs b/app/MindWork AI Studio/Settings/DataModel/PreviewFeaturesExtensions.cs index 79972185..e99fef96 100644 --- a/app/MindWork AI Studio/Settings/DataModel/PreviewFeaturesExtensions.cs +++ b/app/MindWork AI Studio/Settings/DataModel/PreviewFeaturesExtensions.cs @@ -17,5 +17,26 @@ public static class PreviewFeaturesExtensions _ => TB("Unknown preview feature") }; - public static bool IsEnabled(this PreviewFeatures feature, SettingsManager settingsManager) => settingsManager.ConfigurationData.App.EnabledPreviewFeatures.Contains(feature); + /// + /// Check if the preview feature is released or not. + /// + /// + /// This metadata is necessary because we cannot remove the enum values from the list. + /// Otherwise, we could not deserialize old settings files that may contain these values. + /// + /// The preview feature to check. + /// True when the preview feature is released, false otherwise. + public static bool IsReleased(this PreviewFeatures feature) => feature switch + { + PreviewFeatures.PRE_READ_PDF_2025 => true, + _ => false + }; + + public static bool IsEnabled(this PreviewFeatures feature, SettingsManager settingsManager) + { + if(feature.IsReleased()) + return true; + + return settingsManager.ConfigurationData.App.EnabledPreviewFeatures.Contains(feature); + } } \ No newline at end of file diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md index 20ef6f55..61b53dd4 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.44.md @@ -1,4 +1,5 @@ # v0.9.44, build 219 (2025-05-xx xx:xx UTC) +- Added PDF import feature: we have completed the work on the PDF import feature. Importing PDF files has been successfully tested on macOS, Linux, and Windows. The feature is now enabled for everyone. - Improved compatibility with certain Ubuntu linux versions regarding desktop integration. - Improved the table views for providers, embeddings, and profiles by displaying actions as icons with tooltips. - Improved localization code & German translation. diff --git a/metadata.txt b/metadata.txt index 8c544cbb..ca703be9 100644 --- a/metadata.txt +++ b/metadata.txt @@ -8,4 +8,4 @@ 1.8.1 ba236c4012d, release osx-arm64 -137.0.7123.0 +137.0.7123.0 \ No newline at end of file