63 references to DashboardUIHelpers
Aspire.Dashboard (49)
Components\Controls\PropertyGrid.razor.cs (1)
154(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(Loc);
Components\Controls\ResourceDetails.razor.cs (1)
200(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlStringsLoc);
Components\Controls\SpanDetails.razor.cs (1)
100(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(Loc);
Components\Controls\TextVisualizer.razor.cs (1)
67if (ViewModel.FormatKind is not DashboardUIHelpers.PlaintextFormat)
Components\Dialogs\TextVisualizerDialog.razor.cs (9)
49EnabledOptions.Add(DashboardUIHelpers.PlaintextFormat); 52new SelectViewModel<string> { Id = DashboardUIHelpers.PlaintextFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogPlaintextFormat)] }, 53new SelectViewModel<string> { Id = DashboardUIHelpers.JsonFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogJsonFormat)] }, 54new SelectViewModel<string> { Id = DashboardUIHelpers.XmlFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogXmlFormat)] } 59if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.JsonFormat) 61EnabledOptions.Add(DashboardUIHelpers.JsonFormat); 63else if (TextVisualizerViewModel.FormatKind == DashboardUIHelpers.XmlFormat) 65EnabledOptions.Add(DashboardUIHelpers.XmlFormat); 87TextVisualizerViewModel.UpdateFormat(newFormat ?? DashboardUIHelpers.PlaintextFormat);
Components\Interactions\InteractionsProvider.cs (1)
391options.Section = DashboardUIHelpers.MessageBarSection;
Components\Layout\MainLayout.razor.cs (1)
158options.Section = DashboardUIHelpers.MessageBarSection;
Components\Pages\ConsoleLogs.razor.cs (1)
499_highlightedCommands.AddRange(selectedResource.Commands.Where(c => c.IsHighlighted && c.State != CommandViewModelState.Hidden).Take(DashboardUIHelpers.MaxHighlightedCommands));
Components\Pages\Resources.razor.cs (3)
199(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc); 454.Take(request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount) 547_maxHighlightedCount = Math.Min(maxHighlightedCount, DashboardUIHelpers.MaxHighlightedCommands);
Components\Pages\StructuredLogs.razor.cs (3)
135ViewModel.Count = request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount; 141TelemetryRepository.MaxLogLimitMessage = await DashboardUIHelpers.DisplayMaxLimitMessageAsync( 173(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc);
Components\Pages\TraceDetail.razor.cs (1)
182page = page.Take(request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount);
Components\Pages\Traces.razor.cs (3)
137TracesViewModel.Count = request.Count ?? DashboardUIHelpers.DefaultDataGridResultCount; 142TelemetryRepository.MaxTraceLimitMessage = await DashboardUIHelpers.DisplayMaxLimitMessageAsync( 172(_resizeLabels, _sortLabels) = DashboardUIHelpers.CreateGridLabels(ControlsStringsLoc);
Components_Controls_GridValue_razor.g.cs (1)
222__builder.AddContent(8, DashboardUIHelpers.GetMaskingText(length: 8).MarkupString
Components_Controls_ResourceSelect_razor.g.cs (1)
286c => DashboardUIHelpers.ResolveTooltip(c!.Name)
Components_Controls_TextVisualizer_razor.g.cs (1)
397if (context.FormatKind != DashboardUIHelpers.PlaintextFormat)
Components_Dialogs_FilterDialog_razor.g.cs (2)
394c => DashboardUIHelpers.ResolveTooltip(c.Name) 625c => DashboardUIHelpers.ResolveTooltip(c.Name)
Components_Dialogs_GenAIVisualizerDialog_razor.g.cs (2)
1079if (itemPart.TextVisualizerViewModel.FormatKind is DashboardUIHelpers.PlaintextFormat) 1099else if (itemPart.TextVisualizerViewModel.FormatKind is DashboardUIHelpers.MarkdownFormat)
Components_Dialogs_InteractionsInputDialog_razor.g.cs (2)
1052vm => DashboardUIHelpers.ResolveTooltip(vm.Name) 1256vm => DashboardUIHelpers.ResolveTooltip(vm.Name)
Components_Layout_MainLayout_razor.g.cs (1)
1201DashboardUIHelpers.MessageBarSection
Components_ResourcesGridColumns_SourceColumnDisplay_razor.g.cs (1)
386__builder2.AddContent(17, DashboardUIHelpers.GetMaskingText(length: 6).MarkupString
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)
50Assert.Equal(DashboardUIHelpers.JsonFormat, instance.TextVisualizerViewModel.FormatKind); 51Assert.Equal([DashboardUIHelpers.JsonFormat, DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet()); 71Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 73Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 76instance.ChangeFormat(DashboardUIHelpers.PlaintextFormat, rawXml); 78Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 98Assert.Equal(DashboardUIHelpers.XmlFormat, instance.TextVisualizerViewModel.FormatKind); 100Assert.Equal([DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.XmlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 114Assert.Equal(DashboardUIHelpers.PlaintextFormat, instance.TextVisualizerViewModel.FormatKind); 116Assert.Equal([DashboardUIHelpers.PlaintextFormat], instance.EnabledOptions.ToImmutableSortedSet());
Aspire.Dashboard.Tests (1)
Model\ResourceSourceViewModelTests.cs (1)
83var maskingText = DashboardUIHelpers.GetMaskingText(6).Text;