qpp-style 9.28.3 → 9.28.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/SideNav/Links/NavLinkDrawer.jsx +1 -1
- package/coverage/clover.xml +670 -634
- package/coverage/coverage-final.json +73 -69
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +148 -133
- package/coverage/lcov-report/react/components/Accordion/index.html +5 -5
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +5 -17
- 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 +20 -32
- package/coverage/lcov-report/react/components/Footer/LegacyFooterUI.jsx.html +16 -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 +21 -21
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +16 -16
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +253 -28
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +37 -64
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +17 -17
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +55 -55
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +15 -15
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +109 -109
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +28 -25
- 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 +44 -86
- package/coverage/lcov-report/react/components/Header/index.html +104 -104
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +20 -8
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Infotip/index.html +4 -19
- 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 +28 -49
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +2 -2
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +27 -27
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +82 -82
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +21 -21
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +27 -60
- 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 +2 -2
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +470 -20
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +6 -9
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +24 -60
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +36 -21
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +6 -3
- 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 +18 -18
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +11 -5
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +21 -21
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +179 -74
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +17 -17
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +64 -262
- package/coverage/lcov-report/react/components/SideNav/index.html +21 -21
- package/coverage/lcov-report/react/components/SideNav/index.js.html +8 -2
- package/coverage/lcov-report/react/components/Tooltip/Tooltip.jsx.html +2 -2
- 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 +21 -21
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +52 -52
- 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 +65 -473
- package/coverage/lcov-report/react/lib/index.html +34 -19
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- package/coverage/lcov-report/react/session/index.html +11 -11
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/logout.js.html +6 -15
- 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-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov.info +1179 -1026
- 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.LICENSE.txt +12 -9
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/_footer.scss +593 -0
- package/styles/components/_header.scss +890 -0
- package/styles/components/_sidebar.scss +8 -0
- package/styles/components/sidebar/_animations.scss +38 -0
- package/styles/components/sidebar/_cms.scss +61 -0
- package/styles/components/sidebar/_details.scss +58 -0
- package/styles/components/sidebar/_links.scss +415 -0
- package/styles/components/sidebar/_sidebar-animation.scss +121 -0
- package/styles/components/sidebar/_sidebar-tooltip.scss +33 -0
- package/styles/components/sidebar/_sidebar.scss +141 -0
- package/styles/components/sidebar/project-specific/_wi.scss +42 -0
- package/styles/qppds/components/_infotip-content.scss +47 -0
- package/styles/qppds/components/_spinner.scss +46 -0
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +0 -223
|
@@ -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">64% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>16/25</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">62.5% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>5/8</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">44.44% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>4/9</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">66.66% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>16/24</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line medium'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -243,6 +243,7 @@
|
|
|
243
243
|
<span class="cline-any cline-neutral"> </span>
|
|
244
244
|
<span class="cline-any cline-neutral"> </span>
|
|
245
245
|
<span class="cline-any cline-neutral"> </span>
|
|
246
|
+
<span class="cline-any cline-neutral"> </span>
|
|
246
247
|
<span class="cline-any cline-yes">2x</span>
|
|
247
248
|
<span class="cline-any cline-neutral"> </span>
|
|
248
249
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -253,15 +254,19 @@
|
|
|
253
254
|
<span class="cline-any cline-neutral"> </span>
|
|
254
255
|
<span class="cline-any cline-neutral"> </span>
|
|
255
256
|
<span class="cline-any cline-neutral"> </span>
|
|
256
|
-
<span class="cline-any cline-no"> </span>
|
|
257
|
-
<span class="cline-any cline-no"> </span>
|
|
258
257
|
<span class="cline-any cline-neutral"> </span>
|
|
259
|
-
<span class="cline-any cline-no"> </span>
|
|
260
258
|
<span class="cline-any cline-neutral"> </span>
|
|
261
|
-
<span class="cline-any cline-no"> </span>
|
|
262
259
|
<span class="cline-any cline-neutral"> </span>
|
|
263
260
|
<span class="cline-any cline-neutral"> </span>
|
|
264
|
-
<span class="cline-any cline-
|
|
261
|
+
<span class="cline-any cline-neutral"> </span>
|
|
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>
|
|
265
270
|
<span class="cline-any cline-no"> </span>
|
|
266
271
|
<span class="cline-any cline-no"> </span>
|
|
267
272
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -270,34 +275,25 @@
|
|
|
270
275
|
<span class="cline-any cline-neutral"> </span>
|
|
271
276
|
<span class="cline-any cline-neutral"> </span>
|
|
272
277
|
<span class="cline-any cline-neutral"> </span>
|
|
273
|
-
<span class="cline-any cline-
|
|
278
|
+
<span class="cline-any cline-yes">2x</span>
|
|
274
279
|
<span class="cline-any cline-neutral"> </span>
|
|
275
280
|
<span class="cline-any cline-neutral"> </span>
|
|
276
281
|
<span class="cline-any cline-neutral"> </span>
|
|
282
|
+
<span class="cline-any cline-yes">4x</span>
|
|
277
283
|
<span class="cline-any cline-neutral"> </span>
|
|
278
|
-
<span class="cline-any cline-no"> </span>
|
|
279
|
-
<span class="cline-any cline-no"> </span>
|
|
280
|
-
<span class="cline-any cline-no"> </span>
|
|
281
284
|
<span class="cline-any cline-neutral"> </span>
|
|
282
285
|
<span class="cline-any cline-neutral"> </span>
|
|
283
|
-
<span class="cline-any cline-no"> </span>
|
|
284
|
-
<span class="cline-any cline-no"> </span>
|
|
285
|
-
<span class="cline-any cline-no"> </span>
|
|
286
286
|
<span class="cline-any cline-neutral"> </span>
|
|
287
|
-
<span class="cline-any cline-no"> </span>
|
|
288
287
|
<span class="cline-any cline-neutral"> </span>
|
|
289
|
-
<span class="cline-any cline-no"> </span>
|
|
290
288
|
<span class="cline-any cline-neutral"> </span>
|
|
291
|
-
<span class="cline-any cline-
|
|
292
|
-
<span class="cline-any cline-
|
|
289
|
+
<span class="cline-any cline-yes">4x</span>
|
|
290
|
+
<span class="cline-any cline-neutral"> </span>
|
|
291
|
+
<span class="cline-any cline-yes">4x</span>
|
|
293
292
|
<span class="cline-any cline-no"> </span>
|
|
294
293
|
<span class="cline-any cline-neutral"> </span>
|
|
295
294
|
<span class="cline-any cline-neutral"> </span>
|
|
296
295
|
<span class="cline-any cline-neutral"> </span>
|
|
297
|
-
<span class="cline-any cline-no"> </span>
|
|
298
296
|
<span class="cline-any cline-neutral"> </span>
|
|
299
|
-
<span class="cline-any cline-no"> </span>
|
|
300
|
-
<span class="cline-any cline-no"> </span>
|
|
301
297
|
<span class="cline-any cline-neutral"> </span>
|
|
302
298
|
<span class="cline-any cline-neutral"> </span>
|
|
303
299
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -306,7 +302,7 @@
|
|
|
306
302
|
<span class="cline-any cline-neutral"> </span>
|
|
307
303
|
<span class="cline-any cline-neutral"> </span>
|
|
308
304
|
<span class="cline-any cline-neutral"> </span>
|
|
309
|
-
<span class="cline-any cline-
|
|
305
|
+
<span class="cline-any cline-yes">4x</span>
|
|
310
306
|
<span class="cline-any cline-no"> </span>
|
|
311
307
|
<span class="cline-any cline-neutral"> </span>
|
|
312
308
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -320,16 +316,18 @@
|
|
|
320
316
|
<span class="cline-any cline-neutral"> </span>
|
|
321
317
|
<span class="cline-any cline-neutral"> </span>
|
|
322
318
|
<span class="cline-any cline-neutral"> </span>
|
|
323
|
-
<span class="cline-any cline-no"> </span>
|
|
324
|
-
<span class="cline-any cline-no"> </span>
|
|
325
319
|
<span class="cline-any cline-neutral"> </span>
|
|
326
320
|
<span class="cline-any cline-neutral"> </span>
|
|
327
321
|
<span class="cline-any cline-neutral"> </span>
|
|
328
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>
|
|
329
328
|
<span class="cline-any cline-neutral"> </span>
|
|
330
329
|
<span class="cline-any cline-neutral"> </span>
|
|
331
330
|
<span class="cline-any cline-neutral"> </span>
|
|
332
|
-
<span class="cline-any cline-no"> </span>
|
|
333
331
|
<span class="cline-any cline-neutral"> </span>
|
|
334
332
|
<span class="cline-any cline-neutral"> </span>
|
|
335
333
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -337,6 +335,12 @@
|
|
|
337
335
|
<span class="cline-any cline-neutral"> </span>
|
|
338
336
|
<span class="cline-any cline-no"> </span>
|
|
339
337
|
<span class="cline-any cline-neutral"> </span>
|
|
338
|
+
<span class="cline-any cline-neutral"> </span>
|
|
339
|
+
<span class="cline-any cline-neutral"> </span>
|
|
340
|
+
<span class="cline-any cline-neutral"> </span>
|
|
341
|
+
<span class="cline-any cline-neutral"> </span>
|
|
342
|
+
<span class="cline-any cline-yes">2x</span>
|
|
343
|
+
<span class="cline-any cline-neutral"> </span>
|
|
340
344
|
<span class="cline-any cline-no"> </span>
|
|
341
345
|
<span class="cline-any cline-neutral"> </span>
|
|
342
346
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -355,21 +359,15 @@
|
|
|
355
359
|
<span class="cline-any cline-neutral"> </span>
|
|
356
360
|
<span class="cline-any cline-neutral"> </span>
|
|
357
361
|
<span class="cline-any cline-neutral"> </span>
|
|
358
|
-
<span class="cline-any cline-no"> </span>
|
|
359
|
-
<span class="cline-any cline-no"> </span>
|
|
360
|
-
<span class="cline-any cline-no"> </span>
|
|
361
|
-
<span class="cline-any cline-no"> </span>
|
|
362
|
-
<span class="cline-any cline-no"> </span>
|
|
363
362
|
<span class="cline-any cline-neutral"> </span>
|
|
364
363
|
<span class="cline-any cline-neutral"> </span>
|
|
365
|
-
<span class="cline-any cline-no"> </span>
|
|
366
364
|
<span class="cline-any cline-neutral"> </span>
|
|
367
365
|
<span class="cline-any cline-neutral"> </span>
|
|
368
366
|
<span class="cline-any cline-neutral"> </span>
|
|
369
367
|
<span class="cline-any cline-neutral"> </span>
|
|
368
|
+
<span class="cline-any cline-yes">2x</span>
|
|
370
369
|
<span class="cline-any cline-neutral"> </span>
|
|
371
370
|
<span class="cline-any cline-neutral"> </span>
|
|
372
|
-
<span class="cline-any cline-yes">2x</span>
|
|
373
371
|
<span class="cline-any cline-neutral"> </span>
|
|
374
372
|
<span class="cline-any cline-neutral"> </span>
|
|
375
373
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -397,9 +395,11 @@
|
|
|
397
395
|
<span class="cline-any cline-neutral"> </span>
|
|
398
396
|
<span class="cline-any cline-neutral"> </span>
|
|
399
397
|
<span class="cline-any cline-neutral"> </span>
|
|
400
|
-
<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';
|
|
401
401
|
import PropTypes from 'prop-types';
|
|
402
|
-
|
|
402
|
+
|
|
403
403
|
import HeaderAccountMenu from './HeaderAccountMenu.jsx';
|
|
404
404
|
import HeaderCancel from './HeaderCancel.jsx';
|
|
405
405
|
import HeaderContainer from './HeaderContainer';
|
|
@@ -407,28 +407,33 @@ import HeaderMenuItem from './HeaderMenuItem';
|
|
|
407
407
|
import HeaderMobileButton from './HeaderMobileButton';
|
|
408
408
|
import ImpersonatorBanner from './ImpersonatorBanner';
|
|
409
409
|
import HelpIcon from './HelpIcon';
|
|
410
|
+
import defaultHeaderContent from './default-content.json';
|
|
410
411
|
import { HeaderStateProvider } from './hooks';
|
|
411
|
-
import
|
|
412
|
+
import useGetConfig from '../hooks/useGetConfig';
|
|
412
413
|
|
|
413
|
-
const HeaderUI =
|
|
414
|
+
const HeaderUI = ({
|
|
415
|
+
fbpPerformanceYear,
|
|
416
|
+
feedbackPerformanceYear,
|
|
414
417
|
handleCancel,
|
|
415
418
|
includeSkipToSidebar,
|
|
416
419
|
isDevPre,
|
|
417
420
|
isLoginEnabled,
|
|
421
|
+
performanceYear,
|
|
418
422
|
showCancelButton,
|
|
423
|
+
showPhysicianCompareLink,
|
|
424
|
+
showFacilityBasedPreviewLink,
|
|
419
425
|
skipToContentId,
|
|
420
426
|
RouterLink,
|
|
421
427
|
isIESupportPage,
|
|
422
428
|
}) => {
|
|
423
|
-
const [isMobileMenuExpanded, setIsMobileMenuExpanded] =
|
|
424
|
-
const [headerContent, setHeaderContent] = <span class="cstat-no" title="statement not covered" >useState({});</span>
|
|
429
|
+
const [isMobileMenuExpanded, setIsMobileMenuExpanded] = useState(false);
|
|
425
430
|
|
|
426
|
-
const mapContentToRows =
|
|
431
|
+
const mapContentToRows = (config) => {
|
|
427
432
|
// Append transposed array to content
|
|
428
|
-
|
|
433
|
+
return config?.map((section) => {
|
|
429
434
|
// Only header items with multiple columns need to be transposed
|
|
430
435
|
// Single column menus' tab order will remain the same
|
|
431
|
-
<span class="
|
|
436
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (section.columns?.length > 1) {
|
|
432
437
|
const { columns } = <span class="cstat-no" title="statement not covered" >section;</span>
|
|
433
438
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
434
439
|
...section,
|
|
@@ -437,58 +442,57 @@ const HeaderUI = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
437
442
|
),
|
|
438
443
|
};
|
|
439
444
|
}
|
|
440
|
-
|
|
445
|
+
return { ...section, rows: section.columns };
|
|
441
446
|
});
|
|
442
447
|
};
|
|
443
448
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<span class="cstat-no" title="statement not covered" > try {</span>
|
|
451
|
-
const { data } = <span class="cstat-no" title="statement not covered" >await axios.get(`${origin}/config/header`);</span>
|
|
452
|
-
<span class="cstat-no" title="statement not covered" > navMenuItems = data.data;</span>
|
|
453
|
-
} catch (error) {
|
|
454
|
-
<span class="cstat-no" title="statement not covered" > navMenuItems = { content: defaultContent };</span>
|
|
455
|
-
}
|
|
456
|
-
<span class="cstat-no" title="statement not covered" > if (!cancelRequest) <span class="cstat-no" title="statement not covered" >setHeaderContent(navMenuItems);</span></span>
|
|
457
|
-
}
|
|
458
|
-
<span class="cstat-no" title="statement not covered" > getHeaderConfig();</span>
|
|
459
|
-
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
460
|
-
<span class="cstat-no" title="statement not covered" > cancelRequest = true;</span>
|
|
461
|
-
};
|
|
462
|
-
}, []);
|
|
449
|
+
const result = useGetConfig({
|
|
450
|
+
localStorageName: 'qpp_top_nav_content',
|
|
451
|
+
url: '/config/header',
|
|
452
|
+
timeout: 30,
|
|
453
|
+
defaultContent: defaultHeaderContent,
|
|
454
|
+
});
|
|
463
455
|
|
|
464
|
-
const content =
|
|
456
|
+
const content = mapContentToRows(result?.content);
|
|
465
457
|
|
|
466
|
-
|
|
467
|
-
<span class="cstat-no" title="statement not covered" >
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
458
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (showCancelButton) {
|
|
459
|
+
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
460
|
+
<HeaderStateProvider RouterLink={RouterLink}>
|
|
461
|
+
<HeaderContainer
|
|
462
|
+
showCancelButton
|
|
463
|
+
skipToContentId={skipToContentId}
|
|
464
|
+
includeSkipToSidebar={includeSkipToSidebar}
|
|
465
|
+
>
|
|
466
|
+
<HeaderCancel handleCancel={handleCancel} />
|
|
467
|
+
</HeaderContainer>
|
|
468
|
+
</HeaderStateProvider>
|
|
469
|
+
);
|
|
470
|
+
}
|
|
475
471
|
|
|
476
|
-
|
|
477
|
-
<span class="cstat-no" title="statement not covered" >
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
&
|
|
484
|
-
<
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
|
+
}
|
|
489
489
|
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
if (!content) {
|
|
491
|
+
return null;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
return (
|
|
495
|
+
<HeaderStateProvider RouterLink={RouterLink}>
|
|
492
496
|
<HeaderContainer
|
|
493
497
|
isIESupportPage={isIESupportPage}
|
|
494
498
|
skipToContentId={skipToContentId}
|
|
@@ -501,8 +505,8 @@ const HeaderUI = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
501
505
|
/>
|
|
502
506
|
<nav aria-label="Primary navigation" hidden={!isMobileMenuExpanded}>
|
|
503
507
|
<ul className="navigation-menu navigation-new-style">
|
|
504
|
-
{content.map(
|
|
505
|
-
|
|
508
|
+
{content.map((header) => (
|
|
509
|
+
<HeaderMenuItem
|
|
506
510
|
handleClick={<span class="fstat-no" title="function not covered" >()</span> => {
|
|
507
511
|
<span class="cstat-no" title="statement not covered" > setIsMobileMenuExpanded(!isMobileMenuExpanded);</span>
|
|
508
512
|
}}
|
|
@@ -513,30 +517,24 @@ const HeaderUI = <span class="fstat-no" title="function not covered" >({</span>
|
|
|
513
517
|
))}
|
|
514
518
|
<HeaderAccountMenu
|
|
515
519
|
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}
|
|
516
522
|
isLoginEnabled={isLoginEnabled}
|
|
523
|
+
performanceYear={performanceYear}
|
|
524
|
+
showPhysicianCompareLink={showPhysicianCompareLink}
|
|
525
|
+
showFacilityBasedPreviewLink={showFacilityBasedPreviewLink}
|
|
517
526
|
/>
|
|
518
527
|
</ul>
|
|
519
528
|
</nav>
|
|
520
529
|
</HeaderContainer>
|
|
521
530
|
<ImpersonatorBanner />
|
|
522
|
-
</>
|
|
523
|
-
);
|
|
524
|
-
|
|
525
|
-
const displayContent = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
526
|
-
<span class="cstat-no" title="statement not covered" > if (showCancelButton) <span class="cstat-no" title="statement not covered" >return displayCancelContent();</span></span>
|
|
527
|
-
<span class="cstat-no" title="statement not covered" > if (isDevPre) <span class="cstat-no" title="statement not covered" >return displayDevPreContent();</span></span>
|
|
528
|
-
<span class="cstat-no" title="statement not covered" > if (content?.length) <span class="cstat-no" title="statement not covered" >return displayHeaderContent();</span></span>
|
|
529
|
-
<span class="cstat-no" title="statement not covered" > return null;</span>
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
533
|
-
<HeaderStateProvider RouterLink={RouterLink} headerContent={headerContent}>
|
|
534
|
-
{displayContent()}
|
|
535
531
|
</HeaderStateProvider>
|
|
536
532
|
);
|
|
537
533
|
};
|
|
538
534
|
|
|
539
535
|
HeaderUI.propTypes = {
|
|
536
|
+
fbpPerformanceYear: PropTypes.string,
|
|
537
|
+
feedbackPerformanceYear: PropTypes.string,
|
|
540
538
|
handleCancel: PropTypes.func,
|
|
541
539
|
includeSkipToSidebar: PropTypes.bool,
|
|
542
540
|
isDevPre: PropTypes.bool,
|
|
@@ -550,6 +548,8 @@ HeaderUI.propTypes = {
|
|
|
550
548
|
isIESupportPage: PropTypes.bool,
|
|
551
549
|
};
|
|
552
550
|
HeaderUI.defaultProps = {
|
|
551
|
+
fbpPerformanceYear: null,
|
|
552
|
+
feedbackPerformanceYear: null,
|
|
553
553
|
handleCancel: Function.prototype,
|
|
554
554
|
includeSkipToSidebar: false,
|
|
555
555
|
isDevPre: false,
|
|
@@ -571,7 +571,7 @@ export default HeaderUI;
|
|
|
571
571
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
572
572
|
Code coverage generated by
|
|
573
573
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
574
|
-
at
|
|
574
|
+
at Thu Sep 01 2022 16:32:55 GMT-0400 (Eastern Daylight Time)
|
|
575
575
|
</div>
|
|
576
576
|
<script src="../../../prettify.js"></script>
|
|
577
577
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2/2</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/1</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2/2</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line high'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -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-
|
|
101
|
+
<span class="cline-any cline-yes">2x</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>
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
<span class="cline-any cline-neutral"> </span>
|
|
130
130
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
131
131
|
|
|
132
|
-
const HelpIcon =
|
|
133
|
-
|
|
132
|
+
const HelpIcon = () => (
|
|
133
|
+
<a
|
|
134
134
|
className="header-help"
|
|
135
135
|
href="tel:1-866-288-8292"
|
|
136
136
|
data-track-category="MainContent"
|
|
@@ -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 Thu Sep 01 2022 16:32:55 GMT-0400 (Eastern Daylight Time)
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../../prettify.js"></script>
|
|
172
172
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">15
|
|
26
|
+
<span class="strong">46.15% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>6/13</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">66.66% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>4/6</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">25% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/4</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">15
|
|
47
|
+
<span class="strong">46.15% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>6/13</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -144,7 +144,9 @@
|
|
|
144
144
|
<a name='L79'></a><a href='#L79'>79</a>
|
|
145
145
|
<a name='L80'></a><a href='#L80'>80</a>
|
|
146
146
|
<a name='L81'></a><a href='#L81'>81</a>
|
|
147
|
-
<a name='L82'></a><a href='#L82'>82</a
|
|
147
|
+
<a name='L82'></a><a href='#L82'>82</a>
|
|
148
|
+
<a name='L83'></a><a href='#L83'>83</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
150
|
<span class="cline-any cline-neutral"> </span>
|
|
149
151
|
<span class="cline-any cline-neutral"> </span>
|
|
150
152
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -171,9 +173,9 @@
|
|
|
171
173
|
<span class="cline-any cline-neutral"> </span>
|
|
172
174
|
<span class="cline-any cline-neutral"> </span>
|
|
173
175
|
<span class="cline-any cline-neutral"> </span>
|
|
174
|
-
<span class="cline-any cline-
|
|
176
|
+
<span class="cline-any cline-yes">2x</span>
|
|
175
177
|
<span class="cline-any cline-neutral"> </span>
|
|
176
|
-
<span class="cline-any cline-
|
|
178
|
+
<span class="cline-any cline-yes">2x</span>
|
|
177
179
|
<span class="cline-any cline-neutral"> </span>
|
|
178
180
|
<span class="cline-any cline-neutral"> </span>
|
|
179
181
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -183,7 +185,7 @@
|
|
|
183
185
|
<span class="cline-any cline-neutral"> </span>
|
|
184
186
|
<span class="cline-any cline-neutral"> </span>
|
|
185
187
|
<span class="cline-any cline-neutral"> </span>
|
|
186
|
-
<span class="cline-any cline-
|
|
188
|
+
<span class="cline-any cline-yes">2x</span>
|
|
187
189
|
<span class="cline-any cline-no"> </span>
|
|
188
190
|
<span class="cline-any cline-no"> </span>
|
|
189
191
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -207,7 +209,7 @@
|
|
|
207
209
|
<span class="cline-any cline-neutral"> </span>
|
|
208
210
|
<span class="cline-any cline-neutral"> </span>
|
|
209
211
|
<span class="cline-any cline-neutral"> </span>
|
|
210
|
-
<span class="cline-any cline-
|
|
212
|
+
<span class="cline-any cline-yes">2x</span>
|
|
211
213
|
<span class="cline-any cline-neutral"> </span>
|
|
212
214
|
<span class="cline-any cline-neutral"> </span>
|
|
213
215
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -228,7 +230,8 @@
|
|
|
228
230
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
229
231
|
import cookie from 'cookie';
|
|
230
232
|
import axios from 'axios';
|
|
231
|
-
import
|
|
233
|
+
import CloseIcon from '@material-ui/icons/Close';
|
|
234
|
+
|
|
232
235
|
import { TextButton } from '../Button';
|
|
233
236
|
import {
|
|
234
237
|
deleteImpersonatedUser,
|
|
@@ -247,14 +250,14 @@ const getViewType = <span class="fstat-no" title="function not covered" >(v</spa
|
|
|
247
250
|
vg_id: 'Virtual Group',
|
|
248
251
|
}[viewType]);
|
|
249
252
|
|
|
250
|
-
const ImpersonatorBanner =
|
|
253
|
+
const ImpersonatorBanner = () => {
|
|
251
254
|
const {
|
|
252
|
-
qpp_auth_token: token =
|
|
253
|
-
qpp_impersonated_user: user =
|
|
254
|
-
qpp_impersonated_type: viewType =
|
|
255
|
-
} =
|
|
255
|
+
qpp_auth_token: token = null,
|
|
256
|
+
qpp_impersonated_user: user = null,
|
|
257
|
+
qpp_impersonated_type: viewType = null,
|
|
258
|
+
} = cookie.parse(document.cookie);
|
|
256
259
|
|
|
257
|
-
const className =
|
|
260
|
+
const className = [
|
|
258
261
|
'qpp-u-display--flex',
|
|
259
262
|
'qpp-u-justify-content--between',
|
|
260
263
|
'qpp-u-fill--gold-20',
|
|
@@ -264,7 +267,7 @@ const ImpersonatorBanner = <span class="fstat-no" title="function not covered" >
|
|
|
264
267
|
'qpp-u-color--gray-80',
|
|
265
268
|
].join(' ');
|
|
266
269
|
|
|
267
|
-
const onClick = <span class="
|
|
270
|
+
const onClick = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
268
271
|
const fn = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
269
272
|
<span class="cstat-no" title="statement not covered" > deleteImpersonatedUser({</span>
|
|
270
273
|
qpp_impersonated_user: user,
|
|
@@ -288,10 +291,10 @@ const ImpersonatorBanner = <span class="fstat-no" title="function not covered" >
|
|
|
288
291
|
.then(fn, fn);
|
|
289
292
|
};
|
|
290
293
|
|
|
291
|
-
|
|
294
|
+
return (
|
|
292
295
|
token &&
|
|
293
|
-
user
|
|
294
|
-
<div className={className}>
|
|
296
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > user </span>&& (
|
|
297
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > <div className={className}></span>
|
|
295
298
|
<div>
|
|
296
299
|
VIEW ONLY | You are currently viewing {getViewType(viewType)}:{' '}
|
|
297
300
|
<strong>{user}</strong>
|
|
@@ -313,7 +316,7 @@ export default ImpersonatorBanner;
|
|
|
313
316
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
314
317
|
Code coverage generated by
|
|
315
318
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
316
|
-
at
|
|
319
|
+
at Thu Sep 01 2022 16:32:55 GMT-0400 (Eastern Daylight Time)
|
|
317
320
|
</div>
|
|
318
321
|
<script src="../../../prettify.js"></script>
|
|
319
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 Thu Sep 01 2022 16:32:55 GMT-0400 (Eastern Daylight Time)
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../../../prettify.js"></script>
|
|
157
157
|
<script>
|