diff --git a/manager-dashboard/.env.example b/manager-dashboard/.env.example index 453a97527..43e93fcb8 100644 --- a/manager-dashboard/.env.example +++ b/manager-dashboard/.env.example @@ -10,3 +10,6 @@ REACT_APP_FIREBASE_STORAGE_BUCKET= REACT_APP_FIREBASE_MESSAGING_SENDER_ID= REACT_APP_FIREBASE_APP_ID= REACT_APP_COMMUNITY_DASHBOARD_URL= + +# any value except "webapp" will result in default mapswipe project config +REACT_APP_PROJECT_CONFIG_NAME="mapswipe" \ No newline at end of file diff --git a/manager-dashboard/app/Base/configs/projectTypes.ts b/manager-dashboard/app/Base/configs/projectTypes.ts index 020644f67..6c373b8f3 100644 --- a/manager-dashboard/app/Base/configs/projectTypes.ts +++ b/manager-dashboard/app/Base/configs/projectTypes.ts @@ -18,14 +18,14 @@ const mapswipeProjectTypeOptions: { { value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' }, ]; -const crowdmapProjectTypeOptions: { +const webappProjectTypeOptions: { value: ProjectType; label: string; }[] = [ - { value: PROJECT_TYPE_BUILD_AREA, label: 'Build Area' }, - { value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' }, + { value: PROJECT_TYPE_BUILD_AREA, label: 'Tile Classification' }, + { value: PROJECT_TYPE_COMPLETENESS, label: 'Comparison' }, ]; -const projectTypeOptions = PROJECT_CONFIG_NAME === 'crowdmap' ? crowdmapProjectTypeOptions : mapswipeProjectTypeOptions; +const projectTypeOptions = PROJECT_CONFIG_NAME === 'webapp' ? webappProjectTypeOptions : mapswipeProjectTypeOptions; export default projectTypeOptions; diff --git a/manager-dashboard/app/components/TutorialList/index.tsx b/manager-dashboard/app/components/TutorialList/index.tsx index 9ab818f41..14d4d3e52 100644 --- a/manager-dashboard/app/components/TutorialList/index.tsx +++ b/manager-dashboard/app/components/TutorialList/index.tsx @@ -14,10 +14,8 @@ import usePagination from '#hooks/usePagination'; import PendingMessage from '#components/PendingMessage'; import Pager from '#components/Pager'; import { rankedSearchOnList } from '#components/SelectInput/utils'; -import { - ProjectType, - projectTypeLabelMap, -} from '#utils/common'; +import { ProjectType } from '#utils/common'; +import projectTypeOptions from '#base/configs/projectTypes'; import styles from './styles.css'; @@ -101,7 +99,10 @@ function TutorialList(props: Props) {