Fix Blazor WASM loading, add missing filter panel bind parameters, and gate nav behind auth

Remove UseBlazorFrameworkFiles() that blocked MapStaticAssets() from serving fingerprinted
Blazor framework files. Add Operators/ProfitCenters/WorkCenters alias parameters to their
respective filter panels so @bind-* two-way binding works in SearchEdit. Move all nav links
inside AuthorizeView so they only show when logged in.
This commit is contained in:
Joseph Doherty
2026-02-10 08:56:42 -05:00
parent 16b21ac243
commit 12cf94a9dc
5 changed files with 44 additions and 3 deletions
@@ -48,6 +48,20 @@
</RadzenCard>
@code {
[Parameter]
public List<OperatorViewModel> Operators
{
get => Items;
set => Items = value;
}
[Parameter]
public EventCallback<List<OperatorViewModel>> OperatorsChanged
{
get => ItemsChanged;
set => ItemsChanged = value;
}
protected override string PanelTitle => "Filter by Operator";
protected override string SearchPlaceholder => "Search operators (3+ chars)...";
protected override string SearchFieldLabel => "Name";
@@ -46,6 +46,20 @@
</RadzenCard>
@code {
[Parameter]
public List<ProfitCenterViewModel> ProfitCenters
{
get => Items;
set => Items = value;
}
[Parameter]
public EventCallback<List<ProfitCenterViewModel>> ProfitCentersChanged
{
get => ItemsChanged;
set => ItemsChanged = value;
}
protected override string PanelTitle => "Filter by Profit Center";
protected override string SearchPlaceholder => "Search profit centers (3+ chars)...";
protected override string SearchFieldLabel => "Profit Center";
@@ -46,6 +46,20 @@
</RadzenCard>
@code {
[Parameter]
public List<WorkCenterViewModel> WorkCenters
{
get => Items;
set => Items = value;
}
[Parameter]
public EventCallback<List<WorkCenterViewModel>> WorkCentersChanged
{
get => ItemsChanged;
set => ItemsChanged = value;
}
protected override string PanelTitle => "Filter by Work Center";
protected override string SearchPlaceholder => "Search work centers (3+ chars)...";
protected override string SearchFieldLabel => "Work Center";
@@ -9,10 +9,10 @@
<div class="navbar-left">
<a href="/" class="navbar-brand">JDE Scoping Tool</a>
<nav class="navbar-nav">
<NavLink class="nav-link" href="/" Match="NavLinkMatch.All">Searches</NavLink>
<NavLink class="nav-link" href="/search">New Search</NavLink>
<AuthorizeView>
<Authorized>
<NavLink class="nav-link" href="/" Match="NavLinkMatch.All">Searches</NavLink>
<NavLink class="nav-link" href="/search">New Search</NavLink>
<NavLink class="nav-link" href="/search/queue">Search Queue</NavLink>
<NavLink class="nav-link" href="/refresh-status">Refresh Status</NavLink>
<NavLink class="nav-link" href="/data-sync/requests">Data Sync</NavLink>
-1
View File
@@ -90,7 +90,6 @@ try
}
app.UseStaticFiles();
app.UseBlazorFrameworkFiles();
app.UseRouting();
// Configure Web API middleware (authentication, authorization, controllers, SignalR hub)