Skip to content

Commit

Permalink
Merge pull request #6406 from hotosm/fix/liveMonitoringViewLoad
Browse files Browse the repository at this point in the history
+ Configurable project's hashtag on Live Monitoring
  • Loading branch information
ramyaragupathy authored May 3, 2024
2 parents 4de0ad8 + 0660636 commit d1dcbaf
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 d1dcbaf

Please sign in to comment.