Skip to content

Build a search state to enable sharable URLs #1210

@DefiDebauchery

Description

@DefiDebauchery

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions