Skip to content

Conversation

drizco
Copy link
Contributor

@drizco drizco commented Sep 12, 2025

Links

  • Jira:

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Creation Checklist:

  • Tests provide adequate coverage
  • Privacy impacts have been documented
  • Security impacts have been documented
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Follow-up work items (including potential tech debt) are tracked and linked

@@ -394,7 +388,7 @@ export const WorkshopEnrollments: FC = () => {
title={`Remove Enrollment${s}?`}
customContent={
<Box id="dsco-dialog-description">
<Typography semanticTag="div" visualAppearance="body-two">
<Typography component="div" variant="body2" gutterBottom>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

example of a wrapper Typography component

>
<StrongText>{title}</StrongText>
</Heading2>
{/* TODO_visualAppearance_dynamic: "size === 's' ? 'body-two' : 'body-one'" */}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

example of the script adding a TODO comment when the visualAppearance prop is an expression rather than a string. the dev running the script should see this in the diff and fix before merging

@@ -23,26 +19,34 @@ const OrganizerInformation: React.FC<OrganizerInformationProps> = ({
}) => {
return (
<div className={moduleStyles.card}>
<Heading3 visualAppearance="heading-xs">Organizer information</Heading3>
<Typography component="h3" variant="h6" gutterBottom>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

example of gutterBottom prop being added when noMargin is not on the original component

@@ -283,9 +278,9 @@ export const WorkshopEnrollments: FC = () => {
orientation="vertical"
className={styles.actionDivider}
/>
<OverlineTwoText noMargin className={styles.numSelectedText}>
<Typography className={styles.numSelectedText} variant="overline2">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

example of noMargin prop being removed, since no margin is the default in mui Typography

@drizco
Copy link
Contributor Author

drizco commented Sep 16, 2025

closing as this was just a sample of what the typography-to-mui codemod script would do

@drizco drizco closed this Sep 16, 2025
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.

1 participant