qpp-style 9.20.2 → 9.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Footer/FooterUI.jsx +16 -14
- package/coverage/clover.xml +407 -355
- package/coverage/coverage-final.json +24 -23
- package/coverage/lcov-report/index.html +75 -75
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Error/error.js.html +1 -1
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Footer/footer.js.html +1 -1
- package/coverage/lcov-report/react/components/Footer/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +26 -251
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +19 -19
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +26 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +2 -2
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +89 -113
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/header.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/hooks.js.html +59 -17
- package/coverage/lcov-report/react/components/Header/index.html +36 -36
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +202 -0
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +220 -0
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +51 -21
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +168 -300
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/index.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialog/sessionDialog.js.html +1 -1
- package/coverage/lcov-report/react/components/SessionDialogUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/ScoreChart.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Chart/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +109 -31
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +10 -16
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +104 -44
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +4 -16
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +264 -18
- package/coverage/lcov-report/react/components/SideNav/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/react/components/hooks/index.html +19 -19
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +37 -37
- package/coverage/lcov-report/react/components/index.html +1 -1
- package/coverage/lcov-report/react/index.html +1 -1
- package/coverage/lcov-report/react/index.js.html +1 -1
- package/coverage/lcov-report/react/lib/Chevron.jsx.html +2 -2
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +61 -10
- package/coverage/lcov-report/react/lib/index.html +14 -29
- package/coverage/lcov-report/react/session/index.html +1 -1
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +1 -1
- package/coverage/lcov-report/react/session/refresh.js.html +1 -1
- package/coverage/lcov-report/react/session/ttl.js.html +1 -1
- package/coverage/lcov.info +808 -718
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +10 -10
- package/styles/qppds/components/_footer.scss +2 -0
|
@@ -256,7 +256,7 @@ export default HeaderMenuSignOutButton;
|
|
|
256
256
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
257
257
|
Code coverage generated by
|
|
258
258
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
259
|
-
at
|
|
259
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
260
260
|
</div>
|
|
261
261
|
<script src="../../../prettify.js"></script>
|
|
262
262
|
<script>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
<span class="cline-any cline-neutral"> </span>
|
|
106
106
|
<span class="cline-any cline-neutral"> </span>
|
|
107
107
|
<span class="cline-any cline-yes">2x</span>
|
|
108
|
-
<span class="cline-any cline-yes">
|
|
108
|
+
<span class="cline-any cline-yes">1x</span>
|
|
109
109
|
<span class="cline-any cline-neutral"> </span>
|
|
110
110
|
<span class="cline-any cline-neutral"> </span>
|
|
111
111
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -181,7 +181,7 @@ export default HeaderMobileButton;
|
|
|
181
181
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
182
182
|
Code coverage generated by
|
|
183
183
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
184
|
-
at
|
|
184
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
185
185
|
</div>
|
|
186
186
|
<script src="../../../prettify.js"></script>
|
|
187
187
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">70.73% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>29/41</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">60% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>6/10</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">46.66% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>7/15</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">75% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>27/36</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -222,17 +222,7 @@
|
|
|
222
222
|
<a name='L157'></a><a href='#L157'>157</a>
|
|
223
223
|
<a name='L158'></a><a href='#L158'>158</a>
|
|
224
224
|
<a name='L159'></a><a href='#L159'>159</a>
|
|
225
|
-
<a name='L160'></a><a href='#L160'>160</a>
|
|
226
|
-
<a name='L161'></a><a href='#L161'>161</a>
|
|
227
|
-
<a name='L162'></a><a href='#L162'>162</a>
|
|
228
|
-
<a name='L163'></a><a href='#L163'>163</a>
|
|
229
|
-
<a name='L164'></a><a href='#L164'>164</a>
|
|
230
|
-
<a name='L165'></a><a href='#L165'>165</a>
|
|
231
|
-
<a name='L166'></a><a href='#L166'>166</a>
|
|
232
|
-
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
|
-
<a name='L168'></a><a href='#L168'>168</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
234
|
-
<span class="cline-any cline-neutral"> </span>
|
|
235
|
-
<span class="cline-any cline-neutral"> </span>
|
|
225
|
+
<a name='L160'></a><a href='#L160'>160</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
236
226
|
<span class="cline-any cline-neutral"> </span>
|
|
237
227
|
<span class="cline-any cline-neutral"> </span>
|
|
238
228
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -254,19 +244,15 @@
|
|
|
254
244
|
<span class="cline-any cline-neutral"> </span>
|
|
255
245
|
<span class="cline-any cline-neutral"> </span>
|
|
256
246
|
<span class="cline-any cline-neutral"> </span>
|
|
247
|
+
<span class="cline-any cline-yes">3x</span>
|
|
248
|
+
<span class="cline-any cline-yes">3x</span>
|
|
257
249
|
<span class="cline-any cline-neutral"> </span>
|
|
250
|
+
<span class="cline-any cline-yes">3x</span>
|
|
258
251
|
<span class="cline-any cline-neutral"> </span>
|
|
252
|
+
<span class="cline-any cline-yes">3x</span>
|
|
259
253
|
<span class="cline-any cline-neutral"> </span>
|
|
260
254
|
<span class="cline-any cline-neutral"> </span>
|
|
261
|
-
<span class="cline-any cline-
|
|
262
|
-
<span class="cline-any cline-yes">4x</span>
|
|
263
|
-
<span class="cline-any cline-neutral"> </span>
|
|
264
|
-
<span class="cline-any cline-yes">4x</span>
|
|
265
|
-
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-yes">4x</span>
|
|
267
|
-
<span class="cline-any cline-neutral"> </span>
|
|
268
|
-
<span class="cline-any cline-neutral"> </span>
|
|
269
|
-
<span class="cline-any cline-yes">2x</span>
|
|
255
|
+
<span class="cline-any cline-yes">1x</span>
|
|
270
256
|
<span class="cline-any cline-no"> </span>
|
|
271
257
|
<span class="cline-any cline-no"> </span>
|
|
272
258
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -275,25 +261,27 @@
|
|
|
275
261
|
<span class="cline-any cline-neutral"> </span>
|
|
276
262
|
<span class="cline-any cline-neutral"> </span>
|
|
277
263
|
<span class="cline-any cline-neutral"> </span>
|
|
278
|
-
<span class="cline-any cline-yes">
|
|
279
|
-
<span class="cline-any cline-neutral"> </span>
|
|
280
|
-
<span class="cline-any cline-neutral"> </span>
|
|
281
|
-
<span class="cline-any cline-neutral"> </span>
|
|
282
|
-
<span class="cline-any cline-yes">4x</span>
|
|
283
|
-
<span class="cline-any cline-neutral"> </span>
|
|
264
|
+
<span class="cline-any cline-yes">1x</span>
|
|
284
265
|
<span class="cline-any cline-neutral"> </span>
|
|
285
266
|
<span class="cline-any cline-neutral"> </span>
|
|
286
267
|
<span class="cline-any cline-neutral"> </span>
|
|
287
268
|
<span class="cline-any cline-neutral"> </span>
|
|
269
|
+
<span class="cline-any cline-yes">3x</span>
|
|
270
|
+
<span class="cline-any cline-yes">2x</span>
|
|
271
|
+
<span class="cline-any cline-yes">2x</span>
|
|
288
272
|
<span class="cline-any cline-neutral"> </span>
|
|
289
|
-
<span class="cline-any cline-yes">4x</span>
|
|
290
273
|
<span class="cline-any cline-neutral"> </span>
|
|
291
|
-
<span class="cline-any cline-yes">
|
|
274
|
+
<span class="cline-any cline-yes">2x</span>
|
|
275
|
+
<span class="cline-any cline-yes">1x</span>
|
|
276
|
+
<span class="cline-any cline-yes">1x</span>
|
|
292
277
|
<span class="cline-any cline-no"> </span>
|
|
293
278
|
<span class="cline-any cline-neutral"> </span>
|
|
294
279
|
<span class="cline-any cline-neutral"> </span>
|
|
295
280
|
<span class="cline-any cline-neutral"> </span>
|
|
281
|
+
<span class="cline-any cline-yes">3x</span>
|
|
296
282
|
<span class="cline-any cline-neutral"> </span>
|
|
283
|
+
<span class="cline-any cline-yes">3x</span>
|
|
284
|
+
<span class="cline-any cline-no"> </span>
|
|
297
285
|
<span class="cline-any cline-neutral"> </span>
|
|
298
286
|
<span class="cline-any cline-neutral"> </span>
|
|
299
287
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -302,7 +290,7 @@
|
|
|
302
290
|
<span class="cline-any cline-neutral"> </span>
|
|
303
291
|
<span class="cline-any cline-neutral"> </span>
|
|
304
292
|
<span class="cline-any cline-neutral"> </span>
|
|
305
|
-
<span class="cline-any cline-yes">
|
|
293
|
+
<span class="cline-any cline-yes">3x</span>
|
|
306
294
|
<span class="cline-any cline-no"> </span>
|
|
307
295
|
<span class="cline-any cline-neutral"> </span>
|
|
308
296
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -316,16 +304,8 @@
|
|
|
316
304
|
<span class="cline-any cline-neutral"> </span>
|
|
317
305
|
<span class="cline-any cline-neutral"> </span>
|
|
318
306
|
<span class="cline-any cline-neutral"> </span>
|
|
319
|
-
<span class="cline-any cline-
|
|
320
|
-
<span class="cline-any cline-
|
|
321
|
-
<span class="cline-any cline-neutral"> </span>
|
|
322
|
-
<span class="cline-any cline-neutral"> </span>
|
|
323
|
-
<span class="cline-any cline-yes">4x</span>
|
|
324
|
-
<span class="cline-any cline-yes">2x</span>
|
|
325
|
-
<span class="cline-any cline-neutral"> </span>
|
|
326
|
-
<span class="cline-any cline-neutral"> </span>
|
|
327
|
-
<span class="cline-any cline-yes">2x</span>
|
|
328
|
-
<span class="cline-any cline-neutral"> </span>
|
|
307
|
+
<span class="cline-any cline-yes">3x</span>
|
|
308
|
+
<span class="cline-any cline-yes">1x</span>
|
|
329
309
|
<span class="cline-any cline-neutral"> </span>
|
|
330
310
|
<span class="cline-any cline-neutral"> </span>
|
|
331
311
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -339,7 +319,7 @@
|
|
|
339
319
|
<span class="cline-any cline-neutral"> </span>
|
|
340
320
|
<span class="cline-any cline-neutral"> </span>
|
|
341
321
|
<span class="cline-any cline-neutral"> </span>
|
|
342
|
-
<span class="cline-any cline-yes">
|
|
322
|
+
<span class="cline-any cline-yes">1x</span>
|
|
343
323
|
<span class="cline-any cline-neutral"> </span>
|
|
344
324
|
<span class="cline-any cline-no"> </span>
|
|
345
325
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -359,15 +339,21 @@
|
|
|
359
339
|
<span class="cline-any cline-neutral"> </span>
|
|
360
340
|
<span class="cline-any cline-neutral"> </span>
|
|
361
341
|
<span class="cline-any cline-neutral"> </span>
|
|
342
|
+
<span class="cline-any cline-yes">3x</span>
|
|
343
|
+
<span class="cline-any cline-yes">3x</span>
|
|
344
|
+
<span class="cline-any cline-yes">3x</span>
|
|
345
|
+
<span class="cline-any cline-yes">3x</span>
|
|
346
|
+
<span class="cline-any cline-yes">2x</span>
|
|
362
347
|
<span class="cline-any cline-neutral"> </span>
|
|
363
348
|
<span class="cline-any cline-neutral"> </span>
|
|
349
|
+
<span class="cline-any cline-yes">3x</span>
|
|
364
350
|
<span class="cline-any cline-neutral"> </span>
|
|
365
351
|
<span class="cline-any cline-neutral"> </span>
|
|
366
352
|
<span class="cline-any cline-neutral"> </span>
|
|
367
353
|
<span class="cline-any cline-neutral"> </span>
|
|
368
|
-
<span class="cline-any cline-yes">2x</span>
|
|
369
354
|
<span class="cline-any cline-neutral"> </span>
|
|
370
355
|
<span class="cline-any cline-neutral"> </span>
|
|
356
|
+
<span class="cline-any cline-yes">2x</span>
|
|
371
357
|
<span class="cline-any cline-neutral"> </span>
|
|
372
358
|
<span class="cline-any cline-neutral"> </span>
|
|
373
359
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -395,11 +381,9 @@
|
|
|
395
381
|
<span class="cline-any cline-neutral"> </span>
|
|
396
382
|
<span class="cline-any cline-neutral"> </span>
|
|
397
383
|
<span class="cline-any cline-neutral"> </span>
|
|
398
|
-
<span class="cline-any cline-neutral"> </span>
|
|
399
|
-
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from 'react';
|
|
384
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect } from 'react';
|
|
401
385
|
import PropTypes from 'prop-types';
|
|
402
|
-
|
|
386
|
+
import axios from 'axios';
|
|
403
387
|
import HeaderAccountMenu from './HeaderAccountMenu.jsx';
|
|
404
388
|
import HeaderCancel from './HeaderCancel.jsx';
|
|
405
389
|
import HeaderContainer from './HeaderContainer';
|
|
@@ -407,26 +391,20 @@ import HeaderMenuItem from './HeaderMenuItem';
|
|
|
407
391
|
import HeaderMobileButton from './HeaderMobileButton';
|
|
408
392
|
import ImpersonatorBanner from './ImpersonatorBanner';
|
|
409
393
|
import HelpIcon from './HelpIcon';
|
|
410
|
-
import defaultHeaderContent from './default-content.json';
|
|
411
394
|
import { HeaderStateProvider } from './hooks';
|
|
412
|
-
import useGetConfig from '../hooks/useGetConfig';
|
|
413
395
|
|
|
414
396
|
const HeaderUI = ({
|
|
415
|
-
fbpPerformanceYear,
|
|
416
|
-
feedbackPerformanceYear,
|
|
417
397
|
handleCancel,
|
|
418
398
|
includeSkipToSidebar,
|
|
419
399
|
isDevPre,
|
|
420
400
|
isLoginEnabled,
|
|
421
|
-
performanceYear,
|
|
422
401
|
showCancelButton,
|
|
423
|
-
showPhysicianCompareLink,
|
|
424
|
-
showFacilityBasedPreviewLink,
|
|
425
402
|
skipToContentId,
|
|
426
403
|
RouterLink,
|
|
427
404
|
isIESupportPage,
|
|
428
405
|
}) => {
|
|
429
406
|
const [isMobileMenuExpanded, setIsMobileMenuExpanded] = useState(false);
|
|
407
|
+
const [headerContent, setHeaderContent] = useState({});
|
|
430
408
|
|
|
431
409
|
const mapContentToRows = (config) => {
|
|
432
410
|
// Append transposed array to content
|
|
@@ -446,53 +424,47 @@ const HeaderUI = ({
|
|
|
446
424
|
});
|
|
447
425
|
};
|
|
448
426
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
427
|
+
// execute on init render
|
|
428
|
+
useEffect(async () => {
|
|
429
|
+
let cancelRequest = false;
|
|
430
|
+
const { origin } = window.location;
|
|
431
|
+
const {
|
|
432
|
+
data: { data: navMenuItems },
|
|
433
|
+
} = await axios.get(`${origin}/config/header`);
|
|
434
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (!cancelRequest) setHeaderContent(navMenuItems);
|
|
435
|
+
return <span class="fstat-no" title="function not covered" >()</span> => {
|
|
436
|
+
<span class="cstat-no" title="statement not covered" > cancelRequest = true;</span>
|
|
437
|
+
};
|
|
438
|
+
}, []);
|
|
455
439
|
|
|
456
|
-
const content = mapContentToRows(
|
|
440
|
+
const content = mapContentToRows(headerContent?.content);
|
|
457
441
|
|
|
458
|
-
<span class="
|
|
459
|
-
<span class="cstat-no" title="statement not covered" >
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
</HeaderContainer>
|
|
468
|
-
</HeaderStateProvider>
|
|
469
|
-
);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (isDevPre) {
|
|
473
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
474
|
-
<HeaderStateProvider RouterLink={RouterLink}>
|
|
475
|
-
<HeaderContainer
|
|
476
|
-
isIESupportPage={isIESupportPage}
|
|
477
|
-
skipToContentId={skipToContentId}
|
|
478
|
-
includeSkipToSidebar={includeSkipToSidebar}
|
|
479
|
-
>
|
|
480
|
-
<nav aria-label="Primary navigation" hidden={!isMobileMenuExpanded}>
|
|
481
|
-
<ul className="navigation-menu">
|
|
482
|
-
<HeaderAccountMenu isDevPre isLoginEnabled={isLoginEnabled} />
|
|
483
|
-
</ul>
|
|
484
|
-
</nav>
|
|
485
|
-
</HeaderContainer>
|
|
486
|
-
</HeaderStateProvider>
|
|
487
|
-
);
|
|
488
|
-
}
|
|
442
|
+
const displayCancelContent = <span class="fstat-no" title="function not covered" >()</span> => (
|
|
443
|
+
<span class="cstat-no" title="statement not covered" > <HeaderContainer</span>
|
|
444
|
+
showCancelButton
|
|
445
|
+
skipToContentId={skipToContentId}
|
|
446
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
447
|
+
>
|
|
448
|
+
<HeaderCancel handleCancel={handleCancel} />
|
|
449
|
+
</HeaderContainer>
|
|
450
|
+
);
|
|
489
451
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
452
|
+
const displayDevPreContent = <span class="fstat-no" title="function not covered" >()</span> => (
|
|
453
|
+
<span class="cstat-no" title="statement not covered" > <HeaderContainer</span>
|
|
454
|
+
isIESupportPage={isIESupportPage}
|
|
455
|
+
skipToContentId={skipToContentId}
|
|
456
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
457
|
+
>
|
|
458
|
+
<nav aria-label="Primary navigation" hidden={!isMobileMenuExpanded}>
|
|
459
|
+
<ul className="navigation-menu">
|
|
460
|
+
<HeaderAccountMenu isDevPre isLoginEnabled={isLoginEnabled} />
|
|
461
|
+
</ul>
|
|
462
|
+
</nav>
|
|
463
|
+
</HeaderContainer>
|
|
464
|
+
);
|
|
493
465
|
|
|
494
|
-
|
|
495
|
-
<
|
|
466
|
+
const displayHeaderContent = () => (
|
|
467
|
+
<>
|
|
496
468
|
<HeaderContainer
|
|
497
469
|
isIESupportPage={isIESupportPage}
|
|
498
470
|
skipToContentId={skipToContentId}
|
|
@@ -517,24 +489,30 @@ const HeaderUI = ({
|
|
|
517
489
|
))}
|
|
518
490
|
<HeaderAccountMenu
|
|
519
491
|
handleClick={<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setIsMobileMenuExpanded(!isMobileMenuExpanded)}</span>
|
|
520
|
-
fbpPerformanceYear={fbpPerformanceYear}
|
|
521
|
-
feedbackPerformanceYear={feedbackPerformanceYear}
|
|
522
492
|
isLoginEnabled={isLoginEnabled}
|
|
523
|
-
performanceYear={performanceYear}
|
|
524
|
-
showPhysicianCompareLink={showPhysicianCompareLink}
|
|
525
|
-
showFacilityBasedPreviewLink={showFacilityBasedPreviewLink}
|
|
526
493
|
/>
|
|
527
494
|
</ul>
|
|
528
495
|
</nav>
|
|
529
496
|
</HeaderContainer>
|
|
530
497
|
<ImpersonatorBanner />
|
|
498
|
+
</>
|
|
499
|
+
);
|
|
500
|
+
|
|
501
|
+
const displayContent = () => {
|
|
502
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (showCancelButton) <span class="cstat-no" title="statement not covered" >return displayCancelContent();</span>
|
|
503
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (isDevPre) <span class="cstat-no" title="statement not covered" >return displayDevPreContent();</span>
|
|
504
|
+
if (content?.length) return displayHeaderContent();
|
|
505
|
+
return null;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
return (
|
|
509
|
+
<HeaderStateProvider RouterLink={RouterLink} headerContent={headerContent}>
|
|
510
|
+
{displayContent()}
|
|
531
511
|
</HeaderStateProvider>
|
|
532
512
|
);
|
|
533
513
|
};
|
|
534
514
|
|
|
535
515
|
HeaderUI.propTypes = {
|
|
536
|
-
fbpPerformanceYear: PropTypes.string,
|
|
537
|
-
feedbackPerformanceYear: PropTypes.string,
|
|
538
516
|
handleCancel: PropTypes.func,
|
|
539
517
|
includeSkipToSidebar: PropTypes.bool,
|
|
540
518
|
isDevPre: PropTypes.bool,
|
|
@@ -548,8 +526,6 @@ HeaderUI.propTypes = {
|
|
|
548
526
|
isIESupportPage: PropTypes.bool,
|
|
549
527
|
};
|
|
550
528
|
HeaderUI.defaultProps = {
|
|
551
|
-
fbpPerformanceYear: null,
|
|
552
|
-
feedbackPerformanceYear: null,
|
|
553
529
|
handleCancel: Function.prototype,
|
|
554
530
|
includeSkipToSidebar: false,
|
|
555
531
|
isDevPre: false,
|
|
@@ -571,7 +547,7 @@ export default HeaderUI;
|
|
|
571
547
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
572
548
|
Code coverage generated by
|
|
573
549
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
574
|
-
at
|
|
550
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
575
551
|
</div>
|
|
576
552
|
<script src="../../../prettify.js"></script>
|
|
577
553
|
<script>
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<a name='L33'></a><a href='#L33'>33</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
99
99
|
<span class="cline-any cline-neutral"> </span>
|
|
100
100
|
<span class="cline-any cline-yes">2x</span>
|
|
101
|
-
<span class="cline-any cline-yes">
|
|
101
|
+
<span class="cline-any cline-yes">1x</span>
|
|
102
102
|
<span class="cline-any cline-neutral"> </span>
|
|
103
103
|
<span class="cline-any cline-neutral"> </span>
|
|
104
104
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -166,7 +166,7 @@ export default HelpIcon;
|
|
|
166
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
167
|
Code coverage generated by
|
|
168
168
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
169
|
-
at
|
|
169
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../../prettify.js"></script>
|
|
172
172
|
<script>
|
|
@@ -173,9 +173,9 @@
|
|
|
173
173
|
<span class="cline-any cline-neutral"> </span>
|
|
174
174
|
<span class="cline-any cline-neutral"> </span>
|
|
175
175
|
<span class="cline-any cline-neutral"> </span>
|
|
176
|
-
<span class="cline-any cline-yes">
|
|
176
|
+
<span class="cline-any cline-yes">1x</span>
|
|
177
177
|
<span class="cline-any cline-neutral"> </span>
|
|
178
|
-
<span class="cline-any cline-yes">
|
|
178
|
+
<span class="cline-any cline-yes">1x</span>
|
|
179
179
|
<span class="cline-any cline-neutral"> </span>
|
|
180
180
|
<span class="cline-any cline-neutral"> </span>
|
|
181
181
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
<span class="cline-any cline-neutral"> </span>
|
|
186
186
|
<span class="cline-any cline-neutral"> </span>
|
|
187
187
|
<span class="cline-any cline-neutral"> </span>
|
|
188
|
-
<span class="cline-any cline-yes">
|
|
188
|
+
<span class="cline-any cline-yes">1x</span>
|
|
189
189
|
<span class="cline-any cline-no"> </span>
|
|
190
190
|
<span class="cline-any cline-no"> </span>
|
|
191
191
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
<span class="cline-any cline-neutral"> </span>
|
|
210
210
|
<span class="cline-any cline-neutral"> </span>
|
|
211
211
|
<span class="cline-any cline-neutral"> </span>
|
|
212
|
-
<span class="cline-any cline-yes">
|
|
212
|
+
<span class="cline-any cline-yes">1x</span>
|
|
213
213
|
<span class="cline-any cline-neutral"> </span>
|
|
214
214
|
<span class="cline-any cline-neutral"> </span>
|
|
215
215
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -316,7 +316,7 @@ export default ImpersonatorBanner;
|
|
|
316
316
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
317
317
|
Code coverage generated by
|
|
318
318
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
319
|
-
at
|
|
319
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
320
320
|
</div>
|
|
321
321
|
<script src="../../../prettify.js"></script>
|
|
322
322
|
<script>
|
|
@@ -151,7 +151,7 @@ export default NavigationButtonIcon;
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at
|
|
154
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../../../prettify.js"></script>
|
|
157
157
|
<script>
|
|
@@ -190,7 +190,7 @@ export default class Header {
|
|
|
190
190
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
191
191
|
Code coverage generated by
|
|
192
192
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
193
|
-
at
|
|
193
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
194
194
|
</div>
|
|
195
195
|
<script src="../../../prettify.js"></script>
|
|
196
196
|
<script>
|
|
@@ -115,36 +115,62 @@
|
|
|
115
115
|
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
116
|
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
117
|
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
-
<a name='L53'></a><a href='#L53'>53</a
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a>
|
|
129
|
+
<a name='L64'></a><a href='#L64'>64</a>
|
|
130
|
+
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
|
+
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
|
+
<a name='L67'></a><a href='#L67'>67</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
119
133
|
<span class="cline-any cline-neutral"> </span>
|
|
120
134
|
<span class="cline-any cline-neutral"> </span>
|
|
121
135
|
<span class="cline-any cline-neutral"> </span>
|
|
122
|
-
<span class="cline-any cline-yes">4x</span>
|
|
123
|
-
<span class="cline-any cline-yes">4x</span>
|
|
124
|
-
<span class="cline-any cline-neutral"> </span>
|
|
125
|
-
<span class="cline-any cline-yes">2x</span>
|
|
126
|
-
<span class="cline-any cline-neutral"> </span>
|
|
127
|
-
<span class="cline-any cline-yes">2x</span>
|
|
128
136
|
<span class="cline-any cline-yes">2x</span>
|
|
129
137
|
<span class="cline-any cline-yes">2x</span>
|
|
130
138
|
<span class="cline-any cline-neutral"> </span>
|
|
131
|
-
<span class="cline-any cline-yes">
|
|
139
|
+
<span class="cline-any cline-yes">1x</span>
|
|
132
140
|
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-yes">1x</span>
|
|
142
|
+
<span class="cline-any cline-yes">1x</span>
|
|
143
|
+
<span class="cline-any cline-yes">1x</span>
|
|
133
144
|
<span class="cline-any cline-neutral"> </span>
|
|
134
145
|
<span class="cline-any cline-yes">2x</span>
|
|
135
146
|
<span class="cline-any cline-neutral"> </span>
|
|
136
|
-
<span class="cline-any cline-
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
148
|
<span class="cline-any cline-yes">2x</span>
|
|
138
149
|
<span class="cline-any cline-neutral"> </span>
|
|
139
150
|
<span class="cline-any cline-yes">2x</span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-yes">3x</span>
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
|
+
<span class="cline-any cline-yes">3x</span>
|
|
140
158
|
<span class="cline-any cline-no"> </span>
|
|
141
159
|
<span class="cline-any cline-no"> </span>
|
|
142
160
|
<span class="cline-any cline-neutral"> </span>
|
|
143
161
|
<span class="cline-any cline-no"> </span>
|
|
144
162
|
<span class="cline-any cline-neutral"> </span>
|
|
145
163
|
<span class="cline-any cline-neutral"> </span>
|
|
146
|
-
<span class="cline-any cline-yes">
|
|
147
|
-
<span class="cline-any cline-
|
|
164
|
+
<span class="cline-any cline-yes">3x</span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-yes">3x</span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-neutral"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
174
|
<span class="cline-any cline-neutral"> </span>
|
|
149
175
|
<span class="cline-any cline-neutral"> </span>
|
|
150
176
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -156,16 +182,18 @@
|
|
|
156
182
|
<span class="cline-any cline-neutral"> </span>
|
|
157
183
|
<span class="cline-any cline-neutral"> </span>
|
|
158
184
|
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-neutral"> </span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
187
|
<span class="cline-any cline-yes">2x</span>
|
|
160
188
|
<span class="cline-any cline-neutral"> </span>
|
|
161
189
|
<span class="cline-any cline-neutral"> </span>
|
|
162
190
|
<span class="cline-any cline-neutral"> </span>
|
|
163
191
|
<span class="cline-any cline-yes">2x</span>
|
|
164
|
-
<span class="cline-any cline-yes">
|
|
165
|
-
<span class="cline-any cline-yes">
|
|
192
|
+
<span class="cline-any cline-yes">4x</span>
|
|
193
|
+
<span class="cline-any cline-yes">4x</span>
|
|
166
194
|
<span class="cline-any cline-no"> </span>
|
|
167
195
|
<span class="cline-any cline-neutral"> </span>
|
|
168
|
-
<span class="cline-any cline-yes">
|
|
196
|
+
<span class="cline-any cline-yes">4x</span>
|
|
169
197
|
<span class="cline-any cline-neutral"> </span>
|
|
170
198
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { createContext, useState, useEffect, useContext } from 'react';
|
|
171
199
|
import PropTypes from 'prop-types';
|
|
@@ -185,7 +213,11 @@ export function useWindowWidth() {
|
|
|
185
213
|
|
|
186
214
|
export const HeaderStateContext = createContext(null);
|
|
187
215
|
|
|
188
|
-
export const HeaderStateProvider = ({
|
|
216
|
+
export const HeaderStateProvider = ({
|
|
217
|
+
children,
|
|
218
|
+
RouterLink,
|
|
219
|
+
headerContent, // allow header content from api request available to all child components
|
|
220
|
+
}) => {
|
|
189
221
|
const [currentOpenMenu, setCurrentOpenMenu] = useState('');
|
|
190
222
|
|
|
191
223
|
const handleToggleMenu = <span class="fstat-no" title="function not covered" >(n</span>ame) => {
|
|
@@ -196,18 +228,28 @@ export const HeaderStateProvider = ({ children, RouterLink }) => {
|
|
|
196
228
|
};
|
|
197
229
|
|
|
198
230
|
const closeMenus = <span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >setCurrentOpenMenu('');</span>
|
|
231
|
+
|
|
199
232
|
return (
|
|
200
233
|
<HeaderStateContext.Provider
|
|
201
|
-
value={{
|
|
234
|
+
value={{
|
|
235
|
+
currentOpenMenu,
|
|
236
|
+
handleToggleMenu,
|
|
237
|
+
closeMenus,
|
|
238
|
+
RouterLink,
|
|
239
|
+
headerContent,
|
|
240
|
+
}}
|
|
202
241
|
>
|
|
203
242
|
{children}
|
|
204
243
|
</HeaderStateContext.Provider>
|
|
205
244
|
);
|
|
206
245
|
};
|
|
246
|
+
|
|
207
247
|
HeaderStateProvider.propTypes = {
|
|
208
248
|
children: PropTypes.node.isRequired,
|
|
209
249
|
RouterLink: PropTypes.func,
|
|
250
|
+
headerContent: PropTypes.object,
|
|
210
251
|
};
|
|
252
|
+
|
|
211
253
|
HeaderStateProvider.defaultProps = {
|
|
212
254
|
RouterLink: null,
|
|
213
255
|
};
|
|
@@ -226,7 +268,7 @@ export const useHeaderState = () => {
|
|
|
226
268
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
227
269
|
Code coverage generated by
|
|
228
270
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
229
|
-
at
|
|
271
|
+
at Wed Oct 19 2022 10:43:33 GMT-0400 (Eastern Daylight Time)
|
|
230
272
|
</div>
|
|
231
273
|
<script src="../../../prettify.js"></script>
|
|
232
274
|
<script>
|