Skip to content

Commit ba7677d

Browse files
committed
fix(project-type): Add Street project type in dashboard
1 parent 038c75c commit ba7677d

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

app/components/ItemSelectInput/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const USER_GROUPS = gql`
6767
query UserGroupOptions($search: String, $offset: Int!, $limit: Int!) {
6868
contributorUserGroups(
6969
filters: {
70-
name: {iContains: $search}
70+
name: $search
7171
}
7272
pagination: {
7373
limit: $limit,

app/views/StatsBoard/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,7 @@ function StatsBoard(props: Props) {
441441
)?.totalArea;
442442
*/
443443
const streetTotalArea = areaSwipedByProjectType?.find(
444-
// TODO: Change the type to street
445-
(project) => project.projectType === COMPLETENESS,
444+
(project) => project.projectType === STREET,
446445
)?.totalArea;
447446

448447
const completenessTotalArea = areaSwipedByProjectType?.find(
@@ -466,8 +465,7 @@ function StatsBoard(props: Props) {
466465
)?.totalSwipes;
467466

468467
const streetTotalSwipes = swipeByProjectType?.find(
469-
// TODO: Change the type to street
470-
(project) => project.projectType === COMPLETENESS,
468+
(project) => project.projectType === STREET,
471469
)?.totalSwipes;
472470

473471
const completenessTotalSwipes = swipeByProjectType?.find(
@@ -666,7 +664,7 @@ function StatsBoard(props: Props) {
666664
Area Swipes
667665
</div>
668666
)}
669-
subHeading="Find features"
667+
subHeading="Find Features"
670668
variant="stat"
671669
/>
672670
<InformationCard
@@ -782,7 +780,7 @@ function StatsBoard(props: Props) {
782780
)}
783781
label={(
784782
<div className={styles.infoLabel}>
785-
Streets Viewed
783+
Street Viewed
786784
</div>
787785
)}
788786
subHeading="View Streets"

app/views/UserDashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const USER_STATS = gql`
5555
}
5656
contributorUserGroups(
5757
pagination: {limit: $limit, offset: $offset}
58-
filters: {firebaseId: $pk}
58+
filters: {userFirebaseId: $pk}
5959
) {
6060
results {
6161
id

backend

Submodule backend updated 170 files

0 commit comments

Comments
 (0)