-
Notifications
You must be signed in to change notification settings - Fork 179
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
Editor: Move assets/src/edit-story
to story-editor
and wp-story-editor
packages
#8561
Conversation
…itor/src directory
assets/src/editor-story
to packages/story-editor/src
assets/src/editor-story
to packages/story-editor/src
When i have moved files in the past,I have used PHPStorm. This find references to files in other places and will try and update the values for you. There will be hardcoded reference in the dashboard, webpack build files and other other places. This PR in it's current state is unmergable as most of the CI is failing. |
I think this is expected, as it's still a draft. |
@spacedmonkey Thank you, yes I think I am aware of some of those. This PR doesn't contain any code changes, it only moves the large chunk to packages so that it's easier to review the upcoming PRs with code changes which I will create against this branch. I would finally merge all those PRs in this branch and ensure that CI is passing before we merge it in main. |
assets/src/editor-story
to packages/story-editor/src
assets/src/editor-story
to packages/story-editor/src
assets/src/editor-story
to packages/story-editor/src
assets/src/editor-story
to packages/story-editor/src
assets/src/editor-story
to packages/story-editor/src
assets/src/edit-story
to packages/story-editor/src
Co-authored-by: Jonny Harris <jon@spacedmonkey.co.uk>
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Size Change: -1.16 MB (-33%) 🎉 Total Size: 2.33 MB
ℹ️ View Unchanged
|
@spacedmonkey can you please reply to the CLA bot? |
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.
import Modal from 'react-modal';
The above is references, 3 times in the dashboard. But Modal is exported from the editor package. This should be changed to read from edit package and removed the main react-modal package.json
Did you mean import from design system? |
I asked the same question. #8561 ATM, design-system, editor and dashboard all import the package. Seems a messy. Makes sense to important in just one place. Design-system makes sense to me. |
…package-story-editor
…or` in webpack and other places (#8636) * Change script handle from edit-story to wp-story-editor * Update webpack handle in karma
JFI, "PHP Unit Tests / PHP 7.4 - WP trunk (pull_request)" is failing after b9aff55 which is the only PHP change. But I think its not because of this change, it's failing on other PRs having PHP changes too. |
* Remove localStore from edit-story and move to design system * Update all localStore local references to design-system module * Update more local reference of localStore * Mock localStore from design-system package in jest
@sayedtaqui It's a known issue, see https://core.trac.wordpress.org/ticket/46149. Tests against trunk are marked as "experimental" in CI (using |
Codecov Report
@@ Coverage Diff @@
## main #8561 +/- ##
===========================================
+ Coverage 61.83% 79.10% +17.26%
===========================================
Files 881 1336 +455
Lines 15193 18959 +3766
===========================================
+ Hits 9395 14998 +5603
+ Misses 5798 3961 -1837
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
GREAT WORK!
assets/src/edit-story
to packages/story-editor/src
assets/src/edit-story
to story-editor
and wp-story-editor
packages
Context
This PR only moves
assets/src/editor-story
topackages/story-editor/src
directory and does not contain any code changes.Summary
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
QA
This PR can be tested by following these steps:
UAT
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRPartially addresses #6050