diff --git a/src/Components/Case/CaseDetailsPage.js b/src/Components/Case/CaseDetailsPage.js index 344f3ad..56d24c3 100644 --- a/src/Components/Case/CaseDetailsPage.js +++ b/src/Components/Case/CaseDetailsPage.js @@ -43,7 +43,6 @@ const CaseDetailsPage = () => { //documentId, responseGenerations, caseId, documentType console.log("handle navigate fired docId", docId); let docType = "interrogatories"; - navigate(`/documents/${docId}/${docType}/${caseId}`); }; @@ -51,7 +50,9 @@ const CaseDetailsPage = () => { if (!documentId || !caseId) { return; } - + console.log( + "hit handleNavEdit----------------------------------------------------------" + ); navigate(`/reqedit/${documentId}/interrogatories-out/${caseId}`); }; @@ -144,12 +145,15 @@ const CaseDetailsPage = () => { ); if (docType === "complaint") { const clientPosition = subCase.clientPosition; + setTimeout(handleNavEdit, 20000, docId, caseId); const res = await generateOutgoingDiscoveryRequests( docId, radioValue, clientPosition ); - setTimeout(handleNavEdit, 20000, docId, caseId); + console.log( + "res in generateOutgoingDiscoveryRequests------------------->" + ); } else { // try to kick off parsing here setTimeout(handleNavigate, 40000, docId, caseId); diff --git a/src/Components/Document/ReqEditPage.js b/src/Components/Document/ReqEditPage.js index 23d1617..2b03e0e 100644 --- a/src/Components/Document/ReqEditPage.js +++ b/src/Components/Document/ReqEditPage.js @@ -9,7 +9,6 @@ import { docEditCopy, outgoingComesNow, } from "../../Constants/Copy/docEditCopy.js"; -import ConfirmModal from "../Modals/ConfirmModal"; import Button from "../../pageElements/Button"; import { rogInstructions, @@ -18,15 +17,7 @@ import { standardProd, } from "../../Constants/Copy/reqEditCopy.js"; import { db } from "../../firebase"; -import { - collection, - updateDoc, - onSnapshot, - doc, - getDoc, - setDoc, - increment, -} from "firebase/firestore"; +import { doc, getDoc } from "firebase/firestore"; import "../../styles/doclist-page.scss"; const RequestEditPage = () => { @@ -88,6 +79,7 @@ const RequestEditPage = () => { // NEVER CHANGE THIS: return { showInputEle: false, text: item.text, index: index }; }); + setRequests(resp); setProdReq(standardProd); }) @@ -111,6 +103,9 @@ const RequestEditPage = () => { } async function getOutgoingRequests(documentId) { + if (!documentId) { + return; + } const docType = String(documentType); const docId = String(documentId); const response = await fetch( @@ -178,8 +173,10 @@ const RequestEditPage = () => { }; async function postEditedResponses() { + if (!requests && requests.length > 1) { + return; + } const mergedRequests = [...requests, ...prodReq]; - const docId = documentId; const leadAttorneys = fetchedCase?.leadAttorneys ? fetchedCase?.leadAttorneys @@ -385,7 +382,7 @@ const RequestEditPage = () => { fetchedCase?.clientPosition === "Defendant" ? fetchedCase?.plaintiffParties : fetchedCase?.defendantParties; - console.log("state", state); + const editingContent = () => { return ( <> diff --git a/src/Components/Home/HomePage.js b/src/Components/Home/HomePage.js index abacb5e..13f36e0 100644 --- a/src/Components/Home/HomePage.js +++ b/src/Components/Home/HomePage.js @@ -33,9 +33,9 @@ const HomePage = () => {
-

- Novodraft: Legal AI. Draft documents faster and {" "} - smarter. +

Novodraft: Legal AI.

+

+ Draft documents faster and smarter.

diff --git a/src/Constants/Copy/docEditCopy.js b/src/Constants/Copy/docEditCopy.js index ac52dee..e8b540e 100644 --- a/src/Constants/Copy/docEditCopy.js +++ b/src/Constants/Copy/docEditCopy.js @@ -59,33 +59,23 @@ export const docEditCopy = { export const outgoingComesNow = (state, fetchedCase) => { let copyString; - const position = fetchedCase ? fetchedCase?.clientPosition : <>; - const parties = fetchedCase ? ( - fetchedCase?.clientPosition === "Plaintiff" ? ( - fetchedCase?.plaintiffParties - ) : ( - fetchedCase?.defendantParties - ) - ) : ( - <> - ); - const adversary = fetchedCase ? ( - fetchedCase?.clientPosition === "Plaintiff" ? ( - fetchedCase?.defendantParties - ) : ( - fetchedCase?.plaintiffParties - ) - ) : ( - <> - ); + + const servingParty = + fetchedCase?.clientPosition === "Plaintiff" + ? fetchedCase?.plaintiffParties + : fetchedCase?.defendantParties; + const respondingParty = + servingParty === fetchedCase?.plaintiffParties + ? fetchedCase?.defendantParties + : fetchedCase?.plaintiffParties; 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") { - 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") { 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,` +

et. seq.
+ `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).`; } diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index 8777cf9..157351e 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -426,6 +426,7 @@ .reqedit-report-container { width: 90%; margin-top: -20px; + margin-left: 16px; } .docedit-report-link { font-size: 0.95rem; @@ -441,7 +442,7 @@ min-width: 700px; display: flex; flex-direction: row; - margin: 16px 0px; + margin: 16px 0px 8px 0px; } @media only screen and (max-width: 1140px) { diff --git a/src/styles/homepage.scss b/src/styles/homepage.scss index 04632e9..19424a2 100644 --- a/src/styles/homepage.scss +++ b/src/styles/homepage.scss @@ -41,8 +41,7 @@ ul.navbar-nav { section.section-1:before { content: ""; - background: url("../Assets/Images/overlayFlipSmall.png") no-repeat fixed 0% - 290px; + background: url("../Assets/Images/overlayFlip.png") no-repeat fixed 10% 115px; background-attachment: local; position: absolute; top: 0; @@ -132,26 +131,38 @@ section.section-1 { max-width: 370px; line-height: 29px; text-align: justify; + margin-top: -8px; } h1.heading-1 { color: #fff; font-family: Roboto; - font-size: 40px; + font-size: 54px; font-style: normal; font-weight: 500; 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 { color: #fff; font-family: Roboto; - font-size: 28px; + font-size: 26px; font-style: normal; font-weight: 400; line-height: 29.756px; /* 123.983% */ - width: 525.308px; + width: 525px; + margin-top: 28px; } .try-it-button-box {