Skip to content

feat: popup panel for connection status messages #494

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

Merged
merged 13 commits into from
Mar 4, 2022

Conversation

LPLafontaineB
Copy link
Contributor

Description (*)

This PR adds a simple reusable popup panel that lives in the SettingsPanelCanvas inside the DontDestroyOnLoadScene and uses it to display messages to players related to connection status. Connection status messages are now published through a new message channel instead of being handled by LobbyUIMediator. Finally, a manager is added, which subscribes to this message channel and calls the PopupPanel when needed.

Related Pull Requests

Issue Number(s) (*)

Fixes issue(s): MTT-2677

Manual testing scenarios

  1. Start a game without linking the project id to see a message about anonymous sign-in failing
  2. Start a game with one or more clients and disconnect or pause the host to disconnect clients or make them timeout and see the corresponding messages
  3. Try to join a full lobby to see another message

Questions or comments

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@LPLafontaineB LPLafontaineB added 1-Needs Review PR needs attention from the assignee and reviewers GDC-cherrypick labels Mar 1, 2022
SamuelBellomo
SamuelBellomo previously approved these changes Mar 1, 2022
Copy link
Contributor

@SamuelBellomo SamuelBellomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some improvements for popup, but looks good to me

SamuelBellomo
SamuelBellomo previously approved these changes Mar 1, 2022
@LPLafontaineB LPLafontaineB added 2-One More Review One review in, one to go and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Mar 2, 2022
SamuelBellomo
SamuelBellomo previously approved these changes Mar 2, 2022
SamuelBellomo
SamuelBellomo previously approved these changes Mar 3, 2022
@SamuelBellomo SamuelBellomo added the 0-URGENT Blocker for a release and needs to be merged ASAP label Mar 3, 2022
@fernando-cortez fernando-cortez added 3-Good to Merge and removed 2-One More Review One review in, one to go labels Mar 4, 2022
@LPLafontaineB LPLafontaineB merged commit df31161 into release/GDC2022 Mar 4, 2022
@LPLafontaineB LPLafontaineB deleted the feature/popup-panel branch March 4, 2022 14:33
LPLafontaineB added a commit that referenced this pull request Mar 4, 2022
* Added basic popup panel for connection status and auth errors

* Added a message channel for ConnectionStatus

* Created manager to handle connection status messages

* Displaying new messages to console if popup window is already in use

(cherry picked from commit df31161)
SamuelBellomo pushed a commit that referenced this pull request Mar 4, 2022
* Added basic popup panel for connection status and auth errors

* Added a message channel for ConnectionStatus

* Created manager to handle connection status messages

* Displaying new messages to console if popup window is already in use

(cherry picked from commit df31161)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-URGENT Blocker for a release and needs to be merged ASAP 3-Good to Merge GDC-cherrypick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants