diff --git a/layouts/integrate/list.html b/layouts/integrate/list.html index d0f5665363..7d1efdc712 100644 --- a/layouts/integrate/list.html +++ b/layouts/integrate/list.html @@ -46,9 +46,10 @@

{{ .Title }}

{{ $labelColors := (dict "library" "bg-redis-yellow-500" "framework" "bg-violet-300" "observability" "bg-blue-300" "provisioning" "bg-redis-red-500" "mig" "bg-pink-300" "di" "bg-teal-300" "cloud-service" "bg-rose-300") }} {{ $labelText := (dict "mig" "data migration" "di" "data integration" "cloud-service" "cloud service") }} {{ range .CurrentSection.Sections }} -
{ const itemName = item.dataset.name.toLowerCase(); // Get the value of data-name attribute + const itemSummary = (item.dataset.summary || '').toLowerCase(); // Get the value of data-summary attribute const itemGroup = item.dataset.group; // Get the value of data-group attribute const firstLetter = itemName.charAt(0); // Get the first letter of the item name - + // Check if the item matches the selected group (or if no group is selected), the name query, and the command query const matchesGroup = selectedGroup === '' || selectedGroup === itemGroup; - const matchesName = itemName.includes(nameQuery); + const matchesName = itemName.includes(nameQuery) || itemSummary.includes(nameQuery); const matchesAlpha = !selectedAlpha || firstLetter === selectedAlpha; console.log(selectedGroup) - + // Show the item if it matches the selected group (or no group selected), the name query, and the command query, otherwise hide it item.style.display = matchesGroup && matchesName && matchesAlpha ? 'flex' : 'none'; });