diff --git a/fusion_plating/fusion_plating_portal/__manifest__.py b/fusion_plating/fusion_plating_portal/__manifest__.py index 95972936..f36cbc15 100644 --- a/fusion_plating/fusion_plating_portal/__manifest__.py +++ b/fusion_plating/fusion_plating_portal/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Plating — Customer Portal', - 'version': '19.0.4.0.0', + 'version': '19.0.4.1.0', 'category': 'Manufacturing/Plating', 'summary': 'Customer-facing portal for plating shops: online RFQ, job status, ' 'CoC downloads, invoice access.', @@ -84,6 +84,7 @@ Copyright (c) 2026 Nexa Systems Inc. All rights reserved. 'fusion_plating_portal/static/src/js/fp_rfq_form.js', 'fusion_plating_portal/static/src/js/fp_portal_sidebar.js', # NEW — Task 5 'fusion_plating_portal/static/src/js/fp_portal_account_summary.js', # NEW — Task 10 fix + 'fusion_plating_portal/static/src/js/fp_portal_list_search.js', # list search + sort ], }, 'demo': [ diff --git a/fusion_plating/fusion_plating_portal/static/src/js/fp_portal_list_search.js b/fusion_plating/fusion_plating_portal/static/src/js/fp_portal_list_search.js new file mode 100644 index 00000000..87c66eee --- /dev/null +++ b/fusion_plating/fusion_plating_portal/static/src/js/fp_portal_list_search.js @@ -0,0 +1,92 @@ +/** + * Fusion Plating — portal list search + filter UI helper. + * + * Provides client-side, real-time multi-keyword filtering for any portal + * list page that opts in via the markup contract below. Pure vanilla JS, + * no framework, no debounce (client-side filter is <1ms even on 500 rows). + * + * Markup contract: + * - One + * - One container matching with attribute data-fp-filterable + * whose direct children are the filterable rows (e.g. in a tbody, + * or
children of #fp_jobs_list). + * - Optional: updates with N visible + * of M total when a filter is active. Empty (no text) when search is empty. + * + * Each row's textContent is matched against the user's keywords using a + * lowercase AND across whitespace-split tokens. Extra non-visible search + * terms can be added per row as . + * + * Sort dropdown: any