From 2f8a33624d0cf4ae28589bd2b119d509781e9689 Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Wed, 18 Dec 2024 11:14:51 -0500 Subject: [PATCH 1/2] change labels, update Tooltop texts, add partial required error validation response --- src/src/components/uploads/createUploads.jsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/src/components/uploads/createUploads.jsx b/src/src/components/uploads/createUploads.jsx index 4134090b..17e11723 100644 --- a/src/src/components/uploads/createUploads.jsx +++ b/src/src/components/uploads/createUploads.jsx @@ -111,6 +111,14 @@ class CreateUploads extends Component { ){ this.handleError("Please fill in all required fields before submitting."); return; + }else if( + (!this.state.inputValue_title || this.state.inputValue_title ==="") || + (!this.state.inputValue_desc || this.state.inputValue_desc ==="") || + (!this.state.inputValue_organ || this.state.inputValue_organ ==="") || + (!this.state.inputValue_type || this.state.inputValue_type ==="") + ){ + this.handleError("Above marked fields are required."); + return }else{ this.handleError("The system has encountered an unrecognized error during validation. \ Please try again or contact the help desk for further assistance."); @@ -221,7 +229,7 @@ class CreateUploads extends Component { console.debug('%c◉ Cant Match: ', 'color:#00ff7b', evt.target.id); } - this.validateForm(); + // this.validateForm(); } } @@ -500,7 +508,7 @@ class CreateUploads extends Component {
-

The Organ In Question

+

Select the organ type that the data in this Upload is intended to be derived from.

{this.renderOrganDropdown()} @@ -523,7 +531,7 @@ class CreateUploads extends Component {
-

The Type of Dataset In Question

+

Select the data type that this Upload will contain.

{this.state.datasetTypes.length > 0 && ( From 213a52280e679c5da85f03ba3add40c727b606ad Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Wed, 18 Dec 2024 11:37:23 -0500 Subject: [PATCH 2/2] Update labels and add tooltip on upload edit page, adjust dropdowns to render on same row --- src/src/components/uploads/editUploads.jsx | 49 +++++++++++++++++++--- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/src/src/components/uploads/editUploads.jsx b/src/src/components/uploads/editUploads.jsx index 96b8370f..38e47a64 100644 --- a/src/src/components/uploads/editUploads.jsx +++ b/src/src/components/uploads/editUploads.jsx @@ -961,13 +961,16 @@ renderReorganizeButton() { renderDatasetTypeDropdown(){ return (