Skip to content
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

[DCJ-179] Completely remove react-hyperscript-helpers #2595

Merged
merged 1 commit into from
May 22, 2024

Conversation

fboulnois
Copy link
Contributor

@fboulnois fboulnois commented May 17, 2024

Addresses

https://broadworkbench.atlassian.net/browse/DCJ-179

Summary

Now that #2582 has gone in, we can completely remove react-hyperscript-helpers.

Background

This is the final piece of a conversion process that began in November of 2023.

The DUOS (now Data Custodian Journeys, or DCJ) team has been participating in the Terra UI working group meetings and aligning the DUOS UI codebase with Terra UI best practices where feasible. One of the decision taken by the working group was to migrate away from react-hyperscript-helpers to using regular JSX.

The pros and cons of react-hyperscript-helpers have been vigorously debated in the Terra UI working group meetings, but in short the main cons were that the library has not been updated since 2018 and it is a relatively niche library, whereas React examples assume use of JSX or TSX.

For the DCJ team, this is especially important since we are a smaller team and have a lot of co-ops with React and JSX experience but not react-hyperscript-helpers experience, so this increases onramp time. The removal of outdated libraries from our UI is also important to lower our complexity, dependency churn, and our security upkeep burden.

Acknowledgements

A huge thanks to all the teammates who participated in migrating over these components to JSX, especially @PintoGideon who converted some of our largest and most challenging components.

Statistics

By the numbers, this represents:

  • 125 components migrated over to JSX
  • 22516 total lines converted
  • 33 PRs to migrate various components
  • 1.02 components migrated per working day

Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@fboulnois fboulnois requested a review from a team as a code owner May 17, 2024 13:11
@fboulnois fboulnois requested review from rushtong and aarohinadkarni and removed request for a team May 17, 2024 13:11
Base automatically changed from gp-dcj-222 to develop May 18, 2024 00:07
Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

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

Looks good after a rebase 👍🏽 🍾

Copy link
Contributor

@PintoGideon PintoGideon left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. LGTM !!

Copy link
Contributor

@aarohinadkarni aarohinadkarni left a comment

Choose a reason for hiding this comment

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

looks good, thank you!! 🎉 🙌

@fboulnois fboulnois force-pushed the fb-dcj-179-remove-react-hyperscript-helpers branch from eff5998 to 772d31d Compare May 20, 2024 17:08
@okotsopoulos okotsopoulos self-requested a review May 22, 2024 16:08
Copy link
Contributor

@okotsopoulos okotsopoulos left a comment

Choose a reason for hiding this comment

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

Thrilling!

@fboulnois fboulnois merged commit f06fdba into develop May 22, 2024
9 checks passed
@fboulnois fboulnois deleted the fb-dcj-179-remove-react-hyperscript-helpers branch May 22, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants