From 4665f5a0e5803a1b7d74ac961f1128bf6d8cbba9 Mon Sep 17 00:00:00 2001 From: Ravi Purushotma Date: Wed, 9 Nov 2016 23:07:01 -0800 Subject: [PATCH 01/34] tooltips --- .../components/UploadPreProcessingModal.tsx | 107 +++++++++++++++++- gui/src/variables.scss | 3 + 2 files changed, 106 insertions(+), 4 deletions(-) diff --git a/gui/src/Deployment/components/UploadPreProcessingModal.tsx b/gui/src/Deployment/components/UploadPreProcessingModal.tsx index ba4e4e8f..d141da7b 100644 --- a/gui/src/Deployment/components/UploadPreProcessingModal.tsx +++ b/gui/src/Deployment/components/UploadPreProcessingModal.tsx @@ -47,8 +47,13 @@ export default class UploadPreProcessingModal extends React.Component { + this.setState({ + showTooltipMain: true + }); + }; + + onMainTooltipOut = () => { + this.setState({ + showTooltipMain: false + }); + }; + + onLibraryTooltipOver = () => { + this.setState({ + showTooltipLibrary: true + }); + }; + + onLibraryTooltipOut = () => { + this.setState({ + showTooltipLibrary: false + }); + }; + + onCondaTooltipOver = () => { + this.setState({ + showTooltipConda: true + }); + }; + + onCondaTooltipOut = () => { + this.setState({ + showTooltipConda: false + }); + }; + + onNameTooltipOver = () => { + this.setState({ + showTooltipName: true + }); + }; + + onNameTooltipOut = () => { + this.setState({ + showTooltipName: true + }); + }; + render(): React.ReactElement { let disableSubmit = false; if (this.state.libraryFiles.length < 1 || !this.state.mainFiles || !this.state.packageNamed) { @@ -113,7 +176,10 @@ export default class UploadPreProcessingModal extends React.Component -
Select a main Python file for pre-processing.
+
+ Select a main Python file for pre-processing.   +
The output from this Python file should be one of row of an H2O data form that your model is expecting.
+
The output from this Python file should be one row of an H2O data from that your model is expecting.
@@ -134,7 +200,10 @@ export default class UploadPreProcessingModal extends React.Component -
Select a one or more Python files for your library.
+
+ Select a one or more Python files for your library.