From 496df34f745c8e2f91d909ea19730439bf79ccdf Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Fri, 15 Mar 2019 15:29:28 -0400 Subject: [PATCH] fix(confirmation, formState, app, about, masthead, redux): issues/1 (#10) Support updates for * confirmationModal, component switched from modal to messageDialog * confirmationModal, unit tests, styles updated, cleaned up * formState, correction to isValid check * app, remove aboutModal and support methods, update auth logic * app styles, fadein support styling for component transitions * aboutModal, convert to connected redux state * mastheadOptions, props update related to auth logic * redux, actions, reducers, constants updated user and status trees * apiConstants, user and status --- .../__snapshots__/about.test.js.snap | 106 --------- src/components/about/__tests__/about.test.js | 18 -- src/components/about/about.js | 60 ----- .../__snapshots__/aboutModal.test.js.snap | 124 +++++++++++ .../aboutModal/__tests__/aboutModal.test.js | 40 ++++ src/components/aboutModal/aboutModal.js | 95 ++++++++ src/components/app.js | 154 +++++-------- .../confirmationModal.test.js.snap | 206 +++++++++--------- .../__tests__/confirmationModal.test.js | 58 ++++- .../confirmationModal/confirmationModal.js | 69 +++--- src/components/formState/formState.js | 6 +- .../mastheadOptions.test.js.snap | 2 +- .../__tests__/mastheadOptions.test.js | 4 +- .../mastheadOptions/mastheadOptions.js | 8 +- .../__snapshots__/apiConstants.test.js.snap | 16 ++ src/constants/apiConstants.js | 14 ++ src/index.js | 13 +- .../actions/__tests__/statusActions.test.js | 5 +- .../actions/__tests__/userActions.test.js | 23 +- src/redux/actions/userActions.js | 8 +- .../__snapshots__/index.test.js.snap | 16 ++ src/redux/constants/aboutModalConstants.js | 4 + src/redux/constants/index.js | 3 + .../aboutModalReducer.test.js.snap | 19 ++ .../__snapshots__/statusReducer.test.js.snap | 14 +- .../__snapshots__/userReducer.test.js.snap | 110 ++-------- .../__tests__/aboutModalReducer.test.js | 26 +++ src/redux/reducers/aboutModalReducer.js | 41 ++++ src/redux/reducers/index.js | 3 + src/redux/reducers/statusReducer.js | 55 +++-- src/redux/reducers/userReducer.js | 74 +------ src/styles/entitlements/_common.scss | 9 + src/styles/entitlements/_views.scss | 40 ---- src/styles/index.scss | 1 + 34 files changed, 753 insertions(+), 691 deletions(-) delete mode 100644 src/components/about/__tests__/__snapshots__/about.test.js.snap delete mode 100644 src/components/about/__tests__/about.test.js delete mode 100644 src/components/about/about.js create mode 100644 src/components/aboutModal/__tests__/__snapshots__/aboutModal.test.js.snap create mode 100644 src/components/aboutModal/__tests__/aboutModal.test.js create mode 100644 src/components/aboutModal/aboutModal.js create mode 100644 src/redux/constants/aboutModalConstants.js create mode 100644 src/redux/reducers/__tests__/__snapshots__/aboutModalReducer.test.js.snap create mode 100644 src/redux/reducers/__tests__/aboutModalReducer.test.js create mode 100644 src/redux/reducers/aboutModalReducer.js create mode 100644 src/styles/entitlements/_common.scss diff --git a/src/components/about/__tests__/__snapshots__/about.test.js.snap b/src/components/about/__tests__/__snapshots__/about.test.js.snap deleted file mode 100644 index 95dd594d..00000000 --- a/src/components/about/__tests__/__snapshots__/about.test.js.snap +++ /dev/null @@ -1,106 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`About Component should render a basic display 1`] = ` -
-