mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 18:32:12 +00:00
Removed the unused category visibility helper
This commit is contained in:
parent
ac56d67e28
commit
e18557b7fa
@ -84,21 +84,4 @@ public static class AssistantVisibilityExtensions
|
|||||||
|
|
||||||
return !isHidden;
|
return !isHidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Checks if any assistant in a category should be visible.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="settingsManager">The settings manager to check configuration against.</param>
|
|
||||||
/// <param name="categoryName">The name of the assistant category (for logging purposes).</param>
|
|
||||||
/// <param name="assistants">The assistants in the category with their optional preview feature requirements.</param>
|
|
||||||
/// <returns>True if at least one assistant in the category should be visible, false otherwise.</returns>
|
|
||||||
public static bool IsAnyCategoryAssistantVisible(this SettingsManager settingsManager, string categoryName, params (Components Component, PreviewFeatures RequiredPreviewFeature)[] assistants)
|
|
||||||
{
|
|
||||||
foreach (var (component, requiredPreviewFeature) in assistants)
|
|
||||||
if (settingsManager.IsAssistantVisible(component, withLogging: false, requiredPreviewFeature: requiredPreviewFeature))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
LOGGER.LogInformation("No assistants in category '{CategoryName}' are visible.", categoryName);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,4 +18,5 @@
|
|||||||
- Fixed withdrawing a configuration your organization deployed. A configuration that declared itself as locally managed stayed on the device even after the IT department stopped deploying it, and it kept every right of an organization configuration, such as approving assistant plugins. Where a configuration is stored now decides this instead of what the configuration says about itself, so withdrawing one always takes effect. This also applies to a device that was offline while the organization changed its policy: the withdrawal is applied when AI Studio starts again.
|
- Fixed withdrawing a configuration your organization deployed. A configuration that declared itself as locally managed stayed on the device even after the IT department stopped deploying it, and it kept every right of an organization configuration, such as approving assistant plugins. Where a configuration is stored now decides this instead of what the configuration says about itself, so withdrawing one always takes effect. This also applies to a device that was offline while the organization changed its policy: the withdrawal is applied when AI Studio starts again.
|
||||||
- Fixed preview features contributed by several configuration plugins at once. Only the most recent contribution was recognized as coming from your organization, so features enabled by another configuration looked as if you had switched them on yourself. Each configuration is now tracked separately, which lets your organization enable one preview feature company-wide and another one for a single department.
|
- Fixed preview features contributed by several configuration plugins at once. Only the most recent contribution was recognized as coming from your organization, so features enabled by another configuration looked as if you had switched them on yourself. Each configuration is now tracked separately, which lets your organization enable one preview feature company-wide and another one for a single department.
|
||||||
- Fixed which configuration wins when two configuration plugins collide, e.g. by claiming the same plugin ID, by managing the same setting, or by defining the same provider. Previously, this was down to chance, so a local configuration plugin could take over parts of the configuration your IT department deployed. Configurations from your organization now always win, and every ignored attempt is reported in the log.
|
- Fixed which configuration wins when two configuration plugins collide, e.g. by claiming the same plugin ID, by managing the same setting, or by defining the same provider. Previously, this was down to chance, so a local configuration plugin could take over parts of the configuration your IT department deployed. Configurations from your organization now always win, and every ignored attempt is reported in the log.
|
||||||
|
- Fixed the assistant categories when your organization hides individual assistants. A category heading could stay visible above an empty area, and the Log Viewer could disappear together with the Localization assistant. Each heading now follows the assistants actually shown below it.
|
||||||
- Upgraded dependencies to their latest versions to improve security and stability.
|
- Upgraded dependencies to their latest versions to improve security and stability.
|
||||||
Loading…
Reference in New Issue
Block a user