This commit is contained in:
Kenneth Jannette
2024-03-12 19:05:06 -05:00
parent 61e8c75ecc
commit 53f1e5ec7d
4 changed files with 26 additions and 23 deletions

View File

@@ -139,7 +139,6 @@ const DocEditPage = (props) => {
if (docSnap.exists()) {
const _case = docSnap.data();
_case.id = docSnap._key.path.segments[1];
console.log("case", _case);
setFetchedCase(_case);
} else {
console.log("DB item does not exist");
@@ -214,7 +213,6 @@ const DocEditPage = (props) => {
useEffect(() => {
getParsedRogs(documentId, docType)
.then((data) => {
console.log("data in useeffect", data);
const respond = data[0].requests.length > 2 ? data[0].requests : null;
const resp = respond?.map((item, index) => {
// NEVER CHANGE THIS:
@@ -251,7 +249,7 @@ const DocEditPage = (props) => {
method: "GET",
})
.then((response) => {
console.log(response);
//
})
.catch((err) => {
console.log(err);
@@ -261,11 +259,8 @@ const DocEditPage = (props) => {
async function createAndReturnDocx() {
setIsBusy(true);
const response = await handleCreateDocx();
console.log(
"why is this a fucking array~~~~~~~~~~~~~~~~~~~~~~~~~~>",
responses
);
if (response?.status === 200) {
if (response?.status != 500) {
setTimeout(getDocx, 5000);
setTimeout(cleanUpDocx, 10000);
} else {
@@ -292,17 +287,14 @@ const DocEditPage = (props) => {
async function postDocxData(obj) {
const docId = documentId;
console.log("obj", obj);
const response = await fetch(`${apiUrl}/v1/store-docx-data/${docId}`, {
method: "POST",
body: JSON.stringify(obj),
});
console.log("res~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", response);
//return res;
}
async function handleCreateDocx() {
console.log("handleCreateDocx FIRED ------------------------------->");
// TODO: compare to see if any changes made before gen, save those
const docId = documentId;
const leadAttorneys = fetchedCase?.leadAttorneys
@@ -349,7 +341,7 @@ const DocEditPage = (props) => {
}),
});
if (response.status === 200) {
const response = await fetch(
const resp = await fetch(
`${apiUrl}/v1/generate-request-docx/${docId}`,
{
method: "POST",
@@ -359,10 +351,11 @@ const DocEditPage = (props) => {
},
}
);
console.log("++=================================resp", resp);
return resp;
}
return response;
} catch (err) {
console.log("err inpostDocxData", err);
console.log("err in postDocxData", err);
}
}

View File

@@ -93,13 +93,14 @@ export const OutgoingSteps = () => (
</div>
<div className="steps-text-wrapper">
<span className="bold-span">GENERATE THE RESPONSE: </span>Click
"Upload."Novdrafts Intellidraft AI will generate the response and
automatically navigate to the interactive Document Editor. You may now
edit the responses if you prefer. Note: at this time, Novodraft supports
generation of combined interrogatories and requests for production of
documents. Additional discovery request types (i.e. requests for
admissions, stand-alone interrogatories) as well as more fine-grained
request generation configurations will be added week by week.
"Upload." Novdrafts Intellidraft AI will generate the response. When
complete, you will be taken to the Document Editor where you may edit
and download the response in .docx format.
</div>
<div className="steps-text-wrapper">
Novodraft currently supports generation of combined interrogatories and
requests for production. Additional request types (i.e. admissions),
features and request generation configurations are launching each month.
</div>
<div className="steps-text-wrapper">
<span className="bold-span">DOWNLOAD YOUR RESPONSE DOCUMENT: </span>

View File

@@ -50,6 +50,10 @@ export const rogDefinitions = [
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.",
},
{
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",
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.",
},
{
id: "d800b745-6d55-44bb-b5e3-cd1f96516a2e",
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.",
id: "",
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.',
},
];

View File

@@ -1,6 +1,7 @@
.footer-container {
display: flex;
flex-direction: column;
border: 1px solid orange;
border-radius: 8px;
background-color: var(--bluest-blue);
}