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

Video 4673 remove preflight test #489

Merged
merged 8 commits into from
Apr 13, 2021
Merged

Conversation

olipyskoty
Copy link
Contributor

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR addresses the question from GitHub issue #463.

We removed the <PreflightTest /> component from the React app. At one point, this app did run the preflight test that was found in the 2.8.0-beta version of the twilio-video SDK, however it was just a beta feature and hasn't been implemented in the current version of the SDK. We do plan on developing a new preflight test in the future.

Note: because of this, the SubContent found in the <PreJoinScreens /> was no longer necessary, so we moved the <MediaErrorSnackbar /> component to the render method in the <IntroContainer />. I've included a screenshot of what this will look like if an error is present:

Screen Shot 2021-04-12 at 3 16 11 PM

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added Updated unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@olipyskoty olipyskoty requested a review from timmydoza April 12, 2021 21:24
Comment on lines 54 to 57
<IntroContainer error={mediaError}>
{step === Steps.roomNameStep && (
<RoomNameScreen
name={name}
Copy link
Contributor

Choose a reason for hiding this comment

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

Here, I think it might be a little simpler if we just had the <MediaErrorSnackbar /> as a child of the IntroContainer, instead of a prop:

  return (
    <IntroContainer>
      <MediaErrorSnackbar error={mediaError} />

      {step === Steps.roomNameStep && (
        <RoomNameScreen
          name={name}
          roomName={roomName}
          setName={setName}
          setRoomName={setRoomName}
          handleSubmit={handleSubmit}
        />
      )}

      {step === Steps.deviceSelectionStep && (
        <DeviceSelectionScreen name={name} roomName={roomName} setStep={setStep} />
      )}
    </IntroContainer>
  );

@olipyskoty olipyskoty requested a review from timmydoza April 13, 2021 16:28
@olipyskoty olipyskoty merged commit 0f76df6 into master Apr 13, 2021
@olipyskoty olipyskoty deleted the VIDEO-4673-remove-preflight-test branch April 13, 2021 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants