mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 04:21:36 +00:00
This change enables enterprise IT departments to hide specific assistants
via configuration plugins, providing better control over which features
are available to end users.
Changes:
- Created ConfigurableAssistant enum listing all hideable assistants
- Added HiddenAssistants property to DataApp settings (HashSet<ConfigurableAssistant>)
- Added IsAssistantVisible() method in Assistants.razor.cs to check visibility
- Updated Assistants.razor to conditionally render assistants based on configuration
- Extended plugin.lua template with HiddenAssistants configuration example
Example usage in configuration plugin:
CONFIG["SETTINGS"]["DataApp.HiddenAssistants"] = { "GRAMMAR_SPELLING_ASSISTANT", "SYNONYMS_ASSISTANT" }
The setting integrates with the existing ManagedConfiguration system and
is locked when managed by a config plugin, preventing user override.
28 lines
667 B
C#
28 lines
667 B
C#
namespace AIStudio.Settings;
|
|
|
|
/// <summary>
|
|
/// Enum representing assistants that can be hidden via configuration plugin.
|
|
/// </summary>
|
|
public enum ConfigurableAssistant
|
|
{
|
|
GRAMMAR_SPELLING_ASSISTANT,
|
|
ICON_FINDER_ASSISTANT,
|
|
REWRITE_ASSISTANT,
|
|
TRANSLATION_ASSISTANT,
|
|
AGENDA_ASSISTANT,
|
|
CODING_ASSISTANT,
|
|
TEXT_SUMMARIZER_ASSISTANT,
|
|
EMAIL_ASSISTANT,
|
|
LEGAL_CHECK_ASSISTANT,
|
|
SYNONYMS_ASSISTANT,
|
|
MY_TASKS_ASSISTANT,
|
|
JOB_POSTING_ASSISTANT,
|
|
BIAS_DAY_ASSISTANT,
|
|
ERI_ASSISTANT,
|
|
DOCUMENT_ANALYSIS_ASSISTANT,
|
|
|
|
// ReSharper disable InconsistentNaming
|
|
I18N_ASSISTANT,
|
|
// ReSharper restore InconsistentNaming
|
|
}
|