From 85b12b17e0725f5f36a7a555f8d232057cf3cab3 Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sat, 24 Feb 2024 01:19:28 -0600
Subject: [PATCH 01/15] more
---
src/App.js | 2 +-
src/Components/Dashboard/Dashboard.js | 1 +
src/Components/Login/Login.js | 4 ++++
src/Components/Modals/UploadModal.js | 21 +++++++++++++++------
src/styles/modals.scss | 10 +++++++---
5 files changed, 28 insertions(+), 10 deletions(-)
diff --git a/src/App.js b/src/App.js
index 3f3eff7..b75a5af 100644
--- a/src/App.js
+++ b/src/App.js
@@ -34,7 +34,7 @@ function App() {
const { currentUserEmail } = useContext(AuthContext);
const { group } = appState;
const navigate = useNavigate();
-
+ console.log("group in App", group);
// wait for user information
if (typeof currentUserEmail === "undefined") {
return null;
diff --git a/src/Components/Dashboard/Dashboard.js b/src/Components/Dashboard/Dashboard.js
index 97571ae..30499e3 100644
--- a/src/Components/Dashboard/Dashboard.js
+++ b/src/Components/Dashboard/Dashboard.js
@@ -30,6 +30,7 @@ const Dashboard = () => {
const { group } = appState;
const appUserId = group ? group.appUserId : null;
const isDashboard = true;
+
useEffect(() => {
if (count.current == null) {
setIsMobile(window.innerWidth < 440);
diff --git a/src/Components/Login/Login.js b/src/Components/Login/Login.js
index 7a061e1..070a1e0 100644
--- a/src/Components/Login/Login.js
+++ b/src/Components/Login/Login.js
@@ -20,12 +20,16 @@ const Login = () => {
}
setIsBusy(true);
setNotice("");
+ console.log("auth", auth);
+ console.log("email", email);
+ console.log("password", password);
try {
const userCredential = await signInWithEmailAndPassword(
auth,
email,
password
);
+ console.log("userCredential", userCredential);
// Signed in
userCredential?.user && navigate("/dashboard");
} catch (error) {
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index 9a45e21..6d7a668 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -173,17 +173,26 @@ const UploadModal = (props) => {
- Select a document in pdf format for upload. Enter the document title
- below. Document description is optional.
+ Select a .pdf file for upload. Enter title and choose document type.
+ (the other fields are optional.)
- This document will be associated with {caption} v. {captionTwo}
+ Select the document type.{" "}
+
+ Selecting "complaint" will automatically begin creation of
+ discovery requests.
+
+
+
+ The document will be associated with{" "}
+
+ {caption} v. {captionTwo}
+
{caseNumber ? `, ${caseNumber}` : ""}.
- If that is not the case you want to associate with this document,
- click "cancel", go back and select the intended case from your
- active case list.
+ If that is not the correct case: click cancel to go back and select
+ the intended case from your active cases.
-
+
{
discovery requests.
+
+ Incorrect selection will result in errors but 1 document credit will
+ still be debited from your account
+
The document will be associated with{" "}
diff --git a/src/styles/modals.scss b/src/styles/modals.scss
index d12a4fe..bf82979 100644
--- a/src/styles/modals.scss
+++ b/src/styles/modals.scss
@@ -22,6 +22,9 @@
font-weight: 400;
line-height: 1.1rem;
margin: 0px 0px 10px 0px;
+ &.red {
+ color: red;
+ }
}
.upload-header-bold {
From b0ffaf38daf199de8610e660771034a69e7e5735 Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sat, 24 Feb 2024 02:25:45 -0600
Subject: [PATCH 06/15] more
---
src/Components/Modals/UploadModal.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index 77e085b..d3437c3 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -89,8 +89,8 @@ const UploadModal = (props) => {
async function uploadFile(file) {
try {
- if (true) {
- const response = await fetch(`${apiUrl}/parseNewDoc`, {
+ if (radioValue === "discovery-request") {
+ const response = await fetch(`${apiUrl}/gen-disc-request`, {
method: "POST",
body: file,
});
From b5296d1c371fc8423b1885e6f8edebc8ec6e3fdf Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sat, 24 Feb 2024 02:39:20 -0600
Subject: [PATCH 07/15] more
---
src/Components/Modals/UploadModal.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index d3437c3..4447aba 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -90,7 +90,7 @@ const UploadModal = (props) => {
async function uploadFile(file) {
try {
if (radioValue === "discovery-request") {
- const response = await fetch(`${apiUrl}/gen-disc-request`, {
+ const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
body: file,
});
From 2a753814c1e401a95e4474d48a725bde4fe26403 Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sat, 24 Feb 2024 02:48:37 -0600
Subject: [PATCH 08/15] more
---
src/Components/Modals/UploadModal.js | 8 +++++---
src/styles/modals.scss | 4 ++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index 4447aba..d31d803 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -88,8 +88,10 @@ const UploadModal = (props) => {
}
async function uploadFile(file) {
+ console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~radioValue", radioValue);
try {
if (radioValue === "discovery-request") {
+ console.log("hit radio if");
const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
body: file,
@@ -204,7 +206,7 @@ const UploadModal = (props) => {
document type. (the other fields are optional.)
-
+
{
discovery requests.
-
- Incorrect selection will result in errors but 1 document credit will
+
+ Incorrect selection will result in errors. Document credit will
still be debited from your account
diff --git a/src/styles/modals.scss b/src/styles/modals.scss
index bf82979..e37b29e 100644
--- a/src/styles/modals.scss
+++ b/src/styles/modals.scss
@@ -25,6 +25,10 @@
&.red {
color: red;
}
+ &.right {
+ margin-top: -7px;
+ margin-left: 23px;
+ }
}
.upload-header-bold {
From 285637f9ffd9d0518d43074dd5a471b764cb3c6d Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sun, 25 Feb 2024 12:21:59 -0600
Subject: [PATCH 09/15] more
---
src/App.js | 2 +-
src/Components/Modals/UploadModal.js | 4 ++--
src/Components/SignupPage/SignupPage.js | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/App.js b/src/App.js
index b75a5af..3f3eff7 100644
--- a/src/App.js
+++ b/src/App.js
@@ -34,7 +34,7 @@ function App() {
const { currentUserEmail } = useContext(AuthContext);
const { group } = appState;
const navigate = useNavigate();
- console.log("group in App", group);
+
// wait for user information
if (typeof currentUserEmail === "undefined") {
return null;
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index d31d803..fd2744d 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -90,7 +90,7 @@ const UploadModal = (props) => {
async function uploadFile(file) {
console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~radioValue", radioValue);
try {
- if (radioValue === "discovery-request") {
+ if (radioValue === "complaint") {
console.log("hit radio if");
const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
@@ -214,7 +214,7 @@ const UploadModal = (props) => {
marginRight: "8px",
}}
/>
- Selecting "complaint" will automatically begin creation of
+ NOTE: Selecting "complaint" will automatically begin creation of
discovery requests.
diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js
index b5e7c0e..a111dd9 100644
--- a/src/Components/SignupPage/SignupPage.js
+++ b/src/Components/SignupPage/SignupPage.js
@@ -45,12 +45,12 @@ const SignupPage = () => {
getFormDataDefaults(paymentfields)
);
const [showPaymentModal, setShowPaymentModal] = useState(false);
- /*
+
const [showSelectPlan, setShowSelectPlan] = useState(
isUpgrade ? true : false
);
-*/
- const [showSelectPlan, setShowSelectPlan] = useState(true);
+
+ // const [showSelectPlan, setShowSelectPlan] = useState(true);
const [activeRadioOption, setActiveRadioOption] = useState("partner");
const [selectedPlan, setSelectedPlan] = useState([signupRadioFields[1]]);
const stripe = new Stripe(stripeApiKey);
From 37d4284829f15d24416b5b1a5151f4ea68938adc Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sun, 25 Feb 2024 12:24:00 -0600
Subject: [PATCH 10/15] more
---
src/Components/Account/AccountPage.js | 2 +-
src/Components/Document/DocEditPage.js | 3 +--
src/Components/Login/Login.js | 6 ++----
src/Components/Modals/UploadModal.js | 2 --
4 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/Components/Account/AccountPage.js b/src/Components/Account/AccountPage.js
index da4341e..994464e 100644
--- a/src/Components/Account/AccountPage.js
+++ b/src/Components/Account/AccountPage.js
@@ -17,7 +17,7 @@ const AccountPage = () => {
const appUserId = group ? group.appUserId : null;
const [showModal, setShowModal] = useState(false);
const subscriptionPlan = group?.subscriptionPlan[0].label;
- console.log("subscriptionPlan", subscriptionPlan);
+
const apiUrl =
process.env.NODE_ENV === "development"
? process.env.REACT_APP_API_DEV
diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js
index b8db5c4..78c3120 100644
--- a/src/Components/Document/DocEditPage.js
+++ b/src/Components/Document/DocEditPage.js
@@ -589,8 +589,7 @@ const DocEditPage = () => {
fetchedCase?.clientPosition == "Defendant"
? fetchedCase?.defendantParties
: fetchedCase?.plaintiffParties;
- console.log("parsedRogs", parsedRogs);
- console.log("responses", responses);
+
const editingContent = () => {
return (
<>
diff --git a/src/Components/Login/Login.js b/src/Components/Login/Login.js
index 070a1e0..dc92567 100644
--- a/src/Components/Login/Login.js
+++ b/src/Components/Login/Login.js
@@ -20,16 +20,14 @@ const Login = () => {
}
setIsBusy(true);
setNotice("");
- console.log("auth", auth);
- console.log("email", email);
- console.log("password", password);
+
try {
const userCredential = await signInWithEmailAndPassword(
auth,
email,
password
);
- console.log("userCredential", userCredential);
+
// Signed in
userCredential?.user && navigate("/dashboard");
} catch (error) {
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index fd2744d..dc3c3c4 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -88,10 +88,8 @@ const UploadModal = (props) => {
}
async function uploadFile(file) {
- console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~radioValue", radioValue);
try {
if (radioValue === "complaint") {
- console.log("hit radio if");
const response = await fetch(`${apiUrl}/v1/gen-disc-request`, {
method: "POST",
body: file,
From 673eaab577ece8217b4679b1aa198e0a3dd3b07f Mon Sep 17 00:00:00 2001
From: Kenneth Jannette
Date: Sun, 25 Feb 2024 14:13:33 -0600
Subject: [PATCH 11/15] more
---
src/Components/Modals/UploadModal.js | 21 +++++++++++----------
src/styles/modals.scss | 7 +++++++
2 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/src/Components/Modals/UploadModal.js b/src/Components/Modals/UploadModal.js
index dc3c3c4..6ac1ed7 100644
--- a/src/Components/Modals/UploadModal.js
+++ b/src/Components/Modals/UploadModal.js
@@ -200,8 +200,8 @@ const UploadModal = (props) => {
- Select a .pdf file for upload, then 1. enter title 2. choose
- document type. (the other fields are optional.)
+ Select a .pdf file for upload, then 1. enter title, and 2. choose
+ document type. (other fields optional)
@@ -212,24 +212,25 @@ const UploadModal = (props) => {
marginRight: "8px",
}}
/>
- NOTE: Selecting "complaint" will automatically begin creation of
- discovery requests.
+ NOTE: Clicking upload begins document creation.
+
+ Selecting the incorrect document type may result in errors!
+
- Incorrect selection will result in errors. Document credit will
- still be debited from your account
+ Document credit will still be debited from your account
- The document will be associated with{" "}
+ The document created will be associated with{" "}
{caption} v. {captionTwo}
{caseNumber ? `, ${caseNumber}` : ""}.
- If that is not the correct case: click cancel to go back and select
- the intended case from your active cases.
+ If that is not the correct case: 1. click cancel 2. click back, then
+ 3. select the case from your active cases.