stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

Fix L/R arrows for org and homepage #333

Open ecurrencyhodler opened 6 months ago

ecurrencyhodler commented 6 months ago

Describe the bug When scrolling L/R on the secondbrain organization bounties, the wrong bounty is displayed as it is not the next listed bounty on the org homepage. Here is the org: https://community.sphinx.chat/org/bounties/ck9drb84nncjnaefo090

Also when you click L, a deleted bounty page appears occasionally

https://github.com/stakwork/sphinx-tribes-frontend/assets/32662508/649b984c-ac6c-4d4c-9239-2b52d4d9ece6

The bounty deleted page also appears on the home page:

https://github.com/stakwork/sphinx-tribes-frontend/assets/32662508/b9274e76-6e85-444a-812a-ac91a29c30d4

Expected behavior

Desktop (please complete the following information):

Acceptance Criteria

Here is an example unit test Here is an example component test

aliraza556 commented 6 months ago

Hi @ecurrencyhodler Assign me?

Vayras commented 6 months ago

@ecurrencyhodler can you assign this one to me

Vayras commented 6 months ago

@ecurrencyhodler Since the next bounty (if present) will only be acknowledged after user has clicked on the button it is best to show an alert that user has reached the end of list, instead of disabling the button to scroll. what are your thoughts on this?

Screenshot 2024-03-04 at 6 55 43 PM
Vayras commented 6 months ago

for now I have added the default html alert, we can implement a new site wide alert component, or use one from a library, which I think can be handled in a seprate PR from this.

ecurrencyhodler commented 6 months ago

@Vayras We have a toast that appears on the bottom right. Can we use that instead? Message should be: There are no more bounties to display!

Vayras commented 6 months ago

@Vayras We have a toast that appears on the bottom right. Can we use that instead? Message should be: There are no more bounties to display!

Sure let's use that