GoodDollar / GoodCollective

Monorepo for GoodCollective (Segmented UBI and Direct Payments Pool)
MIT License
3 stars 1 forks source link

[Bug] recent txs streaming amount will continue endlessly #167

Open sirpy opened 5 months ago

sirpy commented 5 months ago

Recent txs shows a stream as an increasing amount It will continue to show the increasing amount endlessly even if the donation was canceled. Also If the user updated his donation to a new stream value, it will now show both his TXs as continuously growing amounts, while only one is active.

If you go to https://dev-goodcollective.vercel.app/collective/0x010d572cf7297509f4c3555f8bfb53e6e8d6d54a You will see that there are multiple streams from the same wallet, but in reality there's only one.

Solution: Show just the stream flow rate. ie 5G$/Month The /Month is fixed regardless of what the user chose when he created the stream, as the user choice is just a helper for the calculation. All streams are in X/second, in the display we can choose whatever time frame we want.

I've implemented this, which can be merged if approved:

image.png

With stopped streams

image.png

With stopped streams

decentralauren commented 5 months ago

Hi @sirpy . Thank you for this fix, however it will create confusion having all streams appear "per month." What we prefer is a solution that:

sirpy commented 5 months ago

@patpedrosa @decentralauren as I've explained, the per week, month, day we show is for calculation help only. All flows are eventually written as x/second. I would suggest that in the UI stream calculation it would be limited to one time length. Users are used to per month subscriptions.

Ok I'll look into delete op

sirpy commented 5 months ago

@decentralauren @patpedrosa I've added an example in the issue description of how a TX description can look when someone stops his stream. It can show how much in total the stream has donated until it was canceled. and some kind of indication that this is a canceled subscription tx.

Or we can just show that the subcription was canceled without any numbers.

Also similarly you need to decide if you want special indication for stream update. that i've donated at a rate of X/sec but changed it to Y/sec. So again it can show something like "500G$ donated. subscription updated to 100 G$/Month" Or just "Updated to 100G$/Month" or "Updated from 50G$/ Month to 100g$/Month"

It's up to you to decide the exact combination. Take into account that the space is limited and need some design update to include longer descriptions.

decentralauren commented 4 months ago

Thanks @sirpy this is sufficient for now. Appreciate you working on this.

I'd like us to change the icon / appearance of the "stream starting" transaction type in this case, so it's clear that this is not a deposit but an indication of a starting stream. @sanajamm @patpedrosa - can we create a "streaming" icon to be used in these events instead of a deposit icon?

sirpy commented 4 months ago

@decentralauren what does the "product review" status means? so this is waiting for further design and product decisions?

decentralauren commented 4 months ago

@sirpy Product Review is an optional post-QA step for the product team to make sure something is ready to release. In this case, to determine if this fix is sufficient. Moving this specific ticket back to @vldkhh for QA as things have changed since he last reviewed the functionality.

I'm creating a new ticket for my note above as it needs further product / design work and should go into the backlog (we can eventually set a "in design" stage in the pipeline pre-backlog if useful).

github-actions[bot] commented 2 months ago

Stale issue message

decentralauren commented 2 months ago

@sirpy was this ever implemented? I don't see it in any of the live collectives.

sirpy commented 2 months ago

@decentralauren read the comments. You said this need more product design work

sirpy commented 2 months ago

@decentralauren or by "sufficient for now" you ment my solution can be merged?

decentralauren commented 2 weeks ago

Hi @sirpy please see this issue which proposes updating transaction types to align with streaming events. Both are assigned to the same epic to improve Superfluid donation usability.