okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
329 stars 43 forks source link

Dashboard: only show history if it exists #2269

Closed dotmacro closed 1 month ago

dotmacro commented 1 month ago

Problem

Note: This is very similar to issue #2163

On testing, as soon as the group is created, the dashboard "support %" and "todo %" tabs both correctly indicate that there is no history yet. (This was not tested on live.)

noHistory-testingCorrect

However, on live and testing, as soon as the first distribution period starts, the dashboard "support %" and "todo %" tabs both show 0% for the period preceding the first distribution, even though that period didn't exist -- meaning no users were instructed to send payments, nor could they have marked payments as sent in the app.

noHistory--testingIncorrectSupport noHistory-testingIncorrectTodo

Solution

Only show history when history exists. The first distribution period should be the first period tracked on the Support, TODO, and Activity tabs.