Conversation
070a3be to
01a8da9
Compare
Pull Request Test Coverage Report for Build 281d7bdd8288875811777be8c9b74704a063664dDetails
💛 - Coveralls |
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
| }, | ||
| }, | ||
| settings: { | ||
| // Ignore certain Storybook packages to avoid import/named errors. |
There was a problem hiding this comment.
It seems to stem from version mismatches of @storybook/manager and @storybook/theming across different packages in the monorepo:
@storybook/manager-api is used with version ^7.6.17 in ui-library and keyphrase-suggestions.
@storybook/theming is used with versions ^8.6.12 and ^8.3.6.
The dashboard-frontend package uses @storybook/theming version ^8.6.12, which might not be compatible with the current code.
if you rollback the versions:
yarn add @storybook/manager-pi@^7.6.17 @storybook/theming@^7.6.17 --dev
Eslint will not show an error and you can remove that ignore rule.
Or you can update all the storybook packages in the monorepo to 8.6.12 (it's not enough to update only @storybook/theming.
There was a problem hiding this comment.
Interesting. They are not hoisted though, due to the different versions. So if ESLint would pick up the nearest node_modules correctly, this would not be a problem?
Either way, I prefer to ignore the false ESLint rule instead of letting that dictate our Storybook version here or elsewhere.
It is not a matter of these two packages, they go with the rest. So that is a full upgrade or downgrade of Storybook. Quite the task for a ESLint false positive.
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
Might be useful when implementing own providers / widgets
* use src index to import in tests * move closing to same line as opening call * prefix ReactNode with React namespace, seems to work better in my IDE * reorder some imports (automatically) # Conflicts: # packages/dashboard-frontend/src/widgets/organic-sessions/compare.js # packages/dashboard-frontend/src/widgets/organic-sessions/daily.js # packages/dashboard-frontend/src/widgets/search-ranking-compare/search-ranking-compare-metric.js
Without this there is always a horizontal scroll in the stories
As last commit because that was easier for me to ignore while rebasing
Leaving out the getRandom, I think the return description says enough
Co-authored-by: Vraja Das <65466507+vraja-pro@users.noreply.github.com>
bb97fc3 to
129a216
Compare
|
Caution Rebased on the latest |
|
CR & AC ✅ |
Context
Summary
This PR can be summarized in the following changelog entry:
fetchJsonanduseFetchtools for creating your own widgets.fetchJsonoption to the Remote Data Provider.Relevant technical choices:
createInterpolateElementfrom WP/element.fetchJsonin the RemoteDataProvider for an easy override, but ended up not using it and just creating objects instead 😅 -- as that is easier to repeat in each story.DocsPagetemplate override. We might need it in the future to remove the__forceInitialArgswe have in an older version (UI library). But not needed now.useArgs), but talking with Vraja we decided to let it go. Instead making a specific story if we want to showcase a specific set.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Quick regression/smoke test
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes https://github.com/Yoast/reserved-tasks/issues/503