more
This commit is contained in:
@@ -139,7 +139,6 @@ const DocEditPage = (props) => {
|
|||||||
if (docSnap.exists()) {
|
if (docSnap.exists()) {
|
||||||
const _case = docSnap.data();
|
const _case = docSnap.data();
|
||||||
_case.id = docSnap._key.path.segments[1];
|
_case.id = docSnap._key.path.segments[1];
|
||||||
console.log("case", _case);
|
|
||||||
setFetchedCase(_case);
|
setFetchedCase(_case);
|
||||||
} else {
|
} else {
|
||||||
console.log("DB item does not exist");
|
console.log("DB item does not exist");
|
||||||
@@ -214,7 +213,6 @@ const DocEditPage = (props) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getParsedRogs(documentId, docType)
|
getParsedRogs(documentId, docType)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log("data in useeffect", data);
|
|
||||||
const respond = data[0].requests.length > 2 ? data[0].requests : null;
|
const respond = data[0].requests.length > 2 ? data[0].requests : null;
|
||||||
const resp = respond?.map((item, index) => {
|
const resp = respond?.map((item, index) => {
|
||||||
// NEVER CHANGE THIS:
|
// NEVER CHANGE THIS:
|
||||||
@@ -251,7 +249,7 @@ const DocEditPage = (props) => {
|
|||||||
method: "GET",
|
method: "GET",
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log(response);
|
//
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
@@ -261,11 +259,8 @@ const DocEditPage = (props) => {
|
|||||||
async function createAndReturnDocx() {
|
async function createAndReturnDocx() {
|
||||||
setIsBusy(true);
|
setIsBusy(true);
|
||||||
const response = await handleCreateDocx();
|
const response = await handleCreateDocx();
|
||||||
console.log(
|
|
||||||
"why is this a fucking array~~~~~~~~~~~~~~~~~~~~~~~~~~>",
|
if (response?.status != 500) {
|
||||||
responses
|
|
||||||
);
|
|
||||||
if (response?.status === 200) {
|
|
||||||
setTimeout(getDocx, 5000);
|
setTimeout(getDocx, 5000);
|
||||||
setTimeout(cleanUpDocx, 10000);
|
setTimeout(cleanUpDocx, 10000);
|
||||||
} else {
|
} else {
|
||||||
@@ -292,17 +287,14 @@ const DocEditPage = (props) => {
|
|||||||
|
|
||||||
async function postDocxData(obj) {
|
async function postDocxData(obj) {
|
||||||
const docId = documentId;
|
const docId = documentId;
|
||||||
console.log("obj", obj);
|
|
||||||
const response = await fetch(`${apiUrl}/v1/store-docx-data/${docId}`, {
|
const response = await fetch(`${apiUrl}/v1/store-docx-data/${docId}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify(obj),
|
body: JSON.stringify(obj),
|
||||||
});
|
});
|
||||||
console.log("res~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", response);
|
|
||||||
//return res;
|
//return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleCreateDocx() {
|
async function handleCreateDocx() {
|
||||||
console.log("handleCreateDocx FIRED ------------------------------->");
|
|
||||||
// TODO: compare to see if any changes made before gen, save those
|
// TODO: compare to see if any changes made before gen, save those
|
||||||
const docId = documentId;
|
const docId = documentId;
|
||||||
const leadAttorneys = fetchedCase?.leadAttorneys
|
const leadAttorneys = fetchedCase?.leadAttorneys
|
||||||
@@ -349,7 +341,7 @@ const DocEditPage = (props) => {
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
const response = await fetch(
|
const resp = await fetch(
|
||||||
`${apiUrl}/v1/generate-request-docx/${docId}`,
|
`${apiUrl}/v1/generate-request-docx/${docId}`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@@ -359,8 +351,9 @@ const DocEditPage = (props) => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
console.log("++=================================resp", resp);
|
||||||
|
return resp;
|
||||||
}
|
}
|
||||||
return response;
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("err in postDocxData", err);
|
console.log("err in postDocxData", err);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,13 +93,14 @@ export const OutgoingSteps = () => (
|
|||||||
</div>
|
</div>
|
||||||
<div className="steps-text-wrapper">
|
<div className="steps-text-wrapper">
|
||||||
<span className="bold-span">GENERATE THE RESPONSE: </span>Click
|
<span className="bold-span">GENERATE THE RESPONSE: </span>Click
|
||||||
"Upload."Novdraft’s Intellidraft AI will generate the response and
|
"Upload." Novdraft’s Intellidraft AI will generate the response. When
|
||||||
automatically navigate to the interactive Document Editor. You may now
|
complete, you will be taken to the Document Editor where you may edit
|
||||||
edit the responses if you prefer. Note: at this time, Novodraft supports
|
and download the response in .docx format.
|
||||||
generation of combined interrogatories and requests for production of
|
</div>
|
||||||
documents. Additional discovery request types (i.e. requests for
|
<div className="steps-text-wrapper">
|
||||||
admissions, stand-alone interrogatories) as well as more fine-grained
|
Novodraft currently supports generation of combined interrogatories and
|
||||||
request generation configurations will be added week by week.
|
requests for production. Additional request types (i.e. admissions),
|
||||||
|
features and request generation configurations are launching each month.
|
||||||
</div>
|
</div>
|
||||||
<div className="steps-text-wrapper">
|
<div className="steps-text-wrapper">
|
||||||
<span className="bold-span">DOWNLOAD YOUR RESPONSE DOCUMENT: </span>
|
<span className="bold-span">DOWNLOAD YOUR RESPONSE DOCUMENT: </span>
|
||||||
|
|||||||
@@ -50,6 +50,10 @@ export const rogDefinitions = [
|
|||||||
id: "dda1376c-3d42-471f-9cb8-4a1ecb9c10cc",
|
id: "dda1376c-3d42-471f-9cb8-4a1ecb9c10cc",
|
||||||
text: "“Document” means and includes all written and graphic matter of every kind and description, whether printed or produced by any mechanical, digital or other process, or by hand, whether final draft or reproduction, whether in the actual or constructive possession, custody or control of the respondent to a given interrogatory. This includes any and all written letters, correspondence, memoranda, notes, statements, transcripts, files, charters, articles of incorporation, securities, bonds, stocks, certificates of deposit, evidences of debt, contracts, agreements, licenses, memoranda or notes of telephone or personal conversations, work papers, tapes, charts, reports, books, ledgers, telegrams, sound recordings, books of account, customer account statements, financial statements, catalogs, checks, check stubs, and written statements of witnesses or other persons having knowledge pertaining to the pertinent facts requested or relating to the interrogatory or subpart thereof, whether or not these documents are claimed to be privileged against disclosure.",
|
text: "“Document” means and includes all written and graphic matter of every kind and description, whether printed or produced by any mechanical, digital or other process, or by hand, whether final draft or reproduction, whether in the actual or constructive possession, custody or control of the respondent to a given interrogatory. This includes any and all written letters, correspondence, memoranda, notes, statements, transcripts, files, charters, articles of incorporation, securities, bonds, stocks, certificates of deposit, evidences of debt, contracts, agreements, licenses, memoranda or notes of telephone or personal conversations, work papers, tapes, charts, reports, books, ledgers, telegrams, sound recordings, books of account, customer account statements, financial statements, catalogs, checks, check stubs, and written statements of witnesses or other persons having knowledge pertaining to the pertinent facts requested or relating to the interrogatory or subpart thereof, whether or not these documents are claimed to be privileged against disclosure.",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "cc62a598-e50e-4e60-ae3a-9163dd73f8a5",
|
||||||
|
text: '“Describe" means a complete statement of all facts known to you about an incident, event, physical object, person, or other subject matter, together with any expert opinions about the subject matter, the basis for those opinions, and a description of all relevant documents and evidence that supports and/or refutes the fact or opinion.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "05970162-1b13-4f98-ac73-91da0c8f0bf4",
|
id: "05970162-1b13-4f98-ac73-91da0c8f0bf4",
|
||||||
text: "“Identify” means, when used with reference to an individual person, organization, corporation or association, to state the full name, home and work addresses, e-mail address, home and business telephone numbers, present or last known position and business affiliation and position both in the past and at the time said interrogatory or subpart thereof is being responded to.",
|
text: "“Identify” means, when used with reference to an individual person, organization, corporation or association, to state the full name, home and work addresses, e-mail address, home and business telephone numbers, present or last known position and business affiliation and position both in the past and at the time said interrogatory or subpart thereof is being responded to.",
|
||||||
@@ -59,8 +63,12 @@ export const rogDefinitions = [
|
|||||||
text: "The term “identify” further means, when used with reference to a document, to state the date it was created, its author, the signatory, if different, the addressee, the recipient of all copies, the type of document (e.g. chart, memorandum, letter, or other written document) and its present or last known custodian.",
|
text: "The term “identify” further means, when used with reference to a document, to state the date it was created, its author, the signatory, if different, the addressee, the recipient of all copies, the type of document (e.g. chart, memorandum, letter, or other written document) and its present or last known custodian.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "d800b745-6d55-44bb-b5e3-cd1f96516a2e",
|
id: "",
|
||||||
text: "“Describe” means that the person or entity to whom the interrogatory or subpart thereof is directed should state what is requested to be described, including all facts and opinions known and held regarding, relating to, or pertinent to what is requested to be described, and (i) the identity of each person or entity involved or having any knowledge of each fact or opinion that relates to what is so described, (ii) the identity of each document evidencing the answer or response given or relating, referring or pertaining to said subject-matter in any way, and (iii) all relevant or material dates and time periods, specifying the way in which said dates or time periods are pertinent to the subject-matter described.",
|
text: '"Refer to" or "refers to" means mentioning, discussing, making reference to or relating to in any way.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "8ff2c80e-7dd8-4c48-b202-8702047c4946",
|
||||||
|
text: '"Relate(s) to" or "relating to" means constituting, defining, concerning, embodying, reflecting, identifying, stating, referring to, bearing upon, dealing with or in any way pertaining to.',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
.footer-container {
|
.footer-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border: 1px solid orange;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: var(--bluest-blue);
|
background-color: var(--bluest-blue);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user