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

Hook up saved search APIs. #1368

Merged
merged 1 commit into from
Jun 27, 2024

Commits on Jun 27, 2024

  1. Hook up saved search APIs.

    This hooks up the placeholder locations in the Navigator UI with the
    saved search APIs.
    
    When a user is logged in, we add a "Save Results" button to the search
    results page, and pressing that button will fire an API request to save
    the current search filters and query to the database. This involved
    pulling out the pieces of the search state object that Algolia's
    InstantSearch API manages into the format our API accepts.
    
    On the main dashboard page, we perform the reverse operation, querying
    our API for saved searches, and then reconstituting a simulacrum of the
    serach state object, solely for the purposes of generating the URL query
    parameters directly from that object, which is how the search results
    page normally works.
    richardxia committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    230ec5f View commit details
    Browse the repository at this point in the history