Merge pull request #144 from kjannette/refac5

Refac5
This commit is contained in:
S Jannette
2024-03-09 12:38:36 -06:00
committed by GitHub
6 changed files with 30 additions and 20 deletions

View File

@@ -122,9 +122,6 @@ const CaseDetailsPage = () => {
radioValue, radioValue,
clientPosition clientPosition
) { ) {
console.log(
"hit generateOutgoingDiscoveryRequests-----------------------------"
);
const response = await fetch( const response = await fetch(
`${apiUrl}/v1/make-outgoing-requests/${docId}/${radioValue}/${clientPosition}`, `${apiUrl}/v1/make-outgoing-requests/${docId}/${radioValue}/${clientPosition}`,
{ {
@@ -146,7 +143,7 @@ const CaseDetailsPage = () => {
if (docType === "complaint") { if (docType === "complaint") {
const clientPosition = subCase.clientPosition; const clientPosition = subCase.clientPosition;
generateOutgoingDiscoveryRequests(docId, radioValue, clientPosition); generateOutgoingDiscoveryRequests(docId, radioValue, clientPosition);
setTimeout(handleNavEdit, 20000, docId, caseId); setTimeout(handleNavEdit, 80000, docId, caseId);
} else { } else {
// try to kick off parsing here // try to kick off parsing here
setTimeout(handleNavigate, 40000, docId, caseId); setTimeout(handleNavigate, 40000, docId, caseId);

View File

@@ -69,20 +69,24 @@ const RequestEditPage = () => {
}, [appUserId, documentId, caseId]); }, [appUserId, documentId, caseId]);
useEffect(() => { useEffect(() => {
if (!documentId || !documentType) { if (!documentId) {
return; return;
} }
getOutgoingRequests(documentId) getOutgoingRequests(documentId)
.then((data) => { .then((data) => {
const resp = [...foundationRogs, ...data[0].requests].map( console.log(
(item, index) => { "-------------------------data[0].requests",
data[0].requests
);
const merged = [...foundationRogs, ...data[0].requests];
const resp = merged?.map((item, index) => {
// NEVER CHANGE THIS: // NEVER CHANGE THIS:
return { showInputEle: false, text: item.text, index: index }; return { showInputEle: false, text: item.text, index: index };
} });
); if (resp.length > 10) {
const calld = [...resp]; setRequests(resp);
setRequests(calld);
setProdReq(standardProd); setProdReq(standardProd);
}
}) })
.catch((err) => console.log(err)); .catch((err) => console.log(err));
}, [documentId]); }, [documentId]);
@@ -104,6 +108,7 @@ const RequestEditPage = () => {
} }
async function getOutgoingRequests(documentId) { async function getOutgoingRequests(documentId) {
console.log("getOutgoingRequests fired--------------------");
if (!documentId) { if (!documentId) {
return; return;
} }

View File

@@ -189,7 +189,7 @@ const UploadModal = (props) => {
const response = await processFile(); const response = await processFile();
saveToDb(response.uuidName); saveToDb(response.uuidName);
const docId = response.uuidName; const docId = response.uuidName;
setTimeout(handleSuccess, 25000, docId, radioValue); setTimeout(handleSuccess, 1000, docId, radioValue);
return; return;
} catch (err) { } catch (err) {
console.log("err", err); console.log("err", err);

View File

@@ -47,13 +47,19 @@
margin-top: 8px; margin-top: 8px;
} }
.stats-container {
margin: 12px 0px;
}
.stats-row-box { .stats-row-box {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
border: 1px solid orange;
border-radius: 10px;
background-color: #f5f5f5;
margin: 12px 0px; margin: 12px 0px;
padding: 0px 6px; padding: 0px 6px;
background-color: #f5f5f5;
height: 42px; height: 42px;
border-radius: 6px; border-radius: 6px;
} }

View File

@@ -7,6 +7,7 @@
border-radius: 10px; border-radius: 10px;
height: 85px; height: 85px;
padding: 0px 0px 0px 15px; padding: 0px 0px 0px 15px;
border: 1px solid orange;
} }
.doc-header-text { .doc-header-text {

View File

@@ -126,7 +126,7 @@ section.section-1 {
font-family: Roboto; font-family: Roboto;
color: #fff; color: #fff;
padding: 20px 0px 10px 0px; padding: 20px 0px 10px 0px;
font-size: 24px; font-size: 20px;
font-weight: 100; font-weight: 100;
max-width: 370px; max-width: 370px;
line-height: 29px; line-height: 29px;
@@ -137,7 +137,7 @@ section.section-1 {
h1.heading-1 { h1.heading-1 {
color: #fff; color: #fff;
font-family: Roboto; font-family: Roboto;
font-size: 54px; font-size: 56px;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
line-height: 52px; /* 140.625% */ line-height: 52px; /* 140.625% */
@@ -147,19 +147,20 @@ h1.heading-1 {
h1.heading-2 { h1.heading-2 {
color: #fff; color: #fff;
font-family: Roboto; font-family: Roboto;
font-size: 32px; font-size: 33px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
line-height: 52px; /* 140.625% */ line-height: 52px; /* 140.625% */
margin-bottom: 0px !important; margin-bottom: 0px !important;
margin-top: 8px;
} }
p.text-block-1 { p.text-block-1 {
color: #fff; color: #fff;
font-family: Roboto; font-family: Roboto;
font-size: 26px; font-size: 25px;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 300;
line-height: 29.756px; /* 123.983% */ line-height: 29.756px; /* 123.983% */
width: 525px; width: 525px;
margin-top: 28px; margin-top: 28px;