Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev rook #4819

Merged
merged 115 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
1cdd0a5
Create migration file for OIPC tables
milosdes Nov 15, 2023
92e416b
Update migration file
milosdes Nov 15, 2023
0b4cdd1
Create endpoints for OIPC data
milosdes Nov 15, 2023
7fd7782
Create OIPC models and service
milosdes Nov 15, 2023
7de0991
Initial commit / setup
Aman-Hundal Nov 15, 2023
8a699ea
Base design and fields completed. WIP finalziing style/design + incor…
Aman-Hundal Nov 16, 2023
12b41fb
Insert amend into Outcomes table
milosdes Nov 16, 2023
7f382c4
Added revised inputs per new ACS. Added additonal styling and added d…
Aman-Hundal Nov 17, 2023
2784479
Styling 1.0 completed. WIP State management + API Call + Final Styling
Aman-Hundal Nov 17, 2023
8ec3fc6
Merge pull request #4741 from bcgov/dev-rook-MD-4671
sumathi-thirumani Nov 17, 2023
89bab58
Draft commit.
Nov 17, 2023
2758073
OIPCData form/state management WIP
Aman-Hundal Nov 17, 2023
edb150d
Merge branch 'dev-rook-ST-4671' of https://github.com/bcgov/foi-flow …
Aman-Hundal Nov 20, 2023
aa65320
WIP Integration of BE + Inquiry Story + Saving of OIPC to BE + valida…
Aman-Hundal Nov 20, 2023
04ae6a4
Small code changes / fixes
Aman-Hundal Nov 20, 2023
d745a3e
Backend changes for oipcreview
milosdes Nov 20, 2023
59842f0
Frontend changes for OIPC review
milosdes Nov 20, 2023
e00f1b7
State mgmt code fixes
Aman-Hundal Nov 21, 2023
a37f06a
Remove unused imports
milosdes Nov 21, 2023
0181105
Changes to include descriptive value for masterdata + new date inlusion.
Nov 22, 2023
35c5a00
Changes to include descriptive value for inquiry outcome
Nov 22, 2023
214cc23
BE integration work
Aman-Hundal Nov 22, 2023
54f582a
Add OIPCReviewTypesReasons table and update endpoint
milosdes Nov 22, 2023
9f89644
BE integration -> fetch calles for master, transacntional oipc data c…
Aman-Hundal Nov 22, 2023
b179db6
Merge branch 'dev-rook-ST-4671' of https://github.com/bcgov/foi-flow …
Aman-Hundal Nov 22, 2023
88d45e1
BE integration completed. WIP Validation + BE Save
Aman-Hundal Nov 23, 2023
a593a5e
Update sql to insert with SELECT
milosdes Nov 23, 2023
025ce06
Inquiry Story/feature completed. WIP Validation + Save of OIPCDetails…
Aman-Hundal Nov 23, 2023
a8d4625
Validation work completed. WIP BE post/save + refactor + styling final
Aman-Hundal Nov 23, 2023
49ebfe6
Create RequestFlag component
milosdes Nov 23, 2023
9276b0e
Request Object Adjusted. Testing of save to BE WIP + refactor + styling
Aman-Hundal Nov 24, 2023
1d61bd6
Backend integration completed. WIP remaining stories/validations + re…
Aman-Hundal Nov 24, 2023
46795f4
Date picker validation completed
Aman-Hundal Nov 25, 2023
5f22bef
Bug fixes for communication between backend and frontend (getting/pos…
Aman-Hundal Nov 25, 2023
c518e51
Added further deletion validation to OIPC reviews. WIP outcome valida…
Aman-Hundal Nov 25, 2023
9549d51
code adjustment
Aman-Hundal Nov 27, 2023
aace890
Update requestflag component
milosdes Nov 27, 2023
912d9c9
Remove unused imports
milosdes Nov 27, 2023
c55a12a
Outcome validation WIP
Aman-Hundal Nov 27, 2023
c5fd590
Add RequestFlag component to FOIRequest
milosdes Nov 27, 2023
164a006
Merge branch 'test-rook-AH-4671-MD' into test-rook-AH-4671
milosdes Nov 27, 2023
d34aa81
outocme validation work completed. Testing wip
Aman-Hundal Nov 27, 2023
7b1c78a
Merge pull request #4772 from bcgov/test-rook-AH-4671-MD
Aman-Hundal Nov 27, 2023
c37f11e
Adjustments to fe disabling of outcomes
Aman-Hundal Nov 27, 2023
a4e4eef
Merge branch 'test-rook-AH-4671' of https://github.com/bcgov/foi-flow…
milosdes Nov 27, 2023
0df84fe
Redo layout to incorporate request flags
milosdes Nov 27, 2023
72794a3
All validation work completed. WIP Testing + refactor + restyling
Aman-Hundal Nov 28, 2023
3cbba72
Merge pull request #4785 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 28, 2023
fa9acac
Fix for oipc outcome id issue.
Nov 28, 2023
2bc0e8a
closedate exclude blank value
Nov 28, 2023
87042f5
Update layout for RequestFlags
milosdes Nov 28, 2023
a8be867
Small code change to oipc object
Aman-Hundal Nov 28, 2023
e6f9afd
Merge pull request #4782 from bcgov/test-rook-AH-4671-MD
milosdes Nov 28, 2023
a696e89
WIP Flag Ingtegration + code adjustments
Aman-Hundal Nov 28, 2023
f2d94c8
Merge pull request #4787 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 28, 2023
112ef3e
Merge pull request #4788 from bcgov/dev-rook-MD-4677
sumathi-thirumani Nov 28, 2023
3ef75cc
Small code changes + modal design adjustments
Aman-Hundal Nov 28, 2023
639e8c0
Mandatory date validation adjusted (inquiry date and received date)
Aman-Hundal Nov 28, 2023
d8c9be4
Merge pull request #4768 from bcgov/dev-rook-ST-4671-MD
sumathi-thirumani Nov 28, 2023
1343ece
Save request in raw request state bug fix
Aman-Hundal Nov 28, 2023
a4b8031
Merge pull request #4789 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 28, 2023
bcb35a0
Add column to getbasequery
milosdes Nov 28, 2023
bc887e6
Merge pull request #4790 from bcgov/dev-rook-ST-4671-4677-basequerypatch
sumathi-thirumani Nov 28, 2023
0e54fb9
Update request flag
milosdes Nov 28, 2023
80fa9da
Add RequestFlag to Ministry view
milosdes Nov 29, 2023
cbc0f22
Saving bug for raw requests fixed
Aman-Hundal Nov 29, 2023
4d624c5
Merge pull request #4791 from bcgov/test-rook-AH-4671-nov28
Aman-Hundal Nov 29, 2023
108f932
Merge pull request #4792 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 29, 2023
7b0755e
design changes
Aman-Hundal Nov 29, 2023
3dcf894
Merge branch 'test-rook-AH-4671' of https://github.com/bcgov/foi-flow…
Aman-Hundal Nov 29, 2023
7c8bc27
Adjusted flag button to change request details isoipcreview attribute…
Aman-Hundal Nov 29, 2023
10da09b
Add flags column to advanced search
milosdes Nov 29, 2023
8b81cac
Add validation and master data to MinistryReview
milosdes Nov 29, 2023
eea10ba
Merge pull request #4793 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 29, 2023
fb17084
Comment phased release.
Nov 29, 2023
a554b03
Remove OIPC from ministry view
milosdes Nov 29, 2023
8f48afd
Merge pull request #4798 from bcgov/test-rook-AH-4671-revertministry
milosdes Nov 29, 2023
59bf1eb
Add useEffect to sync flag to state
milosdes Nov 30, 2023
cc2760d
Merge pull request #4801 from bcgov/dev-rook-ST-4671-4677
sumathi-thirumani Nov 30, 2023
de807b9
Merge branch 'dev-rook-ST-4694' into test-rook-AH-4671
sumathi-thirumani Nov 30, 2023
ff59c3c
Cosmetic changes for dropdown.
Nov 30, 2023
22a9122
Merge pull request #4804 from bcgov/dev-rook-ST-4671-4677
sumathi-thirumani Nov 30, 2023
3485345
Enabling cache
Nov 30, 2023
83ccc28
Merge pull request #4805 from bcgov/dev-rook-ST-4671-4677
sumathi-thirumani Nov 30, 2023
2c03619
Remove OIPC from ministryreview
milosdes Nov 30, 2023
9ca5ccd
Remove unused imports
milosdes Nov 30, 2023
7dc301b
Merge pull request #4806 from bcgov/test-rook-AH-4671-nov30
milosdes Nov 30, 2023
b4424c5
Undo accidental commit
milosdes Nov 30, 2023
379d3eb
Merge pull request #4808 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 30, 2023
05f4033
Match origin/main
milosdes Nov 30, 2023
3b83933
Add spaces to match main
milosdes Nov 30, 2023
ba3f9b5
Add white space
milosdes Nov 30, 2023
56351b7
Merge pull request #4810 from bcgov/test-rook-AH-4671
sumathi-thirumani Nov 30, 2023
b8bfe37
Merge pull request #4775 from bcgov/test-rook-AH-4671
Aman-Hundal Nov 30, 2023
2736d2e
Consoles to debug delete refresh issue
Aman-Hundal Nov 30, 2023
8765f47
Merge branch 'dev-rook' of https://github.com/bcgov/foi-flow into dev…
Aman-Hundal Nov 30, 2023
cd04784
Debugging for delete modal refrehs bug
Aman-Hundal Nov 30, 2023
3e3d313
Adjust to previous merge
Aman-Hundal Nov 30, 2023
0616672
removal of debug code not needed
Aman-Hundal Nov 30, 2023
bee4d59
Add e.preventDefault
milosdes Nov 30, 2023
4461f9d
Undo previous commit
milosdes Nov 30, 2023
59237f7
Add e.preventDefault
milosdes Nov 30, 2023
d124135
removal of console logs
Aman-Hundal Nov 30, 2023
9973d37
removal of console logs
Aman-Hundal Nov 30, 2023
edc4765
Styling changes
Aman-Hundal Dec 1, 2023
ea3da2e
Default value stylying completed
Aman-Hundal Dec 1, 2023
bf82a59
Merge pull request #4814 from bcgov/dev-rook-AH-4671
Aman-Hundal Dec 1, 2023
6d58e93
Update disableInput when oipcData is changed
milosdes Dec 1, 2023
60fbfbc
Merge pull request #4815 from bcgov/dev-rook-MD-4679
sumathi-thirumani Dec 1, 2023
f59adde
Merge branch 'dev-rook-ST-4671-4677' into dev-rook
sumathi-thirumani Dec 1, 2023
f71378a
Merge pull request #4816 from bcgov/dev-rook
sumathi-thirumani Dec 1, 2023
cb95b33
changes to avoid default reset of data.
Dec 1, 2023
e51e859
Merge pull request #4817 from bcgov/dev-rook-ST-4671-4677
sumathi-thirumani Dec 1, 2023
e1b7ea6
Remove important
Dec 1, 2023
0d5ffa9
Merge pull request #4818 from bcgov/dev-rook-ST-4671-4677
sumathi-thirumani Dec 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions forms-flow-web/src/actions/FOI/foiActionConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const FOI_ACTION_CONSTANTS = {
"FOI_PDF_STITCHED_STATUS_FOR_RESPONSEPACKAGE",
FOI_PDF_STITCHED_RECORD_FOR_RESPONSEPACKAGE:
"FOI_PDF_STITCHED_RECORD_FOR_RESPONSEPACKAGE",

OIPC_OUTCOMES: "OIPC_OUTCOMES",
OIPC_STATUSES: "OIPC_STATUSES",
OIPC_REVIEWTYPES: "OIPC_REVIEWTYPES",
OIPC_INQUIRYOUTCOMES: "OIPC_INQUIRYOUTCOMES",
};

export default FOI_ACTION_CONSTANTS;
28 changes: 28 additions & 0 deletions forms-flow-web/src/actions/FOI/foiRequestActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,31 @@ export const setConversionFormats = (data) => (dispatch) => {
payload: data,
});
};

