socialincome-san / public

Fighting global poverty with the help of everyday people and your coding skills. Public repository of the NGO and global initiative Social Income.
https://socialincome.org
Other
91 stars 26 forks source link

[Web]: Miscounting of total recipients and other stats on transparency page #927

Open ssandino opened 4 weeks ago

ssandino commented 4 weeks ago

Is there an existing issue for this?

Describe the bug

The Transparency page shows only 186 recipients, while the Admin Tool counts 205 (210 minus 5 test users). There seems to be an issue with the counting.

Steps To Reproduce

Go to transparency site

Expected Behavior

It should show 205 instead of 186 (Oct 2024). When fixing the bug, it would be a quick optimization to add additionally the 2 categories and present them as pills (see screen design below):

  1. Active (all recipients that are flagged: active)
  2. Former (all recipients that are flagged: former and suspended)

Not counted are all with status: Starting Next Payday and Waiting List.

The component pills are already used on the site.

Screenshots?

Image

Desktop Environment (please complete the following information)

Smartphone Type (please complete the following information)

Additional context

No response

Code of Conduct

ssandino commented 3 weeks ago

Input from @kerrrin: There are also many countries showing $0 or $10 as the total amount of donations, which seems inaccurate. For example, we know there was more donated in Panama. For some countries, the amount might indeed be below $5, and it could be rounded down to 0.

Idea: Perhaps it’s best to set a minimum threshold of $100, and if the total is below that, display “Below $100 from x contributors.” So the country is still represented, but not the exact amount.

Image