Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Refactor widevinePanel.js and widevineInfo.js #8032

Merged
merged 1 commit into from
Apr 17, 2017
Merged

Refactor widevinePanel.js and widevineInfo.js #8032

merged 1 commit into from
Apr 17, 2017

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Apr 1, 2017

Refactor widevinePanel.js and widevineInfo.js

Closes #8028
Addresses #7989

  • Removed isClickDismiss from the dialog
    Installing Widevine influences globally, not specific to a tab which opens the page which requires Widevine. Removing isClickDismiss would clarify to the users that the third party software which we discourage from using is going to be installed on the browser right now.
  • Applied commonForm.js to them in order to make styling consistent
  • Added CommonFormLarge to commonForm.js
  • Added globalStyles.dialogWidth and globalStyles.LargeWidth to global.js
  • Added noMargin and noPadding to commonStyles.js
  • Added margin-top to the bottom text block on widevineInfo.js
  • Added testIds to the buttons and the dialog, modifying dialog.js
    • data-test-id as testId
    • data-test2-id as test2Id
  • Added widevinePanelDialog as a testId
  • Set cursor:pointer

Auditors:

Test Plan:

  1. Visit netflix.com
  2. Click outside of the dialog
  3. Make sure the dialog is not closed
  4. Click "Install and Allow"
  5. Log in to the account
  6. Make sure movies can be played
  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Test Plan:

return <Dialog onHide={this.props.onHide} testId='widevinePanelDialog'>
<CommonFormLarge onClick={(e) => e.stopPropagation()}>
<CommonFormTitle data-l10n-id='widevinePanelTitle' />
<WidevineInfo newFrameAction={windowActions.newFrame} />
Copy link
Contributor

Choose a reason for hiding this comment

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

pls change it to

<WidevineInfo createTabRequestedAction={appActions.createTabRequested} />

newFrameAction doesn't exist anymore and that makes info icon uncklicable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Closes #8028
Addresses #7989

- Removed isClickDismiss from the dialog
  Installing Widevine influences globally, not specific to a tab which opens the page which requires Widevine. Removing isClickDismiss would clarify to the users that the third party software which we discourage from using is going to be installed on the browser right now.

- Applied commonForm.js to them in order to make styling consistent
- Added CommonFormLarge to commonForm.js
- Added globalStyles.dialogWidth and globalStyles.LargeWidth to global.js
- Added noMargin and noPadding to commonStyles.js
- Added margin-top to the bottom text block on widevineInfo.js
- Added testIds to the buttons and the dialog, modifying dialog.js
  - data-test-id as testId
  - data-test2-id as test2Id
- Added widevinePanelDialog as a testId
- Set cursor:pointer

Auditors:

Test Plan:
1. Visit netflix.com
2. Click outside of the dialog
3. Make sure the dialog is not closed
4. Click "Install and Allow"
5. Log in to the account
6. Make sure movies can be played
@luixxiul luixxiul removed the request for review from NejcZdovc April 16, 2017 13:38
@luixxiul
Copy link
Contributor Author

@cezaraugusto ready for re-review :-)

Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

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

++ thanks

@cezaraugusto cezaraugusto merged commit c1894b1 into brave:refactoring-aphrodite Apr 17, 2017
@luixxiul luixxiul deleted the widevinePanel-refactoring branch April 17, 2017 17:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants