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
LPS-125413 Use new ImageSelector component in image-selector tag and remove old one #98928
Conversation
…ttribute in favor of imageCropDirection. Add isDraggable logic to Tag.
…and using new ImageSelector react component
…name some methods to improve naming consistency. Add missing markup. Update props to fit new API from tag.
To conserve resources, the PR Tester does not automatically run for forwarded pull requests. |
@carloslancha why is it
Shouldn't it be <div class vs className?
That part is right. We usually call it "cssClass" on the Java side to distinguish it from "String className = Object.class.getName()" Please resend. Thx. |
Merged. Thank you. |
@carloslancha @wincent @jbalsas Nevermind, I just did: git grep "<div className" and see it everywhere.. must be some weird React thing. |
Yup @brianchandotcom in React element classes are set with |
Originally it was because React mostly used names from the DOM API (where it is There has long been talk of moving towards |
Forwarded from: liferay-content-management#1494 (Took 2
ci:forward
attempts in 6 days 7 hours 21 minutes)@carloslancha
@liferay-lima
Original pull request comment:
Following up on liferay-content-management#1484
https://issues.liferay.com/browse/LPS-125413
In this pr we're removing the old
image-selector
AUI component in favor of the new React one.We're adding some missing markup in the React component and removing no needed one for SSR in the JSP
Made also some refactor and renaming in the React Components.
Deprecate
draggableImage
in favor of newimageCropDirection
attribute inImageSelector
tag to improve naming.Test Plan 1:
Test Plan 2:
✔️ ci:test:stable - 9 out of 9 jobs passed
✔️ ci:test:relevant - 23 out of 23 jobs passed in 1 hour 20 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 14013e30ddc196a32bec7e7d3ad31bc64eff58be
Upstream Comparison:
Branch GIT ID: 3a1328763cf4d2349d46f0a0674429df321a469f
Jenkins Build URL: Acceptance Upstream DXP (master) #1560
ci:test:stable - 9 out of 9 jobs PASSED
9 Successful Jobs:
ci:test:relevant - 23 out of 23 jobs PASSED
23 Successful Jobs:
For more details click here.
✔️ ci:test:sf - 1 out of 1 jobs passed in 47 minutes
Click here for more details.
Base Branch:
Branch Name: master
Branch GIT ID: 1110b647c2539d8b3ba1fff788333bb9e010f4e9
Sender Branch:
Branch Name: LPS-125413-migrate-image-selector.2
1 out of 1jobs PASSEDBranch GIT ID: 5c0eaea602397ca54c3e71570e129e3a4f33e102
1 Successful Jobs:
For more details click here.