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

Park Search Page #5

Open
trle5720 opened this issue Nov 16, 2023 · 0 comments
Open

Park Search Page #5

trle5720 opened this issue Nov 16, 2023 · 0 comments
Assignees

Comments

@trle5720
Copy link
Collaborator

trle5720 commented Nov 16, 2023

User must be able to access 'Park Search' page, where all parks are shown. They should be able to click on each park and be redirected to the respective page. There should also be a zipcode search bar at the top that allows the user to type in a zipcode, and then parks are filtered to that zipcode.

BACKEND
-
Park Search Feature 


  • Request: GET
  • Parameters: zipCode
    • /park-search, payload={zipCode}
    • Functionality:
      • Return a JSON object containing rows in the facilities table where distance >= some upper bound of miles
      • if no zipcode is inputted, just return all parks

FRONTEND

- Park Search Feature

  • If request from Home Page (/):
    • Form GET: Input (zipCode) Button (submit)
    • After submit and data received from server:
      • Route to /park-search frontEnd page
        • Display card objects displayed in a grid
      • Each card contains a park that is in the data sent from server
  • If request from Park Search Page (park-search):
    • After submit and data received from server:
      • Display card objects displayed in a grid
      • Each card contains a park that is in the data sent from server
        -Each card should have a 'View Park' Button that will redirect users to the park page(send get route to /park, parameter: id)
@trle5720 trle5720 moved this to Todo in Court Connect Nov 16, 2023
@trle5720 trle5720 changed the title Search Parks Page Park Search Page Nov 16, 2023
@thomasriley0 thomasriley0 self-assigned this Nov 27, 2023
@thomasriley0 thomasriley0 moved this from Todo to In Progress in Court Connect Nov 27, 2023
@thomasriley0 thomasriley0 moved this from In Progress to Done in Court Connect Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants