Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream sync 1 #682

Open
wants to merge 128 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
bc74964
core tasks version bump beta.13
Zio-4 Jun 5, 2024
4691e6a
Adding levante scopped core-tasks
Zio-4 Jun 5, 2024
4493e72
Merge pull request #1 from levante-framework/core-tasks-beta15
Zio-4 Jun 5, 2024
89424b1
fixing dob check
Zio-4 Jun 5, 2024
00fdfcf
Merge pull request #2 from levante-framework/dob-fix
Zio-4 Jun 5, 2024
df4a562
fixing typo in survey task id
Zio-4 Jun 6, 2024
aca6d08
Merge pull request #3 from levante-framework/survey-completion-fix
kachergis Jun 6, 2024
cbda230
saving all responses for survey, fixing survey data fetching
Zio-4 Jun 7, 2024
597f799
Merge pull request #4 from levante-framework/survey-data-update
Zio-4 Jun 7, 2024
174cf0e
Merge branch 'yeatmanlab:main' into main
Zio-4 Jun 11, 2024
9cd55c8
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Jun 18, 2024
3222d61
clearing gameStore state on signout
Zio-4 Jun 18, 2024
4d7f3cb
Merge pull request #5 from levante-framework/fix-survey-marked-complete
Zio-4 Jun 18, 2024
15dab6a
Adding German translations for sign in +child view
Zio-4 Jun 18, 2024
2d2a979
Hiding admin SSO
Zio-4 Jun 19, 2024
f83b736
Merge pull request #6 from levante-framework/translations-german
Zio-4 Jun 19, 2024
8e7f71b
Merge pull request #7 from levante-framework/hide-google-sso
Zio-4 Jun 19, 2024
4edc02a
Core tasks beta16
Zio-4 Jun 19, 2024
de8a1cf
Merge pull request #8 from levante-framework/core-tasks-beta16
Zio-4 Jun 19, 2024
03556dd
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Jun 21, 2024
d181929
sign in page translations, removing test and demo checkboxes
Zio-4 Jun 21, 2024
c8dde7f
Merge pull request #9 from levante-framework/remove-admin-test-checkb…
Zio-4 Jun 25, 2024
3956d35
refactor language setter to save selection to sessionStorage, updatin…
Zio-4 Jun 25, 2024
e744daa
linking survey to admnistration
Zio-4 Jun 25, 2024
1723730
Merge pull request #11 from levante-framework/link-survey-assignment
Zio-4 Jun 25, 2024
25e5b5b
Routing parents and teachers to survey, removing extra call
Zio-4 Jun 26, 2024
be22b86
Setting userData and userClaims authStore state
Zio-4 Jun 26, 2024
664651a
Adding conditionals to survey loading, fixes for admins
Zio-4 Jun 26, 2024
7dee6be
Merge pull request #10 from levante-framework/fix-language-reset
Zio-4 Jun 27, 2024
4ee0e15
Merge pull request #12 from levante-framework/parent-teacher-survey
Zio-4 Jun 27, 2024
8477cff
Adding prod scripts, isLevante moved to helpers
Zio-4 May 30, 2024
cfdf0f0
Adding GH Actions for preview and dev deployments
Zio-4 Jun 1, 2024
f8cf227
Making target environment for preview action dynamic
Zio-4 Jul 3, 2024
eaf2780
Merge pull request #13 from levante-framework/levante-prod
Zio-4 Jul 3, 2024
377d48a
Updating remaining isLevante var to use from helper
Zio-4 Jul 4, 2024
070c116
Merge pull request #14 from levante-framework/update-variable-imports
Zio-4 Jul 4, 2024
a0bd012
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Jul 8, 2024
c7b10b7
Update src/pages/HomeParticipant.vue
Zio-4 Jul 8, 2024
f7adfe4
Update src/helpers/query/utils.js
Zio-4 Jul 8, 2024
88ecb4e
Update src/components/CreateAdministrator.vue
Zio-4 Jul 8, 2024
0fb483f
Update src/components/CreateAdministrator.vue
Zio-4 Jul 8, 2024
69288fb
Update src/components/CreateAdministrator.vue
Zio-4 Jul 8, 2024
2131ba9
Merge branch 'main' into main
Zio-4 Jul 9, 2024
0dd4720
Update package lock for upstream sync
Zio-4 Jul 9, 2024
320148a
formatting for sync
Zio-4 Jul 9, 2024
75e8bd2
formatting for sync 2
Zio-4 Jul 10, 2024
618ab2e
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard into upst…
Zio-4 Jul 18, 2024
557378e
Merge branch 'main' into main
Zio-4 Jul 19, 2024
32f8273
Re-enable all orgs to be created
Zio-4 Jul 19, 2024
31d1d41
Merge pull request #16 from levante-framework/levante-renable-orgs
Zio-4 Jul 29, 2024
6825e2b
Co-authored-by: Adam Richie-Halford <richford@users.noreply.github.com>
Zio-4 Jul 29, 2024
b09db3f
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Aug 6, 2024
9e671ea
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Aug 8, 2024
987e12a
Updating core tasks to v1.0.0-beta.18
Zio-4 Aug 8, 2024
c8935ec
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard
Zio-4 Aug 9, 2024
d1e0889
Reverting creation of education orgs until there is fix in firekit.
Zio-4 Aug 9, 2024
8b5f55d
Merge pull request #17 from levante-framework/revert-education-orgs
Zio-4 Aug 9, 2024
a399691
temporary fix so surveys can be submitted
Zio-4 Aug 13, 2024
3efb2d3
Merge pull request #18 from levante-framework/quick-survey-fix
Zio-4 Aug 13, 2024
57fb7b9
Fixing language switching on survey
Zio-4 Aug 13, 2024
b07238c
Merge pull request #19 from levante-framework/survey-lang-fix
Zio-4 Aug 13, 2024
aa0d902
Merge branch 'main' of github.com:yeatmanlab/roar-dashboard into upst…
Zio-4 Aug 23, 2024
0d73836
upstream pull
Zio-4 Aug 23, 2024
9e8492a
Merge pull request #21 from levante-framework/upstream-pull-1
Zio-4 Aug 23, 2024
ff7a892
Initial changes: levante fields/options, minor styling changes
Zio-4 Jul 9, 2024
9707e5c
Updating ROAR field labels
Zio-4 Jul 10, 2024
a01af74
Replacing data table with drop down fields
Zio-4 Jul 11, 2024
929d6b8
Updating optional conditions to use dropdowns
Zio-4 Jul 12, 2024
dc6413e
renaming variables, moving blocks, fixing some bugs
Zio-4 Jul 17, 2024
5cd6554
Remaining changes for conditional assignments, minor styling changes
Zio-4 Jul 18, 2024
92ba232
Changes for all tasks besides survey to default to child only
Zio-4 Aug 26, 2024
064a4fe
Adding logic to continue an incomplete survey
Zio-4 Aug 27, 2024
d55b3c1
Adding uid to localStorage key
Zio-4 Aug 29, 2024
c3de213
Using survey composable in home participant
Zio-4 Aug 30, 2024
38590ba
Merge pull request #24 from levante-framework/save-survey-progress
Zio-4 Aug 30, 2024
959d528
Merge branch 'main' into user-type-condition-administrations
Zio-4 Aug 30, 2024
e361794
Merge pull request #15 from levante-framework/user-type-condition-adm…
Zio-4 Aug 30, 2024
35a3854
german roar tasks
Zio-4 Aug 30, 2024
0b241d4
Merge pull request #25 from levante-framework/german-roar-tasks
Zio-4 Aug 30, 2024
e3a5b00
Initial user linking implementation with working validation
Zio-4 Aug 19, 2024
a78334a
Adding user linking call
Zio-4 Aug 20, 2024
57ea99c
Styling changes
Zio-4 Aug 23, 2024
b318667
styling for upload component. registering and linking
Zio-4 Aug 23, 2024
5e58e93
Error text change
Zio-4 Aug 23, 2024
bde07e5
updating firekit to 8.0.4 with user linking handler
Zio-4 Aug 30, 2024
f4b1af3
Changing flag to let
Zio-4 Aug 30, 2024
6216b70
Merge pull request #22 from levante-framework/user-linking
Zio-4 Aug 30, 2024
3a2723c
Initial changes for register users refactor (levante)
Zio-4 Jul 30, 2024
4c10a62
Working refactor changes
Zio-4 Aug 1, 2024
c4ac024
working version of LEVANTE register
Zio-4 Aug 2, 2024
4abfd74
Changes to ROAR register users page pt 1
Zio-4 Aug 6, 2024
05701f8
Adding username to CSV on creation
Zio-4 Aug 6, 2024
2337195
return all orgs, changing download file name.
Zio-4 Aug 8, 2024
f392ff5
Changes for users already with emails
Zio-4 Aug 13, 2024
71c6604
Change some orgs to use strings (single org) for now
Zio-4 Aug 15, 2024
45ff793
standardizing orgIds to return as strings, changes regarding fetching…
Zio-4 Aug 15, 2024
8ad1b91
Updating check for child / parent user, text
Zio-4 Aug 16, 2024
1dd81df
Adding newest firekit version 8.0.5
Zio-4 Aug 31, 2024
ed5a7fd
Merge pull request #20 from levante-framework/register-users-refactor
Zio-4 Aug 31, 2024
a8839c2
Changes for Germany consent form
Zio-4 Sep 4, 2024
9d4a39d
Final consent changes for LEVANTE, translations, styling, conditions
Zio-4 Sep 5, 2024
ee4692c
Disabling consent form picker. Not working yet.
Zio-4 Sep 5, 2024
ce7a06f
Merge pull request #26 from levante-framework/germany-consent
Zio-4 Sep 5, 2024
c7021fd
Renaming tasks
Zio-4 Aug 27, 2024
be98d67
German translations
Zio-4 Sep 5, 2024
89bdfe9
Merge pull request #23 from levante-framework/rename-tasks
Zio-4 Sep 5, 2024
57d869a
Survey translations and prep for survey in parts
Zio-4 Sep 6, 2024
3359615
Merge pull request #27 from levante-framework/survey-translations
Zio-4 Sep 6, 2024
3ac78a2
core tasks v1.0.0-beta.19
Zio-4 Sep 10, 2024
b990a17
Merge pull request #28 from levante-framework/core-tasks-1.0.0-beta.19
Zio-4 Sep 10, 2024
82c3f7f
Fixing progress report view for LEVANTE
Zio-4 Sep 16, 2024
9c54607
Adding email column
Zio-4 Sep 16, 2024
961a872
Merge pull request #30 from levante-framework/fix-progress-report
Zio-4 Sep 16, 2024
ed28bf2
updating core tasks to beta 20
Zio-4 Sep 17, 2024
70f1a61
Merge pull request #31 from levante-framework/core-tasks-beta.20
Zio-4 Sep 17, 2024
a76fde0
Moving survey fetching to home page, adding initial survey parsing logic
Zio-4 Sep 12, 2024
70ac299
Moving all survey logic to helpers and home page
Zio-4 Sep 13, 2024
a5e74e5
Adding progress bar data, fixes to render for parents/teachers, parsi…
Zio-4 Sep 19, 2024
d8cee71
Updating survey responses structure
Zio-4 Sep 20, 2024
92d8572
Survey saving and completing logic updates, progress bar updates
Zio-4 Sep 20, 2024
3fc6ff0
Splitting out single watcher, seperating survey initialization logic
Zio-4 Sep 20, 2024
8c79928
First part of changes to fix performance issues for large survey
Zio-4 Sep 24, 2024
f24757e
Virtualizing pages, fixing progress, submission, and saving on response
Zio-4 Sep 27, 2024
7264bf0
More fixes, adding specific data on tab view and specific pages.
Zio-4 Sep 28, 2024
b056a40
core task v1.0.0-beta.21
Zio-4 Oct 4, 2024
f852143
Switch to seperate survey instances
Zio-4 Oct 3, 2024
e7eda59
adding specific relation description
Zio-4 Oct 8, 2024
a57ac75
Merge pull request #29 from levante-framework/survey-linking
Zio-4 Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 87 additions & 109 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@bdelab/roav-crowding": "1.1.11",
"@bdelab/roav-mep": "^1.1.16",
"@bdelab/roav-ran": "^1.0.21",
"@levante-framework/core-tasks": "^1.0.0-beta.16",
"@sentry/browser": "^8.0.0",
"@sentry/integrations": "^7.114.0",
"@sentry/vite-plugin": "^2.16.1",
Expand All @@ -54,7 +55,6 @@
"axios": "^1.5.1",
"buffer": "^6.0.3",
"chart.js": "^4.3.3",
"core-tasks": "^1.0.0-beta.12",
"dotenv": "^16.3.1",
"html2canvas": "^1.4.1",
"jspdf": "^2.5.1",
Expand Down
3 changes: 2 additions & 1 deletion src/components/ParticipantSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p>{{ $t('participantSidebar.tasksCompleted') }}</p>
</div>
</div>
<ul v-if="!!studentInfo" class="sidebar-info">
<ul v-if="!_isEmpty(studentInfo)" class="sidebar-info">
<li class="sidebar-title">
<strong>{{ $t('participantSidebar.studentInfo') }}</strong>
</li>
Expand All @@ -19,6 +19,7 @@
</template>
<script setup>
import { ref, computed } from 'vue';
import _isEmpty from 'lodash/isEmpty';

