qpp-style 9.34.3 → 9.34.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/coverage/clover.xml +139 -142
- package/coverage/coverage-final.json +13 -12
- package/coverage/lcov-report/Infotip.jsx.html +298 -0
- package/coverage/lcov-report/InfotipContent.jsx.html +223 -0
- package/coverage/lcov-report/InfotipIcon.jsx.html +208 -0
- package/coverage/lcov-report/index.html +51 -51
- package/coverage/lcov-report/index.js.html +94 -0
- package/coverage/lcov-report/react/components/Accordion/index.html +1 -1
- package/coverage/lcov-report/react/components/Accordion/index.jsx.html +14 -14
- package/coverage/lcov-report/react/components/Button/index.html +1 -1
- package/coverage/lcov-report/react/components/Button/index.js.html +16 -16
- package/coverage/lcov-report/react/components/Dropdown/index.html +1 -1
- package/coverage/lcov-report/react/components/Dropdown/index.js.html +10 -10
- package/coverage/lcov-report/react/components/Error/Collapsible.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Error/ErrorUI.jsx.html +5 -5
- package/coverage/lcov-report/react/components/Error/error.js.html +4 -4
- package/coverage/lcov-report/react/components/Error/index.html +1 -1
- package/coverage/lcov-report/react/components/Footer/FooterUI.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Footer/SocialLinks.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/Subscribe.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Footer/footer.js.html +5 -5
- 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 +9 -9
- package/coverage/lcov-report/react/components/Header/HeaderCancel.jsx.html +3 -3
- package/coverage/lcov-report/react/components/Header/HeaderContainer.jsx.html +22 -16
- package/coverage/lcov-report/react/components/Header/HeaderLogo.jsx.html +64 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuButton.js.html +8 -8
- package/coverage/lcov-report/react/components/Header/HeaderMenuItem.jsx.html +38 -38
- package/coverage/lcov-report/react/components/Header/HeaderMenuLink.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMenuSignOutButton.js.html +10 -10
- package/coverage/lcov-report/react/components/Header/HeaderMobileButton.js.html +5 -5
- package/coverage/lcov-report/react/components/Header/HeaderUI.jsx.html +17 -14
- package/coverage/lcov-report/react/components/Header/HelpIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/ImpersonatorBanner.jsx.html +25 -25
- package/coverage/lcov-report/react/components/Header/NavigationButtonIcon.jsx.html +2 -2
- package/coverage/lcov-report/react/components/Header/header.js.html +4 -4
- package/coverage/lcov-report/react/components/Header/hooks.js.html +9 -9
- package/coverage/lcov-report/react/components/Header/index.html +13 -13
- package/coverage/lcov-report/react/components/Header/utag-helpers.js.html +2 -2
- package/coverage/lcov-report/react/components/Infotip/Infotip.jsx.html +41 -41
- package/coverage/lcov-report/react/components/Infotip/InfotipContent.jsx.html +18 -18
- package/coverage/lcov-report/react/components/Infotip/InfotipIcon.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Infotip/index.html +38 -23
- package/coverage/lcov-report/react/components/Infotip/index.js.html +2 -2
- package/coverage/lcov-report/react/components/Modal/LegacyModal.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Modal/Modal.jsx.html +11 -11
- package/coverage/lcov-report/react/components/Modal/index.html +1 -1
- package/coverage/lcov-report/react/components/Modal/index.jsx.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/CollapsedView.js.html +5 -5
- package/coverage/lcov-report/react/components/NotificationBanner/ExpandedView.js.html +6 -6
- package/coverage/lcov-report/react/components/NotificationBanner/index.html +1 -1
- package/coverage/lcov-report/react/components/NotificationBanner/index.js.html +29 -29
- package/coverage/lcov-report/react/components/SanitizedContent/index.html +1 -1
- package/coverage/lcov-report/react/components/SanitizedContent/index.jsx.html +178 -178
- package/coverage/lcov-report/react/components/Session/Session.jsx.html +9 -9
- package/coverage/lcov-report/react/components/Session/SessionDialogWrapped.jsx.html +4 -4
- package/coverage/lcov-report/react/components/Session/index.html +1 -1
- package/coverage/lcov-report/react/components/Session/index.jsx.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/AnimationGroup.jsx.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/AnimationGroup/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/LevelOneContent.jsx.html +11 -11
- 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 +6 -6
- package/coverage/lcov-report/react/components/SideNav/Content/SelectRole/utils.js.html +23 -23
- package/coverage/lcov-report/react/components/SideNav/Content/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Content/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/Details/IndividualDetails.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Details/PracticeDetails.jsx.html +4 -4
- package/coverage/lcov-report/react/components/SideNav/Details/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Details/index.js.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/CmsSwitchLink.jsx.html +5 -5
- package/coverage/lcov-report/react/components/SideNav/Links/NavItemInline.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkContainer.jsx.html +3 -3
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkDrawer.jsx.html +33 -33
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkInline.jsx.html +15 -15
- package/coverage/lcov-report/react/components/SideNav/Links/NavLinkToggle.jsx.html +8 -8
- package/coverage/lcov-report/react/components/SideNav/Links/index.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/Links/index.js.html +6 -6
- package/coverage/lcov-report/react/components/SideNav/UI/SideNavUI.jsx.html +36 -126
- package/coverage/lcov-report/react/components/SideNav/UI/default-markup.js.html +1 -1
- package/coverage/lcov-report/react/components/SideNav/UI/index.html +19 -19
- package/coverage/lcov-report/react/components/SideNav/UI/index.js.html +2 -2
- package/coverage/lcov-report/react/components/SideNav/helpers.js.html +96 -84
- package/coverage/lcov-report/react/components/SideNav/index.html +10 -10
- package/coverage/lcov-report/react/components/SideNav/index.js.html +4 -4
- package/coverage/lcov-report/react/components/hooks/index.html +1 -1
- package/coverage/lcov-report/react/components/hooks/useGetConfig.js.html +7 -7
- 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/session/index.html +20 -20
- package/coverage/lcov-report/react/session/index.js.html +1 -1
- package/coverage/lcov-report/react/session/isAuthV2.js.html +2 -2
- package/coverage/lcov-report/react/session/logout.js.html +43 -43
- package/coverage/lcov-report/react/session/refresh.js.html +2 -2
- package/coverage/lcov-report/react/session/ttl.js.html +2 -2
- package/coverage/lcov.info +253 -258
- 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 +14 -20
- package/test/components/FooterUI.test.js +18 -19
- package/test/components/Infotip.test.js +29 -31
- package/test/session/session.test.js +64 -65
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">45.
|
|
26
|
+
<span class="strong">45.91% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>45/98</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">46.
|
|
47
|
+
<span class="strong">46.87% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>45/96</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -458,7 +458,11 @@
|
|
|
458
458
|
<a name='L393'></a><a href='#L393'>393</a>
|
|
459
459
|
<a name='L394'></a><a href='#L394'>394</a>
|
|
460
460
|
<a name='L395'></a><a href='#L395'>395</a>
|
|
461
|
-
<a name='L396'></a><a href='#L396'>396</a
|
|
461
|
+
<a name='L396'></a><a href='#L396'>396</a>
|
|
462
|
+
<a name='L397'></a><a href='#L397'>397</a>
|
|
463
|
+
<a name='L398'></a><a href='#L398'>398</a>
|
|
464
|
+
<a name='L399'></a><a href='#L399'>399</a>
|
|
465
|
+
<a name='L400'></a><a href='#L400'>400</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
462
466
|
<span class="cline-any cline-neutral"> </span>
|
|
463
467
|
<span class="cline-any cline-neutral"> </span>
|
|
464
468
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -814,6 +818,10 @@
|
|
|
814
818
|
<span class="cline-any cline-neutral"> </span>
|
|
815
819
|
<span class="cline-any cline-yes">3x</span>
|
|
816
820
|
<span class="cline-any cline-yes">1x</span>
|
|
821
|
+
<span class="cline-any cline-yes">1x</span>
|
|
822
|
+
<span class="cline-any cline-neutral"> </span>
|
|
823
|
+
<span class="cline-any cline-neutral"> </span>
|
|
824
|
+
<span class="cline-any cline-neutral"> </span>
|
|
817
825
|
<span class="cline-any cline-neutral"> </span>
|
|
818
826
|
<span class="cline-any cline-neutral"> </span>
|
|
819
827
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -853,7 +861,7 @@
|
|
|
853
861
|
<span class="cline-any cline-neutral"> </span>
|
|
854
862
|
<span class="cline-any cline-neutral"> </span>
|
|
855
863
|
<span class="cline-any cline-neutral"> </span>
|
|
856
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import cookie from
|
|
864
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import cookie from "cookie";
|
|
857
865
|
import {
|
|
858
866
|
AccountHomeIcon,
|
|
859
867
|
DashboardIcon,
|
|
@@ -871,19 +879,19 @@ import {
|
|
|
871
879
|
ManageDocumentsIcon,
|
|
872
880
|
AuthorContentIcon,
|
|
873
881
|
RegistrationIcon,
|
|
874
|
-
} from
|
|
875
|
-
import { isReviewerRole, isContentMgmtRole } from
|
|
882
|
+
} from "../../lib/SvgComponents";
|
|
883
|
+
import { isReviewerRole, isContentMgmtRole } from "./Content/SelectRole/utils";
|
|
876
884
|
|
|
877
|
-
const submissionsUrl =
|
|
878
|
-
const dashboardUrl =
|
|
879
|
-
const manageUrl =
|
|
885
|
+
const submissionsUrl = "/user/submissions";
|
|
886
|
+
const dashboardUrl = "/user/dashboard";
|
|
887
|
+
const manageUrl = "/user/manage-access";
|
|
880
888
|
const feedbackUrl = `${submissionsUrl}/feedback`;
|
|
881
889
|
const physicianCompareUrl = `${submissionsUrl}/doctors-clinicians-preview`;
|
|
882
890
|
const reportsPortalUrl = `${submissionsUrl}/reports`;
|
|
883
891
|
const facilityBasedPreviewBaseUrl = `${submissionsUrl}/facility-based-preview`;
|
|
884
|
-
const viewingToolUrl =
|
|
885
|
-
const contentMgrDashboardUrl =
|
|
886
|
-
const registrationUrl =
|
|
892
|
+
const viewingToolUrl = "/user/helpdesk-viewing-tool";
|
|
893
|
+
const contentMgrDashboardUrl = "/user/content-management";
|
|
894
|
+
const registrationUrl = "/user/registration/";
|
|
887
895
|
|
|
888
896
|
const performanceFeedbackUrl = <span class="fstat-no" title="function not covered" >(p</span>erformanceYear) => {
|
|
889
897
|
<span class="cstat-no" title="statement not covered" > if (performanceYear) {</span>
|
|
@@ -905,12 +913,12 @@ const handleNavigation = <span class="fstat-no" title="function not covered" >(e
|
|
|
905
913
|
<span class="cstat-no" title="statement not covered" > linkCallbackFunction(`${pathname}${hash}${search}`);</span>
|
|
906
914
|
}
|
|
907
915
|
<span class="cstat-no" title="statement not covered" > window?.utag?.link({</span>
|
|
908
|
-
ga_event_category:
|
|
909
|
-
ga_event_action:
|
|
916
|
+
ga_event_category: "side navbar",
|
|
917
|
+
ga_event_action: "click",
|
|
910
918
|
ga_event_label: label,
|
|
911
919
|
page_title: `${window.document.title}`,
|
|
912
920
|
page_url: `${window.location.pathname}`,
|
|
913
|
-
event:
|
|
921
|
+
event: "trackEvent",
|
|
914
922
|
});
|
|
915
923
|
};
|
|
916
924
|
|
|
@@ -929,22 +937,22 @@ const getIcon = <span class="fstat-no" title="function not covered" >(u</span>rl
|
|
|
929
937
|
[submissionsUrl]: AccountHomeIcon,
|
|
930
938
|
[facilityBasedPreviewBaseUrl]: FacilityBasedPreviewIcon,
|
|
931
939
|
[registrationUrl]: RegistrationIcon,
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
940
|
+
"/developers": HelpSupportIcon,
|
|
941
|
+
"/resources/help-and-support": HelpSupportIcon,
|
|
942
|
+
"/user/apm-incentive-payments": PaymentIcon,
|
|
943
|
+
"/user/applications": MyApplicationsIcon,
|
|
944
|
+
"/user/exception/#/landing": HardshipIcon,
|
|
945
|
+
"/user/targeted-review/#/landing": TargetIcon,
|
|
946
|
+
"/user/test-data": MyTestDataIcon,
|
|
947
|
+
"/user/self-nomination/#/landing": IndividualReporting,
|
|
948
|
+
"/user/reviewers": AccountHomeIcon,
|
|
949
|
+
"/reviewer/exception": HardshipIcon,
|
|
950
|
+
"/reviewer/targeted-review": TargetIcon,
|
|
951
|
+
"/self-nomination": IndividualReporting,
|
|
952
|
+
"/case-management": FacilityBasedPreviewIcon,
|
|
945
953
|
[contentMgrDashboardUrl]: AccountHomeIcon,
|
|
946
|
-
|
|
947
|
-
|
|
954
|
+
"Manage Documents": ManageDocumentsIcon,
|
|
955
|
+
"Author Content": AuthorContentIcon,
|
|
948
956
|
};
|
|
949
957
|
|
|
950
958
|
<span class="cstat-no" title="statement not covered" > if (linkLabel) <span class="cstat-no" title="statement not covered" >return icons[linkLabel];</span></span>
|
|
@@ -952,20 +960,20 @@ const getIcon = <span class="fstat-no" title="function not covered" >(u</span>rl
|
|
|
952
960
|
};
|
|
953
961
|
|
|
954
962
|
const singleRoleContentMap = {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
963
|
+
"QPP Content Management - Author": "contentManager",
|
|
964
|
+
"QPP Content Management - Approver": "contentManager",
|
|
965
|
+
"QPP Content Management - Admin": "contentManager",
|
|
966
|
+
"QPP Front-end - Author": "contentManager",
|
|
967
|
+
"QPP Self-Nomination": "internalReviewers",
|
|
968
|
+
"QPP Targeted Review & Exceptions": "internalReviewers",
|
|
969
|
+
"QPP Case Management - PIMMS Reviewer": "internalReviewers",
|
|
970
|
+
"QPP Case Management - ACO PAC Reviewer": "internalReviewers",
|
|
971
|
+
"QPP Case Management - CMS Reviewer": "internalReviewers",
|
|
964
972
|
};
|
|
965
973
|
|
|
966
974
|
const multiRoleContentMap = {
|
|
967
|
-
Reviewer:
|
|
968
|
-
|
|
975
|
+
Reviewer: "internalReviewers",
|
|
976
|
+
"Content Manager": "contentManager",
|
|
969
977
|
};
|
|
970
978
|
|
|
971
979
|
const replaceDefaultContentMgrLinks = <span class="fstat-no" title="function not covered" >(d</span>efaultContent) => {
|
|
@@ -974,15 +982,15 @@ const replaceDefaultContentMgrLinks = <span class="fstat-no" title="function not
|
|
|
974
982
|
...defaultContent,
|
|
975
983
|
contentManager: [
|
|
976
984
|
defaultContent.contentManager.find(
|
|
977
|
-
<span class="fstat-no" title="function not covered" > (o</span>bj) => <span class="cstat-no" title="statement not covered" >obj.label ===
|
|
985
|
+
<span class="fstat-no" title="function not covered" > (o</span>bj) => <span class="cstat-no" title="statement not covered" >obj.label === "Dashboard Home",</span>
|
|
978
986
|
),
|
|
979
987
|
{
|
|
980
988
|
url: `${host}.qpp.cms.gov/cm/`,
|
|
981
|
-
label:
|
|
989
|
+
label: "Manage Documents",
|
|
982
990
|
},
|
|
983
991
|
{
|
|
984
992
|
url: `${host}.qpp.cms.gov/content-management/`,
|
|
985
|
-
label:
|
|
993
|
+
label: "Author Content",
|
|
986
994
|
},
|
|
987
995
|
],
|
|
988
996
|
};
|
|
@@ -1042,28 +1050,28 @@ const isMultiRoleUser = (docCookie) => {
|
|
|
1042
1050
|
// Filter out test internalCms authz
|
|
1043
1051
|
const filteredInternalAuthz = internalAuthz.filter(<span class="fstat-no" title="function not covered" >(i</span>nternalAuth) => {
|
|
1044
1052
|
<span class="cstat-no" title="statement not covered" > return (</span>
|
|
1045
|
-
internalAuth !==
|
|
1046
|
-
internalAuth !==
|
|
1053
|
+
internalAuth !== "Test internalCms Resource" &&
|
|
1054
|
+
internalAuth !== "Test internalCms Resource 2"
|
|
1047
1055
|
);
|
|
1048
1056
|
});
|
|
1049
1057
|
|
|
1050
1058
|
filteredInternalAuthz.forEach(<span class="fstat-no" title="function not covered" >(e</span>lement) => {
|
|
1051
1059
|
<span class="cstat-no" title="statement not covered" > if (isReviewerRole(element)) {</span>
|
|
1052
|
-
<span class="cstat-no" title="statement not covered" > return activeRoles.add(
|
|
1060
|
+
<span class="cstat-no" title="statement not covered" > return activeRoles.add("reviewer");</span>
|
|
1053
1061
|
}
|
|
1054
1062
|
<span class="cstat-no" title="statement not covered" > if (isContentMgmtRole(element)) {</span>
|
|
1055
|
-
<span class="cstat-no" title="statement not covered" > return activeRoles.add(
|
|
1063
|
+
<span class="cstat-no" title="statement not covered" > return activeRoles.add("content manager");</span>
|
|
1056
1064
|
}
|
|
1057
1065
|
<span class="cstat-no" title="statement not covered" > return activeRoles.add(element);</span>
|
|
1058
1066
|
});
|
|
1059
1067
|
|
|
1060
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (qpp_has_authorizations ===
|
|
1061
|
-
<span class="cstat-no" title="statement not covered" > activeRoles.add(
|
|
1068
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (qpp_has_authorizations === "true") {
|
|
1069
|
+
<span class="cstat-no" title="statement not covered" > activeRoles.add("qpp user");</span>
|
|
1062
1070
|
}
|
|
1063
1071
|
|
|
1064
|
-
<span class="missing-if-branch" title="if path not taken" >I</span>if (qpp_is_dev_pre ===
|
|
1072
|
+
<span class="missing-if-branch" title="if path not taken" >I</span>if (qpp_is_dev_pre === "true") {
|
|
1065
1073
|
<span class="cstat-no" title="statement not covered" > activeRoles.clear(); </span>// reset roles since there is no dropdown in devpre
|
|
1066
|
-
<span class="cstat-no" title="statement not covered" > activeRoles.add(
|
|
1074
|
+
<span class="cstat-no" title="statement not covered" > activeRoles.add("devpre user");</span>
|
|
1067
1075
|
}
|
|
1068
1076
|
|
|
1069
1077
|
return activeRoles.size > 1;
|
|
@@ -1084,20 +1092,20 @@ const transformCookieValues = <span class="fstat-no" title="function not covered
|
|
|
1084
1092
|
qpp_has_non_registry_authorizations,
|
|
1085
1093
|
} = <span class="cstat-no" title="statement not covered" >cookies;</span>
|
|
1086
1094
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
1087
|
-
canImpersonate: qpp_can_impersonate ===
|
|
1088
|
-
hasAuthorizations: qpp_has_authorizations ===
|
|
1089
|
-
hasApmPayments: user_has_apm_payments ===
|
|
1095
|
+
canImpersonate: qpp_can_impersonate === "true",
|
|
1096
|
+
hasAuthorizations: qpp_has_authorizations === "true",
|
|
1097
|
+
hasApmPayments: user_has_apm_payments === "true",
|
|
1090
1098
|
internalReviewerNames: qpp_cms_internal_authorized
|
|
1091
1099
|
? JSON.parse(qpp_cms_internal_authorized)
|
|
1092
1100
|
: [],
|
|
1093
|
-
ehrAuthorized: qpp_ehr_authorized ===
|
|
1101
|
+
ehrAuthorized: qpp_ehr_authorized === "true",
|
|
1094
1102
|
hasNonRegistryAuthorizations:
|
|
1095
|
-
qpp_has_non_registry_authorizations ===
|
|
1103
|
+
qpp_has_non_registry_authorizations === "true",
|
|
1096
1104
|
};
|
|
1097
1105
|
};
|
|
1098
1106
|
|
|
1099
1107
|
const permissionsByRole = {
|
|
1100
|
-
|
|
1108
|
+
"QPP User": {
|
|
1101
1109
|
canImpersonate: false,
|
|
1102
1110
|
hasAuthorizations: true,
|
|
1103
1111
|
hasApmPayments: true,
|
|
@@ -1106,17 +1114,17 @@ const permissionsByRole = {
|
|
|
1106
1114
|
hasAuthorizations: false,
|
|
1107
1115
|
hasApmPaymentss: false,
|
|
1108
1116
|
},
|
|
1109
|
-
|
|
1117
|
+
"Helpdesk Viewer": {
|
|
1110
1118
|
hasAuthorizations: false,
|
|
1111
1119
|
hasApmPayments: false,
|
|
1112
1120
|
hasNonRegistryAuthorizations: false,
|
|
1113
|
-
internalReviewerNames: [
|
|
1121
|
+
internalReviewerNames: ["QPP Helpdesk"],
|
|
1114
1122
|
},
|
|
1115
1123
|
// Helpdesk role && impersonating (use impersonated user authz values)
|
|
1116
1124
|
Impersonation: {
|
|
1117
|
-
internalReviewerNames: [
|
|
1125
|
+
internalReviewerNames: ["QPP Helpdesk"],
|
|
1118
1126
|
},
|
|
1119
|
-
|
|
1127
|
+
"Content Manager": {
|
|
1120
1128
|
hasAuthorizations: false,
|
|
1121
1129
|
hasApmPaymentss: false,
|
|
1122
1130
|
hasNonRegistryAuthorizations: false,
|
|
@@ -1146,7 +1154,7 @@ const loadUserPermissions = <span class="fstat-no" title="function not covered"
|
|
|
1146
1154
|
const parsedCookies = <span class="cstat-no" title="statement not covered" >cookie.parse(docCookie);</span>
|
|
1147
1155
|
const permissionValues = <span class="cstat-no" title="statement not covered" >transformCookieValues(parsedCookies);</span>
|
|
1148
1156
|
const impersonating = <span class="cstat-no" title="statement not covered" >isImpersonating(docCookie);</span>
|
|
1149
|
-
const role = <span class="cstat-no" title="statement not covered" >impersonating ?
|
|
1157
|
+
const role = <span class="cstat-no" title="statement not covered" >impersonating ? "Impersonation" : selectedRole;</span>
|
|
1150
1158
|
|
|
1151
1159
|
<span class="cstat-no" title="statement not covered" > if (role) {</span>
|
|
1152
1160
|
<span class="cstat-no" title="statement not covered" > return loadUserPermissionsByRole(role, permissionValues);</span>
|
|
@@ -1164,40 +1172,40 @@ const getUrlConditionMap = <span class="fstat-no" title="function not covered" >
|
|
|
1164
1172
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
1165
1173
|
[dashboardUrl]: userPermissions.hasAuthorizations,
|
|
1166
1174
|
[feedbackUrl]: userPermissions.hasAuthorizations,
|
|
1167
|
-
|
|
1175
|
+
"/user/apm-incentive-payments": userPermissions.hasApmPayments,
|
|
1168
1176
|
[physicianCompareUrl]: userPermissions.hasNonRegistryAuthorizations,
|
|
1169
1177
|
[registrationUrl]: userPermissions.hasAuthorizations,
|
|
1170
1178
|
[reportsPortalUrl]: userPermissions.hasAuthorizations,
|
|
1171
1179
|
[facilityBasedPreviewBaseUrl]: userPermissions.hasAuthorizations,
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1180
|
+
"/user/helpdesk-viewing-tool": userPermissions.canImpersonate,
|
|
1181
|
+
"/reviewer/exception": userPermissions.internalReviewerNames?.includes(
|
|
1182
|
+
"QPP Targeted Review & Exceptions",
|
|
1175
1183
|
),
|
|
1176
|
-
|
|
1184
|
+
"/reviewer/targeted-review":
|
|
1177
1185
|
userPermissions.internalReviewerNames?.includes(
|
|
1178
|
-
|
|
1186
|
+
"QPP Targeted Review & Exceptions",
|
|
1179
1187
|
),
|
|
1180
|
-
|
|
1181
|
-
|
|
1188
|
+
"/self-nomination": userPermissions.internalReviewerNames?.includes(
|
|
1189
|
+
"QPP Self-Nomination",
|
|
1182
1190
|
),
|
|
1183
1191
|
|
|
1184
|
-
|
|
1192
|
+
"/case-management": userPermissions.internalReviewerNames?.some(<span class="fstat-no" title="function not covered" >(v</span>al) =>
|
|
1185
1193
|
<span class="cstat-no" title="statement not covered" > [</span>
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1194
|
+
"QPP Case Management - PIMMS Reviewer",
|
|
1195
|
+
"QPP Case Management - ACO PAC Reviewer",
|
|
1196
|
+
"QPP Case Management - CMS Reviewer",
|
|
1189
1197
|
].includes(val),
|
|
1190
1198
|
),
|
|
1191
1199
|
|
|
1192
1200
|
// dev pre
|
|
1193
|
-
|
|
1194
|
-
|
|
1201
|
+
"/user/applications": userPermissions.ehrAuthorized,
|
|
1202
|
+
"/user/test-data": userPermissions.ehrAuthorized,
|
|
1195
1203
|
};
|
|
1196
1204
|
};
|
|
1197
1205
|
|
|
1198
1206
|
const isImpersonationLink = <span class="fstat-no" title="function not covered" >(d</span>ocCookie, linkLabel) => {
|
|
1199
1207
|
<span class="cstat-no" title="statement not covered" > if (!isImpersonating(docCookie)) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
1200
|
-
const helpdeskLinks = <span class="cstat-no" title="statement not covered" >[
|
|
1208
|
+
const helpdeskLinks = <span class="cstat-no" title="statement not covered" >["Account Home", "Manage Access", "Help and Support"];</span>
|
|
1201
1209
|
<span class="cstat-no" title="statement not covered" > return !helpdeskLinks.includes(linkLabel);</span>
|
|
1202
1210
|
};
|
|
1203
1211
|
|
|
@@ -1208,7 +1216,11 @@ const isImpersonationLink = <span class="fstat-no" title="function not covered"
|
|
|
1208
1216
|
* @returns {void}
|
|
1209
1217
|
*/
|
|
1210
1218
|
const setSideNavExpanded = (_document, value) => {
|
|
1211
|
-
|
|
1219
|
+
const secure = _document.location.protocol === "https:";
|
|
1220
|
+
_document.cookie = cookie.serialize("qpp_side_nav_expanded", value, {
|
|
1221
|
+
path: "/",
|
|
1222
|
+
secure,
|
|
1223
|
+
});
|
|
1212
1224
|
};
|
|
1213
1225
|
|
|
1214
1226
|
/**
|
|
@@ -1219,10 +1231,10 @@ const setSideNavExpanded = (_document, value) => {
|
|
|
1219
1231
|
const isSideNavExpanded = (_document) => {
|
|
1220
1232
|
const parsedCookies = cookie.parse(_document.cookie);
|
|
1221
1233
|
if (parsedCookies.qpp_side_nav_expanded === undefined) {
|
|
1222
|
-
setSideNavExpanded(_document,
|
|
1234
|
+
setSideNavExpanded(_document, "true");
|
|
1223
1235
|
return true;
|
|
1224
1236
|
}
|
|
1225
|
-
return parsedCookies.qpp_side_nav_expanded ===
|
|
1237
|
+
return parsedCookies.qpp_side_nav_expanded === "true";
|
|
1226
1238
|
};
|
|
1227
1239
|
|
|
1228
1240
|
module.exports = {
|
|
@@ -1255,7 +1267,7 @@ module.exports = {
|
|
|
1255
1267
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1256
1268
|
Code coverage generated by
|
|
1257
1269
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1258
|
-
at 2023-
|
|
1270
|
+
at 2023-10-09T20:35:15.116Z
|
|
1259
1271
|
</div>
|
|
1260
1272
|
<script src="../../../prettify.js"></script>
|
|
1261
1273
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">45% </span>
|
|
26
|
+
<span class="strong">45.54% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>46/101</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">46.46% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>46/99</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file low" data-value="helpers.js"><a href="helpers.js.html">helpers.js</a></td>
|
|
83
|
-
<td data-value="45.
|
|
83
|
+
<td data-value="45.91" class="pic low">
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 45%"></div><div class="cover-empty" style="width: 55%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="45.
|
|
87
|
-
<td data-value="
|
|
86
|
+
<td data-value="45.91" class="pct low">45.91%</td>
|
|
87
|
+
<td data-value="98" class="abs low">45/98</td>
|
|
88
88
|
<td data-value="12.82" class="pct low">12.82%</td>
|
|
89
89
|
<td data-value="39" class="abs low">5/39</td>
|
|
90
90
|
<td data-value="15.78" class="pct low">15.78%</td>
|
|
91
91
|
<td data-value="19" class="abs low">3/19</td>
|
|
92
|
-
<td data-value="46.
|
|
93
|
-
<td data-value="
|
|
92
|
+
<td data-value="46.87" class="pct low">46.87%</td>
|
|
93
|
+
<td data-value="96" class="abs low">45/96</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-10-09T20:35:15.116Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../../prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
<span class="cline-any cline-neutral"> </span>
|
|
122
122
|
<span class="cline-any cline-neutral"> </span>
|
|
123
123
|
<span class="cline-any cline-neutral"> </span>
|
|
124
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
125
|
-
import { render } from
|
|
126
|
-
import { SideNavUI } from
|
|
124
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
125
|
+
import { render } from "react-dom";
|
|
126
|
+
import { SideNavUI } from "./UI";
|
|
127
127
|
|
|
128
128
|
const SideNav = <span class="fstat-no" title="function not covered" >(o</span>ptions = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> => {
|
|
129
129
|
const {
|
|
@@ -157,7 +157,7 @@ export default SideNav;
|
|
|
157
157
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
158
158
|
Code coverage generated by
|
|
159
159
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
160
|
-
at 2023-
|
|
160
|
+
at 2023-10-09T20:35:15.116Z
|
|
161
161
|
</div>
|
|
162
162
|
<script src="../../../prettify.js"></script>
|
|
163
163
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2023-
|
|
104
|
+
at 2023-10-09T20:35:15.116Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -213,9 +213,9 @@
|
|
|
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>
|
|
216
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from
|
|
217
|
-
import axios from
|
|
218
|
-
import { useState, useEffect } from
|
|
216
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React from "react";
|
|
217
|
+
import axios from "axios";
|
|
218
|
+
import { useState, useEffect } from "react";
|
|
219
219
|
|
|
220
220
|
// The content is populated with the following priority order:
|
|
221
221
|
// 1. Use the content in localStorage if it's there
|
|
@@ -223,8 +223,8 @@ import { useState, useEffect } from 'react';
|
|
|
223
223
|
// Hydrate the localStorage item with the response if localStorage item doesn't match call content.
|
|
224
224
|
// 3. If the call fails, use the default content
|
|
225
225
|
const useGetConfig = <span class="fstat-no" title="function not covered" >({</span>
|
|
226
|
-
url = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
227
|
-
localStorageName = <span class="branch-0 cbranch-no" title="branch not covered" >
|
|
226
|
+
url = <span class="branch-0 cbranch-no" title="branch not covered" >"",</span>
|
|
227
|
+
localStorageName = <span class="branch-0 cbranch-no" title="branch not covered" >"",</span>
|
|
228
228
|
equalityCheckExclude = <span class="branch-0 cbranch-no" title="branch not covered" >[],</span>
|
|
229
229
|
timeout = <span class="branch-0 cbranch-no" title="branch not covered" >30,</span>
|
|
230
230
|
defaultContent,
|
|
@@ -232,7 +232,7 @@ const useGetConfig = <span class="fstat-no" title="function not covered" >({</sp
|
|
|
232
232
|
const [result, setResult] = <span class="cstat-no" title="statement not covered" >useState();</span>
|
|
233
233
|
|
|
234
234
|
<span class="cstat-no" title="statement not covered" > if (!url || !localStorageName) {</span>
|
|
235
|
-
<span class="cstat-no" title="statement not covered" > throw new Error(
|
|
235
|
+
<span class="cstat-no" title="statement not covered" > throw new Error("Arguments for url and localStorageName are required");</span>
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
<span class="cstat-no" title="statement not covered" > useEffect(<span class="fstat-no" title="function not covered" >()</span> => {</span>
|
|
@@ -295,7 +295,7 @@ export default useGetConfig;
|
|
|
295
295
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
296
296
|
Code coverage generated by
|
|
297
297
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
298
|
-
at 2023-
|
|
298
|
+
at 2023-10-09T20:35:15.116Z
|
|
299
299
|
</div>
|
|
300
300
|
<script src="../../../prettify.js"></script>
|
|
301
301
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2023-
|
|
104
|
+
at 2023-10-09T20:35:15.116Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -163,7 +163,7 @@ export default QppStyleComponents;
|
|
|
163
163
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
164
164
|
Code coverage generated by
|
|
165
165
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
166
|
-
at 2023-
|
|
166
|
+
at 2023-10-09T20:35:15.116Z
|
|
167
167
|
</div>
|
|
168
168
|
<script src="../prettify.js"></script>
|
|
169
169
|
<script>
|
|
@@ -166,7 +166,7 @@ Chevron.defaultProps = {
|
|
|
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 2023-
|
|
169
|
+
at 2023-10-09T20:35:15.116Z
|
|
170
170
|
</div>
|
|
171
171
|
<script src="../../prettify.js"></script>
|
|
172
172
|
<script>
|
|
@@ -2185,7 +2185,7 @@ ExpandLessIcon.defaultProps = {
|
|
|
2185
2185
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
2186
2186
|
Code coverage generated by
|
|
2187
2187
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
2188
|
-
at 2023-
|
|
2188
|
+
at 2023-10-09T20:35:15.116Z
|
|
2189
2189
|
</div>
|
|
2190
2190
|
<script src="../../prettify.js"></script>
|
|
2191
2191
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2023-
|
|
119
|
+
at 2023-10-09T20:35:15.116Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|