Skip to content

Commit

Permalink
fix(mrf): workflow email UI cleanup (#7215)
Browse files Browse the repository at this point in the history
* fix: mrf workflow email UI cleanup

* chore: update button formatting

* fix: more fixes

* chore: change port for react-email-preview to 4242

* chore: add comment on email defaults

* fix: potentially unsafe external url
  • Loading branch information
justynoh authored Apr 3, 2024
1 parent 6cc48a3 commit 44a0607
Show file tree
Hide file tree
Showing 15 changed files with 8,235 additions and 350 deletions.
1,524 changes: 1,328 additions & 196 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
"@opengovsg/formsg-sdk": "^0.12.0-alpha.1",
"@opengovsg/myinfo-gov-client": "^4.1.2",
"@opengovsg/sgid-client": "^2.0.0",
"@react-email/components": "^0.0.15",
"@react-email/render": "^0.0.12",
"@sentry/browser": "^7.51.2",
"@sentry/integrations": "^6.19.7",
"@stablelib/base64": "^1.0.1",
Expand Down Expand Up @@ -194,6 +196,7 @@
"@types/promise-retry": "^1.1.3",
"@types/promise-timeout": "^1.3.0",
"@types/puppeteer-core": "^5.4.0",
"@types/react": "^18.2.73",
"@types/sns-validator": "^0.3.1",
"@types/spark-md5": "^3.0.2",
"@types/supertest": "^2.0.12",
Expand Down
27 changes: 27 additions & 0 deletions react-email-preview/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# React Email Preview

A live preview right in your browser so you don't need to keep sending real emails during development.

## Getting Started

First, install the dependencies:

```sh
npm install
# or
yarn
```

Then, run the development server:

```sh
npm run dev
# or
yarn dev
```

Open [localhost:4242](http://localhost:4242) with your browser to see the result.

## License

MIT License
3 changes: 3 additions & 0 deletions react-email-preview/emails/MrfWorkflowEmail.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { MrfWorkflowEmail } from '../../src/app/views/templates/MrfWorkflowEmail'

export default MrfWorkflowEmail
Loading

0 comments on commit 44a0607

Please sign in to comment.