Skip to content

Commit

Permalink
Merge pull request #1501 from jay-hodgson/SWC-7225
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson authored Jan 15, 2025
2 parents e877c04 + cb878a7 commit 972bd75
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion apps/portals-e2e/src/explore.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const getFacetFilterControls = (page: Page) => {
const getAvailableFacetsDiv = (page: Page) => {
return getFacetFilterControlsPanel(page)
.locator('> div')
.filter({ hasText: 'Available Facets' })
.filter({ hasText: 'Available Filters' })
}

const countVisibleElements = async (allCells: Locator) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,25 @@ function FacetFilterControls(props: FacetFilterControlsProps) {

return (
<div className={`FacetFilterControls`}>
<div>
<FacetFilterHeader
label={'Available Filters'}
hideCollapsible
isCollapsed={false}
onClick={noop}
/>
{sortBy(allFacetColumns).map(columnName => {
return (
<FacetChip
key={columnName}
onClick={() => toggleShowFacetFilter(columnName)}
isChecked={facetColumnsShown.has(columnName)}
>
{getColumnDisplayName(columnName)}
</FacetChip>
)
})}
</div>
{combineRangeFacetConfig && combinedRangeFacets.length >= 2 && (
<CombinedRangeFacetFilter
facetResults={combinedRangeFacets as FacetColumnResultRange[]}
Expand Down Expand Up @@ -262,25 +281,6 @@ function FacetFilterControls(props: FacetFilterControlsProps) {
)
)
})}
<div>
<FacetFilterHeader
label={'Available Facets'}
hideCollapsible
isCollapsed={false}
onClick={noop}
/>
{sortBy(allFacetColumns).map(columnName => {
return (
<FacetChip
key={columnName}
onClick={() => toggleShowFacetFilter(columnName)}
isChecked={facetColumnsShown.has(columnName)}
>
{getColumnDisplayName(columnName)}
</FacetChip>
)
})}
</div>
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $icon-size: 14px; // component-specific variable
justify-content: space-between;
border-bottom: 1px solid $border-color-gray;
margin-bottom: 8px;
margin-top: 20px;

&__label {
font-weight: bold;
Expand Down

0 comments on commit 972bd75

Please sign in to comment.