using AIStudio.Tools.PluginSystem; using Microsoft.AspNetCore.Components; namespace AIStudio.Dialogs.Settings; /// /// The settings of the assistants page: what happens to the assistants of collapsed and hidden categories, /// and which categories the page shows. /// public partial class SettingsDialogAssistantsPage : SettingsDialogBase { /// /// The categories the dialog offers to show or hide, in the order of the page. /// /// /// The caller selects them with AssistantPageSections.SelectForSettings. The list stays the same while /// the dialog is open, so that a category the user hides here keeps its switch. /// [Parameter] public IReadOnlyList Categories { get; set; } = []; private string CollapsedCategoriesHelp => TA("""Collapsing a category keeps the assistants page tidy. Choose whether AI Studio keeps offering its assistants elsewhere, e.g., in the "Send to ..." menu."""); private string HiddenCategoriesHelp => TA("""Hiding a category says that you do not need its assistants. Choose whether AI Studio still offers them elsewhere, e.g., in the "Send to ..." menu."""); }