-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Chore: migrate index.js class to function component #26374
Chore: migrate index.js class to function component #26374
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
I have read the CLA Document and I hereby sign the CLA |
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
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.
In general, LGTM.
…dex.js Co-authored-by: Michael (Mykhailo) Kravchenko <rezkiy37@gmail.com>
@marcochavezf Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Hi @marcochavezf, any chance we could get this reviewed soon? |
@rushatgabhane you were assigned as C+ reviewer in the linked issue, assigning you here too for review :) Edit: Hmm now I realize I can't assign you, can you still review it? |
Friendly bump @rushatgabhane |
I can help review if @rushatgabhane is busy with HelpDot project |
Help @situchan, assigning you here as C+ reviewer |
@teneeto please pull main. The branch is 4k+ commits behind |
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
…ate-index-file-to-function-component
…dex.js Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
…ate-index-file-to-function-component
…ate-index-file-to-function-component
…ate-index-file-to-function-component
…ate-index-file-to-function-component
@teneeto can you please address #26374 (comment) and #26374 (comment)? |
Also, job 3 is failing. Please pull main |
…ate-index-file-to-function-component
Hi @situchan I've been trying to fix job 3, earlier before now, and even after pulling from main, it was still failing. but it's passing now. I'll add QA steps ASAP. |
@situchan I referenced the qa steps of the original issue/pr where this index.js was created and realised this current refactor isn't working as expected for web platforms. I will re-write how the ref is being used then make a push and add new qa steps. I plead for a little more time to achieve this. Thanks. |
src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/index.js
Outdated
Show resolved
Hide resolved
update QA steps like this:
Example code
|
…dex.js Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
…dex.js Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com>
…ate-index-file-to-function-component
Thanks @situchan, The code and qa steps are updated. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
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.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
This change is made to migrate the index.js from class to a function component
Fixed Issues
$: 16157
PROPOSAL: 16157
Tests
Example
Offline tests
Example
QA Steps
Example
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-09-01.at.15.23.17.mov
Mobile Web - Chrome
Screen.Recording.2023-09-04.at.07.16.45.mov
Mobile Web - Safari
Screen.Recording.2023-09-04.at.07.04.30.mov
Desktop
desktop.mp4
iOS
Screen.Recording.2023-09-01.at.09.03.30.mov
Android
Screen.Recording.2023-09-01.at.08.55.09.mov