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

View File

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

View File

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

View File

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

View File

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

View File

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