From b71e162de1004562b2781010901dff7f43541bb7 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Fri, 11 Oct 2024 13:11:45 -0400 Subject: [PATCH 1/6] use "join" codes instead of generating opcodes on join page https://github.com/e-mission/e-mission-docs/issues/1076 OPcodes are meant to be used by only one person. For autogen studies, generating them on the join page introduces the possibility that users will misinterpret the instructions and share OPcodes with others. Instead, we can provide a "join" link which takes users to the app and generates an OPcode there. The "join" link includes the same parameters that the join page can have: study_config, sub_group, and tester. If viewing the join page on a mobile device, we provide the join link as a button which directly links to the app (assuming it has been installed per instructions). Otherwise, we provide the link as a QR code. We also provide the link as text to easily copy and paste. Several of the functions related to token generation are no longer needed here and are being moved to e-mission-phone. a derivative of _getStudyName is still kept, called getStudyNameFromUrl, consistent with what e-mission-phone will have. --- frontend/index.html | 185 ++++++++++++++++++++------------------------ 1 file changed, 86 insertions(+), 99 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 4eb9bda..299236e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -300,21 +300,37 @@

Install the NREL OpenPATH App on Your Phone

Join the Study

-

After you have installed the NREL OpenPATH app on your phone, join the study by scanning - the QR code or visiting the link below using your phone. -

+
+
+

+ After you have installed the NREL OpenPATH app on your phone, join the study by + scanning the QR code or copying the link and pasting it into the app. +

+
+
+
+

+ After you have installed the NREL OpenPATH app on your phone, join the study + by clicking the button below or copying the link and pasting it into the app. +

+ +
-
- -
+
+ + +
-

   

- - - You will log in using a randomly token. Save your token in case you lose or - change phones. If you lose your token, NREL cannot retrieve it for you since we do - not have the ability to match a token to an individual user. +

+ When you join the study, you will be randomly assigned an OPcode, which is a + long string beginning with nrelop_. You will be asked to save your + OPcode in case you lose or change phones. If you lose your token, NREL cannot + retrieve it for you since we do not have the ability to match a token to an + individual user. +

@@ -507,64 +523,27 @@

Contact