From a3846c1ee600b30935fb83f12566dff31672f772 Mon Sep 17 00:00:00 2001 From: Maks Turtiainen Date: Wed, 16 Aug 2023 19:27:28 +0300 Subject: [PATCH] Add approvals to review state --- .../migrations/0038_reviewstate_approval.py | 18 ++++++++++++++++++ backend/benefit/applications/models.py | 1 + .../consentView/ConsentView.tsx | 1 + .../handler/src/context/ReviewStateContext.tsx | 1 + .../benefit/handler/src/types/application.d.ts | 2 ++ 5 files changed, 23 insertions(+) create mode 100644 backend/benefit/applications/migrations/0038_reviewstate_approval.py diff --git a/backend/benefit/applications/migrations/0038_reviewstate_approval.py b/backend/benefit/applications/migrations/0038_reviewstate_approval.py new file mode 100644 index 0000000000..75181c6d73 --- /dev/null +++ b/backend/benefit/applications/migrations/0038_reviewstate_approval.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.18 on 2023-08-16 16:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('applications', '0037_reviewstate'), + ] + + operations = [ + migrations.AddField( + model_name='reviewstate', + name='approval', + field=models.BooleanField(default=False, verbose_name='approval'), + ), + ] diff --git a/backend/benefit/applications/models.py b/backend/benefit/applications/models.py index 5b4308eb96..eda8f725a1 100755 --- a/backend/benefit/applications/models.py +++ b/backend/benefit/applications/models.py @@ -856,3 +856,4 @@ class ReviewState(models.Model): pay_subsidy = models.BooleanField(default=False, verbose_name=_("pay subsidy")) benefit = models.BooleanField(default=False, verbose_name=_("benefit")) employment = models.BooleanField(default=False, verbose_name=_("employment")) + approval = models.BooleanField(default=False, verbose_name=_("approval")) diff --git a/frontend/benefit/handler/src/components/applicationReview/consentView/ConsentView.tsx b/frontend/benefit/handler/src/components/applicationReview/consentView/ConsentView.tsx index 4a99b27af6..d9f601a4ef 100644 --- a/frontend/benefit/handler/src/components/applicationReview/consentView/ConsentView.tsx +++ b/frontend/benefit/handler/src/components/applicationReview/consentView/ConsentView.tsx @@ -21,6 +21,7 @@ const ConsentView: React.FC = ({ return ( null, }; diff --git a/frontend/benefit/handler/src/types/application.d.ts b/frontend/benefit/handler/src/types/application.d.ts index f6b48f088f..dc376b05b8 100644 --- a/frontend/benefit/handler/src/types/application.d.ts +++ b/frontend/benefit/handler/src/types/application.d.ts @@ -188,6 +188,7 @@ export type ReviewState = { paySubsidy?: boolean; benefit?: boolean; employment?: boolean; + approval?: boolean; }; export type ReviewStateData = { @@ -200,4 +201,5 @@ export type ReviewStateData = { pay_subsidy?: boolean; benefit?: boolean; employment?: boolean; + approval?: boolean; };