144 references to Dialogs
Aspire.Dashboard (99)
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\PropertyValues\SpanIdButtonValue.razor.cs (1)
32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\AIAgentsDialog.razor.cs (4)
11using DialogsLoc = Aspire.Dashboard.Resources.Dialogs; 20public 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\Dialogs\ExemplarsDialog.razor.cs (1)
59: $"{Loc[nameof(Resources.Dialogs.ExemplarsDialogTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Dialogs\GenAIVisualizerDialog.razor.cs (1)
57public required IStringLocalizer<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\HelpDialog.razor.cs (18)
13public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 22new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPageNavigation)], 24new KeyboardShortcut(AspireKeyboardShortcut.GoToResources, ["r"], Loc[nameof(Resources.Dialogs.HelpDialogGoToResources)]), 25new KeyboardShortcut(AspireKeyboardShortcut.GoToConsoleLogs, ["c"], Loc[nameof(Resources.Dialogs.HelpDialogGoToConsoleLogs)]), 26new KeyboardShortcut(AspireKeyboardShortcut.GoToStructuredLogs, ["s"], Loc[nameof(Resources.Dialogs.HelpDialogGoToStructuredLogs)]), 27new KeyboardShortcut(AspireKeyboardShortcut.GoToTraces, ["t"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTraces)]), 28new KeyboardShortcut(AspireKeyboardShortcut.GoToMetrics, ["m"], Loc[nameof(Resources.Dialogs.HelpDialogGoToMetrics)]), 29new KeyboardShortcut(AspireKeyboardShortcut.GoToTerminals, ["e"], Loc[nameof(Resources.Dialogs.HelpDialogGoToTerminals)]), 31new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryPanels)], 33new KeyboardShortcut(AspireKeyboardShortcut.IncreasePanelSize, ["+"], Loc[nameof(Resources.Dialogs.HelpDialogIncreasePanelSize)]), 34new KeyboardShortcut(AspireKeyboardShortcut.DecreasePanelSize, ["-"], Loc[nameof(Resources.Dialogs.HelpDialogDecreasePanelSize)]), 35new KeyboardShortcut(AspireKeyboardShortcut.ResetPanelSize, ["shift", "r"], Loc[nameof(Resources.Dialogs.HelpDialogResetPanelSize)]), 36new KeyboardShortcut(AspireKeyboardShortcut.ToggleOrientation, ["shift", "t"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOrientation)]), 37new KeyboardShortcut(AspireKeyboardShortcut.ClosePanel, ["shift", "x"], Loc[nameof(Resources.Dialogs.HelpDialogTogglePanelOpen)]), 39new(Loc[nameof(Resources.Dialogs.HelpDialogCategoryNavigation)], 41new KeyboardShortcut(AspireKeyboardShortcut.Help, ["?"], Loc[nameof(Resources.Dialogs.HelpDialogGoToHelp)]), 42new KeyboardShortcut(AspireKeyboardShortcut.Settings, ["shift", "s"], Loc[nameof(Resources.Dialogs.HelpDialogGoToSettings)]), 43new KeyboardShortcut(AspireKeyboardShortcut.ToggleTerminalDock, ["`"], Loc[nameof(Resources.Dialogs.HelpDialogToggleTerminalDock)]),
Components\Dialogs\InteractionsInputDialog.razor.cs (5)
32public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 250? Loc[nameof(Resources.Dialogs.InteractionFilePlaceholderMultiple)] 251: Loc[nameof(Resources.Dialogs.InteractionFilePlaceholder)]; 263fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = string.Format(CultureInfo.CurrentCulture, Loc[nameof(Resources.Dialogs.InteractionFileExceedsMaxSize)], FormatHelpers.FormatFileSize(maxFileSize)) }); 275fileReferences.Add(new FileReferenceViewModel { Name = file.Name, ErrorMessage = Loc[nameof(Resources.Dialogs.InteractionFileUploadFailed)] });
Components\Dialogs\ManageDataDialog.razor.cs (11)
57public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 342private string GetHeaderSelectionLabel() => Loc[nameof(Resources.Dialogs.ManageDataAllDataCheckboxLabel)]; 362Loc[nameof(Resources.Dialogs.ManageDataDataTypeForResourceCheckboxLabel), dataTypeDisplayName, parentResourceDisplayName]; 366AspireDataType.ResourceDetails => Loc[nameof(Resources.Dialogs.ManageDataResource)], 367AspireDataType.ConsoleLogs => Loc[nameof(Resources.Dialogs.ManageDataConsoleLogs)], 368AspireDataType.StructuredLogs => Loc[nameof(Resources.Dialogs.ManageDataStructuredLogs)], 369AspireDataType.Traces => Loc[nameof(Resources.Dialogs.ManageDataTraces)], 370AspireDataType.Metrics => Loc[nameof(Resources.Dialogs.ManageDataMetrics)], 580_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataRemoveErrorMessage)]}: {ex.Message}"; 616_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataImportErrorMessage)]}: {ex.Message}"; 645_errorMessage = $"{Loc[nameof(Resources.Dialogs.ManageDataExportErrorMessage)]}: {ex.Message}";
Components\Dialogs\SettingsDialog.razor.cs (5)
96Title = Loc[nameof(Dashboard.Resources.Dialogs.ManageDataDialogTitle)], 97PrimaryAction = Loc[nameof(Dashboard.Resources.Dialogs.DialogCloseButtonText)], 118TimeFormat.System => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatSystem)], 119TimeFormat.TwelveHour => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatTwelveHour)], 120TimeFormat.TwentyFourHour => Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogTimeFormatTwentyFourHour)],
Components\Dialogs\TextVisualizerDialog.razor.cs (5)
61new SelectViewModel<string> { Id = DashboardUIHelpers.PlaintextFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogPlaintextFormat)] }, 62new SelectViewModel<string> { Id = DashboardUIHelpers.MarkdownFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogMarkdownFormat)] }, 63new SelectViewModel<string> { Id = DashboardUIHelpers.SqlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogSqlFormat)] }, 64new SelectViewModel<string> { Id = DashboardUIHelpers.JsonFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogJsonFormat)] }, 65new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] }
Components\Interactions\InteractionsProvider.cs (4)
79public required IStringLocalizer<Resources.Dialogs> Loc { get; init; } 641return Loc[nameof(Resources.Dialogs.InteractionButtonClose)]; 644return Loc[nameof(Resources.Dialogs.InteractionButtonOk)]; 656: Loc[nameof(Resources.Dialogs.InteractionButtonCancel)];
Model\DashboardDialogService.cs (2)
18IStringLocalizer<Dialogs> dialogsLoc, 21private string CloseButtonText => dialogsLoc[nameof(Dialogs.DialogCloseButtonText)];
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 (35)
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 (2)
114Assert.Equal(Aspire.Dashboard.Resources.Dialogs.TextVisualizerSelectFormatType, formatSelect.Instance.AriaLabel); 574new TestStringLocalizer<Aspire.Dashboard.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 (20)
31var heading = Assert.Single(cut.FindAll("h6"), h => h.TextContent == Resources.Dialogs.HelpDialogCategoryPageNavigation); 33List<string> expectedDescriptions = [Resources.Dialogs.HelpDialogGoToMetrics]; 37expectedDescriptions.Add(Resources.Dialogs.HelpDialogGoToTerminals); 62var heading = Assert.Single(cut.FindAll("h6"), h => h.TextContent == Resources.Dialogs.HelpDialogCategoryNavigation); 64List<string> expectedDescriptions = [Resources.Dialogs.HelpDialogGoToHelp, Resources.Dialogs.HelpDialogGoToSettings]; 68expectedDescriptions.Add(Resources.Dialogs.HelpDialogToggleTerminalDock); 93Resources.Dialogs.HelpDialogCategoryPageNavigation, 94Resources.Dialogs.HelpDialogCategoryPanels, 95Resources.Dialogs.HelpDialogCategoryNavigation 100Resources.Dialogs.HelpDialogGoToStructuredLogs, 101Resources.Dialogs.HelpDialogGoToTraces, 102Resources.Dialogs.HelpDialogGoToMetrics, 103Resources.Dialogs.HelpDialogIncreasePanelSize, 104Resources.Dialogs.HelpDialogDecreasePanelSize, 105Resources.Dialogs.HelpDialogResetPanelSize, 106Resources.Dialogs.HelpDialogTogglePanelOrientation, 107Resources.Dialogs.HelpDialogTogglePanelOpen, 108Resources.Dialogs.HelpDialogGoToHelp, 109Resources.Dialogs.HelpDialogGoToSettings
Dialogs\InteractionMessageBoxDialogTests.cs (1)
128new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>(),
Dialogs\NotificationEntryComponentTests.cs (2)
23Services.AddSingleton<IStringLocalizer<Aspire.Dashboard.Resources.Dialogs>>(new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>());
Layout\MainLayoutTests.cs (1)
74var 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.Tests (10)
Integration\Playwright\AppBarTests.cs (3)
31await SetAndVerifyTheme(Dialogs.SettingsDialogSystemTheme, null); // don't guess system theme 32await SetAndVerifyTheme(Dialogs.SettingsDialogLightTheme, "light"); 33await SetAndVerifyTheme(Dialogs.SettingsDialogDarkTheme, "dark");
Integration\Playwright\NativeAotDashboardTests.cs (2)
98await page.GetByTitle(Dialogs.HelpDialogCategoryNavigation).ClickAsync(); 100var darkThemeLabel = page.GetByText(Dialogs.SettingsDialogDarkTheme, new() { Exact = true }).First;
Model\DashboardCommandExecutorTests.cs (1)
262new 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>(),