Merge pull request #30 from kjannette/green

more
This commit is contained in:
S Jannette
2024-01-18 15:39:42 -06:00
committed by GitHub
5 changed files with 11 additions and 10 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;

View File

@@ -49,11 +49,14 @@
.features-top-right { .features-top-right {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 18px 8px; justify-content: center;
align-items: center;
margin: auto;
padding: 6px 8px;
width: 55%; width: 55%;
height: 100%;
background-color: var(--haq-blue); background-color: var(--haq-blue);
border-radius: 15px; border-radius: 15px;
height: 100%;
} }
.features-bottom-left { .features-bottom-left {