163 references to Dialogs
Aspire.Dashboard (155)
Components\Controls\Chart\ChartBase.cs (1)
38public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\Chart\MetricTable.razor.cs (3)
105Title = DialogsLoc[nameof(Dashboard.Resources.Dialogs.ExemplarsDialogTitle)], 106PrimaryAction = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)], 107DismissTitle = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)],
Components\Controls\GenAIItemTitle.razor.cs (1)
19public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
31public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (1)
33public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\ExemplarsDialog.razor.cs (1)
58: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Dialogs\GenAIVisualizerDialog.razor.cs (7)
46public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 178GenAIItemType.SystemMessage => Loc[nameof(Resources.Dialogs.GenAIMessageTitleSystem)], 179GenAIItemType.UserMessage => Loc[nameof(Resources.Dialogs.GenAIMessageTitleUser)], 180GenAIItemType.AssistantMessage or GenAIItemType.OutputMessage => Loc[nameof(Resources.Dialogs.GenAIMessageTitleAssistant)], 181GenAIItemType.ToolMessage => Loc[nameof(Resources.Dialogs.GenAIMessageTitleTool)], 222IStringLocalizer<Resources.Dialogs> dialogsLoc, OtlpSpan span, long? selectedLogEntryId, 230DismissTitle = dialogsLoc[nameof(Resources.Dialogs.DialogCloseButtonText)],
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
27public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\TextVisualizerDialog.razor.cs (5)
53new SelectViewModel<string> { Id = DashboardUIHelpers.PlaintextFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogPlaintextFormat)] }, 54new SelectViewModel<string> { Id = DashboardUIHelpers.JsonFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogJsonFormat)] }, 55new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] } 92IStringLocalizer<Resources.Dialogs> dialogsLoc, string valueDescription, string value, bool containsSecret) 98DismissTitle = dialogsLoc[nameof(Resources.Dialogs.DialogCloseButtonText)],
Components\Interactions\InteractionsProvider.cs (5)
77public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 526DismissTitle = Loc[nameof(Resources.Dialogs.DialogCloseButtonText)], 544return Loc[nameof(Resources.Dialogs.InteractionButtonClose)]; 547return Loc[nameof(Resources.Dialogs.InteractionButtonOk)]; 559: Loc[nameof(Resources.Dialogs.InteractionButtonCancel)];
Components\Layout\AspirePageContentLayout.razor.cs (1)
83DismissTitle = DialogsLoc[nameof(Resources.Dialogs.DialogCloseButtonText)],
Components\Layout\MainLayout.razor.cs (3)
49public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 177DismissTitle = DialogsLoc[nameof(Resources.Dialogs.DialogCloseButtonText)], 213DismissTitle = DialogsLoc[nameof(Resources.Dialogs.DialogCloseButtonText)],
Components\Pages\StructuredLogs.razor.cs (1)
362DismissTitle = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)],
Components\Pages\TraceDetail.razor.cs (1)
94public required IStringLocalizer<Aspire.Dashboard.Resources.Dialogs> DialogsLoc { get; init; }
Components\Pages\Traces.razor.cs (1)
366DismissTitle = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)],
Components_Controls_ExceptionDetails_razor.g.cs (1)
315IStringLocalizer<Dashboard.Resources.Dialogs>
Components_Controls_GridValue_razor.g.cs (2)
528DialogsLoc[nameof(Dialogs.OpenInTextVisualizer)] 704IStringLocalizer<Dialogs>
Components_Controls_SpanDetails_razor.g.cs (1)
2338IStringLocalizer<Dialogs>
Components_Dialogs_AssistantSidebarDialog_razor.g.cs (4)
200using Dialogs = Aspire.Dashboard.Resources.Dialogs 497DialogsLoc[nameof(Dialogs.DialogCloseButtonText)] 514DialogsLoc[nameof(Dialogs.DialogCloseButtonText)] 603IStringLocalizer<Dialogs>
Components_Dialogs_ExemplarsDialog_razor.g.cs (6)
188using Dialogs = Aspire.Dashboard.Resources.Dialogs 275Loc[nameof(Dialogs.ExemplarsDialogTraceColumnHeader)] 322Loc[nameof(Dialogs.ExemplarsDialogTimestampColumnHeader)] 358Loc[nameof(Dialogs.ExemplarsDialogValueColumnHeader)] 378Loc[nameof(Dialogs.ExemplarsDialogDetailsColumnHeader)] 457IStringLocalizer<Dialogs>
Components_Dialogs_FilterDialog_razor.g.cs (13)
279Loc[nameof(Dialogs.FilterDialogFieldPlaceholder)] 296Loc[nameof(Dialogs.FilterDialogParameterInputLabel)] 473Loc[nameof(Dialogs.FilterDialogConditionInputLabel)] 653Loc[nameof(Dialogs.FilterDialogTextValuePlaceholder)] 899Loc[nameof(Dialogs.FilterDialogDisableFilterButtonText)] 908Loc[nameof(Dialogs.FilterDialogDisableFilterButtonText)] 983Loc[nameof(Dialogs.FilterDialogDisableFilterButtonText)] 992Loc[nameof(Dialogs.FilterDialogDisableFilterButtonText)] 1065Loc[nameof(Dialogs.FilterDialogRemoveFilterButtonText)] 1074Loc[nameof(Dialogs.FilterDialogRemoveFilterButtonText)] 1179__builder5.AddContent(116, Loc[nameof(Dialogs.FilterDialogCancelButtonText)] 1219__builder5.AddContent(122, Loc[nameof(Dialogs.FilterDialogApplyFilterButtonText)] 1261IStringLocalizer<Dialogs>
Components_Dialogs_GenAIVisualizerDialog_razor.g.cs (20)
371__builder3.AddContent(25, Loc[nameof(Dialogs.GenAIPreviousButtonText)] 453__builder3.AddContent(33, Loc[nameof(Dialogs.GenAINextButtonText)] 778Loc[nameof(Dialogs.GenAIPreviewTabText)] 824Loc[nameof(Dialogs.GenAIRawTabText)] 918Loc[nameof(Dialogs.GenAIRawTabText)] 1543var tokenText = tokenTotal == null ? Loc[nameof(Dialogs.GenAINAText)] : tokenTotal.Value.ToString(CultureInfo.CurrentCulture); 1547tokenTooltip = Loc[nameof(Dialogs.GenAINAText)]; 1551tokenTooltip = string.Format(CultureInfo.CurrentCulture, Loc[nameof(Dialogs.GenAIInputTokensText)], Content.InputTokens ?? 0) + 1553string.Format(CultureInfo.CurrentCulture, Loc[nameof(Dialogs.GenAIOutputTokensText)], Content.OutputTokens ?? 0); 1568__builder3.AddContent(156, Loc[nameof(Dialogs.GenAIDurationLabel)] 1601__builder3.AddContent(165, Loc[nameof(Dialogs.GenAITokensLabel)] 1714Loc[nameof(Dialogs.GenAIInputOutputTabText)] 1760Loc[nameof(Dialogs.GenAIDetailsTabText)] 1815__builder3.AddContent(193, Loc[nameof(Dialogs.GenAIDisplayErrorMessageText)] 1861__builder3.AddContent(202, (MarkupString)string.Format(CultureInfo.CurrentCulture, Loc[nameof(Dialogs.GenAINoMessageContentMoreInformationMessage)], "https://aka.ms/aspire/telemetry-ai-content") 1887__builder3.AddContent(203, RenderMessageSection(Loc[nameof(Dialogs.GenAIInputHeaderText)], Content.InputMessages, Content.NoMessageContent) 1904__builder3.AddContent(204, RenderMessageSection(Loc[nameof(Dialogs.GenAIOutputHeaderText)], Content.OutputMessages, Content.NoMessageContent) 1931__builder3.AddContent(205, RenderMessageSection(Loc[nameof(Dialogs.GenAIErrorHeaderText)], [errorItem], Content.NoMessageContent) 2296__builder2.AddContent(244, Loc[nameof(Dialogs.GenAINoMessageContent)] 2327__builder2.AddContent(247, Loc[nameof(Dialogs.GenAINoMessages)]
Components_Dialogs_HelpDialog_razor.g.cs (18)
232__builder2.AddContent(7, Loc[nameof(Dialogs.HelpDialogGetHelpLinkText)] 245__builder.AddContent(10, Loc[nameof(Dialogs.HelpDialogKeyboardShortcutsTitle)] 563new(Loc[nameof(Dialogs.HelpDialogCategoryPanels)], 565new KeyboardShortcut(["+"], Loc[nameof(Dialogs.HelpDialogIncreasePanelSize)]), 566new KeyboardShortcut(["-"], Loc[nameof(Dialogs.HelpDialogDecreasePanelSize)]), 567new KeyboardShortcut(["shift", "r"], Loc[nameof(Dialogs.HelpDialogResetPanelSize)]), 568new KeyboardShortcut(["shift", "t"], Loc[nameof(Dialogs.HelpDialogTogglePanelOrientation)]), 569new KeyboardShortcut(["shift", "x"], Loc[nameof(Dialogs.HelpDialogTogglePanelOpen)]), 571new(Loc[nameof(Dialogs.HelpDialogCategoryPageNavigation)], 573new KeyboardShortcut(["r"], Loc[nameof(Dialogs.HelpDialogGoToResources)]), 574new KeyboardShortcut(["c"], Loc[nameof(Dialogs.HelpDialogGoToConsoleLogs)]), 575new KeyboardShortcut(["s"], Loc[nameof(Dialogs.HelpDialogGoToStructuredLogs)]), 576new KeyboardShortcut(["t"], Loc[nameof(Dialogs.HelpDialogGoToTraces)]), 577new KeyboardShortcut(["m"], Loc[nameof(Dialogs.HelpDialogGoToMetrics)]), 579new(Loc[nameof(Dialogs.HelpDialogCategoryNavigation)], 581new KeyboardShortcut(["?"], Loc[nameof(Dialogs.HelpDialogGoToHelp)]), 582new KeyboardShortcut(["shift", "s"], Loc[nameof(Dialogs.HelpDialogGoToSettings)]) 593IStringLocalizer<Dialogs>
Components_Dialogs_InteractionsInputDialog_razor.g.cs (1)
200using Dialogs = Aspire.Dashboard.Resources.Dialogs
Components_Dialogs_SettingsDialog_razor.g.cs (16)
253Loc[nameof(Dialogs.SettingsDialogTheme)] 324__builder5.AddContent(18, Loc[nameof(Dialogs.SettingsDialogSystemTheme)] 344__builder5.AddContent(23, Loc[nameof(Dialogs.SettingsDialogLightTheme)] 364__builder5.AddContent(28, Loc[nameof(Dialogs.SettingsDialogDarkTheme)] 432Loc[nameof(Dialogs.SettingsDialogLanguage)] 540__builder3.AddContent(45, Loc[nameof(Dialogs.SettingsDialogLanguagePageReloads)] 554__builder3.AddContent(50, Loc[nameof(Dialogs.SettingsDialogDashboardLogsAndTelemetry)] 609Loc[nameof(Dialogs.SettingsRemoveAllButtonText)] 618Loc[nameof(Dialogs.SettingsRemoveAllButtonText)] 627__builder4.AddContent(59, Loc[nameof(Dialogs.SettingsRemoveAllButtonText)] 660__builder3.AddContent(63, Loc[nameof(Dialogs.SettingsDialogTelemetryEnabledInfo)] 673Loc[nameof(Dialogs.SettingsDialogTelemetryInfoLinkTooltip)] 681__builder3.AddContent(69, Loc[nameof(Dialogs.SettingsDialogTelemetryInfoLinkText)] 703__builder3.AddContent(73, string.Format(Loc[nameof(Dialogs.SettingsDialogVersion)], VersionHelpers.DashboardDisplayVersion) 714__builder3.AddContent(76, string.Format(Loc[nameof(Dialogs.SettingsDialogDotNetRuntimeVersion)], System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription) 733IStringLocalizer<Dialogs>
Components_Dialogs_TextVisualizerDialog_razor.g.cs (6)
314_selectedFormat ?? Loc[nameof(Dialogs.TextVisualizerSelectFormatType)] 323Loc[nameof(Dialogs.TextVisualizerSelectFormatType)] 692__builder2.AddContent(79, Loc[nameof(Dialogs.TextVisualizerSecretWarningTitle)] 702__builder2.AddContent(81, Loc[nameof(Dialogs.TextVisualizerSecretWarningDescription)] 748__builder3.AddContent(86, Loc[nameof(Dialogs.TextVisualizerSecretWarningAcknowledge)] 812IStringLocalizer<Dialogs>
Components_Layout_AspirePageContentLayout_razor.g.cs (1)
705IStringLocalizer<Dialogs>
Components_Layout_MainLayout_razor.g.cs (1)
892DialogsLoc[nameof(Dialogs.HelpDialogCategoryNavigation)]
Components_Pages_StructuredLogs_razor.g.cs (1)
2030IStringLocalizer<Dialogs>
Components_Pages_Traces_razor.g.cs (1)
2195IStringLocalizer<Dialogs>
Model\GenAI\GenAIItemViewModel.cs (12)
32public BadgeDetail GetCategoryBadge(IStringLocalizer<Dialogs> loc) 36return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryStatus)], "output", s_errorIcon); 42return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolCalls)], "output", s_toolCallsIcon); 46return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryOutput)], "output", s_messageIcon); 51return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolCalls)], "tool-calls", s_toolCallsIcon); 54return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryMessage)], "message", s_messageIcon); 57public BadgeDetail GetTitleBadge(IStringLocalizer<Dialogs> loc) 61GenAIItemType.SystemMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleSystem)], "system", s_systemIcon), 62GenAIItemType.UserMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleUser)], "user", s_personIcon), 63GenAIItemType.AssistantMessage or GenAIItemType.OutputMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleAssistant)], "assistant", s_personIcon), 64GenAIItemType.ToolMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleTool)], "tool", s_toolIcon), 65GenAIItemType.Error => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleError)], "error", s_cloudErrorIcon),
Model\Otlp\FilterDialogFormModel.cs (8)
11[Required(ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldRequired))] 14[Required(ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldRequired))] 19[Required(ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldRequired))] 20[MaxLength(1024, ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldTooLong))]
Model\TraceLinkHelpers.cs (4)
23IStringLocalizer<Dialogs> loc, 28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)), 40IStringLocalizer<Dialogs> loc, 62SecondaryAction = loc[nameof(Dialogs.OpenSpanDialogCancelButtonText)]
Resources\Dialogs.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.Dialogs", typeof(Dialogs).Assembly);
Utils\FilterHelpers.cs (4)
27IStringLocalizer<Dialogs> dialogsLoc, 52Text = dialogsLoc[nameof(Dialogs.FilterDialogDisableAll)], 69Text = dialogsLoc[nameof(Dialogs.FilterDialogEnableAll)], 85Text = dialogsLoc[nameof(Dialogs.SettingsRemoveAllButtonText)],
Aspire.Dashboard.Components.Tests (2)
Controls\GenAIVisualizerDialogTests.cs (2)
41dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(), 109dialogsLoc: Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(),
Aspire.Dashboard.Tests (6)
Integration\Playwright\AppBarTests.cs (6)
30await SetAndVerifyTheme(Dialogs.SettingsDialogSystemTheme, null).DefaultTimeout(); // don't guess system theme 31await SetAndVerifyTheme(Dialogs.SettingsDialogLightTheme, "light").DefaultTimeout(); 32await SetAndVerifyTheme(Dialogs.SettingsDialogDarkTheme, "dark").DefaultTimeout(); 76await SetAndVerifyTheme(Dialogs.SettingsDialogSystemTheme, null).DefaultTimeout(); // don't guess system theme 77await SetAndVerifyTheme(Dialogs.SettingsDialogLightTheme, "light").DefaultTimeout(); 78await SetAndVerifyTheme(Dialogs.SettingsDialogDarkTheme, "dark").DefaultTimeout();