Improved the assistants page with categories for assistant plugins (#1211)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-20 11:47:59 +01:00
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);
}