52 references to DashboardUIHelpers
Aspire.Dashboard (38)
Components\Controls\PropertyGrid.razor.cs (1)
154(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(Loc);
Components\Controls\ResourceDetails.razor.cs (1)
190(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlStringsLoc);
Components\Controls\SpanDetails.razor.cs (1)
94(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(Loc);
Components\Controls\TextVisualizer.razor.cs (1)
67if (ViewModel.FormatKind is not DashboardUIHelpers.PlaintextFormat)
Components\Dialogs\TextVisualizerDialog.razor.cs (9)
50EnabledOptions.Add(DashboardUIHelpers.PlaintextFormat); 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)] } 60if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.JsonFormat) 62EnabledOptions.Add(DashboardUIHelpers.JsonFormat); 64else if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.XmlFormat) 66EnabledOptions.Add(DashboardUIHelpers.XmlFormat); 88TextVisualizerViewModel.UpdateFormat(newFormat ?? DashboardUIHelpers.PlaintextFormat);
Components\Interactions\InteractionsProvider.cs (1)
384options.Section = DashboardUIHelpers.MessageBarSection;
Components\Layout\MainLayout.razor.cs (1)
128options.Section = DashboardUIHelpers.MessageBarSection;
Components\Pages\ConsoleLogs.razor.cs (1)
472_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (3)
175(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc); 429.Take(request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount) 522_maxHighlightedCount = Math.Min(maxHighlightedCount, DashboardUIHelpers.MaxHighlightedCommands);
Components\Pages\StructuredLogs.razor.cs (3)
120ViewModel.Count = request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount; 126TelemetryRepository.MaxLogLimitMessage = await DashboardUIHelpers.DisplayMaxLimitMessageAsync( 153(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc);
Components\Pages\TraceDetail.razor.cs (1)
172page = page.Take(request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount);
Components\Pages\Traces.razor.cs (3)
129TracesViewModel.Count = request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount; 134TelemetryRepository.MaxTraceLimitMessage = await DashboardUIHelpers.DisplayMaxLimitMessageAsync( 159(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc);
Model\DashboardCommandExecutor.cs (2)
138closeToastCts.CancelAfter(DashboardUIHelpers.ToastTimeout); 176closeToastCts.CancelAfter(DashboardUIHelpers.ToastTimeout);
Model\GenAI\GenAIItemPartViewModel.cs (2)
55return new TextVisualizerViewModel(textPart.Content ?? string.Empty, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 59return new TextVisualizerViewModel($"{toolCallRequestPart.Name}({toolCallRequestPart.Arguments?.ToJsonString()})", indentText: true, knownFormat: DashboardUIHelpers.JavascriptFormat);
Model\ResourceSourceViewModel.cs (1)
65: DashboardUIHelpers.GetMaskingText(6).Text)));
Model\TextVisualizerViewModel.cs (7)
26Lines = GetLines(Text, DashboardUIHelpers.PlaintextFormat); 34ChangeFormattedText(DashboardUIHelpers.JsonFormat, indentText ? formattedJson : Text); 38ChangeFormattedText(DashboardUIHelpers.XmlFormat, indentText ? formattedXml : Text); 42ChangeFormattedText(fallbackFormat ?? DashboardUIHelpers.PlaintextFormat, Text); 259if (newFormat == DashboardUIHelpers.XmlFormat) 266else if (newFormat == DashboardUIHelpers.JsonFormat) 275ChangeFormattedText(DashboardUIHelpers.PlaintextFormat, Text);
Aspire.Dashboard.Components.Tests (13)
Controls\TextVisualizerDialogTests.cs (13)
51Assert.Equal(DashboardUIHelpers.JsonFormat, instance.TextVisualizerViewModel.FormatKind); 52Assert.Equal([DashboardUIHelpers.JsonFormat, DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet()); 72Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 74Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 77instance.ChangeFormat(DashboardUIHelpers.PlaintextFormat, rawXml); 79Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 99Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 101Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 115Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 117Assert.Equal([DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet());
Aspire.Dashboard.Tests (1)
Model\ResourceSourceViewModelTests.cs (1)
83var maskingText = DashboardUIHelpers.GetMaskingText(6).Text;