export const setOIPCOutcomes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_OUTCOMES,
payload: data,
});
};

export const setOIPCStatuses = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_STATUSES,
payload: data,
});
};

export const setOIPCReviewtypes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_REVIEWTYPES,
payload: data,
});
};

export const setOIPCInquiryoutcomes = (data) => (dispatch) => {
dispatch({
type: FOI_ACTION_CONSTANTS.OIPC_INQUIRYOUTCOMES,
payload: data,
});
};
5 changes: 5 additions & 0 deletions forms-flow-web/src/apiManager/endpoints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,10 @@ const API = {

FOI_DOWNLOAD_RECORDS_FOR_RESPONSEPACKAGE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/download/responsepackage`,
FOI_PDF_STITCH_STATUS_FOR_RESPONSEPACKAGE: `${FOI_BASE_API_URL}/api/foirecord/<requestid>/ministryrequest/<ministryrequestid>/responsepackage/pdfstitchjobstatus`,

FOI_GET_OIPC_OUTCOMES: `${FOI_BASE_API_URL}/api/foiflow/oipc/outcomes`,
FOI_GET_OIPC_STATUSES: `${FOI_BASE_API_URL}/api/foiflow/oipc/statuses`,
FOI_GET_OIPC_REVIEWTYPES: `${FOI_BASE_API_URL}/api/foiflow/oipc/reviewtypes`,
FOI_GET_OIPC_INQUIRYOUTCOMES: `${FOI_BASE_API_URL}/api/foiflow/oipc/inquiryoutcomes`,
};
export default API;
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ import {
setFOISubjectCodeList,
setCommentTagListLoader,
setFOIAdminProgramAreaList,
setOIPCOutcomes,
setOIPCStatuses,
setOIPCReviewtypes,
setOIPCInquiryoutcomes,
} from "../../../actions/FOI/foiRequestActions";
import { fnDone, catchError } from "./foiServicesUtil";
import UserService from "../../../services/UserService";
Expand Down Expand Up @@ -508,4 +512,92 @@ import {
});
};
};

export const fetchOIPCOutcomes = () => {
return (dispatch) => {
httpGETRequest(API.FOI_GET_OIPC_OUTCOMES, {}, UserService.getToken())
.then((res) => {
if (res.data) {
const oipcOutcomes = res.data;
dispatch(setOIPCOutcomes(oipcOutcomes));
dispatch(setFOILoader(false));
} else {
console.log("Error while fetching OIPC outcomes master data", res);
dispatch(serviceActionError(res));
dispatch(setFOILoader(false));
}
})
.catch((error) => {
console.log("Error while fetching OIPC outcomes master data", error);
dispatch(serviceActionError(error));
dispatch(setFOILoader(false));
});
};
};

export const fetchOIPCStatuses = () => {
return (dispatch) => {
httpGETRequest(API.FOI_GET_OIPC_STATUSES, {}, UserService.getToken())
.then((res) => {
if (res.data) {
const oipcStatuses = res.data;
dispatch(setOIPCStatuses(oipcStatuses));
dispatch(setFOILoader(false));
} else {
console.log("Error while fetching OIPC statuses master data", res);
dispatch(serviceActionError(res));
dispatch(setFOILoader(false));
}
})
.catch((error) => {
console.log("Error while fetching OIPC statuses master data", error);
dispatch(serviceActionError(error));
dispatch(setFOILoader(false));
});
};
};

export const fetchOIPCReviewtypes = () => {
return (dispatch) => {
httpGETRequest(API.FOI_GET_OIPC_REVIEWTYPES, {}, UserService.getToken())
.then((res) => {
if (res.data) {
const oipcReviewtypes = res.data;
dispatch(setOIPCReviewtypes(oipcReviewtypes));
dispatch(setFOILoader(false));
} else {
console.log("Error while fetching OIPC reviewtypes master data", res);
dispatch(serviceActionError(res));
dispatch(setFOILoader(false));
}
})
.catch((error) => {
console.log("Error while fetching OIPC reviewtypes master data", error);
dispatch(serviceActionError(error));
dispatch(setFOILoader(false));
});
};
};

export const fetchOIPCInquiryoutcomes = () => {
return (dispatch) => {
httpGETRequest(API.FOI_GET_OIPC_INQUIRYOUTCOMES, {}, UserService.getToken())
.then((res) => {
if (res.data) {
const oipcInquiryoutcomes = res.data;
dispatch(setOIPCInquiryoutcomes(oipcInquiryoutcomes));
dispatch(setFOILoader(false));
} else {
console.log("Error while fetching OIPC inqiuryoutcomes master data", res);
dispatch(serviceActionError(res));
dispatch(setFOILoader(false));
}
})
.catch((error) => {
console.log("Error while fetching OIPC inqiuryoutcomes master data", error);
dispatch(serviceActionError(error));
dispatch(setFOILoader(false));
});
};
};

26 changes: 16 additions & 10 deletions forms-flow-web/src/components/FOI/Dashboard/IAO/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
// onBehalfFullName,
displayIcon,
displayHeaderIcon,
displayQueueFlagIcons,
cellTooltipRender
} from "../utils";
import {
Expand All @@ -15,6 +16,15 @@ import {
} from "../../../../helper/FOI/helper";

const ProcessingTeamColumns = [
{
field: "flags",
// renderHeader: displayHeaderIcon,
headerName: "FLAGS",
headerAlign: "left",
renderCell: displayQueueFlagIcons,
// cellClassName: 'foi-dashboard-',
// flex: 1,
},
{
field: "axisRequestId",
headerName: "ID NUMBER",
Expand Down Expand Up @@ -89,12 +99,10 @@ const ProcessingTeamColumns = [

const IntakeTeamColumns = [
{
field: "isiaorestricted",
renderHeader: displayHeaderIcon,
field: "flags",
headerName: "FLAGS",
headerAlign: "left",
renderCell:displayIcon,
cellClassName: 'foi-dashboard-restricted',
width: 60,
renderCell: displayQueueFlagIcons,
},
{
field: "axisRequestId",
Expand Down Expand Up @@ -161,12 +169,10 @@ const IntakeTeamColumns = [

const FlexTeamColumns = [
{
field: "isiaorestricted",
renderHeader: displayHeaderIcon,
field: "flags",
headerName: "FLAGS",
headerAlign: "left",
renderCell:displayIcon,
cellClassName: 'foi-dashboard-restricted',
width: 60,
renderCell: displayQueueFlagIcons,
},
{
field: "axisRequestId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {
updateSortModel,
getLDD,
getRecordsDue,
LightTooltip
LightTooltip,
displayQueueFlagIcons
} from "../../utils";
import { ActionContext } from "./ActionContext";
import { ConditionalComponent } from "../../../../../helper/FOI/helper";
Expand Down Expand Up @@ -94,6 +95,12 @@ const DataGridAdvancedSearch = ({ userDetail }) => {
};

const columns = React.useRef([
{
field: "flags",
headerName: "FLAGS",
headerAlign: "left",
renderCell: displayQueueFlagIcons,
},
{
field: "axisRequestId",
headerName: "ID NUMBER",
Expand Down
16 changes: 7 additions & 9 deletions forms-flow-web/src/components/FOI/Dashboard/Ministry/Queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useDispatch, useSelector } from "react-redux";
import { push } from "connected-react-router";
import { fetchFOIMinistryRequestListByPage } from "../../../../apiManager/services/FOI/foiRequestServices";
import Loading from "../../../../containers/Loading";
import { debounce, ClickableChip, displayIconMinistry, displayHeaderIcon, cellTooltipRender } from "../utils";
import { debounce, ClickableChip, cellTooltipRender, displayQueueFlagIcons } from "../utils";
import Grid from "@mui/material/Grid";
import Stack from "@mui/material/Stack";
import SearchIcon from "@material-ui/icons/Search";
Expand Down Expand Up @@ -112,6 +112,12 @@ const Queue = ({ userDetail, tableInfo }) => {
}

const columns = React.useRef([
{
field: "flags",
headerName: "FLAGS",
headerAlign: "left",
renderCell: displayQueueFlagIcons,
},
{
field: "axisRequestId",
headerName: "ID NUMBER",
Expand Down Expand Up @@ -165,14 +171,6 @@ const Queue = ({ userDetail, tableInfo }) => {
width: 0,
hide: true,
renderCell: (_params) => <span></span>,
},
{
field: "isministryrestricted",
renderHeader: displayHeaderIcon,
headerAlign: "left",
renderCell: displayIconMinistry,
cellClassName: 'foi-dashboard-restricted',
flex: 1,
}
]);

Expand Down
21 changes: 20 additions & 1 deletion forms-flow-web/src/components/FOI/Dashboard/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,28 @@ nav.MuiPagination-root {
padding-right: 15px !important;
}

.foi-dashboard-restricted {
.dashboard-flag-restricted {
font-size: 10px;
color: #A0192F;
padding: 2px;
}

.dashboard-flag-oipcreview {
font-size: 10px;
color: #fa7c16;
padding: 2px;
}

.dashboard-flag-phasedrelease {
font-size: 10px;
color: #9207b7;
padding: 2px;
}

.dashboard-flag-placeholder {
font-size: 10px;
color: #c1bfbf;
padding: 2px;
}

.table-cell-truncate {
Expand Down
41 changes: 40 additions & 1 deletion forms-flow-web/src/components/FOI/Dashboard/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,48 @@ export const displayIconMinistry = (params) => {
);
};

export const displayQueueFlagIcons = (params) => {
let restricted = <span></span>

if (params?.row?.isiaorestricted || params?.row?.isministryrestricted) {
restricted = <LightTooltip placement="top-end" title={
<div style={{whiteSpace: "pre-line"}}>
Restricted
</div>
}>
<span className="dashboard-flag-restricted"><FontAwesomeIcon icon={faFlag} size='2x' /></span>
</LightTooltip>
} else {
restricted = <span className="dashboard-flag-placeholder"><FontAwesomeIcon icon={faFlag} size='2x' /></span>
}

const oipcreview = params?.row?.isoipcreview ?
<LightTooltip placement="top-end" title={
<div style={{whiteSpace: "pre-line"}}>
OIPC
</div>
}><span className="dashboard-flag-oipcreview"><FontAwesomeIcon icon={faFlag} size='2x' /></span>
</LightTooltip> :
<span className="dashboard-flag-placeholder"><FontAwesomeIcon icon={faFlag} size='2x' /></span>

const phasedrelease = params?.row?.isphasedrelease ?
<LightTooltip placement="top-end" title={
<div style={{whiteSpace: "pre-line"}}>
Phased Release
</div>
}><span className="dashboard-flag-phasedrelease"><FontAwesomeIcon icon={faFlag} size='2x' /></span>
</LightTooltip> :
<span className="dashboard-flag-placeholder"><FontAwesomeIcon icon={faFlag} size='2x' /></span>

return <div>
{restricted}
{oipcreview}
</div>
}

export const displayHeaderIcon = (params) => {
return (
<span className="foi-dashboard-restricted"><FontAwesomeIcon icon={faFlag} size='2x' className='restrict-icon' />
<span className="dashboard-flag-restricted"><FontAwesomeIcon icon={faFlag} size='2x' className='restrict-icon' />
</span>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const BottomButtonGroup = React.memo(
requestState,
axisSyncedData,
axisMessage,
attachmentsArray
attachmentsArray,
oipcData,
}) => {
/**
* Bottom Button Group of Review request Page
Expand Down Expand Up @@ -117,7 +118,18 @@ const BottomButtonGroup = React.memo(
if (urlIndexCreateRequest > -1) {
saveRequestObject.requeststatusid = StateEnum.intakeinprogress.id;
setIsAddRequest(false);
}
}

//add oipc Data to save request object and sync/validate isoipcreview attribute
if (requestState.toLowerCase() !== StateEnum.intakeinprogress.name.toLowerCase() && requestState.toLowerCase() !== StateEnum.unopened.name.toLowerCase()) {
saveRequestObject.oipcdetails = oipcData ? oipcData : [];
// if (oipcData?.length > 0) {
// saveRequestObject.isoipcreview = true;
// } else {
// saveRequestObject.isoipcreview = false;
// }
}

dispatch(setFOILoader(setLoader))
dispatch(
saveRequestDetails(
Expand Down
Loading
Loading