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

FE - 1: Expected Wait Time Page #16

Open
Ron-Madan opened this issue Oct 29, 2024 · 0 comments · May be fixed by #89
Open

FE - 1: Expected Wait Time Page #16

Ron-Madan opened this issue Oct 29, 2024 · 0 comments · May be fixed by #89
Assignees

Comments

@Ron-Madan
Copy link
Contributor

Ron-Madan commented Oct 29, 2024

You should create a new page that should call the expected wait time endpoint. Display the user the wait time for their selected location. This should be a page that comes after the home page. After the button click, you should redirect to the user info page.

If there is no queue (allCourtsFull = False), then the button should be "Start Playing". Otherwise, "Join Queue"

**Queue can have a maximum of 5 players! I.e. if the wait time is (5x0.5) 2.5 hours, then inform the user that the queue is full!

/expectedWaitTime outputs:
Image

Note: Your function to interact with the backend should be hosted in frontend/src/utils/api.js. Refer to the given structure, which has exponential backoff and retries.

Store the expected wait time in local storage. "expectedWaitTime" and the queue nicknames: "queueNicknames"

Also, if players are in front of you, show their names:

"Players in front of you:

  1. Ron
  2. Amy"

Figma Example (ignore the courts diagram):
Image

@AinaMerch AinaMerch self-assigned this Oct 30, 2024
@Ron-Madan Ron-Madan changed the title FE - 1: Join Queue Button / Functionality FE - 1.5: Join Queue Button / Functionality Nov 10, 2024
@Ron-Madan Ron-Madan changed the title FE - 1.5: Join Queue Button / Functionality FE - 1.5: Expected Wait Time & Join Queue Button / Functionality Nov 10, 2024
@Ron-Madan Ron-Madan linked a pull request Nov 10, 2024 that will close this issue
@Ron-Madan Ron-Madan changed the title FE - 1.5: Expected Wait Time & Join Queue Button / Functionality FE - 1.5: Expected Wait Time Page Nov 18, 2024
@Ron-Madan Ron-Madan changed the title FE - 1.5: Expected Wait Time Page FE - 2: Expected Wait Time Page Nov 25, 2024
@Ron-Madan Ron-Madan changed the title FE - 2: Expected Wait Time Page FE - 1.5: Expected Wait Time Page Jan 11, 2025
@Ron-Madan Ron-Madan changed the title FE - 1.5: Expected Wait Time Page FE - 1: Expected Wait Time Page Jan 11, 2025
@VangoCode VangoCode self-assigned this Jan 12, 2025
@VangoCode VangoCode linked a pull request Jan 24, 2025 that will close this issue
@VangoCode VangoCode linked a pull request Jan 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants