39 references to GroupOverview
Aspire.Dashboard (27)
Components\Controls\ApplicationSummary.razor.cs (9)
127
private IReadOnlyList<IconToggleOption<
GroupOverview
>> OverviewOptions =>
128
new IconToggleOption<
GroupOverview
>[]
130
new(
GroupOverview
.Cards, new Icons.Regular.Size20.Grid(), DialogsLoc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewCards)]),
131
new(
GroupOverview
.Summary, new Icons.Regular.Size20.Home(), DialogsLoc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewSummary)]),
132
new(
GroupOverview
.Graph, new Icons.Regular.Size20.ShareAndroid(), Loc[nameof(Dashboard.Resources.Resources.GraphPageTitle)])
134
.Where(option => option.Value !=
GroupOverview
.Graph || ViewPreferences.IsGraphEnabled)
137
private IconToggleOption<
GroupOverview
> GetCurrentOverviewOption() =>
238
if (_isDisposing || ViewPreferences.GroupOverview !=
GroupOverview
.Graph || _graphInitialized || _graphInitializing)
711
if (ViewPreferences.GroupOverview !=
GroupOverview
.Graph || !_graphInitialized || _jsModule is null)
Components\Dialogs\SettingsDialog.razor.cs (6)
29
private IReadOnlyList<IconToggleOption<
GroupOverview
>> _groupOverviewOptions = [];
95
_groupOverviewOptions = new IconToggleOption<
GroupOverview
>[]
97
new(
GroupOverview
.Cards, new Icons.Regular.Size20.Grid(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewCards)]),
98
new(
GroupOverview
.Summary, new Icons.Regular.Size20.Home(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogGroupOverviewSummary)]),
99
new(
GroupOverview
.Graph, new Icons.Regular.Size20.ShareAndroid(), ResourcesLoc[nameof(Dashboard.Resources.Resources.GraphPageTitle)]),
101
.Where(option => option.Value !=
GroupOverview
.Graph || ViewPreferences.IsGraphEnabled)
Components\Layout\MainLayout.razor.cs (1)
639
await ViewPreferences.SetGroupOverviewAsync(
GroupOverview
.Graph);
Components\Pages\GraphRedirect.razor.cs (1)
23
await ViewPreferences.SetGroupOverviewAsync(
GroupOverview
.Graph);
Model\DashboardViewPreferences.cs (10)
81
private
GroupOverview
_groupOverview;
95
public
GroupOverview
GroupOverview
97
get => _groupOverview ==
GroupOverview
.Graph && !IsGraphEnabled ?
GroupOverview
.Cards : _groupOverview;
133
public async Task SetGroupOverviewAsync(
GroupOverview
groupOverview)
136
if (GroupOverview == groupOverview || (groupOverview ==
GroupOverview
.Graph && !IsGraphEnabled))
163
var
groupOverview = await ReadAsync<
GroupOverview
>(BrowserStorageKeys.GroupOverview).ConfigureAwait(false);
164
if (groupOverview ==
GroupOverview
.Resources)
166
groupOverview =
GroupOverview
.Cards;
Aspire.Dashboard.Components.Tests (12)
Controls\ApplicationSummaryTests.cs (11)
25
[InlineData(
GroupOverview
.Cards)]
26
[InlineData(
GroupOverview
.Resources)]
27
public async Task Render_PersistentContainersHaveBadgedGlyphAndQualifiedType(
GroupOverview
overview)
45
var items = cut.FindAll(overview ==
GroupOverview
.Cards ? ".resource-card" : ".home-resource-table tbody tr");
51
var typeSelector = overview ==
GroupOverview
.Cards ? ".resource-card-type" : ".home-table-type";
74
await cut.InvokeAsync(() => Services.GetRequiredService<DashboardViewPreferences>().SetGroupOverviewAsync(
GroupOverview
.Cards));
92
await cut.InvokeAsync(() => preferences.SetGroupOverviewAsync(
GroupOverview
.Cards));
134
await cut.InvokeAsync(() => Services.GetRequiredService<DashboardViewPreferences>().SetGroupOverviewAsync(
GroupOverview
.Cards));
152
await cut.InvokeAsync(() => Services.GetRequiredService<DashboardViewPreferences>().SetGroupOverviewAsync(
GroupOverview
.Graph));
168
await cut.InvokeAsync(() => preferences.SetGroupOverviewAsync(
GroupOverview
.Graph));
171
Assert.Equal(
GroupOverview
.Cards, preferences.GroupOverview);
Dialogs\SettingsDialogTests.cs (1)
80
Assert.Equal(
GroupOverview
.Summary, preferences.GroupOverview);