Skip to content

Commit

Permalink
feat(ui): add mmdl PDF links (#887)
Browse files Browse the repository at this point in the history
* add sections and questions and descriptions

* add subsections in prep for links

* Update oneMACFAQContent.tsx

* updated text and finished adding links

* updated text

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(minor-amend-issues): fixes to the amendment stuff that got missed

Co-authored-by: tiffanyvu <[email protected]>

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* feat(ui): Remove MMDL Card Choices in Mako (#877)

* Remove MMDL Card Choices in Mako

* Remove MMDL Card Choices from index.spec.ts

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* fix: upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0 (#884)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* fix: upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0 (#885)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(design): HCD Design Changes (#873)

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(minor-amend-issues): fixes to the amendment stuff that got missed

Co-authored-by: tiffanyvu <[email protected]>

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* fix: upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0 (#884)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* fix: upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0 (#885)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(design): HCD Design Changes (#873)

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(minor-amend-issues): fixes to the amendment stuff that got missed

Co-authored-by: tiffanyvu <[email protected]>

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix: upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0 (#874)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* fix: upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0 (#884)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* fix: upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0 (#885)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(design): HCD Design Changes (#873)

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* feat(design): HCD Design Changes (#873)

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(minor-amend-issues): fixes to the amendment stuff that got missed

Co-authored-by: tiffanyvu <[email protected]>

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix: upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0 (#874)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* fix: upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0 (#884)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* fix: upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0 (#885)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(design): HCD Design Changes (#873)

* fix(e-map): updates to the email mapping (#869)

* Update

* Update email template mapping

* Update

* revent bunlock change

* Update lib/libs/email/content/email-components.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update

---------

Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix: upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0 (#874)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.682.0 to 3.685.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(package-changes-TE-appk): remove/refactor appK and add amend as package action (#866)

* testing lib udpates for amend title

* Testing amend title udpates

* Testing amend title..

* test test amend

* Testing and debuggin

* testing agin

* testing

* testing updates

* testing again ..

* test parent

* testing

* testing

* testing

* testing

* testing

* testing

* testing

* Respond-to-Rai form updates

* updating action form

* updating event schemea

* fix bug

* Updating the evens transform

* updating

* add to transform

* add changelog fix

* packacitivty update

* move a folder up

* make it route

* final updates for text

* Starting my test stuff

* udpates from review

* restoring to previous version

* fixing test error

* fix lint errors

* make fields optional (fix #5 and #7)

* Adding test and extra fixes

* updates

* last fixes from padma

* updating the Adment actions in the waiver and labels

* cleaning up form prep

* Removing unessessary file

* initial test

* test submit 400 error

* fix lambda schema ref

* add logs

* logs

* fix datepicker type

* try moving state transform

* delete fields

* remove unused fields

* delete lambda imports

* delete action import

* add check to validate existing record

* change to kebab case

* adjust logic of the amendment forms

* add tests, documentCheck needed to reach 90%

* remove console logs

* address PR comments

* make it work

* fix qa issues

* fix title not showing in package details

* fixes for pr comments

* Delete index.test.tsx

* fix language

* fix banner

* uncapitalize request in banner

* adds test for post-submission/amend/index.test.tsx

* updates Amendment tests, small code style update

* update post submission amendments to get waiverId from higher level component

* update test to address 2 of 3 feedback points

* add max char count for amendment title

* fix amendment title to mimic mono

* updating the existing waiver number code for test

* Apply suggestions from code review

Co-authored-by: asharonbaltazar <[email protected]>

* updates to address feedback, add test for verifying waiver id is rendered

* take main react-app/src/components/ActionForm/index.tsx

* fix test error

* fix network error test

* try again

* temp skip test file

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* Update react-app/src/features/forms/post-submission/post-submission-forms.tsx

Co-authored-by: asharonbaltazar <[email protected]>

* address comments

* Update react-app/src/features/forms/waiver/contracting/amendment-contracting.test.tsx

Co-authored-by: asharonbaltazar <[email protected]>

---------

Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>

* fix(minor-amend-issues): fixes to the amendment stuff that got missed

Co-authored-by: tiffanyvu <[email protected]>

* feat(emails): CHIP SPA Withdraw Package emails for CMS/State (#870)

* fix: update `email-dev` command

* chore: update type for `PackageDetails`

* feat: add `WithdrawPackage` to `Events`

* chore: remove string from unnecessary curly braces

* chore: rename folder and create new withdraw request emails for state/CMS

* chore: rename `widthdraw` to `withdraw`

* chore: add attachments for `withdraw-package`

* feat: add previews for CMS/State `withdraw-package`

* chore: JSX removed from template literal

* feat: update ChipSpaCMS email to have a spam notice

* feat: create additional notice for further questions

* chore: move notice to email body

* chore: change ! to .

* fix: upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0 (#884)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.685.0 to 3.687.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* fix(email): App K Email Templates (#867)

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* preview for state appK was incorrect

* addressed PR comments

* made fixes found by QC also missed adding the ts change

* fix: upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0 (#885)

Snyk has created this PR to upgrade @aws-sdk/client-s3 from 3.687.0 to 3.688.0.

See this package in npm:
@aws-sdk/client-s3

See this project in Snyk:
https://app.snyk.io/org/macpro-macpro/project/11edb9d2-770d-47a9-970d-58701c9ea018?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* feat(design): HCD Design Changes (#873)

* Merge branch 'main' into add-mmdl-pdf-links

* fixed error

* .DS_Store banished!

* seperated constants, added inline tailwind, removed css file

* typed out templates

* fixed constants

* feat(mmdl-faq): add mmdl spa questions and descriptions to faq (#879)

* add sections and questions and descriptions

* add subsections in prep for links

* Update oneMACFAQContent.tsx

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* Update oneMACFAQContent.tsx

---------

Co-authored-by: Andie Swift <[email protected]>

* feat(upload-sub-doc-email): Add template for upload subsequent documents CHIP SPA (#878)

* working through email content

* adjust text language

* added missing preview emails

* add email logic for subseq doc

* fix types

* remove unused

* Update ChipSpaCMS.tsx

* remove unused

* Delete CHIP_SPA.tsx

* adjust template

* adjust based on comments

* Update ChipSpaState.tsx

---------

Co-authored-by: Andie Swift <[email protected]>

* fix(search): update dashboard search to allow whitespace (#875)

* feat(mmdl-faq): add mmdl spa questions and descriptions to faq (#879)

* add sections and questions and descriptions

* add subsections in prep for links

* Update oneMACFAQContent.tsx

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* Update oneMACFAQContent.tsx

---------

Co-authored-by: Andie Swift <[email protected]>

* feat(mmdl-faq): add mmdl spa questions and descriptions to faq (#879)

* add sections and questions and descriptions

* add subsections in prep for links

* Update oneMACFAQContent.tsx

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* Update oneMACFAQContent.tsx

---------

Co-authored-by: Andie Swift <[email protected]>

* feat(mmdl-faq): add mmdl spa questions and descriptions to faq (#879)

* add sections and questions and descriptions

* add subsections in prep for links

* Update oneMACFAQContent.tsx

* added missing preview emails

* in the middle of updating the text for these email templates

* verified all app k template lang

* double checked all the templates are correct

* verified all subject lines and added waivers where needed for index.tsx files

* fixed all TS errors in the emails folder

* Update oneMACFAQContent.tsx

---------

Co-authored-by: Andie Swift <[email protected]>

---------

Co-authored-by: James Dinh <[email protected]>
Co-authored-by: tiffanyvu <[email protected]>
Co-authored-by: Rafiq Muntaqim <[email protected]>
Co-authored-by: 13bfrancis <[email protected]>
Co-authored-by: Ty Bolt <[email protected]>
Co-authored-by: asharonbaltazar <[email protected]>
Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: Benjamin Paige <[email protected]>
Co-authored-by: Andie Swift <[email protected]>
Co-authored-by: macpro-snyk-service-account <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: Andie Swift <[email protected]>
Co-authored-by: James Dinh <[email protected]>
  • Loading branch information
14 people committed Dec 4, 2024
1 parent 12cc9c6 commit 1995692
Show file tree
Hide file tree
Showing 54 changed files with 776 additions and 42 deletions.
Binary file removed .DS_Store
Binary file not shown.
Binary file removed docs/.DS_Store
Binary file not shown.
Binary file removed lib/libs/email/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added react-app/src/assets/chp/IG_CS16_Spenddown.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
82 changes: 82 additions & 0 deletions react-app/src/features/faq/content/abpGuides.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import abp1PDF from "@/assets/abp/IG_ABP1_AlternativeBenefitPlanPopulations.pdf";
import abp2aPDF from "@/assets/abp/IG_ABP2a_VoluntaryBenefitPackageAssurances.pdf";
import abp2bPDF from "@/assets/abp/IG_ABP2b_VoluntaryEnrollmentAssurances.pdf";
import abp3PDF from "@/assets/abp/IG_ABP3_SelectionOfBenchmark20190819-Final.pdf";
import abp31PDF from "@/assets/abp/IG_ABP3.1_SelectionOfBenchmarkAfter2020.pdf";
import abp4PDF from "@/assets/abp/IG_ABP4_AbpCostSharing.pdf";
import abp5PDF from "@/assets/abp/IG_ABP5_BenefitsDescription-Final.pdf";
import abp6PDF from "@/assets/abp/IG_ABP6_BenchmarkEquivalentBenefit.pdf";
import abp7PDF from "@/assets/abp/IG_ABP7_BenefitAssurances.pdf";
import abp8PDF from "@/assets/abp/IG_ABP8_ServiceDeliverySystems.pdf";
import abp9PDF from "@/assets/abp/IG_ABP9_EmployerSponsoredInsurance.pdf";
import abp10PDF from "@/assets/abp/IG_ABP10_GeneralAssurances.pdf";
import abp11PDF from "@/assets/abp/IG_ABP11_PaymentMethodology.pdf";
import { Template } from "./chpRenderSection";

export const ABP_GUIDES: Template[] = [
{
title: "ABP 1",
text: "Alternative Benefit Plan Populations Implementation Guide",
href: abp1PDF,
},
{
title: "ABP 2a",
text: "Voluntary Benefit Package Selection Assurances - Eligibility Group under Section 1902(a)(10)(A)(i)(VIII) of the Act Implementation Guide",
href: abp2aPDF,
},
{
title: "ABP 2b",
text: "Voluntary Enrollment Assurances for Eligibility Groups other than the Adult Group under Section 1902(a)(10)(A)(i)(VIII) of the Act Implementation Guide",
href: abp2bPDF,
},
{
title: "ABP 3",
text: "Selection of Benchmark Benefit Package or Benchmark-Equivalent Benefit Package Implementation Guide",
href: abp3PDF,
},
{
title: "ABP 3.1",
text: "Selection of Benchmark Benefit or Benchmark-Equivalent Benefit Package Implementation Guide",
href: abp31PDF,
},
{
title: "ABP 4",
text: "Alternative Benefit Plan Cost Sharing Implementation Guide",
href: abp4PDF,
},
{
title: "ABP 5",
text: "Benefits Description Implementation Guide",
href: abp5PDF,
},
{
title: "ABP 6",
text: "Benchmark-Equivalent Benefit Package Implementation Guide",
href: abp6PDF,
},
{
title: "ABP 7",
text: "Benefits Assurances Implementation Guide",
href: abp7PDF,
},
{
title: "ABP 8",
text: "Service Delivery Systems Implementation Guide",
href: abp8PDF,
},
{
title: "ABP 9",
text: "Employer-Sponsored Insurance and Payment of Premiums Implementation Guide",
href: abp9PDF,
},
{
title: "ABP 10",
text: "General Assurances Implementation Guide",
href: abp10PDF,
},
{
title: "ABP 11",
text: "Payment Methodology Implementation Guide",
href: abp11PDF,
},
];
88 changes: 88 additions & 0 deletions react-app/src/features/faq/content/abpTemplate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import abp1PDF from "@/assets/abp/IG_ABP1_AlternativeBenefitPlanPopulations.pdf";
import abp2aPDF from "@/assets/abp/IG_ABP2a_VoluntaryBenefitPackageAssurances.pdf";
import abp2bPDF from "@/assets/abp/IG_ABP2b_VoluntaryEnrollmentAssurances.pdf";
import abp3PDF from "@/assets/abp/IG_ABP3_SelectionOfBenchmark20190819-Final.pdf";
import abp31PDF from "@/assets/abp/IG_ABP3.1_SelectionOfBenchmarkAfter2020.pdf";
import abp4PDF from "@/assets/abp/IG_ABP4_AbpCostSharing.pdf";
import abp5PDF from "@/assets/abp/IG_ABP5_BenefitsDescription-Final.pdf";
import abp6PDF from "@/assets/abp/IG_ABP6_BenchmarkEquivalentBenefit.pdf";
import abp7PDF from "@/assets/abp/IG_ABP7_BenefitAssurances.pdf";
import abp8PDF from "@/assets/abp/IG_ABP8_ServiceDeliverySystems.pdf";
import abp9PDF from "@/assets/abp/IG_ABP9_EmployerSponsoredInsurance.pdf";
import abp10PDF from "@/assets/abp/IG_ABP10_GeneralAssurances.pdf";
import abp11PDF from "@/assets/abp/IG_ABP11_PaymentMethodology.pdf";
import { Template } from "./chpRenderSection";

export const ABP_TEMPLATES: Template[] = [
{
title: "ABP 1",
text: "Alternative Benefit Plan Populations",
href: abp1PDF,
},
{
title: "ABP 2a",
text: "Voluntary Benefit Package Selection Assurances - Eligibility Group under Section 1902(a)(10)(A)(i)(VIII) of the Act",
href: abp2aPDF,
},
{
title: "ABP 2b",
text: "Voluntary Enrollment Assurances for Eligibility Groups other than the Adult Group under Section 1902(a)(10)(A)(i)(VIII) of the Act",
href: abp2bPDF,
},
{
title: "ABP 3",
text: "Selection of Benchmark Benefit Package or Benchmark-Equivalent Benefit Package\n* Use only if ABP has an effective date earlier than 1/1/2020 or if only changing the Section 1937 Coverage Option of an ABP implemented before 1/1/2020",
href: abp3PDF,
subtext: [
"Use only if ABP has an effective date earlier than 1/1/2020 or if only changing the Section 1937 Coverage Option of an ABP implemented before 1/1/2020",
],
},
{
title: "ABP 3.1",
text: "Selection of Benchmark Benefit or Benchmark-Equivalent Benefit Package\n* Use only for ABPs effective on or after 1/1/2020",
href: abp31PDF,
subtext: [
"Use only if ABP has an effective date earlier than 1/1/2020 or if only changing the Section 1937 Coverage Option of an ABP implemented before 1/1/2020",
],
},
{
title: "ABP 4",
text: "Alternative Benefit Plan Cost Sharing",
href: abp4PDF,
},
{
title: "ABP 5",
text: "Benefits Description",
href: abp5PDF,
},
{
title: "ABP 6",
text: "Benchmark-Equivalent Benefit Package",
href: abp6PDF,
},
{
title: "ABP 7",
text: "Benefits Assurances",
href: abp7PDF,
},
{
title: "ABP 8",
text: "Service Delivery Systems",
href: abp8PDF,
},
{
title: "ABP 9",
text: "Employer-Sponsored Insurance and Payment of Premiums",
href: abp9PDF,
},
{
title: "ABP 10",
text: "General Assurances",
href: abp10PDF,
},
{
title: "ABP 11",
text: "Payment Methodology",
href: abp11PDF,
},
];
139 changes: 139 additions & 0 deletions react-app/src/features/faq/content/chpGuides.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
import cs3PDF from "@/assets/chp/IG_CS3_MedicaidExpansion.pdf";
import cs7PDF from "@/assets/chp/IG_CS7_TargetedLow-IncomeChildren.pdf";
import cs8PDF from "@/assets/chp/IG_CS8_TargetedLow-IncomePregnantWomen.pdf";
import cs9PDF from "@/assets/chp/IG_CS9_CoverageFromConceptionToBirth.pdf";
import cs10PDF from "@/assets/chp/IG_CS10_ChildrenWhoHaveAccessToPublicEmployeeCoverage.pdf";
import cs11PDF from "@/assets/chp/IG_CS11_PregnantWomenWhoHaveAccessToPublicEmployeeCoverage.pdf";
import cs12PDF from "@/assets/chp/IG_CS12_DentalOnlySupplementalCoverage.pdf";
import cs13PDF from "@/assets/chp/IG_CS13_DeemedNewborns.pdf";
import cs14PDF from "@/assets/chp/IG_CS14_ChildrenIneligForMedicaid.pdf";
import cs15PDF from "@/assets/chp/IG_CS15_MAGI-BasedIncomeMethodologies.pdf";
import cs16PDF from "@/assets/chp/IG_CS16_Spenddown.pdf";
import cs17PDF from "@/assets/chp/IG_CS17_Non-Financial-Residency.pdf";
import cs18PDF from "@/assets/chp/IG_CS18_Non-Financial-Citizenship.pdf";
import cs19PDF from "@/assets/chp/IG_CS19_Non-Financial-SocialSecurityNumber.pdf";
import cs20PDF from "@/assets/chp/IG_CS20_Non-Financial-SubstitutionOfCoverage.pdf";
import cs21PDF from "@/assets/chp/IG_CS21_NonFinancialNonPaymentOfPremiums.pdf";
import cs23PDF from "@/assets/chp/IG_CS23_NonFinancialRequirementOtherEligibilityStandards.pdf";
import cs24PDF from "@/assets/chp/IG_CS24_EligibilityProcessing.pdf";
import cs27PDF from "@/assets/chp/IG_CS27_ContinuousEligibility.pdf";
import cs28PDF from "@/assets/chp/IG_CS28_PresumptiveEligibilityForChildren.pdf";
import cs29PDF from "@/assets/chp/IG_CS29_PresumptiveEligibilityForPregnantWomen.pdf";
import { Template } from "./chpRenderSection";

export const CHP_GUIDES: Template[] = [
// MAGI Eligibility & Methods
{
title: "CS 7",
text: "Eligibility - Targeted Low-Income Children Implementation Guide",
href: cs7PDF,
},
{
title: "CS 8",
text: "Eligibility - Targeted Low-Income Pregnant Women Implementation Guide",
href: cs8PDF,
},
{
title: "CS 9",
text: "Eligibility - Coverage From Conception to Birth Implementation Guide",
href: cs9PDF,
},
{
title: "CS 10",
text: "Eligibility - Children Who Have Access to Public Employee Coverage Implementation Guide",
href: cs10PDF,
},
{
title: "CS 11",
text: "Eligibility - Pregnant Women Who Have Access to Public Employee Coverage Implementation Guide",
href: cs11PDF,
},
{
title: "CS 12",
text: "Eligibility - Dental Only Supplemental Coverage Implementation Guide",
href: cs12PDF,
},
{
title: "CS 13",
text: "Eligibility - Deemed Newborns Implementation Guide",
href: cs13PDF,
},
{
title: "CS 15",
text: "MAGI-Based Income Methodologies Implementation Guide",
href: cs15PDF,
},
{
title: "CS 16",
text: "Other Eligibility Criteria - Spenddowns Implementation Guide",
href: cs16PDF,
},

// XXI Medicaid Expansion
{
title: "CS 3",
text: "Eligibility for Medicaid Expansion Program Implementation Guide",
href: cs3PDF,
},

// Establish 2101(f) Group
{
title: "CS 14",
text: "Eligibility - Children Ineligible for Medicaid as a Result of the Elimination of Income Disregards Implementation Guide",
href: cs14PDF,
},

// Eligibility Processing
{
title: "CS 24",
text: "General Eligibility - Eligibility Processing Implementation Guide",
href: cs24PDF,
},

// Non-Financial Eligibility
{
title: "CS 17",
text: "Non-Financial Eligibility - Residency Implementation Guide",
href: cs17PDF,
},
{
title: "CS 18",
text: "Non-Financial Eligibility - Citizenship Implementation Guide",
href: cs18PDF,
},
{
title: "CS 19",
text: "Non-Financial Eligibility - Social Security Number Implementation Guide",
href: cs19PDF,
},
{
title: "CS 20",
text: "Non-Financial Eligibility - Substitution of Coverage Implementation Guide",
href: cs20PDF,
},
{
title: "CS 21",
text: "Non-Financial Eligibility - Non-Payment of Premiums Implementation Guide",
href: cs21PDF,
},
{
title: "CS 23",
text: "Non-Financial Requirements - Other Eligibility Standards Implementation Guide",
href: cs23PDF,
},
{
title: "CS 27",
text: "General Eligibility - Continuous Eligibility Implementation Guide",
href: cs27PDF,
},
{
title: "CS 28",
text: "General Eligibility - Presumptive Eligibility for Children Implementation Guide",
href: cs28PDF,
},
{
title: "CS 29",
text: "General Eligibility - Presumptive Eligibility for Pregnant Women Implementation Guide",
href: cs29PDF,
},
];
46 changes: 46 additions & 0 deletions react-app/src/features/faq/content/chpRenderSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export interface Template {
title: string;
text: string;
href: string;
subtext?: string[];
}

export const renderSection = (
title: string,
templates: Template[],
filterCondition: (template: Template) => boolean,
ulClassName: string = "",
) => (
<>
<p>{title}</p>
<ul className={cn("list-disc pl-6 space-y-2", ulClassName)}>
{templates.filter(filterCondition).map((template) => (
<li key={template.title}>
<a
href={template.href}
target="_blank"
rel="noopener noreferrer"
className="text-blue-600"
>
{template.title}: {template.text}
</a>
{template.subtext && template.subtext.length > 0 && (
<ul className="list-disc pl-6 space-y-1">
{template.subtext.map((sub, index) => (
<li key={index} className="text-sm text-gray-600">
{sub}
</li>
))}
</ul>
)}
</li>
))}
</ul>
</>
);
Loading

0 comments on commit 1995692

Please sign in to comment.