@@ -48,25 +48,15 @@ const CaseDetailsPage = () => {
|
|||||||
if (doc.exists) {
|
if (doc.exists) {
|
||||||
const data = doc.data();
|
const data = doc.data();
|
||||||
if (data.docType != undefined) {
|
if (data.docType != undefined) {
|
||||||
console.log(
|
|
||||||
"* * *getDocument has returned docType---------------------------------------------------------------",
|
|
||||||
data.docType
|
|
||||||
);
|
|
||||||
const caseId = data.parentCaseId;
|
const caseId = data.parentCaseId;
|
||||||
const docType = data.docType;
|
const docType = data.docType;
|
||||||
const clientPosition = data.clientPosition;
|
const clientPosition = data.clientPosition;
|
||||||
if (docType != "combined-numbered") {
|
if (docType != "combined-numbered") {
|
||||||
console.log(
|
|
||||||
"docType != combined-numbered~~~~~~~~~~~~~~~~~~~~~~>>>~~~~~~~~~~~~"
|
|
||||||
);
|
|
||||||
const responseGenerations = 1;
|
const responseGenerations = 1;
|
||||||
navigate(
|
navigate(
|
||||||
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||||
);
|
);
|
||||||
} else if (docType == "combined-numbered") {
|
} else if (docType == "combined-numbered") {
|
||||||
console.log(
|
|
||||||
"docType IS FUCKING EQUAL TO ^^^^^^^ combined-numbered~~~~~~~>>>~~~~~~~~~~~~~~~~~~~~~~"
|
|
||||||
);
|
|
||||||
const responseGenerations = 0;
|
const responseGenerations = 0;
|
||||||
navigate(
|
navigate(
|
||||||
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||||
|
|||||||
@@ -24,15 +24,6 @@ const DocEditPage = (props) => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { documentId, caseId, docType, clientPosition, responseGenerations } =
|
const { documentId, caseId, docType, clientPosition, responseGenerations } =
|
||||||
useParams();
|
useParams();
|
||||||
|
|
||||||
console.log(
|
|
||||||
"documentId, caseId, docType, clientPosition, responseGenerations",
|
|
||||||
documentId,
|
|
||||||
caseId,
|
|
||||||
docType,
|
|
||||||
clientPosition,
|
|
||||||
responseGenerations
|
|
||||||
);
|
|
||||||
const [document, setDocument] = useState(null);
|
const [document, setDocument] = useState(null);
|
||||||
const [_docType, setDocType] = useState(docType);
|
const [_docType, setDocType] = useState(docType);
|
||||||
const [fetchedCase, setFetchedCase] = useState(null);
|
const [fetchedCase, setFetchedCase] = useState(null);
|
||||||
@@ -219,9 +210,7 @@ const DocEditPage = (props) => {
|
|||||||
if (!docId || !docType) {
|
if (!docId || !docType) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(
|
|
||||||
"--_~_~_~_~_~_~_~_~__--- - - - f -- - - - -- -- -getCompletions in decedit"
|
|
||||||
);
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`${apiUrl}/v1/get-completions/${docId}/${docType}`,
|
`${apiUrl}/v1/get-completions/${docId}/${docType}`,
|
||||||
{
|
{
|
||||||
@@ -233,11 +222,6 @@ const DocEditPage = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function generateRespIncominIrregDiscReq(docId, clientPosition) {
|
async function generateRespIncominIrregDiscReq(docId, clientPosition) {
|
||||||
console.log(
|
|
||||||
"generateRespIncominIrregDiscReq fieed and heres docType, doctype",
|
|
||||||
docType,
|
|
||||||
docType
|
|
||||||
);
|
|
||||||
const isRequests = true;
|
const isRequests = true;
|
||||||
try {
|
try {
|
||||||
fetch(
|
fetch(
|
||||||
@@ -250,7 +234,6 @@ const DocEditPage = (props) => {
|
|||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
data && console.log("data in generateRespIncominIrregDiscReq", data);
|
|
||||||
const respArray = data[0].responses;
|
const respArray = data[0].responses;
|
||||||
const result = respArray?.map((item, index) => {
|
const result = respArray?.map((item, index) => {
|
||||||
let obj = {};
|
let obj = {};
|
||||||
@@ -265,7 +248,7 @@ const DocEditPage = (props) => {
|
|||||||
})
|
})
|
||||||
.catch((err) => console.log(err));
|
.catch((err) => console.log(err));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("generateRespIncomingDiscReq resp err", err);
|
console.log("gen/esp inresp err", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +307,7 @@ const DocEditPage = (props) => {
|
|||||||
const res = response;
|
const res = response;
|
||||||
return res;
|
return res;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error sending responses to the server:", error);
|
console.error("Error sending resp to server:", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -535,8 +518,7 @@ const DocEditPage = (props) => {
|
|||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
navigate(`/documents`);
|
navigate(`/documents`);
|
||||||
};
|
};
|
||||||
console.log("responses", responses);
|
|
||||||
console.log("parsedRogs", parsedRogs);
|
|
||||||
const editingContent = () => {
|
const editingContent = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ const DocumentListPage = ({ perPage }) => {
|
|||||||
//may include other in future ie req for admission
|
//may include other in future ie req for admission
|
||||||
navigate(`/reqedit/${docId}/interrogatories-out/${caseId}`);
|
navigate(`/reqedit/${docId}/interrogatories-out/${caseId}`);
|
||||||
} else {
|
} else {
|
||||||
console.log("----------------------> handeNave else");
|
|
||||||
navigate(
|
navigate(
|
||||||
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
`/docedit/${docId}/${caseId}/${docType}/${clientPosition}/${responseGenerations}`
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -73,10 +73,6 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
getOutgoingRequests(documentId)
|
getOutgoingRequests(documentId)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log(
|
|
||||||
"-------------------------data[0].requests",
|
|
||||||
data[0].requests
|
|
||||||
);
|
|
||||||
const merged = [...foundationRogs, ...data[0].requests];
|
const merged = [...foundationRogs, ...data[0].requests];
|
||||||
const resp = merged?.map((item, index) => {
|
const resp = merged?.map((item, index) => {
|
||||||
// NEVER CHANGE THIS:
|
// NEVER CHANGE THIS:
|
||||||
@@ -107,7 +103,6 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getOutgoingRequests(documentId) {
|
async function getOutgoingRequests(documentId) {
|
||||||
console.log("getOutgoingRequests fired--------------------");
|
|
||||||
if (!documentId) {
|
if (!documentId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -373,7 +368,6 @@ const RequestEditPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleEditProdValue = (e, i) => {
|
const handleEditProdValue = (e, i) => {
|
||||||
console.log("e,i ", e, i);
|
|
||||||
const editingProd = standardProd?.map((r) => {
|
const editingProd = standardProd?.map((r) => {
|
||||||
if (r.index === i) {
|
if (r.index === i) {
|
||||||
return {
|
return {
|
||||||
@@ -429,7 +423,7 @@ const RequestEditPage = () => {
|
|||||||
fetchedCase?.clientPosition === "Defendant"
|
fetchedCase?.clientPosition === "Defendant"
|
||||||
? fetchedCase?.plaintiffParties
|
? fetchedCase?.plaintiffParties
|
||||||
: fetchedCase?.defendantParties;
|
: fetchedCase?.defendantParties;
|
||||||
console.log("final requests", requests);
|
|
||||||
const editingContent = () => {
|
const editingContent = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ const UploadModal = (props) => {
|
|||||||
const [docError, setShowDocError] = useState("");
|
const [docError, setShowDocError] = useState("");
|
||||||
const fileTypes = ["PDF"];
|
const fileTypes = ["PDF"];
|
||||||
const fileName = fileToParse ? fileToParse.name : undefined;
|
const fileName = fileToParse ? fileToParse.name : undefined;
|
||||||
console.log("uploadType", uploadType);
|
|
||||||
console.log("radioValue", radioValue);
|
|
||||||
const currentType =
|
const currentType =
|
||||||
uploadType === "complaint" ? "complaint" : "discovery request";
|
uploadType === "complaint" ? "complaint" : "discovery request";
|
||||||
const otherType =
|
const otherType =
|
||||||
@@ -196,7 +195,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;
|
||||||
console.log("radioValue in modal", radioValue);
|
|
||||||
setTimeout(handleSuccess, 10000, docId, radioValue);
|
setTimeout(handleSuccess, 10000, docId, radioValue);
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ const SignupPage = () => {
|
|||||||
paymentDataValues,
|
paymentDataValues,
|
||||||
dataValues
|
dataValues
|
||||||
);
|
);
|
||||||
console.log("data returned from handleStipeAuth", data);
|
|
||||||
const customerId = data?.data?.customerId;
|
const customerId = data?.data?.customerId;
|
||||||
const subscriptionCreated = data?.data?.subscriptionCreated;
|
const subscriptionCreated = data?.data?.subscriptionCreated;
|
||||||
const subscriptionPeriodStart = data?.data?.subscriptionPeriodStart;
|
const subscriptionPeriodStart = data?.data?.subscriptionPeriodStart;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal-caption-row {
|
.modal-caption-row {
|
||||||
height: 190px;
|
height: 250px;
|
||||||
background-color: rgba(230, 230, 230, 0.3254901961);
|
background-color: rgba(230, 230, 230, 0.3254901961);
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
|
|||||||
Reference in New Issue
Block a user