301 references to Dialogs
Aspire.Dashboard (215)
Components\Controls\ApplicationSummary.razor.cs (2)
128public required IStringLocalizer<Dashboard.Resources.Dialogs> DialogsLoc { get; init; } 146new(GroupOverview.Summary, new Icons.Regular.Size20.DataUsage(), DialogsLoc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewSummary)]),
Components\Controls\Chart\MetricTable.razor.cs (3)
42public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 109Title = DialogsLoc[nameof(Dashboard.Resources.Dialogs.ExemplarsDialogTitle)], 110PrimaryAction = DialogsLoc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)],
Components\Controls\Chart\PlotlyChart.razor.cs (1)
34public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\GenAIItemTitle.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\InteractionInputField.razor.cs (2)
9using DialogsResources = Aspire.Dashboard.Resources.Dialogs; 28public required IStringLocalizer<DialogsResources> Loc { get; init; }
Components\Controls\MissingParametersPanel.razor.cs (4)
39public required IStringLocalizer<Resources.Dialogs> DialogsLoc { get; init; } 261ErrorMessage = DialogsLoc[nameof(Resources.Dialogs.InteractionFileUploadFailed)] 279DialogsLoc[nameof(Resources.Dialogs.InteractionFileExceedsMaxSize)], 302ErrorMessage = DialogsLoc[nameof(Resources.Dialogs.InteractionFileUploadFailed)]
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\TelemetryEmptyContent.razor.cs (3)
23public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 29Title = Loc[nameof(Resources.Dialogs.TelemetryHelpDialogTitle)], 30PrimaryAction = Loc[nameof(Resources.Dialogs.DialogCloseButtonText)],
Components\Controls\TreeGenAISelector.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\AIAgentsHelp.razor.cs (4)
11using DialogsLoc = Aspire.Dashboard.Resources.Dialogs; 23public required IStringLocalizer<DialogsLoc> Loc { get; init; } 39? string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogAppHostDescription)], AppHostLearnMoreUrl, InstallCliUrl) 40: string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogStandaloneDescription)], GetDashboardUrl(), StandaloneLearnMoreUrl, InstallCliUrl);
Components\Dialogs\DashboardFeedbackDialog.razor.cs (16)
29public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 66DashboardFeedbackReason.Navigation => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonNavigation)], 67DashboardFeedbackReason.FindingApplicationUrls => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonFindingApplicationUrls)], 68DashboardFeedbackReason.TelemetryWorkflow => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonTelemetryWorkflow)], 69DashboardFeedbackReason.Terminals => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonTerminals)], 70DashboardFeedbackReason.PerformanceOrAccessibility => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonPerformanceOrAccessibility)], 71DashboardFeedbackReason.MissingFeature => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonMissingFeature)], 72DashboardFeedbackReason.Other => Loc[nameof(Resources.Dialogs.DashboardFeedbackReasonOther)], 78DashboardFeedbackUsageDuration.NotSpecified => Loc[nameof(Resources.Dialogs.DashboardFeedbackDurationNotSpecified)], 79DashboardFeedbackUsageDuration.LessThanOneHour => Loc[nameof(Resources.Dialogs.DashboardFeedbackDurationLessThanOneHour)], 80DashboardFeedbackUsageDuration.OneDay => Loc[nameof(Resources.Dialogs.DashboardFeedbackDurationOneDay)], 81DashboardFeedbackUsageDuration.TwoToSevenDays => Loc[nameof(Resources.Dialogs.DashboardFeedbackDurationTwoToSevenDays)], 82DashboardFeedbackUsageDuration.MoreThanOneWeek => Loc[nameof(Resources.Dialogs.DashboardFeedbackDurationMoreThanOneWeek)], 105_status = Loc[nameof(Resources.Dialogs.DashboardFeedbackCopyFailed)]; 114_status = Loc[nameof(Resources.Dialogs.DashboardFeedbackCopyFailed)]; 120var title = $"[Dashboard feedback] {Loc[nameof(Resources.Dialogs.DashboardFeedbackMarkdownTitle)]}";
Components\Dialogs\ExemplarsDialog.razor.cs (1)
59: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
56public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\HelpDialog.razor.cs (15)
47public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 112new("learn", Loc[nameof(Resources.Dialogs.HelpDialogLearnHeading)], 115Loc[nameof(Resources.Dialogs.HelpDialogDashboardDocumentationDescription)], 118new(Loc[nameof(Resources.Dialogs.HelpDialogAspireDocumentationTitle)], 119Loc[nameof(Resources.Dialogs.HelpDialogAspireDocumentationDescription)], 123new("community", Loc[nameof(Resources.Dialogs.HelpDialogCommunityHeading)], 125new(Loc[nameof(Resources.Dialogs.HelpDialogDiscordTitle)], 126Loc[nameof(Resources.Dialogs.HelpDialogDiscordDescription)], 130Loc[nameof(Resources.Dialogs.HelpDialogRepoDescription)], 133new(Loc[nameof(Resources.Dialogs.HelpDialogReportIssueTitle)], 134Loc[nameof(Resources.Dialogs.HelpDialogReportIssueDescription)], 137new(Loc[nameof(Resources.Dialogs.HelpDialogDashboardFeedbackTitle)], 138Loc[nameof(Resources.Dialogs.HelpDialogDashboardFeedbackDescription)], 144new(Loc[nameof(Resources.Dialogs.HelpDialogGameTitle)], 145Loc[nameof(Resources.Dialogs.HelpDialogGameDescription)],
Components\Dialogs\InteractionsInputDialog.razor.cs (6)
32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 262? Loc[nameof(Resources.Dialogs.InteractionFilePlaceholderMultiple)] 263: Loc[nameof(Resources.Dialogs.InteractionFilePlaceholder)]; 294ErrorMessage = Loc[nameof(Resources.Dialogs.InteractionFileUploadFailed)] 307fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.InteractionFileExceedsMaxSize)], FormatHelpers.FormatFileSize(maxFileSize)) }); 319fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = Loc[nameof(Resources.Dialogs.InteractionFileUploadFailed)] });
Components\Dialogs\KeyboardShortcutsHelp.razor.cs (25)
16public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 25new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPageNavigation)], 27new KeyboardShortcut(AspireKeyboardShortcut.GoToResources, ["r"], Loc[nameof(Resources.Dialogs.HelpDialogGoToResources)]), 28new KeyboardShortcut(AspireKeyboardShortcut.GoToParameters, ["p"], Loc[nameof(Resources.Dialogs.HelpDialogGoToParameters)]), 29new KeyboardShortcut(AspireKeyboardShortcut.GoToGraph, ["g"], Loc[nameof(Resources.Dialogs.HelpDialogGoToGraph)]), 30new KeyboardShortcut(AspireKeyboardShortcut.GoToTerminals, ["e"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTerminals)]), 31new KeyboardShortcut(AspireKeyboardShortcut.GoToExtensions, ["x"], Loc[nameof(Resources.Dialogs.HelpDialogGoToExtensions)]), 33new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryTelemetry)], 35new KeyboardShortcut(AspireKeyboardShortcut.GoToTelemetrySources, ["o"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTelemetrySources)]), 36new KeyboardShortcut(AspireKeyboardShortcut.GoToConsoleLogs, ["c"], Loc[nameof(Resources.Dialogs.HelpDialogGoToConsoleLogs)]), 37new KeyboardShortcut(AspireKeyboardShortcut.GoToStructuredLogs, ["s"], Loc[nameof(Resources.Dialogs.HelpDialogGoToStructuredLogs)]), 38new KeyboardShortcut(AspireKeyboardShortcut.GoToTraces, ["t"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTraces)]), 39new KeyboardShortcut(AspireKeyboardShortcut.GoToMetrics, ["m"], Loc[nameof(Resources.Dialogs.HelpDialogGoToMetrics)]), 41new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryResourceGraph)], 45new KeyboardShortcut(AspireKeyboardShortcut.GoToGraph, ["o"], Loc[nameof(Resources.Dialogs.HelpDialogPlayGame)]), 47new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPanels)], 49new KeyboardShortcut(AspireKeyboardShortcut.IncreasePanelSize, ["+"], Loc[nameof(Resources.Dialogs.HelpDialogIncreasePanelSize)]), 50new KeyboardShortcut(AspireKeyboardShortcut.DecreasePanelSize, ["-"], Loc[nameof(Resources.Dialogs.HelpDialogDecreasePanelSize)]), 51new KeyboardShortcut(AspireKeyboardShortcut.ResetPanelSize, ["Shift", "R"], Loc[nameof(Resources.Dialogs.HelpDialogResetPanelSize)]), 52new KeyboardShortcut(AspireKeyboardShortcut.ToggleOrientation, ["Shift", "T"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOrientation)]), 53new KeyboardShortcut(AspireKeyboardShortcut.ClosePanel, ["Shift", "X"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOpen)]), 55new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryNavigation)], 57new KeyboardShortcut(AspireKeyboardShortcut.Help, ["?"], Loc[nameof(Resources.Dialogs.HelpDialogGoToHelp)]), 58new KeyboardShortcut(AspireKeyboardShortcut.Settings, ["Shift", "S"], Loc[nameof(Resources.Dialogs.HelpDialogGoToSettings)]), 59new KeyboardShortcut(AspireKeyboardShortcut.ToggleTerminalDock, ["`"], Loc[nameof(Resources.Dialogs.HelpDialogToggleTerminalDock)]),
Components\Dialogs\ManageDataDialog.razor.cs (11)
57public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 345private string GetHeaderSelectionLabel() => Loc[nameof(Resources.Dialogs.ManageDataAllDataCheckboxLabel)]; 365Loc[nameof(Resources.Dialogs.ManageDataDataTypeForResourceCheckboxLabel), dataTypeDisplayName, parentResourceDisplayName]; 369AspireDataType.ResourceDetails => Loc[nameof(Resources.Dialogs.ManageDataResource)], 370AspireDataType.ConsoleLogs => Loc[nameof(Resources.Dialogs.ManageDataConsoleLogs)], 371AspireDataType.StructuredLogs => Loc[nameof(Resources.Dialogs.ManageDataStructuredLogs)], 372AspireDataType.Traces => Loc[nameof(Resources.Dialogs.ManageDataTraces)], 373AspireDataType.Metrics => Loc[nameof(Resources.Dialogs.ManageDataMetrics)], 583_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataRemoveErrorMessage)]}: {ex.Message}"; 619_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataImportErrorMessage)]}: {ex.Message}"; 648_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataExportErrorMessage)]}: {ex.Message}";
Components\Dialogs\SettingsDialog.razor.cs (12)
79new(ThemeManager.ThemeSettingSystem, new Icons.Regular.Size20.Desktop(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogSystemTheme)]), 80new(ThemeManager.ThemeSettingLight, new Icons.Regular.Size20.WeatherSunny(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogLightTheme)]), 81new(ThemeManager.ThemeSettingDark, new Icons.Regular.Size20.WeatherMoon(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogDarkTheme)]), 91new(ResourceListDensity.Comfortable, new Icons.Regular.Size20.AppsListDetail(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogResourceListDensityComfortable)]), 92new(ResourceListDensity.Compact, new Icons.Regular.Size20.AppsList(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogResourceListDensityCompact)]), 96new(GroupOverview.Summary, new Icons.Regular.Size20.DataUsage(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewSummary)]), 103new(NewDashboardExperience, new Icons.Regular.Size24.Sparkle(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogDashboardExperienceNew)]) 108new(PreviousDashboardExperience, new Icons.Regular.Size24.History(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogDashboardExperiencePrevious)])); 163Title = Loc[nameof(Dashboard.Resources.Dialogs.DashboardFeedbackDialogTitle)], 206TimeFormat.System => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatSystem)], 207TimeFormat.TwelveHour => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatTwelveHour)], 208TimeFormat.TwentyFourHour => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatTwentyFourHour)],
Components\Dialogs\TelemetryHelpDialog.razor.cs (13)
28public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 57string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.TelemetryHelpIntroduction)], 66$"| {Loc[nameof(Resources.Dialogs.TelemetryHelpProtocolHeader)]} | {Loc[nameof(Resources.Dialogs.TelemetryHelpEndpointHeader)]} |", 81sections.Add(Loc[nameof(Resources.Dialogs.TelemetryHelpApiKeyDescription)]); 85sections.Add(Loc[nameof(Resources.Dialogs.TelemetryHelpCertificateDescription)]); 90sections.Add(Loc[nameof(Resources.Dialogs.TelemetryHelpNoEndpointsDescription)]); 95sections.Add(Loc[nameof(Resources.Dialogs.TelemetryHelpContainerDescription)]); 98Loc[nameof(Resources.Dialogs.TelemetryHelpSendTelemetryLink)], SendTelemetryUrl)); 101sections.Add(string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.TelemetryHelpImportDescription)], 102Loc[nameof(Resources.Dialogs.SettingsImportButtonText)], Loc[nameof(Resources.Dialogs.ManageDataDialogTitle)])); 104Loc[nameof(Resources.Dialogs.TelemetryHelpManageDataLink)], ManageDataUrl));
Components\Dialogs\TextVisualizerDialog.razor.cs (5)
62new SelectViewModel<string> { Id = DashboardUIHelpers.PlaintextFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogPlaintextFormat)] }, 63new SelectViewModel<string> { Id = DashboardUIHelpers.MarkdownFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogMarkdownFormat)] }, 64new SelectViewModel<string> { Id = DashboardUIHelpers.SqlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogSqlFormat)] }, 65new SelectViewModel<string> { Id = DashboardUIHelpers.JsonFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogJsonFormat)] }, 66new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] }
Components\Interactions\InteractionsProvider.cs (4)
90public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 802return Loc[nameof(Resources.Dialogs.InteractionButtonClose)]; 805return Loc[nameof(Resources.Dialogs.InteractionButtonOk)]; 817: Loc[nameof(Resources.Dialogs.InteractionButtonCancel)];
Components\Legacy\Dialogs\LegacyAIAgentsDialog.razor.cs (4)
11using DialogsLoc = Aspire.Dashboard.Resources.Dialogs; 24public required IStringLocalizer<DialogsLoc> Loc { get; init; } 36? string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogAppHostDescription)], AppHostLearnMoreUrl, InstallCliUrl) 37: string.Format(CultureInfo.CurrentCulture, Loc[nameof(DialogsLoc.AIAgentsDialogStandaloneDescription)], GetDashboardUrl(), StandaloneLearnMoreUrl, InstallCliUrl);
Components\Legacy\Dialogs\LegacyHelpDialog.razor.cs (18)
14public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 23new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPageNavigation)], 25new KeyboardShortcut(AspireKeyboardShortcut.GoToResources, ["r"], Loc[nameof(Resources.Dialogs.HelpDialogGoToResources)]), 26new KeyboardShortcut(AspireKeyboardShortcut.GoToConsoleLogs, ["c"], Loc[nameof(Resources.Dialogs.HelpDialogGoToConsoleLogs)]), 27new KeyboardShortcut(AspireKeyboardShortcut.GoToStructuredLogs, ["s"], Loc[nameof(Resources.Dialogs.HelpDialogGoToStructuredLogs)]), 28new KeyboardShortcut(AspireKeyboardShortcut.GoToTraces, ["t"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTraces)]), 29new KeyboardShortcut(AspireKeyboardShortcut.GoToMetrics, ["m"], Loc[nameof(Resources.Dialogs.HelpDialogGoToMetrics)]), 30new KeyboardShortcut(AspireKeyboardShortcut.GoToTerminals, ["e"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTerminals)]), 32new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPanels)], 34new KeyboardShortcut(AspireKeyboardShortcut.IncreasePanelSize, ["+"], Loc[nameof(Resources.Dialogs.HelpDialogIncreasePanelSize)]), 35new KeyboardShortcut(AspireKeyboardShortcut.DecreasePanelSize, ["-"], Loc[nameof(Resources.Dialogs.HelpDialogDecreasePanelSize)]), 36new KeyboardShortcut(AspireKeyboardShortcut.ResetPanelSize, ["shift", "r"], Loc[nameof(Resources.Dialogs.HelpDialogResetPanelSize)]), 37new KeyboardShortcut(AspireKeyboardShortcut.ToggleOrientation, ["shift", "t"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOrientation)]), 38new KeyboardShortcut(AspireKeyboardShortcut.ClosePanel, ["shift", "x"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOpen)]), 40new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryNavigation)], 42new KeyboardShortcut(AspireKeyboardShortcut.Help, ["?"], Loc[nameof(Resources.Dialogs.HelpDialogGoToHelp)]), 43new KeyboardShortcut(AspireKeyboardShortcut.Settings, ["shift", "s"], Loc[nameof(Resources.Dialogs.HelpDialogGoToSettings)]), 44new KeyboardShortcut(AspireKeyboardShortcut.ToggleTerminalDock, ["`"], Loc[nameof(Resources.Dialogs.HelpDialogToggleTerminalDock)]),
Components\Legacy\Dialogs\LegacySettingsDialog.razor.cs (3)
107TimeFormat.System => Loc[nameof(Resources.Dialogs.SettingsDialogTimeFormatSystem)], 108TimeFormat.TwelveHour => Loc[nameof(Resources.Dialogs.SettingsDialogTimeFormatTwelveHour)], 109TimeFormat.TwentyFourHour => Loc[nameof(Resources.Dialogs.SettingsDialogTimeFormatTwentyFourHour)],
Model\DashboardDialogService.cs (3)
20IStringLocalizer<Dialogs> dialogsLoc, 26private string CloseButtonText => dialogsLoc[nameof(Dialogs.DialogCloseButtonText)]; 41Title = dialogsLoc[nameof(Dialogs.ManageDataDialogTitle)],
Model\DashboardFeedback.cs (22)
39internal string BuildMarkdown(IStringLocalizer<Resources.Dialogs> loc) 42markdown.Append("### ").AppendLine(loc[nameof(Resources.Dialogs.DashboardFeedbackMarkdownTitle)]); 48loc[nameof(Resources.Dialogs.DashboardFeedbackDurationLabel)], 56.Append(loc[nameof(Resources.Dialogs.DashboardFeedbackReasonsLabel)]) 72loc[nameof(Resources.Dialogs.DashboardFeedbackMissingLabel)], 76loc[nameof(Resources.Dialogs.DashboardFeedbackDifficultiesLabel)], 80loc[nameof(Resources.Dialogs.DashboardFeedbackModeLabel)], 82? nameof(Resources.Dialogs.DashboardFeedbackModeAppHost) 83: nameof(Resources.Dialogs.DashboardFeedbackModeStandalone)]); 105IStringLocalizer<Resources.Dialogs> loc) => duration switch 107DashboardFeedbackUsageDuration.LessThanOneHour => loc[nameof(Resources.Dialogs.DashboardFeedbackDurationLessThanOneHour)], 108DashboardFeedbackUsageDuration.OneDay => loc[nameof(Resources.Dialogs.DashboardFeedbackDurationOneDay)], 109DashboardFeedbackUsageDuration.TwoToSevenDays => loc[nameof(Resources.Dialogs.DashboardFeedbackDurationTwoToSevenDays)], 110DashboardFeedbackUsageDuration.MoreThanOneWeek => loc[nameof(Resources.Dialogs.DashboardFeedbackDurationMoreThanOneWeek)], 116IStringLocalizer<Resources.Dialogs> loc) => reason switch 118DashboardFeedbackReason.Navigation => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonNavigation)], 119DashboardFeedbackReason.FindingApplicationUrls => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonFindingApplicationUrls)], 120DashboardFeedbackReason.TelemetryWorkflow => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonTelemetryWorkflow)], 121DashboardFeedbackReason.Terminals => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonTerminals)], 122DashboardFeedbackReason.PerformanceOrAccessibility => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonPerformanceOrAccessibility)], 123DashboardFeedbackReason.MissingFeature => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonMissingFeature)], 124DashboardFeedbackReason.Other => loc[nameof(Resources.Dialogs.DashboardFeedbackReasonOther)],
Model\GenAI\GenAIItemViewModel.cs (13)
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); 55return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryToolResponse)], "tool-response", s_messageIcon); 58return new BadgeDetail(loc[nameof(Dialogs.GenAIMessageCategoryMessage)], "message", s_messageIcon); 61public BadgeDetail GetTitleBadge(IStringLocalizer<Dialogs> loc) 65GenAIItemType.SystemMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleSystem)], "system", s_systemIcon), 66GenAIItemType.UserMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleUser)], "user", s_personIcon), 67GenAIItemType.AssistantMessage or GenAIItemType.OutputMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleAssistant)], "assistant", s_personIcon), 68GenAIItemType.ToolMessage => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleTool)], "tool", s_toolIcon), 69GenAIItemType.Error => new BadgeDetail(loc[nameof(Dialogs.GenAIMessageTitleError)], "error", s_cloudErrorIcon),
Model\GenAI\GenAIVisualizerDialogViewModel.cs (3)
297parts.Add(GenAIItemPartViewModel.CreateErrorMessage(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent)); 365viewParts.Add(GenAIItemPartViewModel.CreateErrorMessage(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent)); 381viewModel.Items.Add(CreateMessage(viewModel, currentIndex, truncationType, [GenAIItemPartViewModel.CreateErrorMessage(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent)], internalId: null));
Model\Otlp\FilterDialogFormModel.cs (9)
12[Required(ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldRequired))] 15[Required(ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldRequired))] 44[StringLength(1024, ErrorMessageResourceType = typeof(Dialogs), ErrorMessageResourceName = nameof(Dialogs.FieldTooLong))] 53yield return new ValidationResult(Dialogs.FieldRequired, [nameof(NumericValue)]); 58yield return new ValidationResult(Dialogs.FieldRequired, [nameof(Value)]); 62yield return new ValidationResult(Dialogs.FilterDialogInvalidDate, [nameof(Value)]);
Model\TraceLinkHelpers.cs (4)
23IStringLocalizer<Dialogs> loc, 28string.Format(CultureInfo.InvariantCulture, loc[nameof(Dialogs.OpenSpanDialogMessage)], OtlpHelpers.ToShortenedId(spanId)), 40IStringLocalizer<Dialogs> loc, 55PrimaryAction = 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)
28IStringLocalizer<Dialogs> dialogsLoc) 52Text = dialogsLoc[nameof(Dialogs.FilterDialogDisableAll)], 69Text = dialogsLoc[nameof(Dialogs.FilterDialogEnableAll)], 85Text = dialogsLoc[nameof(Dialogs.SettingsRemoveAllButtonText)],
Aspire.Dashboard.Components.Tests (65)
Controls\GenAIVisualizerDialogTests.cs (3)
70Services.GetRequiredService<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>() 71[nameof(Aspire.Dashboard.Resources.Dialogs.GenAIMessageTreeLabel)].Value, 418new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Controls\TextVisualizerDialogTests.cs (3)
44Assert.Equal(Aspire.Dashboard.Resources.Dialogs.TextVisualizerWordWrapOff, wrapButton.GetAttribute("aria-label")); 224Assert.Equal(Aspire.Dashboard.Resources.Dialogs.TextVisualizerSelectFormatType, formatSelect.Instance.AriaLabel); 689new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Dialogs\DashboardFeedbackTests.cs (2)
23var loc = Services.GetRequiredService<IStringLocalizer<Resources.Dialogs>>(); 42var loc = Services.GetRequiredService<IStringLocalizer<Resources.Dialogs>>();
Dialogs\FilterDialogTests.cs (1)
36Assert.Equal(isValid ? [] : new[] { string.Format(System.Globalization.CultureInfo.CurrentCulture, Aspire.Dashboard.Resources.Dialogs.FieldTooLong, nameof(FilterDialogFormModel.Value), 1024) }, messages);
Dialogs\HelpDialogTests.cs (6)
30Resources.Dialogs.HelpDialogDocumentationTab, 32Resources.Dialogs.AIAgentsDialogTitle 78[Resources.Dialogs.HelpDialogDocumentationTab, Resources.Layout.MainLayoutKeyboardShortcuts], 90var shortcut = cut.FindAll(".help-shortcut").SingleOrDefault(s => s.QuerySelector("dt")!.TextContent == Resources.Dialogs.HelpDialogPlayGame); 105Assert.Equal(Resources.Dialogs.HelpDialogGameTitle, link.QuerySelector(".help-link-title")!.TextContent); 106Assert.Equal(Resources.Dialogs.HelpDialogGameDescription, link.QuerySelector(".help-link-description")!.TextContent);
Dialogs\InteractionMessageBoxDialogTests.cs (1)
149new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Dialogs\KeyboardShortcutsHelpTests.cs (33)
32var heading = Assert.Single(cut.FindAll("h6"), h => h.TextContent == Resources.Dialogs.HelpDialogCategoryPageNavigation); 34List<string> expectedDescriptions = [Resources.Dialogs.HelpDialogGoToResources]; 38expectedDescriptions.Add(Resources.Dialogs.HelpDialogGoToTerminals); 63var heading = Assert.Single(cut.FindAll("h6"), h => h.TextContent == Resources.Dialogs.HelpDialogCategoryNavigation); 65List<string> expectedDescriptions = [Resources.Dialogs.HelpDialogGoToHelp, Resources.Dialogs.HelpDialogGoToSettings]; 69expectedDescriptions.Add(Resources.Dialogs.HelpDialogToggleTerminalDock); 94Resources.Dialogs.HelpDialogCategoryTelemetry, 95Resources.Dialogs.HelpDialogCategoryPanels, 96Resources.Dialogs.HelpDialogCategoryNavigation 101Resources.Dialogs.HelpDialogGoToStructuredLogs, 102Resources.Dialogs.HelpDialogGoToTraces, 103Resources.Dialogs.HelpDialogGoToMetrics, 104Resources.Dialogs.HelpDialogIncreasePanelSize, 105Resources.Dialogs.HelpDialogDecreasePanelSize, 106Resources.Dialogs.HelpDialogResetPanelSize, 107Resources.Dialogs.HelpDialogTogglePanelOrientation, 108Resources.Dialogs.HelpDialogTogglePanelOpen, 109Resources.Dialogs.HelpDialogGoToHelp, 110Resources.Dialogs.HelpDialogGoToSettings 135[Resources.Dialogs.HelpDialogCategoryPageNavigation, Resources.Dialogs.HelpDialogCategoryTelemetry], 139(Resources.Dialogs.HelpDialogGoToResources, "r"), 140(Resources.Dialogs.HelpDialogGoToParameters, "p"), 141(Resources.Dialogs.HelpDialogGoToGraph, "g"), 142(Resources.Dialogs.HelpDialogGoToTerminals, "e"), 143(Resources.Dialogs.HelpDialogGoToExtensions, "x"), 144(Resources.Dialogs.HelpDialogGoToTelemetrySources, "o"), 145(Resources.Dialogs.HelpDialogGoToConsoleLogs, "c"), 146(Resources.Dialogs.HelpDialogGoToStructuredLogs, "s"), 147(Resources.Dialogs.HelpDialogGoToTraces, "t"), 148(Resources.Dialogs.HelpDialogGoToMetrics, "m") 152Assert.Equal(string.Format(CultureInfo.InvariantCulture, Resources.Dialogs.HelpDialogShortcutsHint, "F6"), cut.Find(".help-shortcuts-hint").TextContent);
Dialogs\NotificationEntryComponentTests.cs (2)
23Services.AddSingleton<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>());
Dialogs\TelemetryHelpDialogTests.cs (8)
47Assert.Equal(!(grpc || http), cut.Markup.Contains(Resources.Dialogs.TelemetryHelpNoEndpointsDescription, StringComparison.Ordinal)); 80[InlineData(OtlpAuthMode.ApiKey, true, nameof(Resources.Dialogs.TelemetryHelpApiKeyDescription))] 81[InlineData(OtlpAuthMode.ClientCertificate, true, nameof(Resources.Dialogs.TelemetryHelpCertificateDescription))] 100resourceName is null ? [] : new[] { Resources.Dialogs.ResourceManager.GetString(resourceName) }, 102.Where(text => text == Resources.Dialogs.TelemetryHelpApiKeyDescription || text == Resources.Dialogs.TelemetryHelpCertificateDescription)); 132Title = Resources.Dialogs.TelemetryHelpDialogTitle 141Assert.Equal(Resources.Dialogs.ManageDataDialogTitle, service.LastInstance!.Options.Header.Title);
Layout\MainLayoutTests.cs (1)
270var dismissButton = _messageBarProvider!.WaitForElement($"fluent-button[aria-label='{Aspire.Dashboard.Resources.Dialogs.NotificationEntryDismiss}']");
Model\DashboardDialogServiceTests.cs (4)
38var loc = new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(); 39Assert.Equal(loc[nameof(Aspire.Dashboard.Resources.Dialogs.OpenSpanDialogCancelButtonText)].Value, instance.Options.Footer.PrimaryAction.Label); 74new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(), 164new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Shared\InteractionsSetupHelpers.cs (1)
46new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Aspire.Dashboard.Playwright.Tests (16)
Integration\Playwright\AppBarTests.cs (5)
31await SetAndVerifyTheme(Dialogs.SettingsDialogSystemTheme, null); // don't guess system theme 32await SetAndVerifyTheme(Dialogs.SettingsDialogLightTheme, "light"); 33await SetAndVerifyTheme(Dialogs.SettingsDialogDarkTheme, "dark"); 40var themeGroup = page.GetByRole(AriaRole.Group, new() { Name = Dialogs.SettingsDialogTheme }); 56themeGroup = page.GetByRole(AriaRole.Group, new() { Name = Dialogs.SettingsDialogTheme });
Integration\Playwright\DashboardInteractionsTests.cs (4)
523var parameter = page.GetByRole(AriaRole.Combobox, new() { Name = Resources.Dialogs.FilterDialogParameterInputLabel, Exact = true }); 530var condition = page.GetByRole(AriaRole.Combobox, new() { Name = Resources.Dialogs.FilterDialogConditionInputLabel, Exact = true }); 552await Assertions.Expect(page.GetByRole(AriaRole.Combobox, new() { Name = Resources.Dialogs.FilterDialogParameterInputLabel, Exact = true })).ToHaveTextAsync("Message"); 557await page.GetByRole(AriaRole.Button, new() { Name = Resources.Dialogs.FilterDialogApplyFilterButtonText, Exact = true }).ClickAsync();
Integration\Playwright\NativeAotDashboardTests.cs (3)
99await page.GetByRole(AriaRole.Button, new() { Name = Dialogs.HelpDialogCategoryNavigation, Exact = true }).ClickAsync(); 101var themeGroup = page.GetByRole(AriaRole.Group, new() { Name = Dialogs.SettingsDialogTheme }); 102await themeGroup.GetByRole(AriaRole.Button, new() { Name = Dialogs.SettingsDialogDarkTheme, Exact = true }).ClickAsync();
Integration\Playwright\OverviewLayoutTests.cs (4)
54var summary = layout.GetByRole(AriaRole.Button, new() { Name = Dialogs.SettingsDialogGroupOverviewSummary, Exact = true }); 100var options = page.GetByRole(AriaRole.Group, new() { Name = Dialogs.SettingsDialogGroupOverview, Exact = true }); 102await Assertions.Expect(options.GetByRole(AriaRole.Button, new() { Name = Dialogs.SettingsDialogGroupOverviewSummary, Exact = true })).ToHaveAttributeAsync("aria-pressed", "true"); 104await page.GetByRole(AriaRole.Button, new() { Name = Dialogs.DialogCloseButtonText, Exact = true }).Last.ClickAsync();
Aspire.Dashboard.Tests (5)
Model\DashboardCommandExecutorTests.cs (1)
386new TestStringLocalizer<Dialogs>(),
Model\GenAIVisualizerDialogViewModelTests.cs (3)
2244p => Assert.Equal(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent, p.ErrorMessage)); 2306p => Assert.Equal(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent, p.ErrorMessage)); 2381p => Assert.Equal(Resources.Dialogs.GenAIUnexpectedOrTruncatedContent, p.ErrorMessage));
Model\ResourceMenuBuilderTests.cs (1)
38new TestStringLocalizer<Dialogs>(),