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