Skip to content

feat(frontend): Add filter navigation remove button - #12668

Merged
SchrodingersGat merged 13 commits into
inventree:masterfrom
matmair:feat(frontend)--Add-filter-navigation-remove-button
Aug 20, 2026
Merged

SchrodingersGat merged 13 commits into
inventree:masterfrom
matmair:feat(frontend)--Add-filter-navigation-remove-button

Conversation

@matmair

@matmair matmair commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Follow up to #12585

This adds an addition button to the page navigation group to remove the filters - providing a fast (and error-safe) way to remove navigation parameters from the current view for cleaner URLs for sharing.

old design

grafik

new design grafik

Includes fix for po tag filtering bug in #12317

@matmair matmair added this to the 1.6.0 milestone Aug 19, 2026
@matmair matmair self-assigned this Aug 19, 2026
@matmair matmair added the User Interface Related to the frontend / User Interface label Aug 19, 2026
@netlify

netlify Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 6f8a3d2
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a87742df3b954000871aa17

@SchrodingersGat

Copy link
Copy Markdown
Member

This is a great idea. I think that the button should be on the right, so that the position does not shift when the test length changes.

@matmair

matmair commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

I am a bit worried that users might accidentally hit the clear button while trying to use the navigation buttons; should we add a separator or something to space things out or do you not see that as a problem?

@SchrodingersGat

Copy link
Copy Markdown
Member

A small spacer / separator would be sufficient I think

@matmair

matmair commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat I have updated the design

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair frontend tests are proving to be super flaky here

@matmair

matmair commented Aug 20, 2026 •

Copy link
Copy Markdown
Member Author

There is a bug introduced in the api refactor for POs; specifically the tags filter; working on a fix

@matmair

matmair commented Aug 20, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat I have found a fix; do you want to merge this with the fix and the new feature or should I split it out into 2?

@SchrodingersGat

Copy link
Copy Markdown
Member

Happy to merge these together

@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.81%. Comparing base (a48ba58) to head (6f8a3d2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12668   +/-   ##
=======================================
  Coverage   86.81%   86.81%           
=======================================
  Files        1454     1454           
  Lines       97401    97404    +3     
  Branches    11406    11406           
=======================================
+ Hits        84561    84564    +3     
  Misses      12774    12774           
  Partials       66       66           
Flag Coverage Δ
backend 90.85% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.23% <100.00%> (+<0.01%) ⬆️
Backend General 93.74% <100.00%> (+<0.01%) ⬆️
Frontend 79.72% <ø> (-0.01%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat

Copy link
Copy Markdown
Member

Thanks @matmair

@SchrodingersGat
SchrodingersGat merged commit 71787d4 into inventree:master Aug 20, 2026
75 of 77 checks passed
@SchrodingersGat
SchrodingersGat deleted the feat(frontend)--Add-filter-navigation-remove-button branch August 20, 2026 23:34
matmair added a commit to matmair/InvenTree that referenced this pull request Aug 21, 2026
SchrodingersGat added a commit that referenced this pull request Aug 21, 2026
* feat(backend): rename filter

* fix filter name

* fix parameter used in test

* remove temporary fix added in #12668

* remove unneeded filter redef

* add changelog

---------

Co-authored-by: Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants