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

Add provider filter to superadmin #294

Closed ecurrencyhodler closed 7 months ago

ecurrencyhodler commented 8 months ago

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: Dropdown v2

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

vishnu552 commented 8 months ago

Hey, @ecurrencyhodler I would like to work on this issue

MahtabBukhari commented 8 months ago

@ecurrencyhodler Could you assign me as it is posted?

arimusdev commented 8 months ago

assign

aliraza556 commented 7 months ago

Hi @ecurrencyhodler, Assign me?

AbdulWahab3181 commented 7 months ago

@ecurrencyhodler Could you please assign me?

ecurrencyhodler commented 7 months ago

paid