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.
I'd like to be able to filter for providers when looking at bounties inside of superadmin.
We are currently grabbing bounties using this call: metrics/bounties.
We are adding an optional word clause to search for providers and their bounties only using or statements so that multiple providers and the bounties they posted are returned. This is being developed in https://github.com/stakwork/sphinx-tribes/issues/1547
Design
Here is the design in figma. Use dev move for exact requirements:
In terms of functionality, I click on "Providers" and displays a dropdown.
The dropdown will aggregate and display all unique providers within the set date range by default. I can also click on multiple providers.
I will only be displayed 5 providers initially but will have the ability to scroll to see the rest. I will also see their sphinx alias's not pubkeys. If there is no sphinx alias and only a pubkey, follow the design above.
The call will be made when I click "apply". When I click "clear" all selections will be removed but dropdown filter display will be preserved.
Acceptance Criteria
[ ] I've tested on Chrome
[ ] I've submitted a screenshot or recording in my pr
[ ] I've created a test that displays the dropdown when I click on "providers"
[ ] I've created a test that the appropriate call is stored when I select providers
[ ] I've created a test that makes a call when I "apply"
[ ] I've created a test that clears selections when I click "clear"
[ ] I have rebased and tested locally before submitting my PR
[ ] I can submit a pr within 2 days of taking the bounty
Context
I'd like to be able to filter for providers when looking at bounties inside of superadmin.
We are currently grabbing bounties using this call:
metrics/bounties
.We are adding an optional word clause to search for providers and their bounties only using or statements so that multiple providers and the bounties they posted are returned. This is being developed in https://github.com/stakwork/sphinx-tribes/issues/1547
Design
Here is the design in figma. Use dev move for exact requirements:
In terms of functionality, I click on "Providers" and displays a dropdown.
The dropdown will aggregate and display all unique providers within the set date range by default. I can also click on multiple providers.
I will only be displayed 5 providers initially but will have the ability to scroll to see the rest. I will also see their sphinx alias's not pubkeys. If there is no sphinx alias and only a pubkey, follow the design above.
The call will be made when I click "apply". When I click "clear" all selections will be removed but dropdown filter display will be preserved.
Acceptance Criteria
Here is an example unit test
Here is an example component test