Skip to content

Commit e1ec359

Browse files
committed
feat(manager-dashboard): street project definitions
1 parent 2849130 commit e1ec359

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

manager-dashboard/app/Base/configs/projectTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
PROJECT_TYPE_BUILD_AREA,
44
PROJECT_TYPE_FOOTPRINT,
55
PROJECT_TYPE_CHANGE_DETECTION,
6+
PROJECT_TYPE_STREET,
67
PROJECT_TYPE_COMPLETENESS,
78
} from '#utils/common';
89

@@ -15,6 +16,7 @@ const mapswipeProjectTypeOptions: {
1516
{ value: PROJECT_TYPE_BUILD_AREA, label: 'Find' },
1617
{ value: PROJECT_TYPE_FOOTPRINT, label: 'Validate' },
1718
{ value: PROJECT_TYPE_CHANGE_DETECTION, label: 'Compare' },
19+
{ value: PROJECT_TYPE_STREET, label: 'Street' },
1820
{ value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' },
1921
];
2022

manager-dashboard/app/utils/common.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ export const PROJECT_TYPE_BUILD_AREA = 1;
6565
export const PROJECT_TYPE_FOOTPRINT = 2;
6666
export const PROJECT_TYPE_CHANGE_DETECTION = 3;
6767
export const PROJECT_TYPE_COMPLETENESS = 4;
68+
export const PROJECT_TYPE_STREET = 7;
6869

69-
export type ProjectType = 1 | 2 | 3 | 4;
70+
export type ProjectType = 1 | 2 | 3 | 4 | 7;
7071

7172
export const projectTypeLabelMap: {
7273
[key in ProjectType]: string
@@ -75,6 +76,7 @@ export const projectTypeLabelMap: {
7576
[PROJECT_TYPE_FOOTPRINT]: 'Validate',
7677
[PROJECT_TYPE_CHANGE_DETECTION]: 'Compare',
7778
[PROJECT_TYPE_COMPLETENESS]: 'Completeness',
79+
[PROJECT_TYPE_STREET]: 'Street',
7880
};
7981

8082
export type IconKey = 'add-outline'

manager-dashboard/app/views/NewProject/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import {
5959
PROJECT_TYPE_FOOTPRINT,
6060
PROJECT_TYPE_COMPLETENESS,
6161
PROJECT_TYPE_CHANGE_DETECTION,
62+
PROJECT_TYPE_STREET,
6263
formatProjectTopic,
6364
} from '#utils/common';
6465
import { getValueFromFirebase } from '#utils/firebase';

0 commit comments

Comments
 (0)