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

Feature/collapse card prop inverted #839

Merged
merged 4 commits into from
Mar 23, 2021

Conversation

vharny
Copy link
Contributor

@vharny vharny commented Jan 21, 2021

Related issue

Reference to the issue

Fixes #787

Description of the issue

The collapse property can be confusing so it will be replaced by isOpen.
I did a refacto that merges the CollapseCard and CollapseCardBase components because the only difference was the onToggle prop who could be add on CollapseCardBase.

@vharny vharny marked this pull request as ready for review February 1, 2021 10:02
@arnaudforaison
Copy link
Contributor

Il y avait aussi un ajustement à faire sur les stories mais je ne suis plus sur. Est ce qu'il ne manque pas la story du CardBase ?

@vharny
Copy link
Contributor Author

vharny commented Feb 16, 2021

Il y avait aussi un ajustement à faire sur les stories mais je ne suis plus sur. Est ce qu'il ne manque pas la story du CardBase ?

J'ai fusionné le CollapseCard avec le CollapseCardBase donc on n'a plus qu'une seule story

@vharny vharny force-pushed the feature/CollapseCardPropInverted branch 2 times, most recently from c499da6 to d12c6b8 Compare February 16, 2021 14:52
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

arnaudforaison
arnaudforaison previously approved these changes Feb 19, 2021
@SamuelHsn SamuelHsn requested review from SamuelHsn and removed request for SamuelHsn February 25, 2021 10:28
SamuelHsn
SamuelHsn previously approved these changes Feb 25, 2021
Copy link
Contributor

@sisko59 sisko59 left a comment

Choose a reason for hiding this comment

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

Il faudrait prévoir le guide de migration du breaking change.
(https://github.com/AxaGuilDEv/react-toolkit/blob/master/MIGRATION.md)

? collapses[index]
: child.props.collapse,
isOpen:
collapses[index] !== undefined ? collapses[index] : child.props.isOpen,
Copy link
Contributor

Choose a reason for hiding this comment

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

Peut-on trouver un meilleur nom pour collapses ? Il reste ambigu.

Choose a reason for hiding this comment

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

par exemple : 'openComponents'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Je trouve "openComponents" assez ambigu, car c'est bien un composant Collapse qui se ferme et s'ouvre.
De plus, le collapse en question n'est pas forcément true il peut être false.

@sisko59
Copy link
Contributor

sisko59 commented Feb 26, 2021

Cette revue est offerte par l'équipe transverse

ArthurVT59
ArthurVT59 previously approved these changes Feb 26, 2021
? collapses[index]
: child.props.collapse,
isOpen:
collapses[index] !== undefined ? collapses[index] : child.props.isOpen,

Choose a reason for hiding this comment

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

par exemple : 'openComponents'

@vharny
Copy link
Contributor Author

vharny commented Mar 2, 2021

Cette revue est offerte par l'équipe transverse

Il faudrait prévoir le guide de migration du breaking change.
(https://github.com/AxaGuilDEv/react-toolkit/blob/master/MIGRATION.md)

J'ai ajouté le guide dans la PR.

@vharny vharny dismissed stale reviews from ArthurVT59, SamuelHsn, and arnaudforaison via b28d0d4 March 2, 2021 14:03
@vharny vharny force-pushed the feature/CollapseCardPropInverted branch from d12c6b8 to b28d0d4 Compare March 2, 2021 14:03
arnaudforaison
arnaudforaison previously approved these changes Mar 11, 2021
sisko59
sisko59 previously approved these changes Mar 11, 2021
johnmeunier
johnmeunier previously approved these changes Mar 15, 2021
jforatier
jforatier previously approved these changes Mar 23, 2021
@arnaudforaison arnaudforaison dismissed stale reviews from jforatier, johnmeunier, sisko59, and themself via 5ab07ad March 23, 2021 16:23
@arnaudforaison arnaudforaison merged commit 60084ad into master Mar 23, 2021
@delete-merged-branch delete-merged-branch bot deleted the feature/CollapseCardPropInverted branch March 23, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CollapseCardBase has collapse prop inverted
7 participants