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

FEC-8696 ui components #399

Merged
merged 51 commits into from
Sep 16, 2019
Merged

FEC-8696 ui components #399

merged 51 commits into from
Sep 16, 2019

Conversation

esakal
Copy link

@esakal esakal commented Aug 6, 2019

Description of the Changes

allow adding/changing discrete components in UI
related PRs:
kaltura/playkit-js#387
kaltura/kaltura-player-js#264

Missing implementations

  • complete documentation
  • add component name to all components
  • refactor all presets to include containers
  • review all todo

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

This change is Reviewable

@esakal esakal self-assigned this Aug 6, 2019
@esakal esakal requested review from yairans and OrenMe and removed request for yairans August 6, 2019 10:12
Copy link
Author

@esakal esakal left a comment

Choose a reason for hiding this comment

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

@OrenMe the code is ready. I removed the part we discussed about containers for video/preset interactivity. I will add it to the side panel PRs.

Note, there are 9 occurrences of // TODO Sakal - Oren... please address each

@esakal esakal marked this pull request as ready for review August 14, 2019 13:42
@@ -20,23 +20,20 @@ const mapStateToProps = state => ({
config: state.config.components.vrStereo
});

const COMPONENT_NAME = 'vrStereo';
Copy link
Contributor

Choose a reason for hiding this comment

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

move file to vr-stereo.js and also dir name

Copy link
Contributor

Choose a reason for hiding this comment

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

need to fix the shouldRender method to get the component config by the new COMPONENT_NAME attribute as per our change of the disaplyName attribute - this might be a bug

Copy link
Contributor

Choose a reason for hiding this comment

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

also, all component names start with capital, so please align, same for volume component

/**
* should render component
* @param {*} props - component props
* @returns {boolean} - whether to render the component
* @static
*/
static shouldRender(props: any): boolean {
const componentConfig = props.config.components[this.displayName];
const componentConfig = props.config.components['watermark'];
Copy link
Contributor

Choose a reason for hiding this comment

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

change this and add to convention doc for exposing config containers

Suggested change
const componentConfig = props.config.components['watermark'];
const componentConfig = props.config.components[COMPONENT_NAME.toLowerCase()];

need to change in other places too where this applies

Copy link
Author

Choose a reason for hiding this comment

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

following our discussion won't do

@@ -20,23 +20,20 @@ const mapStateToProps = state => ({
config: state.config.components.vrStereo
});

const COMPONENT_NAME = 'vrStereo';
Copy link
Contributor

Choose a reason for hiding this comment

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

need to fix the shouldRender method to get the component config by the new COMPONENT_NAME attribute as per our change of the disaplyName attribute - this might be a bug

@@ -20,23 +20,20 @@ const mapStateToProps = state => ({
config: state.config.components.vrStereo
});

const COMPONENT_NAME = 'vrStereo';
Copy link
Contributor

Choose a reason for hiding this comment

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

also, all component names start with capital, so please align, same for volume component

@@ -23,38 +23,40 @@ const mapStateToProps = state => ({
isMobile: state.shell.isMobile
});

const COMPONENT_NAME = 'volume';
Copy link
Contributor

Choose a reason for hiding this comment

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

also, all component names start with capital, so please align, same for vrStereo component

Copy link
Author

Choose a reason for hiding this comment

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

done

@esakal esakal mentioned this pull request Aug 21, 2019
OrenMe pushed a commit to kaltura/playkit-js that referenced this pull request Sep 16, 2019
@OrenMe OrenMe merged commit 1eea3a1 into master Sep 16, 2019
@OrenMe OrenMe deleted the FEC-8696-contrib branch September 16, 2019 12:56
OrenMe pushed a commit to kaltura/kaltura-player-js that referenced this pull request Sep 16, 2019
add ui components provided by plugins into the configuration object
related PRs:
kaltura/playkit-js#387
kaltura/playkit-js-ui#399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants