Skip to content

feat: Replace collapsible search panels with always-visible inline filters#3325

Draft
kbeaugrand with Copilot wants to merge 1 commit into
mainfrom
copilot/add-filters-to-table-columns
Draft

feat: Replace collapsible search panels with always-visible inline filters#3325
kbeaugrand with Copilot wants to merge 1 commit into
mainfrom
copilot/add-filters-to-table-columns

Conversation

Copilot AI commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

The search panel across list pages was wrapped in a MudExpansionPanel, requiring an extra click to access filters and consuming excessive vertical space when expanded.

Changes

  • Removed MudExpansionPanel wrapper from all search/filter components and list pages — filters are now always visible without user interaction:

    • DeviceModelSearch.razor
    • EdgeModelSearch.razor
    • ConcentratorSearch.razor
    • DeviceListPage.razor (inline search panel)
    • EdgeDeviceListPage.razor (inline search panel)
  • Updated DevicesListPageTests.cs — removed assertions checking for expansion panel CSS classes (.mud-expansion-panels, .mud-expand-panel) since the panel no longer exists; remaining test coverage is unaffected

All element IDs are preserved, so existing test coverage continues to work without further changes.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other
Original prompt

This section details on the original issue you should resolve

<issue_title>Feature: Add filters on table columns instead of the search panel</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
The search panel is very big and not very pleasant to use

Describe the solution you'd like
Enable filtering directly on the table's columns

Describe alternatives you've considered
N/A

Additional context
</issue_description>

Comments on the Issue (you are @copilot in this section)

Custom agent used: speckit.specify
Create or update the feature specification from a natural language feature description.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add filters on table columns instead of search panel feat: Replace collapsible search panels with always-visible inline filters Mar 5, 2026
…list pages

Co-authored-by: kbeaugrand <9513635+kbeaugrand@users.noreply.github.com>
@Metal-Mighty
Metal-Mighty force-pushed the copilot/add-filters-to-table-columns branch from a3156fd to 010832f Compare April 16, 2026 11:56
@codecov

codecov Bot commented Apr 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 41.66667% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.25%. Comparing base (9fa5853) to head (010832f).

Files with missing lines Patch % Lines
...b.Portal.Client/Pages/Devices/DeviceListPage.razor 12.50% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3325   +/-   ##
=======================================
  Coverage   81.25%   81.25%           
=======================================
  Files         376      376           
  Lines       14428    14428           
  Branches     1235     1235           
=======================================
  Hits        11723    11723           
  Misses       2322     2322           
  Partials      383      383           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +22 to +74
@foreach (DeviceTagDto tag in TagList)
{
if (tag.Searchable)
{
<MudItem xs="12" md="6">
<MudTextField @bind-Value="searchID" Placeholder="DeviceID / DeviceName" id="searchID"></MudTextField>
<MudTextField @bind-Value="searchTags[tag.Name]" Placeholder="@tag.Label"></MudTextField>
</MudItem>
@foreach (DeviceTagDto tag in TagList)
}
}

<MudItem xs="12" md="6">
<MudSelect T="LabelDto" Label="Labels" MultiSelection="true" @bind-SelectedValues="selectedLabels"
MultiSelectionTextFunc="@(new Func<List<string>, string>(GetMultiSelectionText))"
Variant="Variant.Outlined">
@foreach (var label in labels)
{
if (tag.Searchable)
{
<MudItem xs="12" md="6">
<MudTextField @bind-Value="searchTags[tag.Name]" Placeholder="@tag.Label"></MudTextField>
</MudItem>
}
<MudSelectItem T="LabelDto" Value="@label">
<MudChip Text="@label.Name" Color="Color.Primary" Style="@($"background-color: {label.Color};")" />
</MudSelectItem>
}

<MudItem xs="12" md="6">
<MudSelect T="LabelDto" Label="Labels" MultiSelection="true" @bind-SelectedValues="selectedLabels"
MultiSelectionTextFunc="@(new Func<List<string>, string>(GetMultiSelectionText))"
Variant="Variant.Outlined">
@foreach (var label in labels)
{
<MudSelectItem T="LabelDto" Value="@label">
<MudChip Text="@label.Name" Color="Color.Primary" Style="@($"background-color: {label.Color};")" />
</MudSelectItem>
}
</MudSelect>
</MudItem>

<MudItem xs="12" md="6">
<MudAutocomplete T="DeviceModelDto"
id="@nameof(DeviceModelDto.ModelId)"
@bind-Value="Model"
SearchFunc="@Search"
Label="Model"
Dense=true
For=@(() => this.Model)
Variant="Variant.Outlined"
ToStringFunc="@(x => x?.Name)"
ResetValueOnEmptyText=true
Immediate=true
Clearable=true
CoerceText=true
CoerceValue=false>
<ItemTemplate>
@context.Name
<MudText Typo="Typo.subtitle1" Class="mud-input-helper-text">
@((!string.IsNullOrEmpty(@context.Description) && @context.Description.Length > 100) ? @context.Description.Substring(0, 100) + "..." : @context.Description)
</MudText>
</ItemTemplate>
</MudAutocomplete>
</MudItem>
<MudGrid>
<MudItem sm="12" md="6">
<MudText>Status</MudText>
<MudRadioGroup @bind-SelectedOption="@searchStatus" Style="display:flex;align-items:baseline" id="searchStatus">
<MudItem md="4" sm="12">
<MudRadio Option=@("true") Color="Color.Primary" id="searchStatusEnabled">Enabled</MudRadio>
</MudItem>
<MudItem md="4" sm="12">
<MudRadio Option=@("false") Color="Color.Primary" id="searchDisabled">Disabled</MudRadio>
</MudItem>
<MudItem md="4" sm="12">
<MudRadio Option=@("") Color="Color.Secondary" id="searchStatusAll">All</MudRadio>
</MudItem>
</MudRadioGroup>

</MudSelect>
</MudItem>

<MudItem xs="12" md="6">
<MudAutocomplete T="DeviceModelDto"
id="@nameof(DeviceModelDto.ModelId)"
@bind-Value="Model"
SearchFunc="@Search"
Label="Model"
Dense=true
For=@(() => this.Model)
Variant="Variant.Outlined"
ToStringFunc="@(x => x?.Name)"
ResetValueOnEmptyText=true
Immediate=true
Clearable=true
CoerceText=true
CoerceValue=false>
<ItemTemplate>
@context.Name
<MudText Typo="Typo.subtitle1" Class="mud-input-helper-text">
@((!string.IsNullOrEmpty(@context.Description) && @context.Description.Length > 100) ? @context.Description.Substring(0, 100) + "..." : @context.Description)
</MudText>
</ItemTemplate>
</MudAutocomplete>
</MudItem>
<MudGrid>
<MudItem sm="12" md="6">
<MudText>Status</MudText>
<MudRadioGroup @bind-SelectedOption="@searchStatus" Style="display:flex;align-items:baseline" id="searchStatus">
<MudItem md="4" sm="12">
<MudRadio Option=@("true") Color="Color.Primary" id="searchStatusEnabled">Enabled</MudRadio>
</MudItem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add filters on table columns instead of the search panel

3 participants