Filter tx type on treasury page
martonp opened this issue · 5 comments
I don't see any way to see the list of treasury spends. This would be possible if there was a option to filter by tx type on the treasury page.
I would like to work on this if this is a desirable feature.
There is a transaction type selection dropdown at the bottom of the page. Isn't that what you're referring to?
I did notice that the pagination seems to have a few bugs though. For example, if you refresh the page with a transaction type selected (spend in this case), it'll show the correct number of transactions (e.g. showing 1 -- 4 of 4 transactions
), but if you select All
from the type dropdown and then go back to Spend
, it doesn't update properly (e.g. showing 1 – 20 of 123,607 transactions
).
I also noticed the next link is not disabled when when there are no more results as would be expected.
For example, if you start at https://explorer.dcrdata.org/treasury?txntype=tspend, the next link is active and if you click it, the pagination changes to showing 21 – 40 of 123,608 transactions
although there are not any actual results displayed.
Ah I didn't see that on the bottom there, I was looking for it at the top. That is a valid issue though, I can fix that one.
Ah I didn't see that on the bottom there, I was looking for it at the top
We could move it to the top. I forget it's down there too.
Could even make the default type selection the tspends.