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

Build a search state to enable sharable URLs #1210

Open
DefiDebauchery opened this issue Dec 14, 2022 · 2 comments
Open

Build a search state to enable sharable URLs #1210

DefiDebauchery opened this issue Dec 14, 2022 · 2 comments

Comments

@DefiDebauchery
Copy link
Member

DefiDebauchery commented Dec 14, 2022

Beefy would like to allow for sharable links to Vault search parameters. For instance, a quick-access URL that shows the Vault list pre-filtered for Stablecoin vaults on the BSC network might look like https://app.beefy.com/?type=stable&chain=bsc

All filter types from our Filters should be supported, although for readability, should not simply follow the keys defined here, but should have their own mapping so that we may tweak them as needed.

  • Values for chain should use our canonical names rather than the ID.
  • Values of "all" should simply be default/no value.

On the frontend, as users further refine their filter options, the state should be updated to reflect the current parameters so that the page can be shared as-is.

@TheNaubit
Copy link

Good one, I am going to start working on it

TheNaubit added a commit to TheNaubit/beefy-v2 that referenced this issue Dec 15, 2022
@TheNaubit
Copy link

I made my first attempt at that! #1211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants