Skip to content

Commit 24629e1

Browse files
committed
2024-11-11 - search and add-new external-recip
1 parent 365dbc6 commit 24629e1

File tree

2 files changed

+61
-24
lines changed

2 files changed

+61
-24
lines changed

web-ui/src/components/feedback_external_recipient_card/__snapshots__/FeedbackExternalRecipientCard.test.jsx.snap

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,39 @@ exports[`renders the recipient card 1`] = `
1212
class="MuiCardHeader-root FeedbackExternalRecipientCard-header css-185gdzj-MuiCardHeader-root"
1313
>
1414
<div
15-
class="MuiCardHeader-avatar css-1ssile9-MuiCardHeader-avatar"
15+
class="MuiCardHeader-content css-1qbkelo-MuiCardHeader-content"
1616
>
17-
<div
18-
class="MuiAvatar-root MuiAvatar-circular large css-1wlk0hk-MuiAvatar-root"
17+
<h2
18+
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
1919
>
20-
<img
21-
class="MuiAvatar-img css-1pqm26d-MuiAvatar-img"
22-
src="http://localhost:8080/services/member-profiles/member-photos/undefined"
23-
/>
24-
</div>
20+
21+
</h2>
2522
</div>
2623
<div
27-
class="MuiCardHeader-content css-1qbkelo-MuiCardHeader-content"
24+
class="MuiCardHeader-action css-sgoict-MuiCardHeader-action"
2825
>
29-
<h2
30-
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
31-
/>
32-
<h3
33-
class="MuiTypography-root MuiTypography-body1 css-1pnmrwp-MuiTypography-root"
34-
/>
26+
<button
27+
aria-label="Inactivate"
28+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-78trlr-MuiButtonBase-root-MuiIconButton-root"
29+
data-mui-internal-clone-element="true"
30+
tabindex="0"
31+
type="button"
32+
>
33+
<svg
34+
aria-hidden="true"
35+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
36+
data-testid="CloseIcon"
37+
focusable="false"
38+
viewBox="0 0 24 24"
39+
>
40+
<path
41+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
42+
/>
43+
</svg>
44+
<span
45+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
46+
/>
47+
</button>
3548
</div>
3649
</div>
3750
<div
@@ -49,11 +62,7 @@ exports[`renders the recipient card 1`] = `
4962
target="_blank"
5063
/>
5164
<br />
52-
Location:
53-
<br />
54-
Supervisor:
55-
<br />
56-
PDL:
65+
Company:
5766
<br />
5867
</p>
5968
</div>

web-ui/src/components/feedback_external_recipient_selector/__snapshots__/FeedbackExternalRecipientSelector.test.jsx.snap

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`FeedbackExternalRecipientSelector > renders the component 1`] = `
2020
for=":r0:"
2121
id=":r0:-label"
2222
>
23-
Search employees...
23+
Search external recipients...
2424
</label>
2525
<div
2626
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-adornedStart css-1q6at85-MuiInputBase-root-MuiOutlinedInput-root"
@@ -49,7 +49,7 @@ exports[`FeedbackExternalRecipientSelector > renders the component 1`] = `
4949
aria-invalid="false"
5050
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedStart css-1o9s3wi-MuiInputBase-input-MuiOutlinedInput-input"
5151
id=":r0:"
52-
placeholder="Member Name"
52+
placeholder="Recipient Name"
5353
type="text"
5454
value=""
5555
/>
@@ -61,12 +61,40 @@ exports[`FeedbackExternalRecipientSelector > renders the component 1`] = `
6161
class="css-14lo706"
6262
>
6363
<span>
64-
Search employees...
64+
Search external recipients...
6565
</span>
6666
</legend>
6767
</fieldset>
6868
</div>
6969
</div>
70+
<div
71+
class="new-recipient-button"
72+
>
73+
<button
74+
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-sghohy-MuiButtonBase-root-MuiButton-root"
75+
tabindex="0"
76+
type="button"
77+
>
78+
New External Recipient
79+
<span
80+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
81+
/>
82+
</button>
83+
<svg
84+
aria-hidden="true"
85+
aria-label="Create a new external recipient"
86+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
87+
data-mui-internal-clone-element="true"
88+
data-testid="HelpOutlineIcon"
89+
focusable="false"
90+
style="color: gray; margin-left: 10px;"
91+
viewBox="0 0 24 24"
92+
>
93+
<path
94+
d="M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
95+
/>
96+
</svg>
97+
</div>
7098
</div>
7199
</div>
72100
<div
@@ -77,7 +105,7 @@ exports[`FeedbackExternalRecipientSelector > renders the component 1`] = `
77105
style="font-weight: bold; color: rgb(69, 69, 69); margin-bottom: 1em;"
78106
>
79107
0
80-
external recipient
108+
recipient
81109
s
82110
selected
83111
</h5>

0 commit comments

Comments
 (0)