From d0e06ebe4bf4328e89b5a8985df005e402867afc Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 21 Jan 2024 21:07:45 -0600 Subject: [PATCH 1/3] more --- src/Components/Document/DocEditPage.js | 104 +----------------- .../Document/captionHeaders/newYorkCaption.js | 12 +- src/styles/docedit-page.scss | 4 +- 3 files changed, 14 insertions(+), 106 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index c7917eb..108c1f1 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -582,109 +582,7 @@ const DocEditPage = () => { : fetchedCase?.defendantParties; const editingContent = () => { - return ( - <> - {headerPicker()} -
-
{headerString}
-
- {displayCopy.prelimaryStatement( - documentType, - respondent, - servingParty - )} -
-
- {parsedRogs?.map((rog, i) => ( -
-
- {numberingContent(i)} - {rog?.text} -
-
- 2 - ? // NEVER CHANGE THIS - responses[i].resp - : null - } - setShowInputEle={setShowInputEle} - showInputEle={ - responses && responses.length > 2 - ? responses[i].showInputEle - : null - } - handleFocus={handleFocus} - handleEditValue={handleEditValue} - handleBlur={handleBlur} - i={i} - /> -
-
- ))} -
handleConfirmReport()} - > -
Report an issue
-
-
-
- {/* TODO: add tooltip: "This will save the document and create a .docx file that will (be downloaded? saved somewhere?" */} -
-
-
-
-
-
-
-
-
-
- {showSaveModal && !isReport && documentId !== null ? ( - - ) : null} - {showSaveModal && isReport && documentId !== null ? ( - - ) : null} - - ); + return
{headerPicker()}
; }; const readyToEdit = fetchedCase && responses.length > 1; diff --git a/src/Components/Document/captionHeaders/newYorkCaption.js b/src/Components/Document/captionHeaders/newYorkCaption.js index 4ff9ae8..244b066 100644 --- a/src/Components/Document/captionHeaders/newYorkCaption.js +++ b/src/Components/Document/captionHeaders/newYorkCaption.js @@ -12,7 +12,11 @@ const NewYorkCaption = (props) => {
{fetchedCase?.jurisdiction} {fetchedCase?.venue} -
+
+
+ --------------------------------------------------------------------X +
+
@@ -44,7 +48,11 @@ const NewYorkCaption = (props) => {
Defendant(s)
-
+
+
+ -------------------------------------------------------------------------X +
+
diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index 6031ef6..ae58b7e 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -90,10 +90,12 @@ .docedit-header-row { display: flex; flex-direction: row; - height: 210px; + height: 240px; + margin-bottom: 12px; color: #000000; font-weight: 500; overflow: hidden; + background-color: yellow; } .docedit-header-col1 { From 2d1f1238ed17feb25d38ca62784ced6d014ed509 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 21 Jan 2024 21:11:07 -0600 Subject: [PATCH 2/3] more --- src/Components/Document/DocEditPage.js | 104 ++++++++++++++++++++++++- src/styles/docedit-page.scss | 2 +- 2 files changed, 104 insertions(+), 2 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index 108c1f1..e3183b4 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -582,7 +582,109 @@ const DocEditPage = () => { : fetchedCase?.defendantParties; const editingContent = () => { - return
{headerPicker()}
; + return ( + <> +
{headerPicker()}
+
+
{headerString}
+
+ {displayCopy.prelimaryStatement( + documentType, + respondent, + servingParty + )} +
+
+ {parsedRogs?.map((rog, i) => ( +
+
+ {numberingContent(i)} + {rog?.text} +
+
+ 2 + ? // NEVER CHANGE THIS + responses[i].resp + : null + } + setShowInputEle={setShowInputEle} + showInputEle={ + responses && responses.length > 2 + ? responses[i].showInputEle + : null + } + handleFocus={handleFocus} + handleEditValue={handleEditValue} + handleBlur={handleBlur} + i={i} + /> +
+
+ ))} +
handleConfirmReport()} + > +
Report an issue
+
+
+
+ {/* TODO: add tooltip: "This will save the document and create a .docx file that will (be downloaded? saved somewhere?" */} +
+
+
+
+
+
+
+
+
+
+ {showSaveModal && !isReport && documentId !== null ? ( + + ) : null} + {showSaveModal && isReport && documentId !== null ? ( + + ) : null} + + ); }; const readyToEdit = fetchedCase && responses.length > 1; diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index ae58b7e..b39e104 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -249,7 +249,7 @@ justify-content: center; align-items: center; width: 60%; - margin: 22px auto; + margin: 6px auto; color: #4e4e4e; } From b6126170d5817a6ca4b2bc3bb48a95ebda0f176f Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sun, 21 Jan 2024 21:12:45 -0600 Subject: [PATCH 3/3] more --- src/Components/Document/captionHeaders/newYorkCaption.js | 4 ++-- src/styles/docedit-page.scss | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Components/Document/captionHeaders/newYorkCaption.js b/src/Components/Document/captionHeaders/newYorkCaption.js index 244b066..c8ecae0 100644 --- a/src/Components/Document/captionHeaders/newYorkCaption.js +++ b/src/Components/Document/captionHeaders/newYorkCaption.js @@ -14,7 +14,7 @@ const NewYorkCaption = (props) => { {fetchedCase?.venue}
- --------------------------------------------------------------------X + -----------------------------------------------------------------------X
@@ -50,7 +50,7 @@ const NewYorkCaption = (props) => {
- -------------------------------------------------------------------------X + ----------------------------------------------------------------------------X
diff --git a/src/styles/docedit-page.scss b/src/styles/docedit-page.scss index b39e104..12d3818 100644 --- a/src/styles/docedit-page.scss +++ b/src/styles/docedit-page.scss @@ -90,12 +90,11 @@ .docedit-header-row { display: flex; flex-direction: row; - height: 240px; + height: 230px; margin-bottom: 12px; color: #000000; font-weight: 500; overflow: hidden; - background-color: yellow; } .docedit-header-col1 {