From a62e5014ee39308e59fc5da702e413fceb4b2367 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Thu, 2 Apr 2026 23:55:15 +1300 Subject: [PATCH] fix: typos (#1771) Fix a few typos identified with codespell. ## Launch Checklist - [X] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section. --- CHANGELOG.md | 4 ++-- cypress/e2e/modal-driver.ts | 2 +- cypress/e2e/modals.cy.ts | 2 +- src/components/App.tsx | 2 +- src/components/MapMaplibreGlLayerPopup.tsx | 2 +- src/components/_DataProperty.tsx | 2 +- src/components/_ZoomProperty.tsx | 2 +- src/libs/layerwatcher.ts | 2 +- src/styles/index.scss | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f24f77ed..8ae95733 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,8 +20,8 @@ - Fixed the Expression editor (for long expressions) being able to be float under other components further down - Fixed an issue when clicking on a popup and then clicking on the map again -- Fix modal close button possition -- Fixed an issue with the generation of tranlations +- Fix modal close button position +- Fixed an issue with the generation of translations - Fix missing spec info when clicking next to a property - Fix Firefox open file that stopped working due to react upgrade - Fix issue with missing bottom error panel diff --git a/cypress/e2e/modal-driver.ts b/cypress/e2e/modal-driver.ts index a29ad234..76878b83 100644 --- a/cypress/e2e/modal-driver.ts +++ b/cypress/e2e/modal-driver.ts @@ -7,7 +7,7 @@ export default class ModalDriver { public when = { fillLayers: (opts: { type: string; layer?: string; id?: string }) => { // Having logic in test code is an anti pattern. - // This should be splitted to multiple single responsibility functions + // This should be split to multiple single responsibility functions const type = opts.type; const layer = opts.layer; let id; diff --git a/cypress/e2e/modals.cy.ts b/cypress/e2e/modals.cy.ts index 96364fac..db8b7a6b 100644 --- a/cypress/e2e/modals.cy.ts +++ b/cypress/e2e/modals.cy.ts @@ -283,7 +283,7 @@ describe("modals", () => { - it("inlcude API key when change renderer", () => { + it("include API key when change renderer", () => { when.click("modal:settings.close-modal"); when.click("nav:open"); diff --git a/src/components/App.tsx b/src/components/App.tsx index 93382b46..856268f5 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -450,7 +450,7 @@ export default class App extends React.Component { if (message) { try { const objPath = message.split(":")[0]; - // Errors can be deply nested for example 'layers[0].filter[1][1][0]' we only care upto the property 'layers[0].filter' + // Errors can be deeply nested for example 'layers[0].filter[1][1][0]' we only care upto the property 'layers[0].filter' const unsetPath = objPath.match(/^\S+?\[\d+\]\.[^[]+/)![0]; unset(dirtyMapStyle, unsetPath); } diff --git a/src/components/MapMaplibreGlLayerPopup.tsx b/src/components/MapMaplibreGlLayerPopup.tsx index 5b4423e0..4c1a464f 100644 --- a/src/components/MapMaplibreGlLayerPopup.tsx +++ b/src/components/MapMaplibreGlLayerPopup.tsx @@ -57,7 +57,7 @@ class FeatureLayerPopup extends React.Component { // Default color return "black"; } - // This is quite complex, just incase there's an edgecase we're missing + // This is quite complex, just in case there's an edgecase we're missing // always return black if we get an unexpected error. catch (err) { console.warn("Unable to get feature color, error:", err); diff --git a/src/components/_DataProperty.tsx b/src/components/_DataProperty.tsx index 3685efe1..93c22645 100644 --- a/src/components/_DataProperty.tsx +++ b/src/components/_DataProperty.tsx @@ -21,7 +21,7 @@ import { type MappedLayerErrors } from "../libs/definitions"; function setStopRefs(props: DataPropertyInternalProps, state: DataPropertyState) { - // This is initialsed below only if required to improved performance. + // This is initialised below only if required to improved performance. let newRefs: {[key: number]: string} | undefined; if(props.value && props.value.stops) { diff --git a/src/components/_ZoomProperty.tsx b/src/components/_ZoomProperty.tsx index 3f5d1e38..cc91d8e9 100644 --- a/src/components/_ZoomProperty.tsx +++ b/src/components/_ZoomProperty.tsx @@ -24,7 +24,7 @@ import { type MappedLayerErrors } from "../libs/definitions"; * When the stops are reordered the references are also updated (see this.orderStops) this allows React to use the same key for the element and keep keyboard focus. */ function setStopRefs(props: ZoomPropertyInternalProps, state: ZoomPropertyState) { - // This is initialsed below only if required to improved performance. + // This is initialised below only if required to improved performance. let newRefs: {[key: number]: string} = {}; if(props.value && (props.value as ZoomWithStops).stops) { diff --git a/src/libs/layerwatcher.ts b/src/libs/layerwatcher.ts index 1ff41fb2..20157ac9 100644 --- a/src/libs/layerwatcher.ts +++ b/src/libs/layerwatcher.ts @@ -25,7 +25,7 @@ export default class LayerWatcher { // Since we scan over all features we want to avoid this as much as // possible and only do it after a batch of data has loaded because - // we only care eventuall about knowing the fields in the vector layers + // we only care eventually about knowing the fields in the vector layers this.throttledAnalyzeVectorLayerFields = throttle(this.analyzeVectorLayerFields, 5000); } diff --git a/src/styles/index.scss b/src/styles/index.scss index 89ff5d78..de7ccab9 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -33,7 +33,7 @@ border-radius: 2px; position: relative; - // HACK: Overide + // HACK: Override .maputnik-input-block { margin: vars.$margin-2; }