mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 02:55:49 +00:00
Improved the assistants page with categories for assistant plugins (#1211)
This commit is contained in:
1 parent
ef059ffd15
commit
1db0f85898
74 files changed
+3392
-380
No files matched your search
@@ -152,5 +152,11 @@ public sealed class AssistantLaunchService(SettingsManager settingsManager, Assi
|
||||
.OrderBy(destination => destination.Name.Length)
|
||||
.ToArray();
|
||||
|
||||
private bool IsVisible(Components destination) => settingsManager.IsAssistantVisible(destination, withLogging: false, requiredPreviewFeature: destination.RequiredPreviewFeature);
|
||||
/// <summary>
|
||||
/// Whether the menu offers a destination: the user sees the assistant at all, and its category on the
|
||||
/// assistants page, collapsed or hidden, still offers it.
|
||||
/// </summary>
|
||||
private bool IsVisible(Components destination) =>
|
||||
settingsManager.IsAssistantVisible(destination, withLogging: false, requiredPreviewFeature: destination.RequiredPreviewFeature) &&
|
||||
settingsManager.ConfigurationData.AssistantsPage.IsOfferingAssistant(destination);
|
||||
}
|
||||
Reference in new issue
Block a user