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

Add popup UI logic #14

Closed
abozanona opened this issue Apr 30, 2022 · 0 comments · Fixed by #15
Closed

Add popup UI logic #14

abozanona opened this issue Apr 30, 2022 · 0 comments · Fixed by #15
Assignees

Comments

@abozanona
Copy link
Owner

Every time the user opens the popup, display the popup content based on the status read from the current opened page.

List of possible status received from the content page:

Code What is content status What should show in popup
null/undefined/nothing This is the default status code.
It will return in cases when the
content script is not loaded on
page or the page doesn't support
loading content script.
A message indicating that the
script is not loaded. Please
make sure that the page is valid
and to refresh the page if it is a
valid page.
WAITING_CREATE_ROOM When the content script is loaded
successfully but no video was selected
by user and no room was created
Show two options to either create a
new room or join a room. If the users
creates a new room show him a message
to select a video from page. If the user
Selects a video from page, show him a
screen with the party details and the
ability to share party link.
WAITING_SELECT_VIDEO Socket is opened but the user didn't
select any video
show the user a message asking him
to select a video from page. If the user
Selects a video from page, show him a
screen with the party details and the
ability to share party link.
PARTY_SETUP_COMPLETED Video is selected and socket is
connected to party.
show user a screen with the party details
wiith the ability to share party link.
@abozanona abozanona self-assigned this Apr 30, 2022
@abozanona abozanona added this to In progress in Project Luca Apr 30, 2022
@abozanona abozanona linked a pull request Apr 30, 2022 that will close this issue
Project Luca automation moved this from In progress to Done Apr 30, 2022
abozanona added a commit that referenced this issue Apr 30, 2022
#14 Add conditions to view popup screens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant