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

Fix/old age pension employers validator #11771

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

qdd1
Copy link
Member

@qdd1 qdd1 commented Jul 25, 2023

...

Attach a link to issue if relevant

What

Specify what you're trying to achieve

Why

Specify why you need to achieve this

Screenshots / Gifs

Attach Screenshots / Gifs to help reviewers understand the scope of the pull request

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Formatting passes locally with my changes
  • I have rebased against main before asking for a review

@qdd1 qdd1 requested a review from a team as a code owner July 25, 2023 15:00
@qdd1 qdd1 merged commit 830c4a5 into feat/old-age-pension Jul 25, 2023
@qdd1 qdd1 deleted the fix/old-age-pension-employers-validator branch July 25, 2023 15:01
kodiakhq bot added a commit that referenced this pull request Dec 5, 2023
* feat/wip old age pension

* Feat/old age pension periods (#11410)

* feat(oldAgePension): period screen

* added unitest for oldAgePensionUtils

* added validator and snemmtöku additional documents

* chore: Gitbook update dirty files

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* add validators for periods (#11417)

* add validators

* validator text message

* add old age pension to codeowners

* fix codeowners

* wip residence history + wip confirm screen + one payment per year

* added fisherman and additional files screen (#11443)

* added fisherman and additional files screen

* change id name

* format

* add to Review page

* fix(old-age-pension): unitest and format (#11476)

* added comment page

* feat(old-age-pension): Add comment and files to Review screen (#11507)

* residence history

* added connected applications screen (#11508)

* format

* clean in messages file (#11518)

* feat(old-age-pension): added homeAllowence (#11547)

* feat(old-age-pension): added homeAllowence

* feat(old-age-pension): move to Section

* Fix/old age pension review page fishermen period attachments (#11570)

* fix(old-age-pension): fishermen period

* fix(old-age-pension): fix attachments

* fix(old-age-pension): corrected homeAllowance objects

* fix(old-age-pension): fix homeAllowance screens

* fix(old-age-pension): add applicationType and move fishermen option there (#11574)

* fix(old-age-pension): early retirement (#11580)

* call child custody from national registry

* clean..

* wip child support + clean in message

* add text to message

* fix(old-age-pension): correct error message for cohabitants

* Update libs/service-portal/information/src/lib/messages.ts

Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>

* chore: nx format:write update dirty files

* update message

* fix(old-age-pension): Period warning msg and cohabitants request

* [TS-26] Residence history - screen

* wip child support

* format

* [TS-67] Formatted marital status

* set up contentful

* [TS-71] Prevent applicant to send application if period is more than 2 years ago

* Fixed period

* Fixed application type label

* Feat/old age pension half pension (#11699)

* feat(old-age-pension): change texts

* feat(old-age-pension): Added self-employed

* feat(old-age-pension): finish self-employed

* feat(old-age-pension): employer is on right track

* added EmployersOverview

* feat(old-age-pension): added monthly ratio

* feat(old-age-pension): added monthly rate

* feat(old-age-pension): added employment to review page

* fix(old-age-pension): August text

* fix(old-age-pension): message

* fix(old-age-pension): add applicationType

* [TS-77] clean up in external data and add for information page before external data

* format

* fix spelling error

* misc fixes

* feat(old-age-pension): added scratch payment page (#11712)

* home allowance to household supplement

* fix message file for contentful

* [TS-79 | 81 | 83] minor fixes for employer

* [TS-89 | 90 | 91]: add missing things in review screen

* [TS-80]: fix so months can be translated

* fix(old-age-pension): employers and personal allowance (#11722)

* [TS-88]: translate period in review page

* [TS-84]: show month in period

* Changed PDF display in review screen

* feat(old-age-pension):  Added new action card functionality (#11742)

* Added Conclusion screen and pendingAction/historyLogs to template

* Change payment info alert from warning to info

* Updated old age pension template

* [TS-105] add unit tests + fix lint warnings

* Fixed comment in Review screen

* [TS-112]: readme + flow chart

* [TS-111] Fix lint errors and warnings

* changes to readme

* [TS-111]: fix residence history table

* [TS-58] Changing phone number on confirm page

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-111] fix lint errors

* [TS-140] Old age pension - Fix divider in Review page

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Changed id name in InReview form from parental leave to old age pension

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* chore: nx format:write update dirty files

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

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

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

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

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

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

---------

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

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* use enhancedFetch and ConfigModule

* remove unused import

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* Removed unused vars

* Moved employment validation to dataSchema

* fixed typo

* Removed unnecessary useEffect

* merge

* Update payment info alert msg and fixed failing test

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* refactor

* add conclusion to formstepper in Prerequisites

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* refactor

* [TS-308]: Fix error in unit test

* feat(old-age pension): Refactor bank functions (#12963)

* [TS-304] refactor bank functions?

* Removed duplicate import

* chore: nx format:write update dirty files

* [TS-309] Hide foreign bank account option if not registered

* Update unit tests in core

* send documents

* send documents 2

* send additional documents

* format

* remove unit test

* move period selection from custom component

* fix unit test

* chore: nx format:write update dirty files

---------

Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>
Co-authored-by: Veronika Sif <[email protected]>
Co-authored-by: veronikasif <[email protected]>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit that referenced this pull request Dec 8, 2023
* [TS-111] Fix lint errors and warnings

* [TS-109] Applicant information - review screen

* [TS-110] Fix lint errors and warnings

* readme

* readme + flow chart

* changes to readme

* fix slug

* spelling error

* period fixes

* [TS-111]: fix residence history table

* [TS-137] Changing phone number on confirm page

* [TS-58] Changing phone number on confirm page

* Fixed bank dataSchema validation

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-111] fix lint errors

* fix for alert message

* [TS-140] Old age pension - Fix divider in Review page

* [TS-141] Household Supplement - Fix divider in Review page

* Fixed getAvailableMonths unit test

* [TS-143] Household Supplement - Unit tests

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Removed unused validator error messages

* Changed id name in InReview form from parental leave to old age pension

* Fixed margin between items on Review page

* [TS-146] Add print button to Review page

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* TS-168 add margin to pdfs

* chore: nx format:write update dirty files

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

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

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

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

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* Fix margin on period page and some text errors

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

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

---------

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

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* add on entry action to additionalDocuments required

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* [TS-203]: Sort out additional documents required

* refactor

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* nx upgrade

* Moved household supplement into TR folder

* use enhancedFetch and ConfigModule

* remove unused import

* nx upgrade

* lint and format

* add markdown to messages

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* remove console.log and progress

* Remove console log

* Removed unused vars

* [TS-286] get email, phonenumber and bankaccount from TR (#12913)

* Moved employment validation to dataSchema

* fixed typo

* Removed unnecessary useEffect

* [TS-294]: Fix uploadAdditionalDocuments according to comments on oap

* merge

* Update payment info alert msg and fixed failing test

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* remove custom hook

* update external data, remove unused endpoint call, update lifecycles and only allow one application in draft

* remove custom alert component

* [TS-295] Get conclusion screen up to code

* Unset file upload if answers changed

* feature flag + code clean

* add missing file for feature flag

* add foreign bank account option

* [TS-293]: add organization_reviewer to roles

* refactor

* Update form stepper

* add conclusion to formstepper in Prerequisites

* [TS-301] Add dismiss button when applicant changes application

* [TS-303] Update conclusion screen

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* [TS-300]: Review and add unit tests and fix unit test error

* refactor

* refactor

* add eligible api to external data

* [TS-308]: Fix error in unit test

* feat(old-age pension): Refactor bank functions (#12963)

* [TS-304] refactor bank functions?

* Removed duplicate import

* chore: nx format:write update dirty files

* [TS-309] Hide foreign bank account option if not registered

* Update unit tests in core

* send documents

* send documents 2

* send additional documents

* format

* remove unit test

* move period selection from custom component

* fix unit test

* chore: nx format:write update dirty files

* [TS-310] send additional documents

* Update text on additional documents required page

* [TS-299]: Refactor period

* [TS-285] call eligible api from TR (#13002)

* send in HS application to TR

* format, add markdown to external data provider

* Removed duplicate utils

* fe

* chore: nx format:write update dirty files

* remove disabling eslint

* change xroad env name

---------

Co-authored-by: Veronika Sif <[email protected]>
Co-authored-by: qdd1 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: veronikasif <[email protected]>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot added a commit that referenced this pull request Jan 10, 2024
* chore: nx format:write update dirty files

* update message

* fix(old-age-pension): Period warning msg and cohabitants request

* [TS-26] Residence history - screen

* wip child support

* format

* [TS-67] Formatted marital status

* set up contentful

* [TS-71] Prevent applicant to send application if period is more than 2 years ago

* Fixed period

* Fixed application type label

* Feat/old age pension half pension (#11699)

* feat(old-age-pension): change texts

* feat(old-age-pension): Added self-employed

* feat(old-age-pension): finish self-employed

* feat(old-age-pension): employer is on right track

* added EmployersOverview

* feat(old-age-pension): added monthly ratio

* feat(old-age-pension): added monthly rate

* feat(old-age-pension): added employment to review page

* fix(old-age-pension): August text

* fix(old-age-pension): message

* fix(old-age-pension): add applicationType

* [TS-77] clean up in external data and add for information page before external data

* format

* fix spelling error

* misc fixes

* feat(old-age-pension): added scratch payment page (#11712)

* home allowance to household supplement

* fix message file for contentful

* [TS-79 | 81 | 83] minor fixes for employer

* [TS-89 | 90 | 91]: add missing things in review screen

* [TS-80]: fix so months can be translated

* fix(old-age-pension): employers and personal allowance (#11722)

* [TS-88]: translate period in review page

* [TS-84]: show month in period

* Changed PDF display in review screen

* feat(old-age-pension):  Added new action card functionality (#11742)

* Added Conclusion screen and pendingAction/historyLogs to template

* Change payment info alert from warning to info

* Updated old age pension template

* [TS-105] add unit tests + fix lint warnings

* Fixed comment in Review screen

* [TS-112]: readme + flow chart

* [TS-111] Fix lint errors and warnings

* changes to readme

* [TS-111]: fix residence history table

* [TS-58] Changing phone number on confirm page

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-111] fix lint errors

* [TS-140] Old age pension - Fix divider in Review page

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Changed id name in InReview form from parental leave to old age pension

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* chore: nx format:write update dirty files

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

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

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

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

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

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

---------

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

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* use enhancedFetch and ConfigModule

* remove unused import

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* Removed unused vars

* Moved employment validation to dataSchema

* fixed typo

* Removed unnecessary useEffect

* merge

* Update payment info alert msg and fixed failing test

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* refactor

* add conclusion to formstepper in Prerequisites

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* refactor

* set up additional support for the elderly

* [TS-272/273/275]: Add additional documents, comment and conclusion screen

* [TS-269] email and phone number

* [TS-275] conclusion screen

* [TS-318] Set up TR states in Template and [TS-320] Add dismiss button when applicant changes application

* [TS-277] additional documents required

* Added errorMessage for ASFTE when no email found

* Add Organization assign actions to template

* [TS-271]: Add period page

* [TS-271]: Add period info to review screen

* [TS-268]: set up info page if applicant doesn't have rights

* text change and add extract strings target

* add unit tests

* [TS-270]: Set up payment page, payment review and validation

* add personal allowance and tax levels to payment and review screens

* lint and format

* feat(social-insurance-administration): Move repeated messages to core (#13128)

* move shared messages to core

* Format

* move pre messages to core

* remove - from msg

* move info, period and month messages to core

* update months message id

* move payment messages to core

* added payment messages to core

* move confirm messages to core

* move conclusionScreen messages to core

* move additionalInfo messages to core

* move fileUpload messages to core

* removed unused messages

* move errorMesages messages to core

* move statesMesages messages to core

* fix padding in review

* move personalAllowance and taxLevel messages to core

* Removed paymentInfo answer validator

* [TS-268] Info page if applicant doesn't have rights to additional support for the elderly

* remove hooks

* remove commented out code

* refactor

* [TS-330] Format foreign bank account on Review

* [TS-332] Add 'clearBankAccountInfo' action to Template

* [TS-333] Add 'clearBankAccountInfo' action to Template

* [TS-331] Update 'clearBankAccountInfo' action in Template

* add sia core translation to oap, hs and asfte + remove unused period component

* revert react update

* [TS-278] read me + flow chart

* add uiForms so that text translates

* add uiForms.application to hs and asfte

* update readme

* Removed period month option functionality

* Updated getAvailableYears in hs and asfte applications

* Updated getAvailableMonths in hs application

* add feature flag + fix config

* change feature flag name and config ending

* add additional support for the elderly to sendApplication

* add taxInfo to DTO

* format

* Add file upload shared props

* minor fixes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: qdd1 <[email protected]>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: Veronika Sif <[email protected]>
Co-authored-by: veronikasif <[email protected]>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
kodiakhq bot pushed a commit that referenced this pull request Jan 15, 2024
* format

* fix spelling error

* misc fixes

* feat(old-age-pension): added scratch payment page (#11712)

* home allowance to household supplement

* fix message file for contentful

* [TS-79 | 81 | 83] minor fixes for employer

* [TS-89 | 90 | 91]: add missing things in review screen

* [TS-80]: fix so months can be translated

* fix(old-age-pension): employers and personal allowance (#11722)

* [TS-88]: translate period in review page

* [TS-84]: show month in period

* Changed PDF display in review screen

* feat(old-age-pension):  Added new action card functionality (#11742)

* Added Conclusion screen and pendingAction/historyLogs to template

* Change payment info alert from warning to info

* Updated old age pension template

* [TS-105] add unit tests + fix lint warnings

* Fixed comment in Review screen

* set up pension supplement application

* [TS-112]: readme + flow chart

* [TS-111] Fix lint errors and warnings

* changes to readme

* [TS-117] Payment page

* [TS-118] Reason page

* [TS-122] file upload (care at home)

* merge

* [TS-122, TS-123, TS-124, TS-125, TS-126] Pension supplement file upload

* [TS-120]: comment section

* [TS-107] General upload

* spelling error in messages

* [TS-135]: show custome data schema error message + fix namespace in contentful

* [TS-58] Changing phone number on confirm page

* [TS-111]: fix residence history table

* [TS-136] Changing phone number on confirm page

* [TS-58] Changing phone number on confirm page

* Fixed bank dataSchema validation

* [TS-139] Fix divider in Review page

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-127] Pension supplement conclusion screen

* [TS-111] fix lint errors

* fix for alert message

* [TS-140] Old age pension - Fix divider in Review page

* [TS-129] Application history and pending actions

* [TS-128] Additional document required

* Fixed history logs for additional documents

* Fixed comment width in Review

* Fixed getAvailableMonths unit test

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Changed id name in InReview form from parental leave to old age pension

* Fixed margin between items on Review page

* [TS-147] Add print button to Review page

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* chore: nx format:write update dirty files

* TS-130 readme + flow chart & TS-169 add margin to pdfs in review

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

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

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

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

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

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

---------

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

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* Refactor

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* [TS-280] get email, phonenumber and bankaccount from TR (#12841)

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* use enhancedFetch and ConfigModule

* remove unused import

* add import to fix error

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* Removed unused vars

* Moved employment validation to dataSchema

* [TS-283]: Additional documents required and minor changes from comments on oap

* fixed typo

* Removed unnecessary useEffect

* merge

* Update payment info alert msg and fixed failing test

* add fileUpload to dataSchema and format

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* feat(pension-supplement): Update bank account (#12870)

* [TS-280] get email, phonenumber and bankaccount from TR

* [TS-281] update bank account

* Fix old-age pension template onExit action

* Fix merge conflicts

* Format

* Fixed clearBankAccountInfo action

* [TS-290] upgrade nx

* refactor

* add conclusion to formstepper in Prerequisites

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* refactor

* refactor

* [TS-311] Update form stepper

* [TS-312] Add dismiss button when applicant changes application

* Update submit event

* remove depreciated code and add TR to Roles

* [TS-281] update bank account

* remove eslint-disable

* remove unused period component in oap

* update readme and flow chart

* [TS-323] fix period

* Updated getAvailableYears and getAvailableMonths in ps application

* add feature flag

* add fetch additionalDocumentsRequired for pension supplement to sia service

* review and add unit tests

* Updated imports

* Use sia core messages

* Add file upload shared props to constants in sia core

* [TS-282]: Add eligible API

* feat(pension-supplement): Send application (#13334)

* - Add reasons to yaml
- Start implementing sendApplication

* Implement attachments

* Fix copy/paste naming

* format, isEligible function

* chore: nx format:write update dirty files

* chore: nx format:write update dirty files

* delete answer validation and add file upload validation to dataschema, change upload accepted and remove unused code

---------

Co-authored-by: qdd1 <[email protected]>
Co-authored-by: Veronika Sif <[email protected]>
Co-authored-by: veronikasif <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
kodiakhq bot pushed a commit that referenced this pull request Jan 18, 2024
* added connected applications screen (#11508)

* format

* clean in messages file (#11518)

* feat(old-age-pension): added homeAllowence (#11547)

* feat(old-age-pension): added homeAllowence

* feat(old-age-pension): move to Section

* Fix/old age pension review page fishermen period attachments (#11570)

* fix(old-age-pension): fishermen period

* fix(old-age-pension): fix attachments

* fix(old-age-pension): corrected homeAllowance objects

* fix(old-age-pension): fix homeAllowance screens

* fix(old-age-pension): add applicationType and move fishermen option there (#11574)

* fix(old-age-pension): early retirement (#11580)

* call child custody from national registry

* clean..

* wip child support + clean in message

* add text to message

* fix(old-age-pension): correct error message for cohabitants

* Update libs/service-portal/information/src/lib/messages.ts

Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>

* chore: nx format:write update dirty files

* update message

* fix(old-age-pension): Period warning msg and cohabitants request

* [TS-26] Residence history - screen

* wip child support

* format

* [TS-67] Formatted marital status

* set up contentful

* [TS-71] Prevent applicant to send application if period is more than 2 years ago

* Fixed period

* Fixed application type label

* Feat/old age pension half pension (#11699)

* feat(old-age-pension): change texts

* feat(old-age-pension): Added self-employed

* feat(old-age-pension): finish self-employed

* feat(old-age-pension): employer is on right track

* added EmployersOverview

* feat(old-age-pension): added monthly ratio

* feat(old-age-pension): added monthly rate

* feat(old-age-pension): added employment to review page

* fix(old-age-pension): August text

* fix(old-age-pension): message

* fix(old-age-pension): add applicationType

* [TS-77] clean up in external data and add for information page before external data

* format

* fix spelling error

* misc fixes

* feat(old-age-pension): added scratch payment page (#11712)

* home allowance to household supplement

* fix message file for contentful

* [TS-79 | 81 | 83] minor fixes for employer

* [TS-89 | 90 | 91]: add missing things in review screen

* [TS-80]: fix so months can be translated

* fix(old-age-pension): employers and personal allowance (#11722)

* [TS-88]: translate period in review page

* [TS-84]: show month in period

* Changed PDF display in review screen

* feat(old-age-pension):  Added new action card functionality (#11742)

* Added Conclusion screen and pendingAction/historyLogs to template

* Change payment info alert from warning to info

* Updated old age pension template

* [TS-105] add unit tests + fix lint warnings

* Fixed comment in Review screen

* [TS-112]: readme + flow chart

* [TS-111] Fix lint errors and warnings

* changes to readme

* [TS-111]: fix residence history table

* [TS-58] Changing phone number on confirm page

* Fix/old age pension alert message (#11766)

* fix(old-age-pension): alert message mess application up

* fix(old-age-pension): use doesNotRequiredAnswers

* clean up

* [TS-111] fix lint errors

* [TS-140] Old age pension - Fix divider in Review page

* Fix/old age pension employers validator (#11771)

* fix(old-age-pension): employers answersvalidator

* clean up

* [TS-144] Only display spouse allowance question in payment page if has spouse

* Changed id name in InReview form from parental leave to old age pension

* [TS-149] Format spouse national id in applicant info page

* Fixed margin between items on Review page

* [TS-145] Add print button to Review page

* [TS-150] Bankanúmer birtast ekki á Review síðu

* [TS-153] Payment page issue

* [TS-144] Only display spouse allowance question in payment page if has spouse - Review

* fix typo

* Fixed employers ratio monthly

* Added margin to Attachments in Review

* [TS-159] Fix register employer total ratio field

* [TS-160] Fix error when change between monthly and yearly ratio when register employer

* feat(old-age-pension): getting connect to TR X-road endpoint (#11948)

* chore: nx format:write update dirty files

* feat(old-age-pension): Update register child page in old age pension application (#11903)

* [TS-157] Update register child page in old age pension application

* Updated validator to prevent duplicated national id in Child pension

* chore: nx format:write update dirty files

* Feat/old age pension gagnagatt (#12054)

* feat(old-age-pension): added gagnagátt

* feat(old-age-pension): Add TR id

* Feat/old age pension ts 152 (#12059)

* TS-152

* - Renamed the Client Tryggingastofnun to english
- Added GetStatusApi

* - Rollback

* - Rollback changes
- Added translation strings

* Fix JEST

* Fix for unit test

* User test API

* Changed the TR icelandic name to english

* chore: nx format:write update dirty files

* fix(old-age-pension): Add event between submitted to inReview (#12063)

* Fix/old age pension period show errors (#12069)

* fix(old-age-pension): another way to show errors

* fix(old-age-pension): change error text

* change error text

* change error text

* chore: nx format:write update dirty files

* Feat/old age pension add feature flag (#12088)

* feat(old-age-pension): add featureFlag

* format

* TS-173 list up custody kids in checkboxes + more

* TS-192 if no children in custody is selected, register a child

* lint & format

* fix(old-age-pension): final version for external page (#12136)

* nx upgrade

* nx upgrade

* add markdown to massage

* fix link in messages

* clean messages

* TS-170 - Implement AlertmessageField (#12185)

* TS-170 - Implement AlertmessageField

* Format code

* feat(old-age-pension): Align our states with TR's (#12270)

* [TS-165] Align our states with TR's

* [TS-205] Add validation to Additional documents required

* update unit test after aligning states with TR

* chore: nx format:write update dirty files

* call bank info api

* TS-207 call bank info api from TR

* TS-207 fix and format

* TS-211 rename for clarity

* chore: nx format:write update dirty files

* more name changes for readability

* chore: nx format:write update dirty files

* remove tax level radio button options on payment page

* chore: nx format:write update dirty files

* make default value 100% for personal allowance

* refactor

* format

* feat(old age pension): Send application (#12355)

* -Added sendApplication

* First implementation of data object to send to TR with attachments

* - Added missing data
- Code clean up

* - Created sendApplication endpoint
- Updated yml schema
- Code clean up
- Bug fix

* - Added jest tests
- Fixed unit tests

* - Moved Uploads to a type

* - prevent sending in childPension and fileUploadChildPension.maintenance if childPensionAddChild is NO

* - Changed the ApplicationType Enum to be a  number
- Changed the TaxOptions Enum to be a number
- Made changes to the data sent to TR

* Update libs/application/template-api-modules/src/lib/modules/templates/old-age-pension/old-age-pension.service.ts

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

* Fix after review

* Fix after review

* Fix after review
minimize the data being sent over to TR

* Fix after review and added unit tests

* Added application id

* Fix after review

* Change the applicationType back to string as TR team requested

---------

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

* add validation for period to confirm child is under 18

* format

* TS-219 wip spouse in nursing home

* format

* Feat(old age pension): send application fix (#12478)

* TS-194 make changes to the Application endpoint

* TS-194 Fix the data for the Application endpoint

* TS-228 add tax level in bank information page

* change taxLevel to number and bank to string

* TS-231 Change text household supplement

* TS-222 Throw out test and status endpoints

* TS-234 Fix personalAllowanceUsage = null error

* ts-223

* TS-232 and TS-235 fix space in period screen and make space after residence history

* make alert title more consistent

* more alert message changes

* TS-238 Change text on pension page

* revert residence history default value as yes

* format

* [TS-239]: Update additional documents flow

* feat(old-age-pension): Check if applicant is eligible (#12558)

* [TS-152] When applicant create new application

* Update messages

* remove bank info api and spouse in nursing home + calling applicant api

* format

* [TS-239]: Remove unused file for filesInfoScreen

* ts-299 phonenumber is not required but validate if filled in

* Fix Eligible endpoint when running locally

* remove connected applications code + validation

* remove unit tests, text and api calls for connected applications + add info about connected applications to conclusion screen

* [TS-194] Save the application on TR servers (#12738)

* [TS-263]: Fix progress bar and move one payment per year page

* feat(old-age-pension): Make sure additionalDocumentsRequired don't get sent twice to TR when requesting more documents (#12757)

* [TS-201]: Mark additionalDocumentsRequired as sent in additionalDocumentsRequired state

* [TS-201]: clear previously added documents on entry to additionalDocumentsRequired state

* Update libs/application/templates/social-insurance-administration/old-age-pension/src/lib/OldAgePensionTemplate.ts

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

---------

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

* [TS-201]: Clean up

* 230 - icelandic and foreign bank, call currencies API, only send bank account if changes or registered

* [TS-263]: Update formstepper in prerequisites to same as oap form

* ts-265 update send application api

* TS-230 remove unset bankaccount when switching between icelandic and foreign bank account + use regex validation and format instead of a package (#12818)

* remove unused states

* feat(old-age-pension): Add dismiss button when editing (#12786)

* [TS-259] Add dismiss button when applicant changes application

* Fix import after merge conflict

* Small fix

* Update Codeowners

* clean up

* update flow chart and lifecycles

* remove console.log

* [TS-263]: Fix and add unit tests

* chore: nx format:write update dirty files

* hide hald old age pension, call clearBankAccountInfo when exiting draft and change error message

* remove spouse allowance

* isEmpty check

* update CODEOWNERS

* feat(old-age-pension): Rename TR service, added core folder for shared utils and removed Abort state (#12875)

* [TS-289] Refactor TR service

* Removed Abort state

* Format

* removed Abort state transitions test on template

* chore: nx format:write update dirty files

* Fixed service name

* Fixed failing test

* use enhancedFetch and ConfigModule

* remove unused import

* let template api handle the errors

* Fixed typo, removed progress and removed UploadAdditionalDocuments

* reduce timeout time for SocialInsuranceAdministrationApi

* Removed unused vars

* Moved employment validation to dataSchema

* fixed typo

* Removed unnecessary useEffect

* merge

* Update payment info alert msg and fixed failing test

* Update conclusion screen

* hide 1/2 old age pension and handle undefined bank type

* refactor

* add conclusion to formstepper in Prerequisites

* [TS-302] Update conclusion screen

* [TS-306] Remove unused images

* refactor

* set up additional support for the elderly

* [TS-272/273/275]: Add additional documents, comment and conclusion screen

* [TS-269] email and phone number

* [TS-275] conclusion screen

* [TS-318] Set up TR states in Template and [TS-320] Add dismiss button when applicant changes application

* [TS-277] additional documents required

* Added errorMessage for ASFTE when no email found

* Add Organization assign actions to template

* [TS-271]: Add period page

* [TS-271]: Add period info to review screen

* [TS-268]: set up info page if applicant doesn't have rights

* text change and add extract strings target

* add unit tests

* [TS-270]: Set up payment page, payment review and validation

* Removed paymentInfo answer validator

* move shared messages to core

* Format

* move pre messages to core

* remove - from msg

* move info, period and month messages to core

* update months message id

* move payment messages to core

* added payment messages to core

* move confirm messages to core

* move conclusionScreen messages to core

* move additionalInfo messages to core

* move fileUpload messages to core

* removed unused messages

* move errorMesages messages to core

* move statesMesages messages to core

* add import

* Fix after merge conflict

* Fix after merge conflict 2

* Update comment on review

* Added return to sendApplication for ps

* Remove answer validator from oap

---------

Co-authored-by: qdd1 <[email protected]>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: karenbjorg <[email protected]>
Co-authored-by: Þorkell Máni Þorkelsson <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: birkirkristmunds <[email protected]>
Co-authored-by: bkristmundsson <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: ylfahfa <[email protected]>
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