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

FR: Allow user to order pools by sequence of prioritised attributes #2

Open
TerminadaPool opened this issue Nov 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@TerminadaPool
Copy link

In the Staking -> Pool Picker screen, would it be possible to allow the user to order pools by a selected sequence of prioritised attributes? IE: Allow the user to order by Pledge, then Cost, then Margin?

@fallen-icarus
Copy link
Owner

fallen-icarus commented Nov 19, 2024

I actually had a "filter language" built in that enabled you to use json to encode your filter/sort settings, but it wasn't very user friendly:

  • json isn't very approachable
  • the haskell gui library's text boxes are laggy so typing your settings directly into the app was clunky

I wasn't able to come up with an easy UI for layered filtering/sorting, but it is something I would like to revisit. Perhaps other gui frameworks won't have the same issues as the haskell one the p2p-wallet is using.

@TerminadaPool
Copy link
Author

What about if you had an ordering box where you could add/remove fields to/from the box and the list gets ordered accordingly? Then you could click an arrow or drag up/down the field within the box to give it higher/lower priority?

But, I don't know if the Haskell gui library has such text box features which are easily programmable.

@fallen-icarus
Copy link
Owner

What about if you had an ordering box where you could add/remove fields to/from the box and the list gets ordered accordingly? Then you could click an arrow or drag up/down the field within the box to give it higher/lower priority?

I can give this a shot and see how involved it is. Idk if I'll be able to do the dragging (I haven't learned how to do that with this haskell library), but arrow buttons should suffice.

@fallen-icarus fallen-icarus added the enhancement New feature or request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants