Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions assets/scripts/components/grouped-item-listings.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function initializeGroupedListings() {
}
}

const showResults = (filteredResults) => {
const showResults = (filteredResults, shouldExpand = false) => {
// Hide all groups, headers, and rules.
allRules.forEach(element => {
element.style.display = 'none';
Expand Down Expand Up @@ -86,6 +86,9 @@ export function initializeGroupedListings() {
jsGroup.style.display = 'block';
if(header) {
header.style.display = 'block';
if (shouldExpand) {
header.classList.add('active')
}
}
}
element.style.display = 'inline';
Expand All @@ -105,7 +108,7 @@ export function initializeGroupedListings() {

const filtered = filterResults(selectedCategory, searchValue);
setActiveCategoryFilterButton(selectedCategory);
showResults(filtered);
showResults(filtered, true);
}

const handleKeyup = () => {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.24.4

require (
github.com/DataDog/websites-modules v1.4.253 // indirect
github.com/DataDog/websites-sources v0.0.0-20250826202848-b1166170e449 // indirect
github.com/DataDog/websites-sources v0.0.0-20250902122821-9ba8ca7790bf // indirect
)

// replace github.com/DataDog/websites-modules => /Users/lisiane.turlure/guac/websites-modules
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/DataDog/websites-modules v1.4.253 h1:Sd+5ILFUVOyagh3oUMyc0onM7bykJy0asO9ObLgx4ms=
github.com/DataDog/websites-modules v1.4.253/go.mod h1:CcQxAmCXoiFr3hNw6Q+1si65C3uOP1gB+7aX4S3h+CQ=
github.com/DataDog/websites-sources v0.0.0-20250826202848-b1166170e449 h1:7/gA9fYaZJT+GE7HnI7u7gKn+arQPKVy5EdGqAFVazs=
github.com/DataDog/websites-sources v0.0.0-20250826202848-b1166170e449/go.mod h1:DlDYkYoR/nhKYRur0+2jmGGc7ydk8Q0ybWkS6oaLVuo=
github.com/DataDog/websites-sources v0.0.0-20250902122821-9ba8ca7790bf h1:TQfWMzUfQaB7E2v7277AocEj5+gCEpHB/ieeDTZ74tM=
github.com/DataDog/websites-sources v0.0.0-20250902122821-9ba8ca7790bf/go.mod h1:DlDYkYoR/nhKYRur0+2jmGGc7ydk8Q0ybWkS6oaLVuo=
Loading