hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
510 stars 275 forks source link

Integrate Partner statistics from mapswipe #6568

Closed bshankar closed 1 month ago

bshankar commented 2 months ago

What type of PR is this? (check all applicable)

Related Issue

This PR fixes #6550 #6538 #6537 #6491

Describe this PR

This PR adds mapswipe statistics for partners.

  1. Add a generic DTO (data transfer object) that contains generic partner statistics.
  2. Add a mapswipe connector that fetches mapswipe statistics and loads them into the DTO.
  3. Implement the UI and various chart components to display these statistics. (Screenshots attached below)

Screenshots

partner-mapswipe-stats

Review Guide

Here are some group ids that we have tested with. -NL6WXPOdFyWACqwNU2O (American Red cross) -NOyTo2zuMtyCNGaqb6J (Microsoft) -O1uWeupd5RrKo-QQGdU (HOT) -NPOaQfvxJ9arN1lmc2X (Leonardo DRS)

You have to link partners with a valid mapswipe group ID first using Manage > edit partner. Needs admin access. Then click on statistics button and then the mapswipe tab.

You can visit the following URL (after substituting the group ID) to view these stats on Mapswipe. https://community.mapswipe.org/user-group/[groupid]/

royallsilwallz commented 1 month ago

The Use Ctrl + Scroll to zoom info in Contributions Heatmap looks more visible if the bg is dark [#333333] and the text color is white as shown below -

image

cc - @VinayakRugvedi @emi420

VinayakRugvedi commented 1 month ago

Here is how the updated cards design look like: Screenshot from 2024-10-10 02-07-54 Screenshot from 2024-10-10 02-07-17

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
1.2% Duplication on New Code

See analysis details on SonarCloud