Skip to content

Commit

Permalink
Merge pull request #1357 from Enterprise-CMCS/master
Browse files Browse the repository at this point in the history
Special hot-fix deployment OY2 25078 and 25093
  • Loading branch information
Dark-Knight-1313 authored Aug 31, 2023
2 parents 14709c9 + 7546188 commit 73a5b92
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 7 deletions.
5 changes: 5 additions & 0 deletions services/common/type/initialWaiverWithdraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ export const initialWaiverWithdraw = {
"Pending - Approval",
"RAI Issued",
],
secondClockStatuses: [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
],
};
5 changes: 5 additions & 0 deletions services/common/type/medicaidSPA.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ export const medicaidSPA = {
"submitterName",
"submitterEmail",
],
secondClockStatuses: [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
],
};
5 changes: 5 additions & 0 deletions services/common/type/waiverAmendment.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export const waiverAmendment = {
"parentId",
"parentType",
],
secondClockStatuses: [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
],
};

export const waiverAmendmentB4 = {
Expand Down
5 changes: 5 additions & 0 deletions services/common/type/waiverAppendixK.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ export const waiverAppendixK = {
"waiverAuthority",
"title",
],
secondClockStatuses: [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
],
};
5 changes: 5 additions & 0 deletions services/common/type/waiverRenewal.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export const waiverRenewal = {
"parentId",
"parentType",
],
secondClockStatuses: [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
],
};

export const waiverRenewalB4 = {
Expand Down
8 changes: 7 additions & 1 deletion services/ui-src/src/components/SearchAndFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,13 @@ function DateFilter({
inThePast,
}: FilterProps & { inThePast?: boolean }) {
const onChangeSelection = useCallback(
(value) => setFilter(value ?? []),
(value) => {
value !== null && value.length
? /* Filters come in an array with 2 dates, the earlier always at
* index 0, the later date at index 1. */
setFilter([startOfDay(value[0]), endOfDay(value[1])])
: setFilter([]);
},
[setFilter]
);
const ranges: { label: string; value: [Date, Date] }[] = useMemo(
Expand Down
1 change: 1 addition & 0 deletions services/ui-src/src/libs/detailLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type OneMACDetail = {
showReviewTeam: boolean;
allowWaiverExtension: boolean;
attachmentsHeading: string;
secondClockStatuses?: string[];
} & Partial<PackageType>;
export const blankBox: AttributeDetail = {
heading: "",
Expand Down
8 changes: 2 additions & 6 deletions services/ui-src/src/page/section/DetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@ export const DetailSection = ({
setAlertCode: (code: string) => void;
}) => {
const { userProfile } = useAppContext() ?? {};
const secondClockStatuses = [
"Pending",
"Pending - Concurrence",
"Pending - Approval",
];

const downloadInfoText =
"Documents available on this page may not reflect the actual documents that were approved by CMS. Please refer to your CMS Point of Contact for the approved documents.";
Expand All @@ -176,7 +171,8 @@ export const DetailSection = ({
</Review>
{/* Displays 2nd Clock subtitle under status if status is pending (sans Pending - RAI) and
latestRaiResponseTimestamp is present */}
{secondClockStatuses.includes(detail.currentStatus) &&
{pageConfig.secondClockStatuses &&
pageConfig.secondClockStatuses.includes(detail.currentStatus) &&
detail?.latestRaiResponseTimestamp && <span>2nd Clock</span>}
{pageConfig.show90thDayInfo && ninetyDayText !== "N/A" && (
<Review heading="90th Day">
Expand Down

0 comments on commit 73a5b92

Please sign in to comment.