j3k0 / ganomede-admin

Ganomede administration interface
0 stars 0 forks source link

Improve display of the transaction history #87

Closed j3k0 closed 2 years ago

j3k0 commented 2 years ago

Final result:

gold-coin

Date Item Amount Balance
2021-01-01 single player 1 1
2021-01-04 single player 1 2
2021-01-05 multi player 2 4
2021-01-05 purchase strawberry -1 3

silver-coin

Date Item Amount Balance
2021-01-03 large pack 100 100
2021-01-03 hint -10 90
2021-01-09 hint -10 80
j3k0 commented 2 years ago

@HusseinTaha This task wasn't well specified sorry.

The idea here is not just to fix the scrolling, but a deeper change. I'll update the description right away.

HusseinTaha commented 2 years ago

The task is accomplished, please check the below screenshot.

Screen Shot 2021-11-06 at 6 08 50 AM

However i didn't push yet. How to calculate the balance column? cause I can't see that prop inside the json returned. Can you please advise?

j3k0 commented 2 years ago

Good!

The balance is like in a bank account: accumulate the amount of each transaction over time. In the silver example above, you would have 10, then 12, then 13, then 14.

Another thing, you could remove the "Actions" column and just make the "item" clickable.

HusseinTaha commented 2 years ago

I updated the changes, but I am not sure why the commits are not showing here .. anwyays here is a link => #94