diff --git a/packages/components/src/MapFilterList/MapFilterList.tsx b/packages/components/src/MapFilterList/MapFilterList.tsx index 38dad081b2..b490169fc0 100644 --- a/packages/components/src/MapFilterList/MapFilterList.tsx +++ b/packages/components/src/MapFilterList/MapFilterList.tsx @@ -40,7 +40,7 @@ export const MapFilterList = (props: IProps) => { const isActive = (checkingFilter: string) => !!activeFilters.find((filter) => filter.label === checkingFilter) - const buttonLabel = `Show ${pinCount} result${pinCount === 1 ? '' : 's'}` + const buttonLabel = `${pinCount} result${pinCount === 1 ? '' : 's'} in current view` return ( { padding: 2, }} > - - So what are you looking for? - + + + Filter what you see + + + + Zoom out on the map to search the whole world + + { {tagFilters.length > 0 && ( - Activities + Spaces activities {tagFilters.map((typeFilter, index) => { const onClick = () => onFilterChange(typeFilter) diff --git a/packages/cypress/src/integration/map.spec.ts b/packages/cypress/src/integration/map.spec.ts index ab792da483..5d721f876f 100644 --- a/packages/cypress/src/integration/map.spec.ts +++ b/packages/cypress/src/integration/map.spec.ts @@ -61,7 +61,7 @@ describe('[Map]', () => { cy.get('[data-cy="CardList-desktop"]').within(() => { cy.get('[data-cy=CardListItem-selected]').within(() => { cy.contains(userId) - cy.get('[data-cy="MemberBadge-member"]') + cy.get('[data-cy="MemberBadge-workshop"]') }) }) cy.get('[data-cy="PinProfile"]') @@ -102,17 +102,12 @@ describe('[Map]', () => { cy.get('[data-cy="ShowMobileListButton"]').click() cy.get('[data-cy="CardList-mobile"]').within(() => { cy.get('[data-cy=CardListItem]') - .last() + .first() .within(() => { cy.contains(userId) - cy.get('[data-cy="MemberBadge-member"]') + cy.get('[data-cy="MemberBadge-workshop"]') }) }) - cy.get('[data-cy=MapFilterProfileTypeCardList-ButtonRight]') - .last() - .click() - .click() - cy.get('[data-cy=MapListFilter]').last().click() cy.step('Mobile list view can be hidden') cy.get('[data-cy="ShowMapButton"]').click() diff --git a/src/pages/Maps/Maps.client.tsx b/src/pages/Maps/Maps.client.tsx index 5874e325f7..a338360979 100644 --- a/src/pages/Maps/Maps.client.tsx +++ b/src/pages/Maps/Maps.client.tsx @@ -38,7 +38,10 @@ const MapsPage = () => { const pinDetails = allPins.map(({ creator }) => [ creator?.profileType, - ...(creator?.tags ? creator.tags.map(({ _id }) => _id) : []), + // Hiding member tags for the moment + ...(creator?.tags && creator?.profileType !== 'member' + ? creator.tags.map(({ _id }) => _id) + : []), ...(creator?.badges ? Object.keys(creator?.badges).filter((key) => key) : []),