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

@@ -59,7 +59,18 @@ public partial class EnumSelection<T> : EnumSelectionBase where T : struct, Enum
[Parameter]
public Func<T, Task> SelectionUpdated { get; set; } = _ => Task.CompletedTask;
/// <summary>
/// Gets or sets the values to offer, in the order to show them.
/// </summary>
/// <remarks>
/// Without it, the selection offers every value of the enum in the order of its declaration.
/// </remarks>
[Parameter]
public IReadOnlyList<T>? Values { get; set; }
private IReadOnlyList<T> OfferedValues => this.Values ?? Enum.GetValues<T>();
[Inject]
private SettingsManager SettingsManager { get; set; } = null!;