From 88559e95a330385f9839ac642d81661c8dc3a2e8 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 16 Sep 2020 14:52:33 -0700 Subject: [PATCH] Added phone number to shop information BOD-400 --- bodyshop_translations.babel | 21 ++++++ .../shop-info/shop-info.component.jsx | 4 ++ client/src/graphql/bodyshop.queries.js | 2 + 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 | 5 ++ .../down.yaml | 68 ++++++++++++++++++ .../up.yaml | 69 +++++++++++++++++++ .../down.yaml | 62 +++++++++++++++++ .../up.yaml | 63 +++++++++++++++++ hasura/migrations/metadata.yaml | 2 + 13 files changed, 304 insertions(+) create mode 100644 hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/down.yaml create mode 100644 hasura/migrations/1600292860390_alter_table_public_bodyshops_add_column_phone/up.yaml create mode 100644 hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1600292870975_update_permission_user_public_table_bodyshops/up.yaml create mode 100644 hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/down.yaml create mode 100644 hasura/migrations/1600292878940_update_permission_user_public_table_bodyshops/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index b6f4a1cc7..2f0251d2e 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1652,6 +1652,27 @@ + + phone + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + prodtargethrs false diff --git a/client/src/components/shop-info/shop-info.component.jsx b/client/src/components/shop-info/shop-info.component.jsx index 25e033c36..ab0112eca 100644 --- a/client/src/components/shop-info/shop-info.component.jsx +++ b/client/src/components/shop-info/shop-info.component.jsx @@ -21,6 +21,7 @@ import ShopInfoROStatusComponent from "./shop-info.rostatus.component"; import ShopInfoSchedulingComponent from "./shop-info.scheduling.component"; import ShopInfoSpeedPrint from "./shop-info.speedprint.component"; import ShopInfoLaborRates from "./shop-info.laborrates.component"; +import PhoneFormItem from "../form-items-formatted/phone-form-item.component"; export default function ShopInfoComponent({ form, saveLoading }) { const { t } = useTranslation(); @@ -58,6 +59,9 @@ export default function ShopInfoComponent({ form, saveLoading }) { + + +