From 0dd2b20599bee90cab888d4ae48e0c6a41d54762 Mon Sep 17 00:00:00 2001 From: Sue Tairaku Date: Sat, 15 Jun 2024 09:10:58 -0700 Subject: [PATCH 1/3] PSP-7499 --- .../ContactFilterComponent.tsx | 88 ++-- .../ContactFilterComponent.test.tsx.snap | 265 ++++++------ .../ContactManagerView/ContactManagerView.tsx | 16 +- .../ContactResultComponent.test.tsx.snap | 253 +++++------ .../ContactResultComponent/columns.tsx | 37 +- .../ContactManagerView.test.tsx.snap | 310 +++++++------- .../ContactListView.test.tsx.snap | 399 +++++++++--------- 7 files changed, 727 insertions(+), 641 deletions(-) diff --git a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx index 04fbe1ae19..aac35d0b04 100644 --- a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx +++ b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx @@ -2,13 +2,14 @@ import { Form, Formik } from 'formik'; import React from 'react'; import { Col, Row } from 'react-bootstrap'; import { FaRegBuilding, FaRegUser } from 'react-icons/fa'; +import { FaCircle } from 'react-icons/fa'; import styled from 'styled-components'; -import Active from '@/assets/images/active.svg?react'; import { ResetButton, SearchButton } from '@/components/common/buttons'; import ActiveFilterCheck from '@/components/common/form/ActiveFilterCheck'; import { RadioGroup } from '@/components/common/form/RadioGroup'; import { InlineInput } from '@/components/common/form/styles'; +import { VerticalBar } from '@/components/common/VerticalBar'; import { IContactFilter } from '@/components/contact/ContactManagerView/IContactFilter'; export const defaultFilter: IContactFilter = { @@ -80,37 +81,17 @@ export const ContactFilterComponent: React.FunctionComponent< /> - + - - - - - - - - - { - submitForm(); - }} - /> - - - { - resetForm({ values: { ...defaultFilter, searchBy: values.searchBy } }); - resetFilter(values); - }} + + - - + {showActiveSelector && ( <> @@ -118,13 +99,47 @@ export const ContactFilterComponent: React.FunctionComponent< fieldName="activeContactsOnly" setFilter={setFilter} /> - - Show active contacts only + + + + + Active contacts only + )} + + + + + + + + + { + submitForm(); + }} + /> + + + { + resetForm({ values: { ...defaultFilter, searchBy: values.searchBy } }); + resetFilter(values); + }} + /> + + + + + )} @@ -194,12 +209,12 @@ const StyledFilterBoxForm = styled(Form)` background-color: ${({ theme }) => theme.css.filterBoxColor}; border-radius: 0.4rem; padding: 1rem; - max-width: 85em; + max-width: 110em; `; const StyledColButton = styled(Col)` padding-right: 0rem; - padding-left: 0rem; + padding-left: 1rem; `; export const StyledNameInput = styled(InlineInput)` @@ -207,5 +222,12 @@ export const StyledNameInput = styled(InlineInput)` `; export const StyledCityInput = styled(InlineInput)` - max-width: 20rem; + max-width: 40rem; +`; + +export const ActiveIndicator = styled.div` + display: inline-block; + margin: 0rem 0.5rem; + padding: 0.2rem; + color: ${props => props.theme.bcTokens.iconsColorSuccess}; `; diff --git a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/__snapshots__/ContactFilterComponent.test.tsx.snap b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/__snapshots__/ContactFilterComponent.test.tsx.snap index fb2f2a0229..4dc1e8b11e 100644 --- a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/__snapshots__/ContactFilterComponent.test.tsx.snap +++ b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/__snapshots__/ContactFilterComponent.test.tsx.snap @@ -6,7 +6,7 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` class="Toastify" />
- .c7.btn { + .c9.btn { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -37,49 +37,49 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` height: 3.8rem; } -.c7.btn:hover { +.c9.btn:hover { -webkit-text-decoration: underline; text-decoration: underline; opacity: 0.8; } -.c7.btn:focus { +.c9.btn:focus { outline-width: 0.4rem; outline-style: solid; outline-offset: 1px; box-shadow: none; } -.c7.btn.btn-primary { +.c9.btn.btn-primary { border: none; } -.c7.btn.btn-secondary { +.c9.btn.btn-secondary { background: none; } -.c7.btn.btn-info { +.c9.btn.btn-info { border: none; background: none; padding-left: 0.6rem; padding-right: 0.6rem; } -.c7.btn.btn-info:hover, -.c7.btn.btn-info:active, -.c7.btn.btn-info:focus { +.c9.btn.btn-info:hover, +.c9.btn.btn-info:active, +.c9.btn.btn-info:focus { background: none; } -.c7.btn.btn-light { +.c9.btn.btn-light { border: none; } -.c7.btn.btn-dark { +.c9.btn.btn-dark { border: none; } -.c7.btn.btn-link { +.c9.btn.btn-link { font-size: 1.6rem; font-weight: 400; background: none; @@ -100,9 +100,9 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` padding: 0; } -.c7.btn.btn-link:hover, -.c7.btn.btn-link:active, -.c7.btn.btn-link:focus { +.c9.btn.btn-link:hover, +.c9.btn.btn-link:active, +.c9.btn.btn-link:focus { -webkit-text-decoration: underline; text-decoration: underline; border: none; @@ -111,14 +111,14 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` outline: none; } -.c7.btn.btn-link:disabled, -.c7.btn.btn-link.disabled { +.c9.btn.btn-link:disabled, +.c9.btn.btn-link.disabled { background: none; pointer-events: none; } -.c7.btn:disabled, -.c7.btn:disabled:hover { +.c9.btn:disabled, +.c9.btn:disabled:hover { box-shadow: none; -webkit-user-select: none; -moz-user-select: none; @@ -129,15 +129,15 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` opacity: 0.65; } -.c7.Button .Button__icon { +.c9.Button .Button__icon { margin-right: 1.6rem; } -.c7.Button--icon-only:focus { +.c9.Button--icon-only:focus { outline: none; } -.c7.Button--icon-only .Button__icon { +.c9.Button--icon-only .Button__icon { margin-right: 0; } @@ -217,15 +217,22 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` margin-bottom: unset; } +.c7 { + border-left: 1px solid white; + font-size: 3.4rem; + margin: 0 36px 0 36px; + vertical-align: top; +} + .c0 { border-radius: 0.4rem; padding: 1rem; - max-width: 85em; + max-width: 110em; } -.c6 { +.c8 { padding-right: 0rem; - padding-left: 0rem; + padding-left: 1rem; } .c4 { @@ -233,7 +240,13 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` } .c5 { - max-width: 20rem; + max-width: 40rem; +} + +.c6 { + display: inline-block; + margin: 0rem 0.5rem; + padding: 0.2rem; }
matches snapshot 1`] = ` class="col" >
matches snapshot 1`] = `
matches snapshot 1`] = ` class="form-control" id="input-municipality" name="municipality" + placeholder="City of contact's address" title="" value="" />
-
- -
-
-
- -
-
- -
@@ -519,42 +467,113 @@ exports[`ContactFilterComponent > matches snapshot 1`] = `
- - - - - - - - - - + + + - Show active contacts only + + Active + + contacts only +
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
diff --git a/source/frontend/src/components/contact/ContactManagerView/ContactManagerView.tsx b/source/frontend/src/components/contact/ContactManagerView/ContactManagerView.tsx index c4ee3945fd..1be9414404 100644 --- a/source/frontend/src/components/contact/ContactManagerView/ContactManagerView.tsx +++ b/source/frontend/src/components/contact/ContactManagerView/ContactManagerView.tsx @@ -1,6 +1,6 @@ import { useEffect } from 'react'; import { Col, Row } from 'react-bootstrap'; -import { IoMdPersonAdd } from 'react-icons/io'; +import { FaPlus } from 'react-icons/fa'; import { useHistory } from 'react-router'; import { toast } from 'react-toastify'; import styled from 'styled-components'; @@ -96,11 +96,13 @@ const ContactManagerView = ({ restrictContactType={restrictContactType} /> + + {showAddButton && hasClaim(Claims.CONTACT_ADD) && ( history.push('/contact/new')}> - - Add new contact + +  Add new contact )} @@ -131,8 +133,8 @@ const ContactManagerView = ({ export default ContactManagerView; const StyledPrimaryButton = styled(Button)` - margin: 0.4rem 0.6rem; - white-space: nowrap; - display: inline-block; - gap: 1rem; + margin: 2rem 1.5rem; + &.btn.btn-primary { + background-color: ${props => props.theme.bcTokens.iconsColorSuccess}; + } `; diff --git a/source/frontend/src/components/contact/ContactManagerView/ContactResultComponent/__snapshots__/ContactResultComponent.test.tsx.snap b/source/frontend/src/components/contact/ContactManagerView/ContactResultComponent/__snapshots__/ContactResultComponent.test.tsx.snap index 8c75c3247a..e859c4aa21 100644 --- a/source/frontend/src/components/contact/ContactManagerView/ContactResultComponent/__snapshots__/ContactResultComponent.test.tsx.snap +++ b/source/frontend/src/components/contact/ContactManagerView/ContactResultComponent/__snapshots__/ContactResultComponent.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` class="Toastify" />
- .c5.btn { + .c6.btn { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -37,49 +37,49 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` height: 3.8rem; } -.c5.btn:hover { +.c6.btn:hover { -webkit-text-decoration: underline; text-decoration: underline; opacity: 0.8; } -.c5.btn:focus { +.c6.btn:focus { outline-width: 0.4rem; outline-style: solid; outline-offset: 1px; box-shadow: none; } -.c5.btn.btn-primary { +.c6.btn.btn-primary { border: none; } -.c5.btn.btn-secondary { +.c6.btn.btn-secondary { background: none; } -.c5.btn.btn-info { +.c6.btn.btn-info { border: none; background: none; padding-left: 0.6rem; padding-right: 0.6rem; } -.c5.btn.btn-info:hover, -.c5.btn.btn-info:active, -.c5.btn.btn-info:focus { +.c6.btn.btn-info:hover, +.c6.btn.btn-info:active, +.c6.btn.btn-info:focus { background: none; } -.c5.btn.btn-light { +.c6.btn.btn-light { border: none; } -.c5.btn.btn-dark { +.c6.btn.btn-dark { border: none; } -.c5.btn.btn-link { +.c6.btn.btn-link { font-size: 1.6rem; font-weight: 400; background: none; @@ -100,9 +100,9 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` padding: 0; } -.c5.btn.btn-link:hover, -.c5.btn.btn-link:active, -.c5.btn.btn-link:focus { +.c6.btn.btn-link:hover, +.c6.btn.btn-link:active, +.c6.btn.btn-link:focus { -webkit-text-decoration: underline; text-decoration: underline; border: none; @@ -111,14 +111,14 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` outline: none; } -.c5.btn.btn-link:disabled, -.c5.btn.btn-link.disabled { +.c6.btn.btn-link:disabled, +.c6.btn.btn-link.disabled { background: none; pointer-events: none; } -.c5.btn:disabled, -.c5.btn:disabled:hover { +.c6.btn:disabled, +.c6.btn:disabled:hover { box-shadow: none; -webkit-user-select: none; -moz-user-select: none; @@ -129,42 +129,42 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` opacity: 0.65; } -.c5.Button .Button__icon { +.c6.Button .Button__icon { margin-right: 1.6rem; } -.c5.Button--icon-only:focus { +.c6.Button--icon-only:focus { outline: none; } -.c5.Button--icon-only .Button__icon { +.c6.Button--icon-only .Button__icon { margin-right: 0; } -.c6.c6.btn { +.c7.c7.btn { background-color: unset; border: none; } -.c6.c6.btn:hover, -.c6.c6.btn:focus, -.c6.c6.btn:active { +.c7.c7.btn:hover, +.c7.c7.btn:focus, +.c7.c7.btn:active { background-color: unset; outline: none; box-shadow: none; } -.c6.c6.btn svg { +.c7.c7.btn svg { -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } -.c6.c6.btn svg:hover { +.c7.c7.btn svg:hover { -webkit-transition: all 0.3s ease-in; transition: all 0.3s ease-in; } -.c3 { +.c4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -203,7 +203,7 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` height: 1.6rem; } -.c4 { +.c5 { -webkit-box-pack: space-around; -webkit-justify-content: space-around; -ms-flex-pack: space-around; @@ -211,6 +211,11 @@ exports[`Contact Search Results Table > matches snapshot 1`] = ` width: 100%; } +.c3 a { + font-weight: bold; + color: !important; +} +
matches snapshot 1`] = ` class="th" colspan="1" role="columnheader" - style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: right; text-align: right; flex-wrap: wrap; align-items: center; display: flex;" + style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: center; text-align: center; flex-wrap: wrap; align-items: center; display: flex;" >
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 10 0 auto; min-width: 10px; width: 10px; justify-content: right; text-align: right; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - - - - - - - - - + + +
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 80 0 auto; min-width: 30px; width: 80px; justify-content: left; text-align: left; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - summary - + + summary + +
matches snapshot 1`] = ` title="" >
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 80 0 auto; min-width: 30px; width: 80px; justify-content: left; text-align: left; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - summary - + + summary + +
matches snapshot 1`] = ` title="" >
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 80 0 auto; min-width: 30px; width: 80px; justify-content: left; text-align: left; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - summary - + + summary + +
matches snapshot 1`] = ` title="" >
-
-
- -
@@ -559,46 +507,120 @@ exports[`ContactManagerView > matches snapshot 1`] = `
- - - - - - - - - - + + + - Show active contacts only + + Active + + contacts only +
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
matches snapshot 1`] = ` class="th" colspan="1" role="columnheader" - style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: right; text-align: right; flex-wrap: wrap; align-items: center; display: flex;" + style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: center; text-align: center; flex-wrap: wrap; align-items: center; display: flex;" >
matches snapshot 1`] = ` > Summary
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > First name
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > Last name
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > Organization
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > City
matches snapshot 1`] = ` /> matches snapshot 1`] = ` class="ml-auto align-self-center col-auto" >

0 selected

diff --git a/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap b/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap index c9484c81d9..c589bacc0a 100644 --- a/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap +++ b/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Contact List View > matches snapshot 1`] = ` class="Toastify" />
- .c11.btn { + .c13.btn { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -37,49 +37,49 @@ exports[`Contact List View > matches snapshot 1`] = ` height: 3.8rem; } -.c11.btn:hover { +.c13.btn:hover { -webkit-text-decoration: underline; text-decoration: underline; opacity: 0.8; } -.c11.btn:focus { +.c13.btn:focus { outline-width: 0.4rem; outline-style: solid; outline-offset: 1px; box-shadow: none; } -.c11.btn.btn-primary { +.c13.btn.btn-primary { border: none; } -.c11.btn.btn-secondary { +.c13.btn.btn-secondary { background: none; } -.c11.btn.btn-info { +.c13.btn.btn-info { border: none; background: none; padding-left: 0.6rem; padding-right: 0.6rem; } -.c11.btn.btn-info:hover, -.c11.btn.btn-info:active, -.c11.btn.btn-info:focus { +.c13.btn.btn-info:hover, +.c13.btn.btn-info:active, +.c13.btn.btn-info:focus { background: none; } -.c11.btn.btn-light { +.c13.btn.btn-light { border: none; } -.c11.btn.btn-dark { +.c13.btn.btn-dark { border: none; } -.c11.btn.btn-link { +.c13.btn.btn-link { font-size: 1.6rem; font-weight: 400; background: none; @@ -100,9 +100,9 @@ exports[`Contact List View > matches snapshot 1`] = ` padding: 0; } -.c11.btn.btn-link:hover, -.c11.btn.btn-link:active, -.c11.btn.btn-link:focus { +.c13.btn.btn-link:hover, +.c13.btn.btn-link:active, +.c13.btn.btn-link:focus { -webkit-text-decoration: underline; text-decoration: underline; border: none; @@ -111,14 +111,14 @@ exports[`Contact List View > matches snapshot 1`] = ` outline: none; } -.c11.btn.btn-link:disabled, -.c11.btn.btn-link.disabled { +.c13.btn.btn-link:disabled, +.c13.btn.btn-link.disabled { background: none; pointer-events: none; } -.c11.btn:disabled, -.c11.btn:disabled:hover { +.c13.btn:disabled, +.c13.btn:disabled:hover { box-shadow: none; -webkit-user-select: none; -moz-user-select: none; @@ -129,37 +129,37 @@ exports[`Contact List View > matches snapshot 1`] = ` opacity: 0.65; } -.c11.Button .Button__icon { +.c13.Button .Button__icon { margin-right: 1.6rem; } -.c11.Button--icon-only:focus { +.c13.Button--icon-only:focus { outline: none; } -.c11.Button--icon-only .Button__icon { +.c13.Button--icon-only .Button__icon { margin-right: 0; } -.c16.c16.btn { +.c19.c19.btn { background-color: unset; border: none; } -.c16.c16.btn:hover, -.c16.c16.btn:focus, -.c16.c16.btn:active { +.c19.c19.btn:hover, +.c19.c19.btn:focus, +.c19.c19.btn:active { background-color: unset; outline: none; box-shadow: none; } -.c16.c16.btn svg { +.c19.c19.btn svg { -webkit-transition: all 0.3s ease-out; transition: all 0.3s ease-out; } -.c16.c16.btn svg:hover { +.c19.c19.btn svg:hover { -webkit-transition: all 0.3s ease-in; transition: all 0.3s ease-in; } @@ -182,7 +182,7 @@ exports[`Contact List View > matches snapshot 1`] = ` flex-shrink: 0; } -.c12 { +.c14 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -201,27 +201,27 @@ exports[`Contact List View > matches snapshot 1`] = ` margin-left: 0.5rem; } -.c14 { +.c16 { width: 1.6rem; height: 1.6rem; } -.c13 { +.c15 { width: 1.6rem; height: 1.6rem; } -.c17 { +.c20 { margin-top: 0.3rem; } -.c18 { +.c21 { width: 7.5rem; margin-left: 1rem; margin-right: 1rem; } -.c18:disabled { +.c21:disabled { background: white; } @@ -283,15 +283,22 @@ exports[`Contact List View > matches snapshot 1`] = ` margin-bottom: unset; } +.c11 { + border-left: 1px solid white; + font-size: 3.4rem; + margin: 0 36px 0 36px; + vertical-align: top; +} + .c4 { border-radius: 0.4rem; padding: 1rem; - max-width: 85em; + max-width: 110em; } -.c10 { +.c12 { padding-right: 0rem; - padding-left: 0rem; + padding-left: 1rem; } .c8 { @@ -299,7 +306,13 @@ exports[`Contact List View > matches snapshot 1`] = ` } .c9 { - max-width: 20rem; + max-width: 40rem; +} + +.c10 { + display: inline-block; + margin: 0rem 0.5rem; + padding: 0.2rem; } .c1 { @@ -311,7 +324,7 @@ exports[`Contact List View > matches snapshot 1`] = ` overflow-y: auto; } -.c15 { +.c18 { -webkit-box-pack: space-around; -webkit-justify-content: space-around; -ms-flex-pack: space-around; @@ -319,6 +332,11 @@ exports[`Contact List View > matches snapshot 1`] = ` width: 100%; } +.c17 a { + font-weight: bold; + color: !important; +} + .c0 { display: -webkit-box; display: -webkit-flex; @@ -519,7 +537,7 @@ exports[`Contact List View > matches snapshot 1`] = ` class="col" >
matches snapshot 1`] = `
matches snapshot 1`] = ` class="form-control" id="input-municipality" name="municipality" + placeholder="City of contact's address" title="" value="" />
-
-
-
-
-
- -
-
- -
@@ -647,46 +600,120 @@ exports[`Contact List View > matches snapshot 1`] = `
- - - - - - - - - - + + +
- Show active contacts only + + Active + + contacts only
+
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
matches snapshot 1`] = ` class="th" colspan="1" role="columnheader" - style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: right; text-align: right; flex-wrap: wrap; align-items: center; display: flex;" + style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: center; text-align: center; flex-wrap: wrap; align-items: center; display: flex;" >
matches snapshot 1`] = ` > Summary
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > First name
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > Last name
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > Organization
matches snapshot 1`] = ` /> matches snapshot 1`] = ` > City
matches snapshot 1`] = ` /> matches snapshot 1`] = ` style="box-sizing: border-box; flex: 10 0 auto; min-width: 10px; width: 10px; justify-content: right; text-align: right; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - - - - - - - - - + + +
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 80 0 auto; min-width: 30px; width: 80px; justify-content: left; text-align: left; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - summary - + + summary + +
matches snapshot 1`] = ` title="" >
matches snapshot 1`] = `
matches snapshot 1`] = ` class="row" >
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: center; text-align: center; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - - + + + +
matches snapshot 1`] = ` style="box-sizing: border-box; flex: 20 0 auto; min-width: 30px; width: 20px; justify-content: center; text-align: center; flex-wrap: wrap; align-items: center; display: flex;" title="" > - - - + + + +
[] = [ width: 20, maxWidth: 20, Cell: (props: CellProps) => - isPersonResult(props.row.original) ? : , + isPersonResult(props.row.original) ? ( + + + + ) : ( + + + + ), }, { Header: 'Summary', diff --git a/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap b/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap index 8be15efef1..965d75e1bb 100644 --- a/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap +++ b/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap @@ -260,7 +260,7 @@ exports[`ContactManagerView > matches snapshot 1`] = ` .c0 { border-radius: 0.4rem; padding: 1rem; - max-width: 110em; + max-width: 85%; } .c8 { @@ -269,11 +269,11 @@ exports[`ContactManagerView > matches snapshot 1`] = ` } .c4 { - max-width: 32em; + max-width: 30em; } .c5 { - max-width: 40rem; + max-width: 25rem; } .c6 { @@ -441,7 +441,7 @@ exports[`ContactManagerView > matches snapshot 1`] = `
matches snapshot 1`] = `
matches snapshot 1`] = ` class="row" >
matches snapshot 1`] = `
matches snapshot 1`] = ` class="row" >
Date: Tue, 25 Jun 2024 12:15:32 -0700 Subject: [PATCH 3/3] Minor changes on the responsiveness of the Contact filter to accomodate Selecting Contacts view --- .../ContactFilterComponent.tsx | 30 +- .../ContactFilterComponent.test.tsx.snap | 296 +++++++++-------- .../ContactManagerView.test.tsx.snap | 296 +++++++++-------- .../ContactListView.test.tsx.snap | 305 +++++++++--------- 4 files changed, 492 insertions(+), 435 deletions(-) diff --git a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx index 4c03df38d9..e18515b468 100644 --- a/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx +++ b/source/frontend/src/components/contact/ContactManagerView/ContactFilterComponent/ContactFilterComponent.tsx @@ -71,20 +71,22 @@ export const ContactFilterComponent: React.FunctionComponent< } }} > - - - - + + + + + + + + + - - - - + matches snapshot 1`] = ` -
-
+ @media only screen and (max-width:1199px) { + +} + +
.c9.btn { display: -webkit-box; display: -webkit-flex; @@ -249,179 +257,189 @@ exports[`ContactFilterComponent > matches snapshot 1`] = ` padding: 0.2rem; } +@media only screen and (max-width:1199px) { + .c0 { + max-width: 50%; + } +} +
-
+
- -
- -
-
-
- +
+
- -
-
-
- +
+
- + + + + + + + + + + All + + +
+
+
+ +
+
-
-
- -
-
diff --git a/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap b/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap index 965d75e1bb..e276e0e64d 100644 --- a/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap +++ b/source/frontend/src/components/contact/ContactManagerView/__snapshots__/ContactManagerView.test.tsx.snap @@ -2,10 +2,18 @@ exports[`ContactManagerView > matches snapshot 1`] = ` -
-
+ @media only screen and (max-width:1199px) { + +} + +
.c9.btn { display: -webkit-box; display: -webkit-flex; @@ -282,6 +290,12 @@ exports[`ContactManagerView > matches snapshot 1`] = ` padding: 0.2rem; } +@media only screen and (max-width:1199px) { + .c0 { + max-width: 50%; + } +} +
matches snapshot 1`] = ` class="c0" >
-
+
- -
- -
-
-
- +
+
- -
-
-
- +
+
- + + + + + + + + + + All + + +
+
+
+ +
+
-
-
- -
-
diff --git a/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap b/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap index bc3f9bc730..bf7ec6f067 100644 --- a/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap +++ b/source/frontend/src/features/contacts/list/__snapshots__/ContactListView.test.tsx.snap @@ -2,11 +2,18 @@ exports[`Contact List View > matches snapshot 1`] = ` -
-
- .c13.btn { + @media only screen and (max-width:1199px) { + +} + +
.c13.btn { display: -webkit-box; display: -webkit-flex; @@ -216,8 +223,9 @@ exports[`Contact List View > matches snapshot 1`] = ` margin-top: 0.3rem; } -.c18 { - width: 7.5rem; +.c21 { + min-width: 5rem; + max-width: 5rem; margin-left: 1rem; margin-right: 1rem; text-align: center; @@ -367,6 +375,12 @@ exports[`Contact List View > matches snapshot 1`] = ` text-align: left; } +@media only screen and (max-width:1199px) { + .c4 { + max-width: 50%; + } +} +
@@ -390,174 +404,178 @@ exports[`Contact List View > matches snapshot 1`] = ` class="c4" >
-
+
- -
- -
-
-
- +
+
- -
-
-
- +
+
- + + + + + + + + + + All + + +
+
+
+ +
+
-
-
- -
-
@@ -1239,8 +1257,7 @@ exports[`Contact List View > matches snapshot 1`] = ` Show