From 202ec2207115d6b55837753b878a51ca12fc211f Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Wed, 2 Feb 2022 13:03:48 -0500 Subject: [PATCH 1/4] Make Control Panel take up less vertical space --- client/src/components/ControlPanel.vue | 84 +++++++++++++---------- client/src/components/DecisionButtons.vue | 65 +++++++----------- client/src/store/index.ts | 4 ++ 3 files changed, 76 insertions(+), 77 deletions(-) diff --git a/client/src/components/ControlPanel.vue b/client/src/components/ControlPanel.vue index be986c6a..f5663444 100644 --- a/client/src/components/ControlPanel.vue +++ b/client/src/components/ControlPanel.vue @@ -27,6 +27,7 @@ export default { 'proxyManager', 'scanCachedPercentage', 'showCrosshairs', + 'storeCrosshairs', 'myCurrentProjectRoles', ]), ...mapGetters([ @@ -126,6 +127,7 @@ export default { ]), ...mapMutations([ 'setShowCrosshairs', + 'setStoreCrosshairs', ]), async switchLock(newExp, oldExp = null) { if (!this.navigateToNextIfCurrentScanNull()) { @@ -264,14 +266,13 @@ export default { {{ currentViewData.experimentName }} - + + + Display crosshairs + + + + + + Store crosshairs with decision + + + + + @@ -304,7 +329,7 @@ export default { class="pa-0" > - + - - - Display crosshairs - - - - - - + - -
- -
Loading...
-
-
+
+ +
Loading...
+
- - - - - + - + + +
diff --git a/client/src/components/DecisionButtons.vue b/client/src/components/DecisionButtons.vue index 21841ad0..386f9e0b 100644 --- a/client/src/components/DecisionButtons.vue +++ b/client/src/components/DecisionButtons.vue @@ -23,7 +23,6 @@ export default { newComment: '', confirmedPresent: [], confirmedAbsent: [], - storeCrosshairs: true, }; }, computed: { @@ -31,6 +30,7 @@ export default { 'currentViewData', 'proxyManager', 'vtkViews', + 'storeCrosshairs', ]), ...mapGetters([ 'currentViewData', @@ -109,10 +109,14 @@ export default { }, methods: { convertValueToLabel(artifactName) { - return artifactName.replace('susceptibility_metal', 'metal_susceptibility').replace(/_/g, ' ').replace( - /\w\S*/g, - (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(), - ); + return artifactName + .replace('susceptibility_metal', 'metal_susceptibility') + .replace('partial_brain_coverage', 'partial_coverage') + .replace(/_/g, ' ') + .replace( + /\w\S*/g, + (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(), + ); }, getCurrentChipState(artifact) { // this function determines the styling of the four chip states. @@ -220,9 +224,13 @@ export default { diff --git a/client/src/components/ScanDecision.vue b/client/src/components/ScanDecision.vue index e5764bd9..ffdd9ddd 100644 --- a/client/src/components/ScanDecision.vue +++ b/client/src/components/ScanDecision.vue @@ -42,60 +42,63 @@ export default { + {{ chip.value }} + + +
{{ decision.created }} - - +
+