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

updated react to 16.1.1, removed linkedInputs #1082

Merged
merged 5 commits into from
Nov 20, 2017
Merged

updated react to 16.1.1, removed linkedInputs #1082

merged 5 commits into from
Nov 20, 2017

Conversation

chrisdugne
Copy link
Contributor

@chrisdugne chrisdugne commented Nov 14, 2017

  • react 16
  • updated enzyme

@chrisdugne
Copy link
Contributor Author

migration react 16

@codecov
Copy link

codecov bot commented Nov 15, 2017

Codecov Report

Merging #1082 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1082   +/-   ##
=======================================
  Coverage   95.15%   95.15%           
=======================================
  Files         233      233           
  Lines        3489     3489           
=======================================
  Hits         3320     3320           
  Misses        169      169
Impacted Files Coverage Δ
...coorpacademy-components/src/molecule/card/index.js 100% <ø> (ø) ⬆️
...orpacademy-components/src/atom/input-text/index.js 100% <ø> (ø) ⬆️
.../@coorpacademy-components/src/atom/button/index.js 100% <ø> (ø) ⬆️
...orpacademy-components/src/molecule/search/index.js 100% <ø> (ø) ⬆️
...demy-components/src/atom/input-doublestep/index.js 96.42% <ø> (ø) ⬆️
...rpacademy-components/src/organism/sidebar/index.js 100% <ø> (ø) ⬆️
...components/src/molecule/brand-create-form/index.js 100% <ø> (ø) ⬆️
...rpacademy-components/src/atom/input-color/index.js 100% <ø> (ø) ⬆️
...mponents/src/molecule/questions/free-text/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26aeb00...dfbc2aa. Read the comment docs.

@@ -55,7 +54,7 @@ const ButtonContent = props => {

default:
return (
<LinkedInput
<input
Copy link
Contributor

Choose a reason for hiding this comment

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

Ça servait à quoi d'utiliser LinkedInput et pourquoi on (peut) s'en débarasse(r) maintenant ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

c'etait deja deprecié pour react 15 mui/material-ui#2880 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cela dit, @godu l'a utilisé pour le input-text de recherche des users dans setup principalement: de ce que j'ai compris cest pour mettre en en file les renders à chaque onChange de chaque lettre.
A priori on ne devrait pas avoir ce pb avec react 16, il va falloir tester je n'ai pas assez de users en local

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pour les autres inputs que jai testé ca fonctionne tres bien.

<div
data-name="cover"
className={style.ctaWrapper}
onClick={!disabled ? onClick : noop}
Copy link
Contributor

Choose a reason for hiding this comment

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

disabled ? noop : onClick plutôt, moins de gymnastique mentale à faire

(idem plus bas)

Copy link
Contributor

@godu godu left a comment

Choose a reason for hiding this comment

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

Il faudra passer sur le mooc, store, cockpit et setup pour s'assurer que tout continue de marcher

@chrisdugne chrisdugne merged commit ca81982 into master Nov 20, 2017
@chrisdugne chrisdugne deleted the react-16 branch November 20, 2017 14:36
@chrisdugne
Copy link
Contributor Author

migration react 16

gaellemouraret pushed a commit that referenced this pull request Nov 21, 2017
* updated react to 16.1.1, removed linkedInputs

* updated enzyme

* updated yarn.lock

* migrated enzyme to use adapter for react 16

* fixed few components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants