Skip to content

Commit a71a8c5

Browse files
feature/DF-861: Geospatial component (#321)
* Initial geospatial component * Fix package-lock.json * Add geospatial clientside map capability * Add event constants * Allow change for points * Add geospatial tests * Refactor tests * Update package-lock.json * Fix formatting * Add linting exceptions * Fix test error message text * Sonar fixes (missing else) * Sonar fixes (already declared in the upper scope) * Sonar fixes (file too big) * Add action button click tests * Rename polygon to shape * Fix shared test * Sonar fixes (function too big) * Sonar fixes (reduce function size) * Improve JsDoc types * Sonar fixes (reduce function size) * Toggle action buttons when finished editing drawing * Add feature description changed event * Update Geospatial field summary display * Geospatial getContextValueFromFormValue * Update error messages * Revert geospatial context value format * Fix geospatial field tests * Add gridref helper tests * Add grid ref to feature properties on the clientside * Special case Geospatial fields when building data for `submit` * Remove unused files * Fix map tests to generate grid refernce on the client * Sonar fixes * Sonar fixes (fn too big) * Sonar fix (fn too big) * Return centroid and coordinate grid refs in geojson * Sonar fixes (consistent return) * Fix map tests * Don't allow edit of another while there's an active feature * Refactor list UI * Change link text * Replace description input * Sonar fixes * Add geospatial submision tests * Update geospatial list * Update node 24 * Remove card list UI * Update list UI * Fix breaking tests * Fix breaking tests * Fix failing tests * Sonar fixes (move to highest scope) * Export map plugin separately * Export shared map functions and allow for readonly list * Update geospatial map help info * Move exported functions to the top of the file * Move exported functions to the top of the file * Sonar fixes (negation) * Add convenient "id" properties to the page and component base classes * Update feature label text * Fit feature to bounds to focus * Sonar fixes (refactor if-else) * Fix typo in Geospatial array.min error message * Add GeometryType enum * SVG constants * Revert "Add GeometryType enum" This reverts commit 5ddde77. * Revert "Fix typo in Geospatial array.min error message" This reverts commit 4902649. * Fix spacing * Add Geospatial test for getErrors
1 parent 9c27495 commit a71a8c5

File tree

28 files changed

+5656
-6608
lines changed

28 files changed

+5656
-6608
lines changed

package-lock.json

Lines changed: 2306 additions & 6196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"./schema.js": "./.server/server/schemas/index.js",
3232
"./templates/*": "./.server/server/plugins/engine/views/*",
3333
"./cache-service.js": "./.server/server/services/cacheService.js",
34+
"./map-plugin.js": "./.server/server/plugins/map/index.js",
3435
"./package.json": "./package.json"
3536
},
3637
"scripts": {
@@ -84,9 +85,10 @@
8485
"dependencies": {
8586
"@defra/forms-model": "^3.0.637",
8687
"@defra/hapi-tracing": "^1.29.0",
87-
"@defra/interactive-map": "^0.0.4-alpha",
88+
"@defra/interactive-map": "^0.0.11-alpha",
8889
"@elastic/ecs-pino-format": "^1.5.0",
8990
"@hapi/boom": "^10.0.1",
91+
"@hapi/bourne": "^3.0.0",
9092
"@hapi/catbox": "^12.1.1",
9193
"@hapi/catbox-memory": "^6.0.2",
9294
"@hapi/catbox-redis": "^7.0.2",
@@ -98,6 +100,8 @@
98100
"@hapi/vision": "^7.0.3",
99101
"@hapi/wreck": "^18.1.0",
100102
"@hapi/yar": "^11.0.3",
103+
"@turf/bbox": "^7.3.4",
104+
"@turf/centroid": "^7.3.4",
101105
"@types/humanize-duration": "^3.27.4",
102106
"accessible-autocomplete": "^3.0.1",
103107
"atob": "^2.1.2",
@@ -182,16 +186,15 @@
182186
"eslint-config-prettier": "^10.1.8",
183187
"eslint-plugin-jest": "^28.14.0",
184188
"eslint-plugin-jsdoc": "^50.8.0",
185-
"globals": "^17.3.0",
186-
"neostandard": "^0.12.2",
187-
"typescript-eslint": "^8.56.1",
188189
"global-jsdom": "^26.0.0",
190+
"globals": "^17.3.0",
189191
"husky": "^9.1.7",
190192
"jest": "^30.2.0",
191193
"jest-extended": "^7.0.0",
192194
"jsdom": "^26.1.0",
193195
"lint-staged": "^15.5.2",
194196
"mockdate": "^3.0.5",
197+
"neostandard": "^0.12.2",
195198
"nock": "^14.0.10",
196199
"postcss": "^8.5.6",
197200
"postcss-load-config": "^6.0.1",
@@ -208,6 +211,7 @@
208211
"terser-webpack-plugin": "^5.3.14",
209212
"tsx": "^4.20.6",
210213
"typescript": "^5.9.3",
214+
"typescript-eslint": "^8.56.1",
211215
"webpack": "^5.102.1",
212216
"webpack-assets-manifest": "^6.4.0",
213217
"webpack-cli": "^6.0.1"

0 commit comments

Comments
 (0)