2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-02-25 16:17:58 +00:00

[UI] Default table filters (#11405)

* Support "default filters" for table views

- User overrides apply in preference
- Only when there is no stored value (null)

* Correctly handle partially constructed filters

- Reverse lookup on available filter set

* Add default filters for order tables

* Default filters for company tables

* More default filters

* Add some more default filters

* Bump CHANGELOG

* build fix

* Tweaks for playwright testing

* Tweak playwright test

* Improve test flexibility
This commit is contained in:
Oliver
2026-02-23 19:46:17 +11:00
committed by GitHub
parent d48643319c
commit cef5d4d9c0
33 changed files with 331 additions and 53 deletions

View File

@@ -25,6 +25,14 @@ test('Purchasing - Index', async ({ browser }) => {
await showCalendarView(page);
await showTableView(page);
// Check default filters are applied
// By default, only outstanding orders are visible
await page.getByText(/1 - \d+ \/ \d+/).waitFor();
// Clearing the filters, more orders should be visible
await clearTableFilters(page);
await page.getByText(/1 - 1\d \/ 1\d/).waitFor();
// Suppliers tab
await loadTab(page, 'Suppliers');
await showParametricView(page);