Skip to content

feat(threaded-replies): Refactor Comment component to functional - #3270

Merged
mergify[bot] merged 8 commits into
box:masterfrom
JChan106:COXP-11264
Mar 9, 2023
Merged

mergify[bot] merged 8 commits into
box:masterfrom
JChan106:COXP-11264

Conversation

@JChan106

@JChan106 JChan106 commented Mar 2, 2023 •

Copy link
Copy Markdown
Contributor

This PR is to refactor the Comment component from a class based component, to a functional component. This will make it easier to develop/read for the heavy Threaded Replies refactor we are starting. We created a separate component called "BaseComment" which will be used behind our ThreadedReplies FF. Once we are finished with Threaded Replies, we can have this replace the current Comment component.

  • Unit tests

Test comment:
2023-03-01 16 55 07

Test reply:
2023-03-01 16 53 33

Test modify:
2023-03-01 16 56 26

Test delete:
2023-03-01 16 56 44

@JChan106
JChan106 requested a review from a team as a code owner March 2, 2023 00:57
Comment thread src/elements/content-sidebar/ActivitySidebar.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/activity-feed/ActivityThreadReplies.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js
Comment thread src/elements/content-sidebar/ActivitySidebar.js Outdated
@JChan106
JChan106 requested a review from tjuanitas March 7, 2023 21:24
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js Outdated
@JChan106
JChan106 requested review from karelee7 and patlm and removed request for patlm March 8, 2023 19:00
Comment thread src/elements/content-sidebar/ActivitySidebar.js Outdated
Comment thread src/elements/content-sidebar/ActivitySidebar.js
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js
Comment thread src/elements/content-sidebar/activity-feed/comment/__tests__/BaseComment.test.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/__tests__/BaseComment.test.js Outdated
Comment thread src/elements/content-sidebar/activity-feed/comment/__tests__/BaseComment.test.js Outdated
@JChan106
JChan106 requested review from patlm and tjuanitas and removed request for patlm March 9, 2023 00:46
tjuanitas
tjuanitas previously approved these changes Mar 9, 2023

@tjuanitas tjuanitas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks fine to me. do we have tickets created to do the clean up (rename file and remove props) after the release?

@JChan106

JChan106 commented Mar 9, 2023

Copy link
Copy Markdown
Contributor Author

looks fine to me. do we have tickets created to do the clean up (rename file and remove props) after the release?

Good point, just created a ticket for the cleanup with those actions as acceptance criteria. Thanks for the review!

@bfoxx1906
bfoxx1906 requested review from bfoxx1906 and removed request for patlm March 9, 2023 16:29
Comment thread src/elements/content-sidebar/activity-feed/comment/BaseComment.js
@JChan106
JChan106 requested a review from bfoxx1906 March 9, 2023 19:05
@JChan106
JChan106 requested review from patlm and removed request for karelee7 and patlm March 9, 2023 19:36
@mergify
mergify Bot merged commit 3900d1c into box:master Mar 9, 2023
@JChan106
JChan106 deleted the COXP-11264 branch March 9, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants