World-Cleanup-Day
World-Cleanup-Day copied to clipboard
(Web) (Admin) Admin cannot see summary of trashpoints for the country since new release
When clicking on a country, it should be possible to see how many trashpoints is created, how many are cleaned, etc.
Icon and number or something else?
Icon and number is enough. This should be also on superadmin level for global results. And for users: country level and global level.
The component is already there from before (displayed only for one use-case — teams) and it needs to stay on top as before, otherwise we'd need horizontal scrollbars, which is a UI nightmare.
The original code is still there, just unused, as events received their own TrashpointList and there's no general list of trashpoints any more. A renderStatusCounts function is used in both implementations.
Interestingly, superadmins can still see country stats by visiting https://app.worldcleanupday.com/user-areas and picking one. Leaders get the user list though, so it doesn't solve much. Not hard to make togglable and expose it as another menu entry, just harder to test.