Skip to content

Commit ee1c3e9

Browse files
authored
Add priority bounds maps to challenge form (#2681)
* add priority bounds maps to challenge form * fix missing import issue * Implement custom priority bounds field with map interaction and polygon selection features * Refactor CustomPriorityBoundsField and BoundsSelector components to improve state management and remove unused context. Simplify polygon handling and enhance map interaction features. * Add PriorityBoundsDataContext for shared state management across priority fields. Integrate context in EditChallenge, CustomPriorityBoundsField, and BoundsSelector components to enhance polygon handling and improve map interactions. * Refactor CustomPriorityBoundsField to include AutoZoomToBounds feature for improved map interaction. * update package.json * Add new priority bounds labels and enhance BoundsSelector with modal functionality for polygon management * fix state management * fix tests * formatting
1 parent 3d74c5f commit ee1c3e9

19 files changed

Lines changed: 1546 additions & 328 deletions

File tree

lang/en-US.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
"Admin.EditChallenge.form.exportableProperties.label": "Properties to export in CSV",
137137
"Admin.EditChallenge.form.featured.description": "Featured challenges are shown at the top of the list when browsing and searching challenges. Only super-users may mark a challenge as featured.",
138138
"Admin.EditChallenge.form.featured.label": "Featured",
139+
"Admin.EditChallenge.form.highPriorityBounds.label": "High Priority Bounds",
139140
"Admin.EditChallenge.form.highPriorityRules.label": "High Priority Rules",
140141
"Admin.EditChallenge.form.ignoreSourceErrors.description": "Proceed despite detected errors in source data. Only expert users who fully understand the implications should attempt this.",
141142
"Admin.EditChallenge.form.ignoreSourceErrors.label": "Ignore Errors",
@@ -150,9 +151,11 @@
150151
"Admin.EditChallenge.form.localGeoJson.description": "Please upload the local GeoJSON file from your computer",
151152
"Admin.EditChallenge.form.localGeoJson.label": "I want to upload a GeoJSON file",
152153
"Admin.EditChallenge.form.localGeoJson.readOnly": "If you need to upload fresh GeoJSON, choose Rebuild Tasks when managing your challenge.",
154+
"Admin.EditChallenge.form.lowPriorityBounds.label": "Low Priority Bounds",
153155
"Admin.EditChallenge.form.lowPriorityRules.label": "Low Priority Rules",
154156
"Admin.EditChallenge.form.maxZoom.description": "The maximum allowed zoom level for your challenge. This should be set to a level that allows the user to sufficiently zoom in to work on the tasks while keeping them from zooming in to a level that isn’t useful or exceeds the available resolution of the map/imagery in the geographic region.",
155157
"Admin.EditChallenge.form.maxZoom.label": "Maximum Zoom Level",
158+
"Admin.EditChallenge.form.mediumPriorityBounds.label": "Medium Priority Bounds",
156159
"Admin.EditChallenge.form.mediumPriorityRules.label": "Medium Priority Rules",
157160
"Admin.EditChallenge.form.minZoom.description": "The minimum allowed zoom level for your challenge. This should be set to a level that allows the user to sufficiently zoom out to work on tasks while keeping them from zooming out to a level that isn’t useful.",
158161
"Admin.EditChallenge.form.minZoom.label": "Minimum Zoom Level",
@@ -712,6 +715,24 @@
712715
"CountryName.ZA": "South Africa",
713716
"CountryName.ZM": "Zambia",
714717
"CountryName.ZW": "Zimbabwe",
718+
"CustomPriorityBoundsField.cancel": "Cancel",
719+
"CustomPriorityBoundsField.cancelLasso": "Cancel Lasso",
720+
"CustomPriorityBoundsField.clearAll": "Clear All",
721+
"CustomPriorityBoundsField.clearAllPolygons": "Clear All Polygons",
722+
"CustomPriorityBoundsField.clearPolygons": "Clear All",
723+
"CustomPriorityBoundsField.confirmClearAllMessage": "Are you sure you want to remove all {count} polygons? This action cannot be undone.",
724+
"CustomPriorityBoundsField.deletePolygon": "Delete Polygon",
725+
"CustomPriorityBoundsField.drawPolygon": "Draw Polygon",
726+
"CustomPriorityBoundsField.hideMap": "Hide Map",
727+
"CustomPriorityBoundsField.highPriority": "High Priority",
728+
"CustomPriorityBoundsField.lassoSelect": "Lasso Select",
729+
"CustomPriorityBoundsField.lowPriority": "Low Priority",
730+
"CustomPriorityBoundsField.mediumPriority": "Medium Priority",
731+
"CustomPriorityBoundsField.polygonsDefined": "{count} polygon{count, plural, one { } other {s}} defined",
732+
"CustomPriorityBoundsField.recenterOnPolygons": "Recenter on Polygons",
733+
"CustomPriorityBoundsField.remove": "Remove",
734+
"CustomPriorityBoundsField.removePolygon": "Remove Polygon",
735+
"CustomPriorityBoundsField.showMap": "Show Map",
715736
"CustomUrlList.controls.add.label": "Add URL",
716737
"CustomUrlList.description.description": "Optional brief description of the URL",
717738
"CustomUrlList.name.description": "A unique name/label for this custom URL",
@@ -856,6 +877,7 @@
856877
"Footer.versionLabel": "MapRoulette",
857878
"Footer.versions.heading": "VERSIONS",
858879
"Footer.viewBlog": "Read the Blog",
880+
"Form.controls.addBounds.label": "Add a Bounds",
859881
"Form.controls.addMustachePreview.note": "Note: all mustache property tags evaluate to empty in preview",
860882
"Form.controls.addPriorityRule.label": "Add a Rule",
861883
"Form.controls.markdownField.formatErrorJSON.label": "Upload Failed! Layout must be exported from the task completion flow.",

0 commit comments

Comments
 (0)