Skip to content

Commit

Permalink
+ Configurable project's hashtag on Live Monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed May 2, 2024
1 parent 9d3d086 commit 0660636
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/views/projectLiveMonitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
mappingTypesTags,
mappingTypesFeatureTypes,
} from '../config/underpass';
import { TM_DEFAULT_CHANGESET_COMMENT } from '../config';
import './projectLiveMonitoring.css';

const availableImageryValues = availableImageryOptions.map((item) => item.value);
Expand Down Expand Up @@ -53,6 +54,7 @@ export function ProjectLiveMonitoring() {

const [areaOfInterest, setAreaOfInterest] = useState(null);
const [project, setProject] = useState(null);
const defaultComment = `${TM_DEFAULT_CHANGESET_COMMENT}-${id}`.replace("#","");

const hasLiveMonitoringFeature = useHasLiveMonitoringFeature();

Expand Down Expand Up @@ -210,7 +212,7 @@ export function ProjectLiveMonitoring() {
<UnderpassMap
center={coords}
tags={tags}
hashtag={'hotosm-project-' + id}
hashtag={defaultComment}
featureType={featureType}
highlightDataQualityIssues
popupFeature={activeFeature}
Expand Down Expand Up @@ -271,13 +273,13 @@ export function ProjectLiveMonitoring() {
<><div className="border-b-2 pb-5 space-y-3">
<UnderpassFeatureStats
tags={tags}
hashtag={'hotosm-project-' + id}
hashtag={defaultComment}
featureType={featureType}
apiUrl={underpassConfig.API_URL}
area={areaOfInterest} />
<UnderpassValidationStats
tags={tags}
hashtag={'hotosm-project-' + id}
hashtag={defaultComment}
featureType={featureType}
apiUrl={underpassConfig.API_URL}
status="badgeom"
Expand Down Expand Up @@ -315,7 +317,7 @@ export function ProjectLiveMonitoring() {
overflowY: 'auto',
}}
tags={tags}
hashtag={'hotosm-project-' + id}
hashtag={defaultComment}
featureType={featureType}
page={0}
area={areaOfInterest}
Expand Down

0 comments on commit 0660636

Please sign in to comment.