From bf0e29a87e21134626682fa768d8e27d59fcc3c4 Mon Sep 17 00:00:00 2001 From: "ITHQ1947\\saritha.pillai" Date: Thu, 12 Sep 2024 17:17:15 +0530 Subject: [PATCH] Gyroscope updates --- src/components/EmbeddedActivity.tsx | 1 + src/components/Researcher/ActivityList/Activity.tsx | 1 + .../Researcher/ActivityList/ActivityMethods.ts | 9 +++++++++ src/components/Researcher/ActivityList/AddActivity.tsx | 1 + src/components/shared/AutoSuggest.tsx | 4 ---- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/EmbeddedActivity.tsx b/src/components/EmbeddedActivity.tsx index 462c2f6e..3174e85a 100644 --- a/src/components/EmbeddedActivity.tsx +++ b/src/components/EmbeddedActivity.tsx @@ -46,6 +46,7 @@ const demoActivities = { "lamp.emotion_recognition": "emotion_recognition", "lamp.symbol_digit_substitution": "symbol_digit_substitution", "lamp.gyroscope": "gyroscope", + "lamp.dcog": "d-cog", } export default function EmbeddedActivity({ participant, activity, name, onComplete, noBack, tab, ...props }) { diff --git a/src/components/Researcher/ActivityList/Activity.tsx b/src/components/Researcher/ActivityList/Activity.tsx index 511d6c03..ca8151eb 100644 --- a/src/components/Researcher/ActivityList/Activity.tsx +++ b/src/components/Researcher/ActivityList/Activity.tsx @@ -30,6 +30,7 @@ export const games = [ "lamp.emotion_recognition", "lamp.symbol_digit_substitution", "lamp.gyroscope", + "lamp.dcog", ] const useStyles = makeStyles((theme: Theme) => diff --git a/src/components/Researcher/ActivityList/ActivityMethods.ts b/src/components/Researcher/ActivityList/ActivityMethods.ts index 8ffa78cb..44f1c321 100644 --- a/src/components/Researcher/ActivityList/ActivityMethods.ts +++ b/src/components/Researcher/ActivityList/ActivityMethods.ts @@ -1008,6 +1008,15 @@ export const SchemaList = () => { }, }, }, + "lamp.dcog": { + type: "object", + properties: { + settings: { + title: i18n.t("Activity Settings"), + type: "object", + }, + }, + }, "lamp.dbt_diary_card": { type: "object", properties: { diff --git a/src/components/Researcher/ActivityList/AddActivity.tsx b/src/components/Researcher/ActivityList/AddActivity.tsx index e4616872..8da30287 100644 --- a/src/components/Researcher/ActivityList/AddActivity.tsx +++ b/src/components/Researcher/ActivityList/AddActivity.tsx @@ -157,6 +157,7 @@ export default function AddActivity({ "lamp.maze_game": `${t("Maze Game")}`, "lamp.emotion_recognition": `${t("Emotion Recognition")}`, "lamp.symbol_digit_substitution": `${t("Symbol-digit Substitution")}`, + "lamp.dcog": `${t("D-Cog")}`, } const getActivitySpec = async (id) => { diff --git a/src/components/shared/AutoSuggest.tsx b/src/components/shared/AutoSuggest.tsx index 5fb14777..330a7a85 100644 --- a/src/components/shared/AutoSuggest.tsx +++ b/src/components/shared/AutoSuggest.tsx @@ -73,10 +73,6 @@ export default function AutoSuggest(props) { setValue(newValue) } - useEffect(() => { - console.log(props) - }, [props]) - // Autosuggest will call this function every time you need to update suggestions. // You already implemented this logic above, so just use it. const onSuggestionsFetchRequested = ({ value }) => {