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

refactor(cc-article-list)!: migrate to the new smart component design #931

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

pdesoyres-cc
Copy link
Contributor

@pdesoyres-cc pdesoyres-cc commented Dec 22, 2023

Fixes #921

What is this?

  • new state design: no impossible state
  • new smart: no RxJs
  • add demo in demo-smart

How to review?

  • check code
  • check for regression

Copy link
Contributor

🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/new-smart-design/cc-article-list/index.html.

This preview will be deleted once this PR is closed.

Copy link
Contributor

@florian-sanders-cc florian-sanders-cc left a comment

Choose a reason for hiding this comment

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

Small question about property naming but apart from that it's all good 😉

@pdesoyres-cc pdesoyres-cc force-pushed the new-smart-design/cc-article-list branch 4 times, most recently from 19b66c5 to 0752a99 Compare January 18, 2024 08:44
Copy link
Member

@Galimede Galimede left a comment

Choose a reason for hiding this comment

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

Historically limit was optional. With how the smart works now it makes it no longer possible. While it's not much of an inconvenience here, (the console provides a limit anyway), can you change the doc cc-article-list.md to reflect it and so that the examples may work again?

BREAKING CHANGE: the properties have changed
- `state`: new property containing the whole state
- `articles`: property has been deleted as it is now part of the state
- `error`: property has been deleted as it is now part of the state

Fixes #921
@pdesoyres-cc pdesoyres-cc force-pushed the new-smart-design/cc-article-list branch from 0752a99 to 4711406 Compare February 2, 2024 18:07
@pdesoyres-cc pdesoyres-cc merged commit 77e75c0 into master Feb 2, 2024
4 checks passed
@pdesoyres-cc pdesoyres-cc deleted the new-smart-design/cc-article-list branch February 2, 2024 18:13
Copy link
Contributor

github-actions bot commented Feb 2, 2024

🔎 The preview has been automatically deleted.

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

Successfully merging this pull request may close these issues.

cc-article-list: Migrate to the new smart component design
5 participants