From a408de0b900c2f6d5e2bf15da6d563301db8784c Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 26 Apr 2021 15:32:16 -0700 Subject: [PATCH] IO-920 Required referral fields. --- bodyshop_translations.babel | 21 +++++ .../jobs-convert-button.component.jsx | 20 +++++ .../jobs-detail-general.component.jsx | 6 ++ .../shop-info/shop-info.general.component.jsx | 7 ++ client/src/graphql/bodyshop.queries.js | 6 +- client/src/graphql/jobs.queries.js | 3 + client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + .../down.yaml | 5 ++ .../up.yaml | 6 ++ .../down.yaml | 81 ++++++++++++++++++ .../up.yaml | 82 +++++++++++++++++++ .../down.yaml | 75 +++++++++++++++++ .../up.yaml | 76 +++++++++++++++++ hasura/migrations/metadata.yaml | 18 ++-- 16 files changed, 399 insertions(+), 10 deletions(-) create mode 100644 hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/down.yaml create mode 100644 hasura/migrations/1619475246450_alter_table_public_bodyshops_add_column_enforce_referral/up.yaml create mode 100644 hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1619475263584_update_permission_user_public_table_bodyshops/up.yaml create mode 100644 hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1619475274396_update_permission_user_public_table_bodyshops/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index ed707ed24..ccc812d36 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -3145,6 +3145,27 @@ + + enforce_referral + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + federal_tax_id false diff --git a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx index a3a55bf06..7603f9868 100644 --- a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx +++ b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx @@ -94,6 +94,26 @@ export function JobsConvertButton({ bodyshop, job, refetch, jobRO }) { )} + {bodyshop.enforce_referral && ( + + + + )} + + +