const props = defineProps({
totalGames: { type: Number, required: true, default: 0 },
Expand Down
6 changes: 3 additions & 3 deletions src/components/tasks/TaskLevante.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const props = defineProps({
let levanteTaskLauncher;

const taskId = props.taskId;
const { version } = packageLockJson.packages['node_modules/core-tasks'];
const { version } = packageLockJson.packages['node_modules/@levante-framework/core-tasks'];
const router = useRouter();
const gameStarted = ref(false);
const authStore = useAuthStore();
Expand Down Expand Up @@ -65,7 +65,7 @@ window.addEventListener(

onMounted(async () => {
try {
let module = await import('core-tasks');
let module = await import('@levante-framework/core-tasks');
levanteTaskLauncher = module.TaskLauncher;
} catch (error) {
console.error('An error occurred while importing the game module.', error);
Expand Down Expand Up @@ -131,7 +131,7 @@ async function startTask() {
</script>

<style>
@import 'core-tasks/lib/resources/core-tasks.css';
@import '@levante-framework/core-tasks/lib/resources/core-tasks.css';

.game-target {
position: absolute;
Expand Down
47 changes: 23 additions & 24 deletions src/helpers/query/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,28 @@ export const matchMode2Op = {
};

export const fetchSubcollection = async (collectionPath, subcollectionName, select = [], db = 'admin') => {
const axiosInstance = getAxiosInstance(db);
// Construct the path to the subcollection
const subcollectionPath = `/${collectionPath}/${subcollectionName}`;
const queryParams = select.map((field) => `mask.fieldPaths=${field}`).join('&');
const queryString = queryParams ? `?${queryParams}` : '';
try {
const axiosInstance = getAxiosInstance(db);
const subcollectionPath = `/${collectionPath}/${subcollectionName}`;

return axiosInstance
.get(subcollectionPath + queryString)
.then(({ data }) => {
// Assuming the API returns an array of document data in the subcollection
return data.documents
? data.documents.map((doc) => {
return {
id: doc.name.split('/').pop(), // Extract document ID from the document name/path
..._mapValues(doc.fields, (value) => convertValues(value)),
};
})
: [];
})
.catch((error) => {
console.error(error);
return {
error: `${error.response?.status === 404 ? 'Subcollection not found' : error.message}`,
};
});
// Build query string for selected fields
const queryParams = select.map((field) => `mask.fieldPaths=${field}`).join('&');
const queryString = queryParams ? `?${queryParams}` : '';

const response = await axiosInstance.get(subcollectionPath + queryString);

// Check if the API returns an array of document data in the subcollection
const documents = response.data.documents || [];
Zio-4 marked this conversation as resolved.
Show resolved Hide resolved

// Map and return the documents with the required format
return documents.map((doc) => ({
id: doc.name.split('/').pop(), // Extract document ID from the document name/path
..._mapValues(doc.fields, (value) => convertValues(value)),
}));
} catch (error) {
console.error('Failed to fetch subcollection: ', error);
return {
error: error.response?.status === 404 ? 'Subcollection not found' : error.message,
};
}
};
Loading
Loading