From a6056f69caba6192010e6f0f240233058c19b498 Mon Sep 17 00:00:00 2001 From: Jason <17367223+jsoltys@users.noreply.github.com> Date: Tue, 28 Apr 2026 16:50:41 -0500 Subject: [PATCH] Advanced search work started Co-authored-by: Copilot --- app/static/js/script.js | 12 +- app/templates/advanced_search.html | 341 ++++++++++++++++++++++++----- 2 files changed, 298 insertions(+), 55 deletions(-) diff --git a/app/static/js/script.js b/app/static/js/script.js index 9c68169..5ddf309 100644 --- a/app/static/js/script.js +++ b/app/static/js/script.js @@ -1677,8 +1677,16 @@ function showSearchResultsGrid(matches, searchTerm) { // Handle Advanced Search button click function handleAdvancedSearch() { - // Navigate to advanced search page - window.location.href = '/quiz/advanced-search'; + // Get search text from input field + const searchInput = document.getElementById('searchInput'); + const searchText = searchInput ? searchInput.value.trim() : ''; + + // Navigate to advanced search page with search query parameter + if (searchText) { + window.location.href = '/quiz/advanced-search?q=' + encodeURIComponent(searchText); + } else { + window.location.href = '/quiz/advanced-search'; + } } // Set up search input event listeners diff --git a/app/templates/advanced_search.html b/app/templates/advanced_search.html index d172455..7c5edc4 100644 --- a/app/templates/advanced_search.html +++ b/app/templates/advanced_search.html @@ -9,52 +9,62 @@ Advanced Search - Product Finder @@ -76,32 +86,235 @@
-
-
🚧
-
Work in Progress
-
Advanced Search Features Coming Soon
- -
-

Planned Features:

-
    -
  • Multi-criteria filtering (type, material, color, size)
  • -
  • Price range filters
  • -
  • Availability by location
  • -
  • Advanced product specifications search
  • -
  • Compatibility matching
  • -
  • Save and share custom searches
  • -
+
+
+

🔍 Search Products

+

+ Search by product code, description, color, material, or any combination. + Try: "c1800", "storm door white", "bronze aluminum" +

-
- - +
+ + + +
+ +
+ +
+