From 35b1cf1db061b1ba7eeebb881e296012427cd13d Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Mon, 18 Nov 2024 18:50:45 +0545 Subject: [PATCH] fix(frontend): project creation wording form --> survey (#1858) * fix(uploadArea): add note to left container * fix(select-category): update Select Category terminology * fix(selectCategoryUrl): /select-category path update to /select-form * fix(uploadArea): update text * fix(dataExtract): add note about additional feature * fix(selectForm): update text select form to upload survey --- src/frontend/e2e/01-create-new-project.spec.ts | 2 +- .../components/ManageProject/EditTab/FormUpdateTab.tsx | 6 +++--- .../OpenLayersComponent/LayerSwitcher/index.js | 2 +- .../src/components/createnewproject/DataExtract.tsx | 10 ++++++++-- .../src/components/createnewproject/SelectForm.tsx | 10 +++++----- .../src/components/createnewproject/UploadArea.tsx | 6 ++++-- .../validation/SelectFormValidation.tsx | 2 +- src/frontend/src/constants/StepFormConstants.ts | 4 ++-- src/frontend/src/constants/blockerUrl.ts | 2 +- src/frontend/src/routes.jsx | 2 +- src/frontend/src/views/CreateNewProject.tsx | 4 ++-- 11 files changed, 29 insertions(+), 21 deletions(-) diff --git a/src/frontend/e2e/01-create-new-project.spec.ts b/src/frontend/e2e/01-create-new-project.spec.ts index 96395ff6b..2d72ad9e8 100644 --- a/src/frontend/e2e/01-create-new-project.spec.ts +++ b/src/frontend/e2e/01-create-new-project.spec.ts @@ -65,7 +65,7 @@ test('create new project', async ({ browserName, page }) => { // 3. Select Category Step await page.getByRole('button', { name: 'NEXT' }).click(); - await expect(page.getByText('Form Category is Required.')).toBeVisible(); + await expect(page.getByText('Survey Type is Required.')).toBeVisible(); await page.getByRole('combobox').click(); await page.getByLabel('buildings').click(); await page.getByRole('button', { name: 'NEXT' }).click(); diff --git a/src/frontend/src/components/ManageProject/EditTab/FormUpdateTab.tsx b/src/frontend/src/components/ManageProject/EditTab/FormUpdateTab.tsx index f37c182f1..f60ce8a62 100644 --- a/src/frontend/src/components/ManageProject/EditTab/FormUpdateTab.tsx +++ b/src/frontend/src/components/ManageProject/EditTab/FormUpdateTab.tsx @@ -47,8 +47,8 @@ const FormUpdateTab = ({ projectId }) => {
{error.categoryError}
}- The category will be used to set the OpenStreetMap{' '} + The survey type will be used to set the OpenStreetMap{' '} { - if (url === '/select-category') { + if (url === '/upload-survey') { dispatch( CreateProjectActions.SetIndividualProjectDetailsData({ ...formValues, @@ -226,6 +226,12 @@ const DataExtract = ({ You can use these map features to use the 'select from map' functionality from ODK that allows you to select the feature to collect data for. {' '} + + Additional datasets might be important if your survey consists of more than one feature to select. For + example, selecting a building as the primary feature, with an associated road, or nearby hospital. In this + case, the roads or hospital features would be uploaded separately. Note that these features will not be + factored in when dividing the primary features into task areas. +