qpp-style 9.28.1 → 9.28.2
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/Accordion/index.jsx +5 -1
- package/coverage/clover.xml +76 -76
- package/coverage/coverage-final.json +69 -69
- package/coverage/lcov-report/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/components/Accordion/index.jsx.html +4 -4
- package/coverage/lcov-report/components/Error/Collapsible.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/ErrorUI.jsx.html +1 -1
- package/coverage/lcov-report/components/Error/index.html +1 -1
- package/coverage/lcov-report/components/Footer/FooterUI.jsx.html +348 -189
- package/coverage/lcov-report/components/{Header/HeaderUI.jsx.html → Footer/LegacyFooterUI.jsx.html} +303 -198
- package/coverage/lcov-report/components/Footer/SocialLinks.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/Subscribe.jsx.html +11 -11
- package/coverage/lcov-report/components/Footer/index.html +44 -29
- package/coverage/lcov-report/components/Infotip/Infotip.jsx.html +5 -5
- package/coverage/lcov-report/components/Infotip/InfotipIcon.jsx.html +5 -5
- package/coverage/lcov-report/components/Infotip/index.html +1 -1
- package/coverage/lcov-report/components/Infotip/index.js.html +1 -1
- package/coverage/lcov-report/components/Modal/LegacyModal.jsx.html +3 -3
- package/coverage/lcov-report/components/Modal/Modal.jsx.html +5 -5
- package/coverage/lcov-report/components/Modal/index.html +1 -1
- package/coverage/lcov-report/components/Modal/index.jsx.html +5 -5
- package/coverage/lcov-report/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/components/SanitizedContent/index.jsx.html +1 -1
- package/coverage/lcov-report/components/SessionDialogUI.jsx.html +4 -4
- package/coverage/lcov-report/components/{Header/NavigationButtonIcon.jsx.html → SideNav/AnimationGroup/AnimationGroup.jsx.html} +48 -48
- package/coverage/lcov-report/components/SideNav/{Content/SelectRole → AnimationGroup}/index.html +30 -30
- package/coverage/lcov-report/components/SideNav/Chart/ScoreChart.jsx.html +7 -7
- package/coverage/lcov-report/components/SideNav/Chart/index.html +16 -1
- package/coverage/lcov-report/components/SideNav/Chart/index.js.html +94 -0
- package/coverage/lcov-report/components/{NotificationBanner/index.js.html → SideNav/Content/LevelOneContent.jsx.html} +242 -281
- package/coverage/lcov-report/components/{Header/HeaderMenuItem.jsx.html → SideNav/Content/LevelTwoContent.jsx.html} +236 -305
- package/coverage/lcov-report/components/SideNav/Content/index.html +146 -0
- package/coverage/lcov-report/components/SideNav/Content/index.js.html +97 -0
- package/coverage/lcov-report/components/{Header/HeaderCancel.jsx.html → SideNav/Details/IndividualDetails.jsx.html} +24 -18
- package/coverage/lcov-report/components/{NotificationBanner/ExpandedView.js.html → SideNav/Details/PracticeDetails.jsx.html} +64 -64
- package/coverage/lcov-report/components/{NotificationBanner → SideNav/Details}/index.html +46 -46
- package/coverage/lcov-report/components/SideNav/Details/index.js.html +97 -0
- package/coverage/lcov-report/components/{Header/HeaderLogo.jsx.html → SideNav/Links/CmsSwitchLink.jsx.html} +58 -61
- package/coverage/lcov-report/components/{Header/HeaderMenuButton.js.html → SideNav/Links/NavItemInline.jsx.html} +75 -63
- package/coverage/lcov-report/components/{NotificationBanner/CollapsedView.js.html → SideNav/Links/NavLinkContainer.jsx.html} +58 -61
- package/coverage/lcov-report/components/SideNav/Links/NavLinkDrawer.jsx.html +832 -0
- package/coverage/lcov-report/components/{Header/HeaderAccountMenu.jsx.html → SideNav/Links/NavLinkInline.jsx.html} +157 -118
- package/coverage/lcov-report/components/{Header/HeaderMobileButton.js.html → SideNav/Links/NavLinkToggle.jsx.html} +45 -54
- package/coverage/lcov-report/components/SideNav/Links/index.html +206 -0
- package/coverage/lcov-report/components/{Header/utag-helpers.js.html → SideNav/Links/index.js.html} +40 -28
- package/coverage/lcov-report/components/SideNav/UI/SideNavUI.jsx.html +1084 -0
- package/coverage/lcov-report/components/{GovBanner → SideNav/UI}/index.html +42 -27
- package/coverage/lcov-report/components/SideNav/UI/index.js.html +94 -0
- package/coverage/lcov-report/components/SideNav/helpers.js.html +10 -910
- package/coverage/lcov-report/components/SideNav/index.html +17 -17
- package/coverage/lcov-report/components/Tooltip/Tooltip.jsx.html +9 -9
- package/coverage/lcov-report/components/Tooltip/index.html +1 -1
- package/coverage/lcov-report/components/Tooltip/index.js.html +1 -1
- package/coverage/lcov-report/components/Tooltip/position.js.html +1 -1
- package/coverage/lcov-report/components/hooks/index.html +5 -5
- package/coverage/lcov-report/components/hooks/useGetConfig.js.html +15 -18
- package/coverage/lcov-report/components/index.html +1 -1
- package/coverage/lcov-report/index.html +5 -5
- package/coverage/lcov-report/lib/Chevron.jsx.html +5 -5
- package/coverage/lcov-report/lib/SvgComponents.jsx.html +12 -150
- package/coverage/lcov-report/lib/index.html +30 -15
- package/coverage/lcov-report/lib/svg-definitions.svg.html +460 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +5 -5
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +17 -5
- 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 +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/GovBanner/index.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderAccountMenu.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +1 -1
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/Header/index.html +1 -1
- 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/InfotipContent.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 +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelTwoContent.jsx.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/index.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/SideNav/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/react/lib/SvgComponents.jsx.html +1 -1
- package/coverage/lcov-report/react/lib/index.html +1 -1
- package/coverage/lcov-report/react/lib/svg-definitions.svg.html +1 -1
- 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-report/session/index.html +20 -20
- package/coverage/lcov-report/session/index.js.html +1 -1
- package/coverage/lcov-report/session/logout.js.html +15 -24
- package/coverage/lcov-report/session/refresh.js.html +2 -2
- package/coverage/lcov-report/session/ttl.js.html +2 -2
- package/coverage/lcov.info +14 -10
- 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/images/icons/svg/chevron-down.svg +5 -5
- package/package.json +1 -1
- package/styles/components/_accordion.scss +7 -0
- package/coverage/lcov-report/components/Button/index.html +0 -116
- package/coverage/lcov-report/components/Button/index.js.html +0 -355
- package/coverage/lcov-report/components/GovBanner/index.js.html +0 -436
- package/coverage/lcov-report/components/Header/HeaderContainer.jsx.html +0 -280
- package/coverage/lcov-report/components/Header/HeaderMenuLink.js.html +0 -253
- package/coverage/lcov-report/components/Header/HeaderMenuSignOutButton.js.html +0 -271
- package/coverage/lcov-report/components/Header/HelpIcon.jsx.html +0 -181
- package/coverage/lcov-report/components/Header/ImpersonatorBanner.jsx.html +0 -331
- package/coverage/lcov-report/components/Header/hooks.js.html +0 -283
- package/coverage/lcov-report/components/Header/index.html +0 -326
- package/coverage/lcov-report/components/SideNav/Content/SelectRole/utils.js.html +0 -505
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/
|
|
6
|
+
<title>Code coverage report for components/SideNav/Content/LevelOneContent.jsx</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">components/SideNav/Content</a> LevelOneContent.jsx</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">55.26% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>21/38</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">31.81% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>14/44</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">16.66% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>1/6</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">55.26% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>21/38</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -271,20 +271,16 @@
|
|
|
271
271
|
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
272
|
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
273
|
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
-
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
-
<
|
|
276
|
-
<
|
|
277
|
-
<
|
|
278
|
-
<
|
|
279
|
-
<
|
|
280
|
-
<
|
|
281
|
-
<
|
|
282
|
-
<
|
|
283
|
-
<
|
|
284
|
-
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
-
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
-
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
-
<a name='L222'></a><a href='#L222'>222</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
275
|
+
<span class="cline-any cline-neutral"> </span>
|
|
276
|
+
<span class="cline-any cline-neutral"> </span>
|
|
277
|
+
<span class="cline-any cline-neutral"> </span>
|
|
278
|
+
<span class="cline-any cline-neutral"> </span>
|
|
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-neutral"> </span>
|
|
283
|
+
<span class="cline-any cline-neutral"> </span>
|
|
288
284
|
<span class="cline-any cline-neutral"> </span>
|
|
289
285
|
<span class="cline-any cline-neutral"> </span>
|
|
290
286
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -292,78 +288,49 @@
|
|
|
292
288
|
<span class="cline-any cline-neutral"> </span>
|
|
293
289
|
<span class="cline-any cline-neutral"> </span>
|
|
294
290
|
<span class="cline-any cline-neutral"> </span>
|
|
295
|
-
<span class="cline-any cline-yes">1x</span>
|
|
296
|
-
<span class="cline-any cline-no"> </span>
|
|
297
|
-
<span class="cline-any cline-no"> </span>
|
|
298
|
-
<span class="cline-any cline-no"> </span>
|
|
299
|
-
<span class="cline-any cline-no"> </span>
|
|
300
291
|
<span class="cline-any cline-neutral"> </span>
|
|
301
292
|
<span class="cline-any cline-neutral"> </span>
|
|
302
293
|
<span class="cline-any cline-neutral"> </span>
|
|
303
294
|
<span class="cline-any cline-neutral"> </span>
|
|
304
|
-
<span class="cline-any cline-yes">1x</span>
|
|
305
295
|
<span class="cline-any cline-neutral"> </span>
|
|
306
296
|
<span class="cline-any cline-neutral"> </span>
|
|
307
297
|
<span class="cline-any cline-neutral"> </span>
|
|
308
298
|
<span class="cline-any cline-neutral"> </span>
|
|
309
299
|
<span class="cline-any cline-neutral"> </span>
|
|
310
300
|
<span class="cline-any cline-neutral"> </span>
|
|
311
|
-
<span class="cline-any cline-yes">2x</span>
|
|
312
301
|
<span class="cline-any cline-neutral"> </span>
|
|
313
|
-
<span class="cline-any cline-yes">2x</span>
|
|
314
|
-
<span class="cline-any cline-yes">2x</span>
|
|
315
|
-
<span class="cline-any cline-yes">2x</span>
|
|
316
|
-
<span class="cline-any cline-yes">2x</span>
|
|
317
|
-
<span class="cline-any cline-yes">2x</span>
|
|
318
|
-
<span class="cline-any cline-yes">2x</span>
|
|
319
|
-
<span class="cline-any cline-yes">2x</span>
|
|
320
|
-
<span class="cline-any cline-yes">2x</span>
|
|
321
302
|
<span class="cline-any cline-neutral"> </span>
|
|
322
|
-
<span class="cline-any cline-yes">2x</span>
|
|
323
303
|
<span class="cline-any cline-neutral"> </span>
|
|
324
|
-
<span class="cline-any cline-yes">1x</span>
|
|
325
304
|
<span class="cline-any cline-neutral"> </span>
|
|
326
|
-
<span class="cline-any cline-yes">1x</span>
|
|
327
|
-
<span class="cline-any cline-no"> </span>
|
|
328
305
|
<span class="cline-any cline-neutral"> </span>
|
|
329
306
|
<span class="cline-any cline-neutral"> </span>
|
|
330
307
|
<span class="cline-any cline-yes">1x</span>
|
|
331
308
|
<span class="cline-any cline-no"> </span>
|
|
332
309
|
<span class="cline-any cline-neutral"> </span>
|
|
333
310
|
<span class="cline-any cline-neutral"> </span>
|
|
334
|
-
<span class="cline-any cline-yes">1x</span>
|
|
335
311
|
<span class="cline-any cline-neutral"> </span>
|
|
336
|
-
<span class="cline-any cline-yes">1x</span>
|
|
337
|
-
<span class="cline-any cline-yes">1x</span>
|
|
338
312
|
<span class="cline-any cline-neutral"> </span>
|
|
339
313
|
<span class="cline-any cline-neutral"> </span>
|
|
340
314
|
<span class="cline-any cline-neutral"> </span>
|
|
341
|
-
<span class="cline-any cline-yes">2x</span>
|
|
342
315
|
<span class="cline-any cline-neutral"> </span>
|
|
343
|
-
<span class="cline-any cline-yes">1x</span>
|
|
344
|
-
<span class="cline-any cline-yes">1x</span>
|
|
345
316
|
<span class="cline-any cline-neutral"> </span>
|
|
346
317
|
<span class="cline-any cline-neutral"> </span>
|
|
347
318
|
<span class="cline-any cline-neutral"> </span>
|
|
348
|
-
<span class="cline-any cline-yes">2x</span>
|
|
349
|
-
<span class="cline-any cline-yes">1x</span>
|
|
350
|
-
<span class="cline-any cline-yes">1x</span>
|
|
351
319
|
<span class="cline-any cline-neutral"> </span>
|
|
352
|
-
<span class="cline-any cline-yes">1x</span>
|
|
353
320
|
<span class="cline-any cline-neutral"> </span>
|
|
354
321
|
<span class="cline-any cline-neutral"> </span>
|
|
355
322
|
<span class="cline-any cline-neutral"> </span>
|
|
356
|
-
<span class="cline-any cline-yes">1x</span>
|
|
357
323
|
<span class="cline-any cline-neutral"> </span>
|
|
358
324
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
-
<span class="cline-any cline-
|
|
325
|
+
<span class="cline-any cline-neutral"> </span>
|
|
326
|
+
<span class="cline-any cline-neutral"> </span>
|
|
327
|
+
<span class="cline-any cline-neutral"> </span>
|
|
328
|
+
<span class="cline-any cline-neutral"> </span>
|
|
329
|
+
<span class="cline-any cline-neutral"> </span>
|
|
360
330
|
<span class="cline-any cline-yes">1x</span>
|
|
361
|
-
<span class="cline-any cline-no"> </span>
|
|
362
|
-
<span class="cline-any cline-no"> </span>
|
|
363
331
|
<span class="cline-any cline-neutral"> </span>
|
|
364
332
|
<span class="cline-any cline-neutral"> </span>
|
|
365
333
|
<span class="cline-any cline-neutral"> </span>
|
|
366
|
-
<span class="cline-any cline-no"> </span>
|
|
367
334
|
<span class="cline-any cline-neutral"> </span>
|
|
368
335
|
<span class="cline-any cline-neutral"> </span>
|
|
369
336
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -374,34 +341,44 @@
|
|
|
374
341
|
<span class="cline-any cline-neutral"> </span>
|
|
375
342
|
<span class="cline-any cline-neutral"> </span>
|
|
376
343
|
<span class="cline-any cline-neutral"> </span>
|
|
344
|
+
<span class="cline-any cline-yes">1x</span>
|
|
377
345
|
<span class="cline-any cline-neutral"> </span>
|
|
346
|
+
<span class="cline-any cline-yes">1x</span>
|
|
347
|
+
<span class="cline-any cline-yes">1x</span>
|
|
348
|
+
<span class="cline-any cline-yes">1x</span>
|
|
349
|
+
<span class="cline-any cline-yes">1x</span>
|
|
378
350
|
<span class="cline-any cline-neutral"> </span>
|
|
379
|
-
<span class="cline-any cline-yes">2x</span>
|
|
380
|
-
<span class="cline-any cline-yes">2x</span>
|
|
381
351
|
<span class="cline-any cline-neutral"> </span>
|
|
352
|
+
<span class="cline-any cline-yes">1x</span>
|
|
353
|
+
<span class="cline-any cline-yes">1x</span>
|
|
354
|
+
<span class="cline-any cline-yes">1x</span>
|
|
355
|
+
<span class="cline-any cline-yes">1x</span>
|
|
356
|
+
<span class="cline-any cline-yes">1x</span>
|
|
382
357
|
<span class="cline-any cline-neutral"> </span>
|
|
383
358
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-yes">1x</span>
|
|
384
360
|
<span class="cline-any cline-neutral"> </span>
|
|
361
|
+
<span class="cline-any cline-yes">1x</span>
|
|
385
362
|
<span class="cline-any cline-neutral"> </span>
|
|
363
|
+
<span class="cline-any cline-yes">1x</span>
|
|
364
|
+
<span class="cline-any cline-yes">1x</span>
|
|
365
|
+
<span class="cline-any cline-yes">1x</span>
|
|
386
366
|
<span class="cline-any cline-neutral"> </span>
|
|
387
367
|
<span class="cline-any cline-neutral"> </span>
|
|
388
|
-
<span class="cline-any cline-yes">2x</span>
|
|
389
|
-
<span class="cline-any cline-no"> </span>
|
|
390
368
|
<span class="cline-any cline-no"> </span>
|
|
391
369
|
<span class="cline-any cline-neutral"> </span>
|
|
392
|
-
<span class="cline-any cline-no"> </span>
|
|
393
|
-
<span class="cline-any cline-no"> </span>
|
|
394
370
|
<span class="cline-any cline-neutral"> </span>
|
|
395
371
|
<span class="cline-any cline-neutral"> </span>
|
|
372
|
+
<span class="cline-any cline-no"> </span>
|
|
396
373
|
<span class="cline-any cline-neutral"> </span>
|
|
397
374
|
<span class="cline-any cline-neutral"> </span>
|
|
398
375
|
<span class="cline-any cline-neutral"> </span>
|
|
399
376
|
<span class="cline-any cline-neutral"> </span>
|
|
377
|
+
<span class="cline-any cline-yes">1x</span>
|
|
400
378
|
<span class="cline-any cline-neutral"> </span>
|
|
401
379
|
<span class="cline-any cline-neutral"> </span>
|
|
402
380
|
<span class="cline-any cline-neutral"> </span>
|
|
403
381
|
<span class="cline-any cline-neutral"> </span>
|
|
404
|
-
<span class="cline-any cline-no"> </span>
|
|
405
382
|
<span class="cline-any cline-neutral"> </span>
|
|
406
383
|
<span class="cline-any cline-neutral"> </span>
|
|
407
384
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -420,18 +397,15 @@
|
|
|
420
397
|
<span class="cline-any cline-neutral"> </span>
|
|
421
398
|
<span class="cline-any cline-neutral"> </span>
|
|
422
399
|
<span class="cline-any cline-neutral"> </span>
|
|
423
|
-
<span class="cline-any cline-
|
|
424
|
-
<span class="cline-any cline-
|
|
425
|
-
<span class="cline-any cline-no"> </span>
|
|
426
|
-
<span class="cline-any cline-no"> </span>
|
|
400
|
+
<span class="cline-any cline-neutral"> </span>
|
|
401
|
+
<span class="cline-any cline-yes">1x</span>
|
|
427
402
|
<span class="cline-any cline-no"> </span>
|
|
428
403
|
<span class="cline-any cline-neutral"> </span>
|
|
404
|
+
<span class="cline-any cline-neutral"> </span>
|
|
429
405
|
<span class="cline-any cline-no"> </span>
|
|
430
406
|
<span class="cline-any cline-no"> </span>
|
|
431
407
|
<span class="cline-any cline-neutral"> </span>
|
|
432
408
|
<span class="cline-any cline-neutral"> </span>
|
|
433
|
-
<span class="cline-any cline-yes">2x</span>
|
|
434
|
-
<span class="cline-any cline-no"> </span>
|
|
435
409
|
<span class="cline-any cline-no"> </span>
|
|
436
410
|
<span class="cline-any cline-no"> </span>
|
|
437
411
|
<span class="cline-any cline-no"> </span>
|
|
@@ -441,14 +415,19 @@
|
|
|
441
415
|
<span class="cline-any cline-neutral"> </span>
|
|
442
416
|
<span class="cline-any cline-neutral"> </span>
|
|
443
417
|
<span class="cline-any cline-neutral"> </span>
|
|
418
|
+
<span class="cline-any cline-no"> </span>
|
|
419
|
+
<span class="cline-any cline-no"> </span>
|
|
420
|
+
<span class="cline-any cline-no"> </span>
|
|
444
421
|
<span class="cline-any cline-neutral"> </span>
|
|
422
|
+
<span class="cline-any cline-no"> </span>
|
|
445
423
|
<span class="cline-any cline-neutral"> </span>
|
|
446
|
-
<span class="cline-any cline-yes">2x</span>
|
|
447
424
|
<span class="cline-any cline-neutral"> </span>
|
|
448
425
|
<span class="cline-any cline-neutral"> </span>
|
|
449
426
|
<span class="cline-any cline-neutral"> </span>
|
|
427
|
+
<span class="cline-any cline-no"> </span>
|
|
450
428
|
<span class="cline-any cline-neutral"> </span>
|
|
451
429
|
<span class="cline-any cline-neutral"> </span>
|
|
430
|
+
<span class="cline-any cline-no"> </span>
|
|
452
431
|
<span class="cline-any cline-neutral"> </span>
|
|
453
432
|
<span class="cline-any cline-neutral"> </span>
|
|
454
433
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -462,6 +441,7 @@
|
|
|
462
441
|
<span class="cline-any cline-neutral"> </span>
|
|
463
442
|
<span class="cline-any cline-neutral"> </span>
|
|
464
443
|
<span class="cline-any cline-neutral"> </span>
|
|
444
|
+
<span class="cline-any cline-no"> </span>
|
|
465
445
|
<span class="cline-any cline-neutral"> </span>
|
|
466
446
|
<span class="cline-any cline-neutral"> </span>
|
|
467
447
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -472,9 +452,10 @@
|
|
|
472
452
|
<span class="cline-any cline-neutral"> </span>
|
|
473
453
|
<span class="cline-any cline-neutral"> </span>
|
|
474
454
|
<span class="cline-any cline-neutral"> </span>
|
|
475
|
-
<span class="cline-any cline-
|
|
455
|
+
<span class="cline-any cline-no"> </span>
|
|
476
456
|
<span class="cline-any cline-neutral"> </span>
|
|
477
457
|
<span class="cline-any cline-neutral"> </span>
|
|
458
|
+
<span class="cline-any cline-yes">1x</span>
|
|
478
459
|
<span class="cline-any cline-neutral"> </span>
|
|
479
460
|
<span class="cline-any cline-neutral"> </span>
|
|
480
461
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -498,234 +479,214 @@
|
|
|
498
479
|
<span class="cline-any cline-neutral"> </span>
|
|
499
480
|
<span class="cline-any cline-neutral"> </span>
|
|
500
481
|
<span class="cline-any cline-neutral"> </span>
|
|
501
|
-
<span class="cline-any cline-neutral"> </span>
|
|
502
|
-
<span class="cline-any cline-neutral"> </span>
|
|
503
|
-
<span class="cline-any cline-neutral"> </span>
|
|
504
|
-
<span class="cline-any cline-neutral"> </span>
|
|
505
|
-
<span class="cline-any cline-neutral"> </span>
|
|
506
|
-
<span class="cline-any cline-neutral"> </span>
|
|
507
|
-
<span class="cline-any cline-neutral"> </span>
|
|
508
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState, useEffect, useRef } from 'react';
|
|
482
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from 'react';
|
|
509
483
|
import PropTypes from 'prop-types';
|
|
510
|
-
import
|
|
511
|
-
import
|
|
512
|
-
import { withGetConfig } from '../hooks/useGetConfig';
|
|
484
|
+
import cookie from 'cookie';
|
|
485
|
+
import jwtDecode from 'jwt-decode';
|
|
513
486
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
487
|
+
import { NavLinkContainer, NavLinkInline, NavLinkDrawer } from '../Links';
|
|
488
|
+
import AnimationGroup from '../AnimationGroup/AnimationGroup';
|
|
489
|
+
import defaultContent from '../UI/default-content';
|
|
490
|
+
import {
|
|
491
|
+
AccountHomeIcon,
|
|
492
|
+
DashboardIcon,
|
|
493
|
+
FacilityBasedPreviewIcon,
|
|
494
|
+
HardshipIcon,
|
|
495
|
+
HelpSupportIcon,
|
|
496
|
+
ManageUsersIcon,
|
|
497
|
+
MyApplicationsIcon,
|
|
498
|
+
MyTestDataIcon,
|
|
499
|
+
PaymentIcon,
|
|
500
|
+
PhysicianCompareIcon,
|
|
501
|
+
StarIcon,
|
|
502
|
+
TargetIcon,
|
|
503
|
+
IndividualReporting,
|
|
504
|
+
} from '../../../lib/SvgComponents';
|
|
505
|
+
import {
|
|
506
|
+
dashboardUrl,
|
|
507
|
+
facilityBasedPreviewBaseUrl,
|
|
508
|
+
feedbackUrl,
|
|
509
|
+
manageUrl,
|
|
510
|
+
physicianCompareUrl,
|
|
511
|
+
reportsPortalUrl,
|
|
512
|
+
submissionsUrl,
|
|
513
|
+
} from '../helpers';
|
|
524
514
|
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
515
|
+
const getIcon = <span class="fstat-no" title="function not covered" >(u</span>rl) =>
|
|
516
|
+
(<span class="cstat-no" title="statement not covered" >{</span>
|
|
517
|
+
[dashboardUrl]: DashboardIcon,
|
|
518
|
+
[feedbackUrl]: StarIcon,
|
|
519
|
+
[manageUrl]: ManageUsersIcon,
|
|
520
|
+
[physicianCompareUrl]: PhysicianCompareIcon,
|
|
521
|
+
[reportsPortalUrl]: HardshipIcon,
|
|
522
|
+
[submissionsUrl]: AccountHomeIcon,
|
|
523
|
+
[facilityBasedPreviewBaseUrl]: FacilityBasedPreviewIcon,
|
|
524
|
+
'/developers': HelpSupportIcon,
|
|
525
|
+
'/resources/help-and-support': HelpSupportIcon,
|
|
526
|
+
'/user/apm-incentive-payments': PaymentIcon,
|
|
527
|
+
'/user/applications': MyApplicationsIcon,
|
|
528
|
+
'/user/exception/#/landing': HardshipIcon,
|
|
529
|
+
'/user/targeted-review/#/landing': TargetIcon,
|
|
530
|
+
'/user/test-data': MyTestDataIcon,
|
|
531
|
+
'/user/self-nomination/#/landing': IndividualReporting,
|
|
532
|
+
'/user/reviewers': DashboardIcon,
|
|
533
|
+
'/reviewer/exception': HardshipIcon,
|
|
534
|
+
'/reviewer/targeted-review': TargetIcon,
|
|
535
|
+
'/self-nomination': IndividualReporting,
|
|
536
|
+
}[url] || null);
|
|
533
537
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
538
|
+
const LevelOneContent = ({
|
|
539
|
+
isExpanded,
|
|
540
|
+
config: { linkCallback, useTooltips } = <span class="branch-0 cbranch-no" title="branch not covered" >{},</span>
|
|
541
|
+
levelOneContent,
|
|
542
|
+
}) => {
|
|
543
|
+
let {
|
|
544
|
+
qpp_has_authorizations,
|
|
545
|
+
user_has_apm_payments,
|
|
546
|
+
qpp_is_dev_pre,
|
|
547
|
+
qpp_ehr_authorized,
|
|
548
|
+
qpp_has_non_registry_authorizations,
|
|
549
|
+
qpp_auth_token,
|
|
550
|
+
qpp_cms_internal_authorized,
|
|
551
|
+
qpp_can_impersonate,
|
|
552
|
+
} = cookie.parse(document.cookie);
|
|
542
553
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
554
|
+
let name = '';
|
|
555
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (qpp_auth_token) {
|
|
556
|
+
const { firstName, lastName } = jwtDecode(qpp_auth_token);
|
|
557
|
+
name = `${firstName} ${lastName}`;
|
|
558
|
+
}
|
|
546
559
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
560
|
+
const canImpersonate = qpp_can_impersonate === 'true';
|
|
561
|
+
const hasAuthorizations = qpp_has_authorizations === 'true';
|
|
562
|
+
const hasApmPayments = user_has_apm_payments === 'true';
|
|
563
|
+
const isDevPre = qpp_is_dev_pre === 'true';
|
|
564
|
+
const internalReviewerNames = JSON.parse(
|
|
565
|
+
qpp_cms_internal_authorized || 'null'
|
|
566
|
+
);
|
|
567
|
+
const ehrAuthorized = qpp_ehr_authorized === 'true';
|
|
568
|
+
const hasNonRegistryAuthorizations =
|
|
569
|
+
qpp_has_non_registry_authorizations === 'true';
|
|
550
570
|
|
|
551
|
-
|
|
552
|
-
<span class="
|
|
553
|
-
|
|
571
|
+
const linkClass = isExpanded ? 'link-inline' : <span class="branch-1 cbranch-no" title="branch not covered" >'link-collapsed';</span>
|
|
572
|
+
let content = isDevPre ? <span class="branch-0 cbranch-no" title="branch not covered" >levelOneContent?.devPre </span>: levelOneContent?.default;
|
|
573
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
574
|
+
(internalReviewerNames || []).some(
|
|
575
|
+
<span class="fstat-no" title="function not covered" > (n</span>ame) =>
|
|
576
|
+
<span class="cstat-no" title="statement not covered" > name === 'QPP Self-Nomination' ||</span>
|
|
577
|
+
name === 'QPP Targeted Review & Exceptions'
|
|
578
|
+
)
|
|
579
|
+
) {
|
|
580
|
+
<span class="cstat-no" title="statement not covered" > content =</span>
|
|
581
|
+
levelOneContent?.internalReviewers || defaultContent.internalReviewers;
|
|
582
|
+
}
|
|
554
583
|
|
|
555
|
-
|
|
584
|
+
// Mapping side nav link urls to the conditions that determine their inclusion in the side nav
|
|
585
|
+
const urlConditionMap = {
|
|
586
|
+
[dashboardUrl]: hasAuthorizations,
|
|
587
|
+
[feedbackUrl]: hasAuthorizations,
|
|
588
|
+
'/user/apm-incentive-payments': hasApmPayments,
|
|
589
|
+
[physicianCompareUrl]: hasNonRegistryAuthorizations,
|
|
590
|
+
[reportsPortalUrl]: hasAuthorizations,
|
|
591
|
+
[facilityBasedPreviewBaseUrl]: hasAuthorizations,
|
|
592
|
+
'/user/helpdesk-viewing-tool': canImpersonate,
|
|
556
593
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
594
|
+
'/reviewer/exception': (internalReviewerNames || []).includes(
|
|
595
|
+
'QPP Targeted Review & Exceptions'
|
|
596
|
+
),
|
|
597
|
+
'/reviewer/targeted-review': (internalReviewerNames || []).includes(
|
|
598
|
+
'QPP Targeted Review & Exceptions'
|
|
599
|
+
),
|
|
600
|
+
'/self-nomination': (internalReviewerNames || []).includes(
|
|
601
|
+
'QPP Self-Nomination'
|
|
602
|
+
),
|
|
561
603
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
setExpanded(isNotificationExpanded());
|
|
566
|
-
}
|
|
567
|
-
}, [result]);
|
|
568
|
-
|
|
569
|
-
const isNotificationExpanded = () => {
|
|
570
|
-
const dateDismissed = new Date(result.content.dateDismissed);
|
|
571
|
-
const dateUpdated = new Date(result.content.dateUpdated);
|
|
572
|
-
const notDismissed =
|
|
573
|
-
(isDateValid(dateUpdated) &&
|
|
574
|
-
<span class="branch-1 cbranch-no" title="branch not covered" > isDateValid(dateDismissed) </span>&&
|
|
575
|
-
<span class="branch-2 cbranch-no" title="branch not covered" > dateUpdated >= dateDismissed)</span> ||
|
|
576
|
-
!isDateValid(dateDismissed);
|
|
577
|
-
return notDismissed;
|
|
604
|
+
// dev pre
|
|
605
|
+
'/user/applications': ehrAuthorized,
|
|
606
|
+
'/user/test-data': ehrAuthorized,
|
|
578
607
|
};
|
|
579
608
|
|
|
580
|
-
const
|
|
581
|
-
<span class="
|
|
582
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = 'none';</span>
|
|
583
|
-
<span class="cstat-no" title="statement not covered" > expanded</span>
|
|
584
|
-
? collapsedBannerRef.current.setAttribute('tabIndex', '-1')
|
|
585
|
-
: collapsedBannerRef.current.setAttribute('tabIndex', ' ');
|
|
609
|
+
const navLinks = content.reduce(<span class="fstat-no" title="function not covered" >(a</span>cc, link) => {
|
|
610
|
+
const { url, label, className, listOfLinks, ...rest } = <span class="cstat-no" title="statement not covered" >link;</span>
|
|
586
611
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
612
|
+
// Any links failing the corresponding condition in the urlConditionMap are skipped
|
|
613
|
+
<span class="cstat-no" title="statement not covered" > if (url in urlConditionMap && !urlConditionMap[url]) {</span>
|
|
614
|
+
<span class="cstat-no" title="statement not covered" > return acc;</span>
|
|
590
615
|
}
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Whether the date is valid, i.e. not null
|
|
595
|
-
*
|
|
596
|
-
* @param {Date} date
|
|
597
|
-
* @return {Boolean}
|
|
598
|
-
*/
|
|
599
|
-
|
|
600
|
-
const isDateValid = (date) => {
|
|
601
|
-
return !isNaN(Date.parse(date));
|
|
602
|
-
};
|
|
603
|
-
/**
|
|
604
|
-
* Try to find this NotificationBanner instance in localStorage, or else add
|
|
605
|
-
* a minimal version of it, and mark it with a dateDismissed, then update
|
|
606
|
-
* localStorage.
|
|
607
|
-
*/
|
|
608
616
|
|
|
609
|
-
|
|
610
|
-
const
|
|
611
|
-
const
|
|
617
|
+
const IconComponent = <span class="cstat-no" title="statement not covered" >getIcon(url);</span>
|
|
618
|
+
const Icon = <span class="cstat-no" title="statement not covered" >IconComponent ? <IconComponent /> : null;</span>
|
|
619
|
+
const sharedProps = <span class="cstat-no" title="statement not covered" >{</span>
|
|
620
|
+
url,
|
|
621
|
+
label,
|
|
622
|
+
linkCallback,
|
|
623
|
+
className: className ? `${linkClass} ${className}` : linkClass,
|
|
624
|
+
};
|
|
612
625
|
|
|
613
|
-
<span class="cstat-no" title="statement not covered" >
|
|
614
|
-
<span class="cstat-no" title="statement not covered" >
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
626
|
+
const { pathname, hash } = <span class="cstat-no" title="statement not covered" >window.location;</span>
|
|
627
|
+
const filteredListOfLinks = <span class="cstat-no" title="statement not covered" >(listOfLinks || []).filter(<span class="fstat-no" title="function not covered" >(s</span>ublink) => {</span>
|
|
628
|
+
<span class="cstat-no" title="statement not covered" > return !(sublink.url in urlConditionMap && !urlConditionMap[sublink.url]);</span>
|
|
629
|
+
});
|
|
630
|
+
<span class="cstat-no" title="statement not covered" > if (</span>
|
|
631
|
+
filteredListOfLinks?.length > 0 &&
|
|
632
|
+
(pathname === url ||
|
|
633
|
+
filteredListOfLinks.some(
|
|
634
|
+
<span class="fstat-no" title="function not covered" > (s</span>ublink) =>
|
|
635
|
+
<span class="cstat-no" title="statement not covered" > pathname === sublink.url || `${pathname}${hash}` === sublink.url</span>
|
|
636
|
+
))
|
|
637
|
+
) {
|
|
638
|
+
<span class="cstat-no" title="statement not covered" > acc.push(</span>
|
|
639
|
+
<NavLinkDrawer
|
|
640
|
+
key={`nav-drawer-${url}-${label}`}
|
|
641
|
+
leftIcon={Icon}
|
|
642
|
+
listOfLinks={filteredListOfLinks}
|
|
643
|
+
isExpanded={isExpanded}
|
|
644
|
+
staticDrawer={false}
|
|
645
|
+
openByDefault
|
|
646
|
+
isAlwaysOpen
|
|
647
|
+
{...sharedProps}
|
|
648
|
+
{...rest}
|
|
649
|
+
/>
|
|
623
650
|
);
|
|
624
651
|
} else {
|
|
625
|
-
<span class="cstat-no" title="statement not covered" >
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
|
|
652
|
+
<span class="cstat-no" title="statement not covered" > acc.push(</span>
|
|
653
|
+
<NavLinkInline
|
|
654
|
+
key={`nav-link-${url}-${label}`}
|
|
655
|
+
icon={Icon}
|
|
656
|
+
useTooltips={useTooltips}
|
|
657
|
+
showLabel={isExpanded}
|
|
658
|
+
{...sharedProps}
|
|
659
|
+
{...rest}
|
|
660
|
+
/>
|
|
634
661
|
);
|
|
635
662
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Callback when the user dimisses a notification. Mark it as dismissed in
|
|
640
|
-
* localStorage, empty the contents, and dispatch a custom event to notify
|
|
641
|
-
* any observers that it has been dismissed.
|
|
642
|
-
*/
|
|
643
|
-
|
|
644
|
-
const collapseNotification = <span class="fstat-no" title="function not covered" >(e</span>) => {
|
|
645
|
-
<span class="cstat-no" title="statement not covered" > e.stopPropagation();</span>
|
|
646
|
-
<span class="cstat-no" title="statement not covered" > markNotificationClosed();</span>
|
|
647
|
-
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute('tabIndex', ' ');</span>
|
|
648
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = 'height .2s ease-out';</span>
|
|
649
|
-
|
|
650
|
-
<span class="cstat-no" title="statement not covered" > setExpanded(false);</span>
|
|
651
|
-
<span class="cstat-no" title="statement not covered" > setHeight(`${collapsedWrapperRef.current.offsetHeight}px`);</span>
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
const expandNotification = <span class="fstat-no" title="function not covered" >()</span> => {
|
|
655
|
-
<span class="cstat-no" title="statement not covered" > collapsedBannerRef.current.setAttribute('tabIndex', '-1');</span>
|
|
656
|
-
<span class="cstat-no" title="statement not covered" > bannerContainerRef.current.style.transition = 'height .2s ease-out';</span>
|
|
657
|
-
<span class="cstat-no" title="statement not covered" > setExpanded(true);</span>
|
|
658
|
-
<span class="cstat-no" title="statement not covered" > setHeight('100%');</span>
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Render the notification if it has any contents.
|
|
663
|
-
*
|
|
664
|
-
* @return {String} HTML content
|
|
665
|
-
*/
|
|
663
|
+
<span class="cstat-no" title="statement not covered" > return acc;</span>
|
|
664
|
+
}, []);
|
|
666
665
|
|
|
667
666
|
return (
|
|
668
|
-
<
|
|
669
|
-
|
|
670
|
-
<
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
>
|
|
677
|
-
<ExpandedView
|
|
678
|
-
label={label}
|
|
679
|
-
expanded={expanded}
|
|
680
|
-
content={content}
|
|
681
|
-
dismissable={dismissable}
|
|
682
|
-
collapseNotification={collapseNotification}
|
|
683
|
-
/>
|
|
684
|
-
|
|
685
|
-
<CollapsedView
|
|
686
|
-
expandNotification={expandNotification}
|
|
687
|
-
label={label}
|
|
688
|
-
ref={{ collapsedWrapperRef, collapsedBannerRef }}
|
|
689
|
-
/>
|
|
690
|
-
</div>
|
|
691
|
-
)}
|
|
692
|
-
</>
|
|
667
|
+
<div className="sidebar-content">
|
|
668
|
+
<AnimationGroup display={isExpanded}>
|
|
669
|
+
<h1 className="label">{name}</h1>
|
|
670
|
+
</AnimationGroup>
|
|
671
|
+
<div className="level-one-nav animation-flat">
|
|
672
|
+
<NavLinkContainer listOfLinks={navLinks} />
|
|
673
|
+
</div>
|
|
674
|
+
</div>
|
|
693
675
|
);
|
|
694
676
|
};
|
|
695
677
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
enabled: PropTypes.bool,
|
|
705
|
-
label: PropTypes.string,
|
|
706
|
-
}),
|
|
678
|
+
LevelOneContent.propTypes = {
|
|
679
|
+
isExpanded: PropTypes.bool,
|
|
680
|
+
config: PropTypes.object,
|
|
681
|
+
levelOneContent: PropTypes.shape({
|
|
682
|
+
default: PropTypes.arrayOf(PropTypes.object),
|
|
683
|
+
devPre: PropTypes.arrayOf(PropTypes.object),
|
|
684
|
+
viewer: PropTypes.arrayOf(PropTypes.object),
|
|
685
|
+
internalReviewers: PropTypes.arrayOf(PropTypes.object),
|
|
707
686
|
}),
|
|
708
687
|
};
|
|
709
688
|
|
|
710
|
-
|
|
711
|
-
result: {
|
|
712
|
-
content: {
|
|
713
|
-
color: 'blue',
|
|
714
|
-
content: null,
|
|
715
|
-
dismissable: true,
|
|
716
|
-
enabled: true,
|
|
717
|
-
label: 'Update',
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
export default withGetConfig(NotificationBanner, {
|
|
723
|
-
timeout: 5,
|
|
724
|
-
url: '/config/notification',
|
|
725
|
-
localStorageName: 'active_notification',
|
|
726
|
-
equalityCheckExclude: ['dateDismissed', 'dateUpdated'],
|
|
727
|
-
defaultContent: {},
|
|
728
|
-
});
|
|
689
|
+
export default LevelOneContent;
|
|
729
690
|
</pre></td></tr></table></pre>
|
|
730
691
|
|
|
731
692
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -733,16 +694,16 @@ export default withGetConfig(NotificationBanner, {
|
|
|
733
694
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
734
695
|
Code coverage generated by
|
|
735
696
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
736
|
-
at
|
|
697
|
+
at Fri Apr 29 2022 13:58:50 GMT-0400 (Eastern Daylight Time)
|
|
737
698
|
</div>
|
|
738
|
-
<script src="
|
|
699
|
+
<script src="../../../prettify.js"></script>
|
|
739
700
|
<script>
|
|
740
701
|
window.onload = function () {
|
|
741
702
|
prettyPrint();
|
|
742
703
|
};
|
|
743
704
|
</script>
|
|
744
|
-
<script src="
|
|
745
|
-
<script src="
|
|
705
|
+
<script src="../../../sorter.js"></script>
|
|
706
|
+
<script src="../../../block-navigation.js"></script>
|
|
746
707
|
</body>
|
|
747
708
|
</html>
|
|
748
709
|
|