22 references to HelpDialogTab
Aspire.Dashboard (11)
Components\Dialogs\HelpDialog.razor.cs (8)
38
private
HelpDialogTab
_activeTab;
44
public
HelpDialogTab
Content { get; set; } =
HelpDialogTab
.KeyboardShortcuts;
78
_activeTab = Content is
HelpDialogTab
.AIAgents && !IsAgentHelpEnabled ?
HelpDialogTab
.Documentation : Content;
81
private static string GetTabId(
HelpDialogTab
tab) => $"{TabIdPrefix}{tab}";
87
&& Enum.TryParse<
HelpDialogTab
>(id[TabIdPrefix.Length..], out
var
activeTab))
Components\Layout\MainLayout.razor.cs (3)
413
private Task LaunchHelpAsync() => LaunchHelpAsync(GetDefaultReturnFocusElementId(HelpButtonId),
HelpDialogTab
.KeyboardShortcuts);
416
public Task LaunchAIAgentsAsync() => LaunchHelpAsync(GetDefaultReturnFocusElementId(HelpButtonId),
HelpDialogTab
.AIAgents);
418
private async Task LaunchHelpAsync(string? returnFocusElementId,
HelpDialogTab
tab)
Aspire.Dashboard.Components.Tests (11)
Dialogs\HelpDialogTests.cs (11)
62
[InlineData(
HelpDialogTab
.Documentation)]
63
[InlineData(
HelpDialogTab
.KeyboardShortcuts)]
64
[InlineData(
HelpDialogTab
.AIAgents)]
65
public void Render_OpensOnRequestedTab(
HelpDialogTab
tab)
75
var cut = RenderHelpDialog(content:
HelpDialogTab
.AIAgents, disableAgentHelp: true);
80
Assert.Equal($"help-tab-{
HelpDialogTab
.Documentation}", cut.FindComponent<FluentTabs>().Instance.ActiveTabId);
102
var cut = RenderHelpDialog(content:
HelpDialogTab
.Documentation);
115
var cut = RenderHelpDialog(content:
HelpDialogTab
.Documentation, disableResourceGraph: disableResourceGraph, isDashboardClientEnabled: !disableResourceService);
135
var cut = RenderHelpDialog(content:
HelpDialogTab
.Documentation, sessionStorage: sessionStorage);
145
private IRenderedComponent<HelpDialog> RenderHelpDialog(
HelpDialogTab
content =
HelpDialogTab
.KeyboardShortcuts, bool disableAgentHelp = false, bool disableResourceGraph = false, bool isDashboardClientEnabled = true, TestSessionStorage? sessionStorage = null, AspireKeyboardShortcut[]? subscribedShortcuts = null)