From 6a8b59c7e66fb17fa5bcb54160ae9e8380fa6210 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 16 Jul 2020 10:17:23 -0700 Subject: [PATCH] Added shift clock framework + login on tech console BOD-97 BOD-188 --- bodyshop_translations.babel | 170 +++++++++++++++++- client/src/App/App.styles.scss | 3 +- .../shop-employees-form.component.jsx | 3 + .../shop-employees.container.jsx | 50 +++--- .../tech-job-clock-in-form.container.jsx | 46 +++-- .../tech-job-clock-out-button.component.jsx | 97 +++++----- .../tech-job-clock-out-delete.component.jsx | 9 +- .../tech-job-clocked-in-list.component.jsx | 6 +- .../tech-sider/tech-sider.component.jsx | 33 ++-- .../time-ticket-modal.component.jsx | 42 ++--- .../time-ticket-modal.container.jsx | 30 ++-- .../time-ticket-shift-active.component.jsx | 50 ++++++ .../time-ticket-shift-form.component.jsx | 53 ++++++ .../time-ticket-shift-form.container.jsx | 90 ++++++++++ .../time-ticket-shift.container.jsx | 57 ++++++ client/src/graphql/bodyshop.queries.js | 3 + client/src/graphql/employees.queries.jsx | 2 + client/src/graphql/timetickets.queries.js | 33 ++++ .../tech-shift-clock.component.jsx | 10 ++ client/src/pages/tech/tech.page.component.jsx | 23 ++- client/src/redux/tech/tech.reducer.js | 1 + client/src/translations/en_us/common.json | 12 +- client/src/translations/es/common.json | 12 +- client/src/translations/fr/common.json | 12 +- .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 5 + .../up.yaml | 10 ++ .../down.yaml | 12 ++ .../up.yaml | 10 ++ .../down.yaml | 6 + .../up.yaml | 13 ++ .../down.yaml | 6 + .../up.yaml | 8 + .../down.yaml | 38 ++++ .../up.yaml | 39 ++++ .../down.yaml | 39 ++++ .../up.yaml | 40 +++++ .../down.yaml | 38 ++++ .../up.yaml | 39 ++++ .../down.yaml | 38 ++++ .../up.yaml | 29 +++ .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 5 + .../up.yaml | 10 ++ .../down.yaml | 12 ++ .../up.yaml | 20 +++ .../down.yaml | 29 +++ .../up.yaml | 37 ++++ .../down.yaml | 39 ++++ .../up.yaml | 39 ++++ .../down.yaml | 37 ++++ .../up.yaml | 38 ++++ .../down.yaml | 38 ++++ .../up.yaml | 38 ++++ .../down.yaml | 23 +++ .../up.yaml | 22 +++ .../down.yaml | 5 + .../up.yaml | 5 + .../down.yaml | 38 ++++ .../up.yaml | 39 ++++ .../down.yaml | 39 ++++ .../up.yaml | 40 +++++ .../down.yaml | 38 ++++ .../up.yaml | 39 ++++ hasura/migrations/metadata.yaml | 141 +++++++++------ 67 files changed, 1791 insertions(+), 217 deletions(-) create mode 100644 client/src/components/time-ticket-shift-active/time-ticket-shift-active.component.jsx create mode 100644 client/src/components/time-ticket-shift-form/time-ticket-shift-form.component.jsx create mode 100644 client/src/components/time-ticket-shift-form/time-ticket-shift-form.container.jsx create mode 100644 client/src/components/time-ticket-shift/time-ticket-shift.container.jsx create mode 100644 client/src/pages/tech-shift-clock/tech-shift-clock.component.jsx create mode 100644 hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/down.yaml create mode 100644 hasura/migrations/1594851818607_alter_table_public_employees_add_column_user_email/up.yaml create mode 100644 hasura/migrations/1594851844985_set_fk_public_employees_user_email/down.yaml create mode 100644 hasura/migrations/1594851844985_set_fk_public_employees_user_email/up.yaml create mode 100644 hasura/migrations/1594851857360_set_fk_public_employees_user_email/down.yaml create mode 100644 hasura/migrations/1594851857360_set_fk_public_employees_user_email/up.yaml create mode 100644 hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/down.yaml create mode 100644 hasura/migrations/1594851876967_add_relationship_employee_table_public_undefined/up.yaml create mode 100644 hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/down.yaml create mode 100644 hasura/migrations/1594851879473_add_relationship_user_table_public_undefined/up.yaml create mode 100644 hasura/migrations/1594852259471_update_permission_user_public_table_employees/down.yaml create mode 100644 hasura/migrations/1594852259471_update_permission_user_public_table_employees/up.yaml create mode 100644 hasura/migrations/1594852265828_update_permission_user_public_table_employees/down.yaml create mode 100644 hasura/migrations/1594852265828_update_permission_user_public_table_employees/up.yaml create mode 100644 hasura/migrations/1594852271012_update_permission_user_public_table_employees/down.yaml create mode 100644 hasura/migrations/1594852271012_update_permission_user_public_table_employees/up.yaml create mode 100644 hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915350729_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/down.yaml create mode 100644 hasura/migrations/1594915426388_alter_table_public_timetickets_add_column_bodyshopid/up.yaml create mode 100644 hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/down.yaml create mode 100644 hasura/migrations/1594915475076_set_fk_public_timetickets_bodyshopid/up.yaml create mode 100644 hasura/migrations/1594915490297_track_all_relationships/down.yaml create mode 100644 hasura/migrations/1594915490297_track_all_relationships/up.yaml create mode 100644 hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915535846_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915560544_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915572129_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915585321_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594915594328_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/down.yaml create mode 100644 hasura/migrations/1594918801030_alter_table_public_timetickets_add_column_memo/up.yaml create mode 100644 hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594918812708_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594918823530_update_permission_user_public_table_timetickets/up.yaml create mode 100644 hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/down.yaml create mode 100644 hasura/migrations/1594918834840_update_permission_user_public_table_timetickets/up.yaml diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 62caf001f..e0869b086 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1,4 +1,4 @@ - +