@@ -43,7 +43,6 @@ const CaseDetailsPage = () => {
|
|||||||
//documentId, responseGenerations, caseId, documentType
|
//documentId, responseGenerations, caseId, documentType
|
||||||
console.log("handle navigate fired docId", docId);
|
console.log("handle navigate fired docId", docId);
|
||||||
let docType = "interrogatories";
|
let docType = "interrogatories";
|
||||||
|
|
||||||
navigate(`/documents/${docId}/${docType}/${caseId}`);
|
navigate(`/documents/${docId}/${docType}/${caseId}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -51,7 +50,9 @@ const CaseDetailsPage = () => {
|
|||||||
if (!documentId || !caseId) {
|
if (!documentId || !caseId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(
|
||||||
|
"hit handleNavEdit----------------------------------------------------------"
|
||||||
|
);
|
||||||
navigate(`/reqedit/${documentId}/interrogatories-out/${caseId}`);
|
navigate(`/reqedit/${documentId}/interrogatories-out/${caseId}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -144,11 +145,7 @@ const CaseDetailsPage = () => {
|
|||||||
);
|
);
|
||||||
if (docType === "complaint") {
|
if (docType === "complaint") {
|
||||||
const clientPosition = subCase.clientPosition;
|
const clientPosition = subCase.clientPosition;
|
||||||
const res = await generateOutgoingDiscoveryRequests(
|
generateOutgoingDiscoveryRequests(docId, radioValue, clientPosition);
|
||||||
docId,
|
|
||||||
radioValue,
|
|
||||||
clientPosition
|
|
||||||
);
|
|
||||||
setTimeout(handleNavEdit, 20000, docId, caseId);
|
setTimeout(handleNavEdit, 20000, docId, caseId);
|
||||||
} else {
|
} else {
|
||||||
// try to kick off parsing here
|
// try to kick off parsing here
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
docEditCopy,
|
docEditCopy,
|
||||||
outgoingComesNow,
|
outgoingComesNow,
|
||||||
} from "../../Constants/Copy/docEditCopy.js";
|
} from "../../Constants/Copy/docEditCopy.js";
|
||||||
import ConfirmModal from "../Modals/ConfirmModal";
|
|
||||||
import Button from "../../pageElements/Button";
|
import Button from "../../pageElements/Button";
|
||||||
import {
|
import {
|
||||||
rogInstructions,
|
rogInstructions,
|
||||||
@@ -18,15 +17,7 @@ import {
|
|||||||
standardProd,
|
standardProd,
|
||||||
} from "../../Constants/Copy/reqEditCopy.js";
|
} from "../../Constants/Copy/reqEditCopy.js";
|
||||||
import { db } from "../../firebase";
|
import { db } from "../../firebase";
|
||||||
import {
|
import { doc, getDoc } from "firebase/firestore";
|
||||||
collection,
|
|
||||||
updateDoc,
|
|
||||||
onSnapshot,
|
|
||||||
doc,
|
|
||||||
getDoc,
|
|
||||||
setDoc,
|
|
||||||
increment,
|
|
||||||
} from "firebase/firestore";
|
|
||||||
import "../../styles/doclist-page.scss";
|
import "../../styles/doclist-page.scss";
|
||||||
|
|
||||||
const RequestEditPage = () => {
|
const RequestEditPage = () => {
|
||||||
@@ -83,12 +74,14 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
getOutgoingRequests(documentId)
|
getOutgoingRequests(documentId)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
const merged = [...foundationRogs, ...data[0].requests];
|
const resp = [...foundationRogs, ...data[0].requests].map(
|
||||||
const resp = merged.map((item, index) => {
|
(item, index) => {
|
||||||
// NEVER CHANGE THIS:
|
// NEVER CHANGE THIS:
|
||||||
return { showInputEle: false, text: item.text, index: index };
|
return { showInputEle: false, text: item.text, index: index };
|
||||||
});
|
}
|
||||||
setRequests(resp);
|
);
|
||||||
|
const calld = [...resp];
|
||||||
|
setRequests(calld);
|
||||||
setProdReq(standardProd);
|
setProdReq(standardProd);
|
||||||
})
|
})
|
||||||
.catch((err) => console.log(err));
|
.catch((err) => console.log(err));
|
||||||
@@ -111,6 +104,9 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getOutgoingRequests(documentId) {
|
async function getOutgoingRequests(documentId) {
|
||||||
|
if (!documentId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const docType = String(documentType);
|
const docType = String(documentType);
|
||||||
const docId = String(documentId);
|
const docId = String(documentId);
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
@@ -178,8 +174,10 @@ const RequestEditPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function postEditedResponses() {
|
async function postEditedResponses() {
|
||||||
|
if (!requests && requests.length > 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const mergedRequests = [...requests, ...prodReq];
|
const mergedRequests = [...requests, ...prodReq];
|
||||||
|
|
||||||
const docId = documentId;
|
const docId = documentId;
|
||||||
const leadAttorneys = fetchedCase?.leadAttorneys
|
const leadAttorneys = fetchedCase?.leadAttorneys
|
||||||
? fetchedCase?.leadAttorneys
|
? fetchedCase?.leadAttorneys
|
||||||
@@ -385,7 +383,7 @@ const RequestEditPage = () => {
|
|||||||
fetchedCase?.clientPosition === "Defendant"
|
fetchedCase?.clientPosition === "Defendant"
|
||||||
? fetchedCase?.plaintiffParties
|
? fetchedCase?.plaintiffParties
|
||||||
: fetchedCase?.defendantParties;
|
: fetchedCase?.defendantParties;
|
||||||
console.log("state", state);
|
console.log("final requests", requests);
|
||||||
const editingContent = () => {
|
const editingContent = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -418,7 +416,8 @@ const RequestEditPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="req-editing-sub-wrapper">
|
<div className="req-editing-sub-wrapper">
|
||||||
<div className="pleading-header">INTERROGATORIES</div>
|
<div className="pleading-header">INTERROGATORIES</div>
|
||||||
{requests?.map((req, i) => (
|
{requests &&
|
||||||
|
requests?.map((req, i) => (
|
||||||
<div className="request-item-outer-div">
|
<div className="request-item-outer-div">
|
||||||
<div className="request-text-up">{`${i + 1}.`}</div>
|
<div className="request-text-up">{`${i + 1}.`}</div>
|
||||||
<div className="req-item-inner-div">
|
<div className="req-item-inner-div">
|
||||||
@@ -431,7 +430,9 @@ const RequestEditPage = () => {
|
|||||||
}
|
}
|
||||||
setShowInputEle={setShowInputEle}
|
setShowInputEle={setShowInputEle}
|
||||||
showInputEle={
|
showInputEle={
|
||||||
requests && requests.length > 1 ? req.showInputEle : null
|
requests && requests.length > 1
|
||||||
|
? req.showInputEle
|
||||||
|
: null
|
||||||
}
|
}
|
||||||
handleFocus={handleFocus}
|
handleFocus={handleFocus}
|
||||||
handleEditValue={handleEditValue}
|
handleEditValue={handleEditValue}
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ const HomePage = () => {
|
|||||||
<div className="row upper-row-one">
|
<div className="row upper-row-one">
|
||||||
<div className="col-md-12">
|
<div className="col-md-12">
|
||||||
<div className="heading-one-container">
|
<div className="heading-one-container">
|
||||||
<h1 className="heading-1">
|
<h1 className="heading-1">Novodraft: Legal AI.</h1>
|
||||||
Novodraft: Legal AI. Draft documents faster <i>and </i>{" "}
|
<h1 className="heading-2">
|
||||||
smarter.
|
Draft documents faster <i>and </i> smarter.
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-block-1">
|
<p className="text-block-1">
|
||||||
|
|||||||
@@ -59,33 +59,23 @@ export const docEditCopy = {
|
|||||||
|
|
||||||
export const outgoingComesNow = (state, fetchedCase) => {
|
export const outgoingComesNow = (state, fetchedCase) => {
|
||||||
let copyString;
|
let copyString;
|
||||||
const position = fetchedCase ? fetchedCase?.clientPosition : <></>;
|
|
||||||
const parties = fetchedCase ? (
|
const servingParty =
|
||||||
fetchedCase?.clientPosition === "Plaintiff" ? (
|
fetchedCase?.clientPosition === "Plaintiff"
|
||||||
fetchedCase?.plaintiffParties
|
? fetchedCase?.plaintiffParties
|
||||||
) : (
|
: fetchedCase?.defendantParties;
|
||||||
fetchedCase?.defendantParties
|
const respondingParty =
|
||||||
)
|
servingParty === fetchedCase?.plaintiffParties
|
||||||
) : (
|
? fetchedCase?.defendantParties
|
||||||
<></>
|
: fetchedCase?.plaintiffParties;
|
||||||
);
|
|
||||||
const adversary = fetchedCase ? (
|
|
||||||
fetchedCase?.clientPosition === "Plaintiff" ? (
|
|
||||||
fetchedCase?.defendantParties
|
|
||||||
) : (
|
|
||||||
fetchedCase?.plaintiffParties
|
|
||||||
)
|
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
);
|
|
||||||
|
|
||||||
if (state === "ny") {
|
if (state === "ny") {
|
||||||
copyString = `COMES NOW, ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered under oath, in writing, in accordance with NY CPLR 3120 - 3130.`;
|
copyString = `COMES NOW, ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered under oath, in writing, in accordance with NY CPLR 3120 - 3130.`;
|
||||||
} else if (state === "fl") {
|
} else if (state === "fl") {
|
||||||
copyString = `COMES NOW, ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered to be answered under oath, in writing, in accordance with Rule 1.340, Florida Rules of Civil Procedure.`;
|
copyString = `COMES NOW, ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered to be answered under oath, in writing, in accordance with Rule 1.340, Florida Rules of Civil Procedure.`;
|
||||||
} else if (state === "nj") {
|
} else if (state === "nj") {
|
||||||
copyString =
|
copyString =
|
||||||
`Comes now ${position}, ${parties}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${adversary}, to be answered to be answered under oath, in writing, in accordance with NJ R. 4:17-1 - 4:18-1,` +
|
`Comes now ${fetchedCase?.clientPosition}, ${servingParty}, through counsel, and hereby propounds these Interrogatories and Requests for Production on ${respondingParty}, to be answered to be answered under oath, in writing, in accordance with NJ R. 4:17-1 - 4:18-1,` +
|
||||||
<div className="jersey-itals">et. seq.</div> +
|
<div className="jersey-itals">et. seq.</div> +
|
||||||
`All questions must be answered unless the court otherwise orders or unless a claim of privilege or protective order is made in accordance with R. 4:17-1(b)(3).`;
|
`All questions must be answered unless the court otherwise orders or unless a claim of privilege or protective order is made in accordance with R. 4:17-1(b)(3).`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,11 +68,11 @@ export const foundationRogs = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "fb50e08b-2009-4588-89b8-4842481f434a",
|
id: "fb50e08b-2009-4588-89b8-4842481f434a",
|
||||||
text: " Identify all insurance carriers or self-insured funds, by name, address, policy numbers and policy limits, for any insurance policy or fund which may provide coverage for any judgment entered against you in this action.",
|
text: "Identify all insurance carriers or self-insured funds, by name, address, policy numbers and policy limits for any insurance policy or fund which may provide coverage for any judgment entered against you in this action.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "72680c6f-4d7e-4e6b-a932-477e0392db98",
|
id: "72680c6f-4d7e-4e6b-a932-477e0392db98",
|
||||||
text: " If you contend that any other entity or person, including any other party or the Plaintiff, was responsible for the occurrence and Plaintiff's damages, identify such person(s) or entities, and give a concise statement of the facts upon which you rely in support of your contention.",
|
text: "If you contend that any other entity or person, including any other party or the Plaintiff, was responsible for the occurrence and Plaintiff's damages, identify such person(s) or entities, and give a concise statement of the facts upon which you rely in support of your contention.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "6933ce23-8c88-4c6b-877c-c59629685ea1",
|
id: "6933ce23-8c88-4c6b-877c-c59629685ea1",
|
||||||
|
|||||||
@@ -426,6 +426,7 @@
|
|||||||
.reqedit-report-container {
|
.reqedit-report-container {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin-top: -20px;
|
margin-top: -20px;
|
||||||
|
margin-left: 16px;
|
||||||
}
|
}
|
||||||
.docedit-report-link {
|
.docedit-report-link {
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
@@ -441,7 +442,7 @@
|
|||||||
min-width: 700px;
|
min-width: 700px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin: 16px 0px;
|
margin: 16px 0px 8px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1140px) {
|
@media only screen and (max-width: 1140px) {
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ ul.navbar-nav {
|
|||||||
|
|
||||||
section.section-1:before {
|
section.section-1:before {
|
||||||
content: "";
|
content: "";
|
||||||
background: url("../Assets/Images/overlayFlipSmall.png") no-repeat fixed 0%
|
background: url("../Assets/Images/overlayFlip.png") no-repeat fixed 10% 115px;
|
||||||
290px;
|
|
||||||
background-attachment: local;
|
background-attachment: local;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -132,26 +131,38 @@ section.section-1 {
|
|||||||
max-width: 370px;
|
max-width: 370px;
|
||||||
line-height: 29px;
|
line-height: 29px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
margin-top: -8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1.heading-1 {
|
h1.heading-1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 40px;
|
font-size: 54px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 52px; /* 140.625% */
|
line-height: 52px; /* 140.625% */
|
||||||
margin-bottom: 1rem !important;
|
margin-bottom: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.heading-2 {
|
||||||
|
color: #fff;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 32px;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 52px; /* 140.625% */
|
||||||
|
margin-bottom: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.text-block-1 {
|
p.text-block-1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
font-size: 28px;
|
font-size: 26px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 29.756px; /* 123.983% */
|
line-height: 29.756px; /* 123.983% */
|
||||||
width: 525.308px;
|
width: 525px;
|
||||||
|
margin-top: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.try-it-button-box {
|
.try-it-button-box {
|
||||||
|
|||||||
Reference in New Issue
Block a user