From 7f1a791cc7b4b7b539559307ba586c0694ea894c Mon Sep 17 00:00:00 2001 From: Ben Furber Date: Thu, 19 Dec 2024 09:10:01 +0000 Subject: [PATCH] feat: change name to landscape icon --- .../assets/icons/{landscaping.svg => landscape.svg} | 0 .../CategoryVerticalList/CategoryVerticalList.stories.tsx | 2 +- packages/components/src/Icon/Icon.tsx | 2 +- packages/components/src/Icon/svgs.tsx | 4 ++-- packages/components/src/Icon/types.ts | 2 +- packages/cypress/src/fixtures/research.ts | 2 +- packages/cypress/src/integration/research/read.spec.ts | 8 ++++---- shared/mocks/data/research.ts | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) rename packages/components/assets/icons/{landscaping.svg => landscape.svg} (100%) diff --git a/packages/components/assets/icons/landscaping.svg b/packages/components/assets/icons/landscape.svg similarity index 100% rename from packages/components/assets/icons/landscaping.svg rename to packages/components/assets/icons/landscape.svg diff --git a/packages/components/src/CategoryVerticalList/CategoryVerticalList.stories.tsx b/packages/components/src/CategoryVerticalList/CategoryVerticalList.stories.tsx index 3c20826718..da62cca34e 100644 --- a/packages/components/src/CategoryVerticalList/CategoryVerticalList.stories.tsx +++ b/packages/components/src/CategoryVerticalList/CategoryVerticalList.stories.tsx @@ -68,7 +68,7 @@ const allCategoriesForProjectKamp = [ _deleted: false, _id: '45378bdfg', _modified: '2022-12-03T18:03:51.313Z', - label: 'Landscaping', + label: 'Landscape', }, { _created: '2022-12-03T18:03:51.313Z', diff --git a/packages/components/src/Icon/Icon.tsx b/packages/components/src/Icon/Icon.tsx index 06a5be8d66..3c0511478e 100644 --- a/packages/components/src/Icon/Icon.tsx +++ b/packages/components/src/Icon/Icon.tsx @@ -95,7 +95,7 @@ export const glyphs: IGlyphs = { image: , impact: iconMap.impact, instagram: , - landscaping: iconMap.landscaping, + landscape: iconMap.landscape, loading: iconMap.loading, 'location-on': , lock: , diff --git a/packages/components/src/Icon/svgs.tsx b/packages/components/src/Icon/svgs.tsx index 589f94845c..a9fed04ce6 100644 --- a/packages/components/src/Icon/svgs.tsx +++ b/packages/components/src/Icon/svgs.tsx @@ -32,7 +32,7 @@ import verifiedSVG from '../../assets/icons/icon-verified-badge.svg' import viewSVG from '../../assets/icons/icon-views.svg' import websiteSVG from '../../assets/icons/icon-website.svg' import impactSVG from '../../assets/icons/impact.svg' -import landscapingSVG from '../../assets/icons/landscaping.svg' +import landscapeSVG from '../../assets/icons/landscape.svg' import machineSVG from '../../assets/icons/machine.svg' import machinesSVG from '../../assets/icons/machines.svg' import mapSVG from '../../assets/icons/map.svg' @@ -91,7 +91,7 @@ export const iconMap = { hide: , hyperlink: , impact: , - landscaping: , + landscape: , loading: , machine: , machines: , diff --git a/packages/components/src/Icon/types.ts b/packages/components/src/Icon/types.ts index 3f4bfb9fcd..89a9d68b97 100644 --- a/packages/components/src/Icon/types.ts +++ b/packages/components/src/Icon/types.ts @@ -40,7 +40,7 @@ export type availableGlyphs = | 'image' | 'impact' | 'instagram' - | 'landscaping' + | 'landscape' | 'loading' | 'location-on' | 'lock' diff --git a/packages/cypress/src/fixtures/research.ts b/packages/cypress/src/fixtures/research.ts index ba18df7787..99fb01005d 100644 --- a/packages/cypress/src/fixtures/research.ts +++ b/packages/cypress/src/fixtures/research.ts @@ -30,7 +30,7 @@ export const research: IResearchDB = { _modified: '2012-10-27T01:47:57.948Z', _created: '2012-08-02T07:27:04.609Z', _id: 'ehdI345E36hWyk3Ockr', - label: 'Landscaping', + label: 'Landscape', _deleted: false, }, updates: [ diff --git a/packages/cypress/src/integration/research/read.spec.ts b/packages/cypress/src/integration/research/read.spec.ts index 81227d9672..3fe731dbed 100644 --- a/packages/cypress/src/integration/research/read.spec.ts +++ b/packages/cypress/src/integration/research/read.spec.ts @@ -33,7 +33,7 @@ describe('[Research]', () => { .should('have.attr', 'src') .and('include', coverImageFileName) cy.get('[data-cy=Username]').contains('event_reader') - cy.get('[data-cy=category]').contains('Landscaping') + cy.get('[data-cy=category]').contains('Landscape') cy.get('a').should('have.attr', 'href').and('eq', researchUrl) cy.get('[data-cy=ItemResearchStatus]').contains('In progress') cy.get('[data-tooltip-content="How useful is it"]') @@ -48,15 +48,15 @@ describe('[Research]', () => { cy.step('Can select a category to limit items displayed') cy.get('[data-cy=category]').contains('Food') cy.get('[data-cy=CategoryVerticalList]').within(() => { - cy.contains('Landscaping').click() + cy.contains('Landscape').click() }) cy.get('[data-cy=CategoryVerticalList-Item-active]') - cy.get('[data-cy=category]').contains('Landscaping') + cy.get('[data-cy=category]').contains('Landscape') cy.get('[data-cy=category]').contains('Food').should('not.exist') cy.step('Can remove the category filter by selecting it again') cy.get('[data-cy=CategoryVerticalList]').within(() => { - cy.contains('Landscaping').click() + cy.contains('Landscape').click() }) cy.get('[data-cy=category]').contains('Food') diff --git a/shared/mocks/data/research.ts b/shared/mocks/data/research.ts index acec9061b5..6190c4112e 100644 --- a/shared/mocks/data/research.ts +++ b/shared/mocks/data/research.ts @@ -20,7 +20,7 @@ export const research = { _modified: '2012-10-27T01:47:57.948Z', _created: '2012-08-02T07:27:04.609Z', _id: 'ehdI345E36hWyk3Ockr', - label: 'Landscaping', + label: 'Landscape', _deleted: false, }, title: 'Qwerty',