Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider filter to superadmin #294

Closed
8 tasks
ecurrencyhodler opened this issue Feb 22, 2024 · 6 comments · Fixed by #341
Closed
8 tasks

Add provider filter to superadmin #294

ecurrencyhodler opened this issue Feb 22, 2024 · 6 comments · Fixed by #341
Assignees
Milestone

Comments

@ecurrencyhodler
Copy link
Contributor

ecurrencyhodler commented Feb 22, 2024

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 stakwork/sphinx-tribes#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

  • 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

Here is an example unit test

Here is an example component test

@vishnu552
Copy link
Contributor

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

@MahtabBukhari
Copy link
Contributor

@ecurrencyhodler Could you assign me as it is posted?

@ecurrencyhodler ecurrencyhodler moved this from 🆕 New to 🧨 To Do in Bounties Platform Feb 26, 2024
@ecurrencyhodler ecurrencyhodler added this to the Superadmin milestone Feb 27, 2024
@arimusdev
Copy link
Contributor

assign

@aliraza556
Copy link
Contributor

Hi @ecurrencyhodler,
Assign me?

@AbdulWahab3181
Copy link
Contributor

@ecurrencyhodler Could you please assign me?

@ecurrencyhodler
Copy link
Contributor Author

paid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

6 participants