Add mapfix history on maps page #294
Reference in New Issue
Block a user
Delete Branch "feature/mapfix-list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If map fixes exist for a map they will be displayed under the map image. Active map fixes were moved to be in this new element as well.
Closes !235
@@ -358,0 +378,4 @@{/* Mapfix Section - Active + History */}{mapfixes.length > 0 && (() => {const activeFix = mapfixes.find(fix => fix.StatusID !== MapfixStatus.Rejected && fix.StatusID !== MapfixStatus.Released);Mapfixes UnderConstruction should not be considered active. ChangesRequested is debatable, but I would consider "active" to mean "requires staff attention", i.e. attention from someone who is not the map fixer.
So the existing implementation was incorrect?
Yes, it was incorrect. Submitting another mapfix is blocked if there is an active mapfix. This is the list of statuses which are considered "active":
Note that this list does not include fixes that are Under Review (MapfixStatus.Submitted), so multiple mapfixes for the same map may be submitted at the same time, but not accepted at the same time.
I think it would be useful to include submitted mapfixes (MapfixStatus.Submitted) in this list in case the submitter is about to duplicate an effort that is already submitted.
I can fix it later since it was already like that.
@@ -69,0 +72,4 @@iconName: string;}function getMapfixStatusInfo(statusId: MapfixStatus): MapfixStatusInfo {Isn't this info duplicated for the status icon on the mapfix page?
That's why it's in a central importable lib instead of embedded into the page. Hunting down all duplication of this is not in scope for the feature. In the future this can be used instead.