This commit is contained in:
Kenneth Jannette
2024-01-18 15:16:55 -06:00
parent 0bcd20ecce
commit 971ce1aad9
4 changed files with 6 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ const DocEditPage = () => {
]; ];
/* /*
* GET docuement (info) from Firebase * GET docuement data from Firebase
* */ * */
useEffect(() => { useEffect(() => {
@@ -142,7 +142,7 @@ const DocEditPage = () => {
if (!documentId || !documentType) { if (!documentId || !documentType) {
return; return;
} }
// TODO: *BUG* still sometimes gens repsonses after first one, maybe state is not updating // TODO: possible *BUG* sometimes sends network req to gen repsonses after first (maybe state is not updating?)
getParsedRequests(documentId, documentType); getParsedRequests(documentId, documentType);
if (responsesCreated > 0) { if (responsesCreated > 0) {
getCompletions(documentId) getCompletions(documentId)
@@ -247,7 +247,7 @@ const DocEditPage = () => {
} }
const docType = String(documentType); const docType = String(documentType);
let mode; let mode;
//TODO: remove isRequests var //TODO: remove isRequests var if not goign to use
const isRequests = false; const isRequests = false;
console.log( console.log(
"generateResponsesCombined docmentId docType", "generateResponsesCombined docmentId docType",

View File

@@ -114,10 +114,7 @@ const DocumentListPage = ({ perPage }) => {
const selectedDoc = allDocs.filter((doc) => { const selectedDoc = allDocs.filter((doc) => {
return doc.documentId == selectedDocumentId; return doc.documentId == selectedDocumentId;
}); });
console.log(
"selectedDoc[0].responseGenerations",
selectedDoc[0].responseGenerations
);
const respGens = selectedDoc[0].responseGenerations; const respGens = selectedDoc[0].responseGenerations;
try { try {

View File

@@ -9,7 +9,7 @@ export const useCases = (userId) => {
const queryParams = { const queryParams = {
userId: userId, userId: userId,
}; };
const response = await someEndpoint; const response = "someEndpoint";
//return response //return response
}); });
}; };

View File

@@ -278,6 +278,7 @@ export const DocCard = (props) => {
const report = (documentId, docType) => { const report = (documentId, docType) => {
console.log("report documentId, docType", documentId, docType); console.log("report documentId, docType", documentId, docType);
}; };
const tooltipText = const tooltipText =
"Parsing is taking a bit longer than usual. This usually resolves within 10 - 15 minutes. If it does not, click “report” and support will address the issue within 24 hours."; "Parsing is taking a bit longer than usual. This usually resolves within 10 - 15 minutes. If it does not, click “report” and support will address the issue within 24 hours.";
const disabled = docType ? false : true; const disabled = docType ? false : true;