-
Notifications
You must be signed in to change notification settings - Fork 21
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
refactor(cc-orga-member-list)!: rework properties to avoid impossible #1306
base: master
Are you sure you want to change the base?
Conversation
🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/cc-orga-member/migrate-to-new-state/index.html. This preview will be deleted once this PR is closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
I don't know if it is the right place but maybe we could take the opportunity to factorize the Authorisations
interface that is duplicated between src/components/cc-orga-member-card/cc-orga-member-card.types.d.ts
and src/components/cc-orga-member-list/cc-orga-member-list.types.d.ts
.
interface Authorisations {
invite: boolean;
edit: boolean;
delete: boolean;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Well done Florian.
… states BREAKING CHANGE: the properties have changed - `member` property has been renamed to `state`, - `member.state` property has been renamed to `state.type`.
… states BREAKING CHANGE: the properties have changed - `members` property has been renamed to `memberListState`, - `members.state` property has been renamed to `memberListState.type`, - `members.value` property has been renamed to `memberListState.memberList`, - same logic applies to `memberList` items where: - `member` has been renamed to `state`, - `member.state` has been renamed to `state.type`. Fixes #1164
898812e
to
3bfd2db
Compare
Fixes #1164
What does this PR do?
cc-orga-member-list
component to the new state API.How to review?
demo-smart
to see if all features still work properly,