From 52461fe5b13739d2213c7061e8933861accebbc5 Mon Sep 17 00:00:00 2001 From: bhatiadheeraj Date: Mon, 8 Jan 2024 18:51:43 +0000 Subject: [PATCH 01/16] changed var to let --- ui/src/modals/newtask.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/modals/newtask.vue b/ui/src/modals/newtask.vue index 61214194..22ee93ad 100644 --- a/ui/src/modals/newtask.vue +++ b/ui/src/modals/newtask.vue @@ -276,13 +276,13 @@ export default { .then(res=>{ //now, pick apps that we have *all* input datasets that matches the input datatype/tags res.data.apps.forEach(app=>{ - var match = true; + let match = true; app.inputs.forEach(input=>{ if(input.optional) return; //optional - var matching_dataset = this.datasets.find(dataset=>{ + let matching_dataset = this.datasets.find(dataset=>{ if(!input.datatype) return false; //only happens on dev? if(dataset.datatype != input.datatype._id) return false; - var match_tag = true; + let match_tag = true; if(dataset.datatype_tags) input.datatype_tags.forEach(tag=>{ //make sure tag matches if(tag[0] == "!" && ~dataset.datatype_tags.indexOf(tag.substring(1))) match_tag = false; From 789a5db046dfd95a484951fa298433ab750a4835 Mon Sep 17 00:00:00 2001 From: bhatiadheeraj Date: Tue, 9 Jan 2024 00:26:30 +0000 Subject: [PATCH 02/16] wip: fetches all apps, filters for popular and not popular based of datatype/dataset and show other apps which are deprecated and/or incompatible --- ui/src/components/app.vue | 76 ++++++++++++++++++++++++++++++++++++--- ui/src/modals/newtask.vue | 29 +++++++++++---- 2 files changed, 93 insertions(+), 12 deletions(-) diff --git a/ui/src/components/app.vue b/ui/src/components/app.vue index 326fccc2..b39a08ff 100644 --- a/ui/src/components/app.vue +++ b/ui/src/components/app.vue @@ -1,8 +1,15 @@ diff --git a/ui/src/components/datatypetag.vue b/ui/src/components/datatypetag.vue index 60942b86..49fb0927 100644 --- a/ui/src/components/datatypetag.vue +++ b/ui/src/components/datatypetag.vue @@ -1,5 +1,5 @@