diff --git a/AGENTS.md b/AGENTS.md index f6e9b00a82..7c2d4540ab 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,6 +27,9 @@ The study configurations are defined in JSON files with schemas. These configs s Imported Libraries We provide several libraries to facilitate the development of user studies, such as vlat, mini-vlat, nasa-tlx, color-blindness, and more. These libraries are components and sequences that are defined in public/libraries/. Each library has its own folder containing the necessary code and assets. Use only libraries that exist under public/libraries/ (no ad-hoc local component imports in study configs). You can import these libraries into your study configs to enhance the functionality and user experience of your studies by adding the libraries to the top level `importedLibraries` field in the study config, and then referencing the components in the `baseComponent` field or in sequences and the sequences in the `sequences` field. When referencing the components and sequences use the following syntax `"$libraryName.components.componentName"` and `"$libraryName.sequences.sequenceName"` respectively. +Large Media Assets +Large bundled-library media should not be committed directly to this repository. Put heavyweight shared library assets in the public `revisit-studies/library-assets` repository, tag the asset release, and reference files from study/library configs with tag-pinned raw GitHub URLs such as `https://raw.githubusercontent.com/revisit-studies/library-assets/v1/...`. + Storage Engines ReVISit supports multiple storage backends for storing study data, including Firebase and Supabase. This allows researchers to choose the backend that best fits their needs in terms of scalability, ease of use, and integration with other tools. The storage engines are abstracted in the codebase, allowing for easy addition of new storage solutions in the future. The storage engine implementations can be found in src/storage/ directory. diff --git a/public/libraries/calvi/assets/questions/normal/N1.jpg b/public/libraries/calvi/assets/questions/normal/N1.jpg deleted file mode 100644 index 21eba79aa6..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N1.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N10.jpg b/public/libraries/calvi/assets/questions/normal/N10.jpg deleted file mode 100644 index 6c28e29a17..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N10.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N11.jpg b/public/libraries/calvi/assets/questions/normal/N11.jpg deleted file mode 100644 index 440e24c4f5..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N11.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N12.jpg b/public/libraries/calvi/assets/questions/normal/N12.jpg deleted file mode 100644 index 6a4223ea01..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N12.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N13.jpg b/public/libraries/calvi/assets/questions/normal/N13.jpg deleted file mode 100644 index 1178111dc6..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N13.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N14.jpg b/public/libraries/calvi/assets/questions/normal/N14.jpg deleted file mode 100644 index bdaf3637bf..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N14.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N15.jpg b/public/libraries/calvi/assets/questions/normal/N15.jpg deleted file mode 100644 index e6a269fcbc..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N15.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N2.jpg b/public/libraries/calvi/assets/questions/normal/N2.jpg deleted file mode 100644 index a78463fd56..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N2.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N3.jpg b/public/libraries/calvi/assets/questions/normal/N3.jpg deleted file mode 100644 index 084026212a..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N3.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N4.jpg b/public/libraries/calvi/assets/questions/normal/N4.jpg deleted file mode 100644 index 6a7f2047df..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N4.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N5.jpg b/public/libraries/calvi/assets/questions/normal/N5.jpg deleted file mode 100644 index c9057a038f..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N5.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N6.jpg b/public/libraries/calvi/assets/questions/normal/N6.jpg deleted file mode 100644 index 1be9c960c7..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N6.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N7.jpg b/public/libraries/calvi/assets/questions/normal/N7.jpg deleted file mode 100644 index b74b1339be..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N7.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N8.jpg b/public/libraries/calvi/assets/questions/normal/N8.jpg deleted file mode 100644 index a84a71aa12..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N8.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/normal/N9.jpg b/public/libraries/calvi/assets/questions/normal/N9.jpg deleted file mode 100644 index a0360f0608..0000000000 Binary files a/public/libraries/calvi/assets/questions/normal/N9.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T1.jpg b/public/libraries/calvi/assets/questions/trick/T1.jpg deleted file mode 100644 index 3ef41a393e..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T1.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T10.jpg b/public/libraries/calvi/assets/questions/trick/T10.jpg deleted file mode 100644 index 95d0be5423..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T10.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T11.jpg b/public/libraries/calvi/assets/questions/trick/T11.jpg deleted file mode 100644 index 4f9e76c35b..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T11.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T12.jpg b/public/libraries/calvi/assets/questions/trick/T12.jpg deleted file mode 100644 index 3646c79712..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T12.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T13.jpg b/public/libraries/calvi/assets/questions/trick/T13.jpg deleted file mode 100644 index df273c00cc..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T13.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T14.jpg b/public/libraries/calvi/assets/questions/trick/T14.jpg deleted file mode 100644 index 3066303d4d..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T14.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T15.jpg b/public/libraries/calvi/assets/questions/trick/T15.jpg deleted file mode 100644 index 0a3f7aff2d..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T15.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T16.jpg b/public/libraries/calvi/assets/questions/trick/T16.jpg deleted file mode 100644 index 6c84872009..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T16.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T17.jpg b/public/libraries/calvi/assets/questions/trick/T17.jpg deleted file mode 100644 index d7ba58933f..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T17.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T18.jpg b/public/libraries/calvi/assets/questions/trick/T18.jpg deleted file mode 100644 index c2c4f1b6b0..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T18.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T19.jpg b/public/libraries/calvi/assets/questions/trick/T19.jpg deleted file mode 100644 index 8b698dfd93..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T19.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T2.jpg b/public/libraries/calvi/assets/questions/trick/T2.jpg deleted file mode 100644 index 1354850614..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T2.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T20.jpg b/public/libraries/calvi/assets/questions/trick/T20.jpg deleted file mode 100644 index fa47c36cf7..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T20.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T21.jpg b/public/libraries/calvi/assets/questions/trick/T21.jpg deleted file mode 100644 index f51b2ad8b2..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T21.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T22.jpg b/public/libraries/calvi/assets/questions/trick/T22.jpg deleted file mode 100644 index 83e5f77b82..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T22.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T23.jpg b/public/libraries/calvi/assets/questions/trick/T23.jpg deleted file mode 100644 index d63dffb18a..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T23.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T25.jpg b/public/libraries/calvi/assets/questions/trick/T25.jpg deleted file mode 100644 index 28a72405d2..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T25.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T26.jpg b/public/libraries/calvi/assets/questions/trick/T26.jpg deleted file mode 100644 index 86b7049874..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T26.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T27.jpg b/public/libraries/calvi/assets/questions/trick/T27.jpg deleted file mode 100644 index 3796779158..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T27.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T28.jpg b/public/libraries/calvi/assets/questions/trick/T28.jpg deleted file mode 100644 index 2cb3d61d60..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T28.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T29.jpg b/public/libraries/calvi/assets/questions/trick/T29.jpg deleted file mode 100644 index 202df8df0a..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T29.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T3.jpg b/public/libraries/calvi/assets/questions/trick/T3.jpg deleted file mode 100644 index 52f5ce667f..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T3.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T30.jpg b/public/libraries/calvi/assets/questions/trick/T30.jpg deleted file mode 100644 index 02eed55c58..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T30.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T34.jpg b/public/libraries/calvi/assets/questions/trick/T34.jpg deleted file mode 100644 index 35998377a9..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T34.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T35.jpg b/public/libraries/calvi/assets/questions/trick/T35.jpg deleted file mode 100644 index 6e48dde9e0..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T35.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T36.jpg b/public/libraries/calvi/assets/questions/trick/T36.jpg deleted file mode 100644 index 5035e90854..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T36.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T37.jpg b/public/libraries/calvi/assets/questions/trick/T37.jpg deleted file mode 100644 index 069c687d2d..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T37.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T38.jpg b/public/libraries/calvi/assets/questions/trick/T38.jpg deleted file mode 100644 index c38193f543..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T38.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T39.jpg b/public/libraries/calvi/assets/questions/trick/T39.jpg deleted file mode 100644 index bccfb2d63a..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T39.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T4.jpg b/public/libraries/calvi/assets/questions/trick/T4.jpg deleted file mode 100644 index 5da1976d57..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T4.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T40.jpg b/public/libraries/calvi/assets/questions/trick/T40.jpg deleted file mode 100644 index 697cbee567..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T40.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T42.jpg b/public/libraries/calvi/assets/questions/trick/T42.jpg deleted file mode 100644 index 204bfc93a6..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T42.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T43.jpg b/public/libraries/calvi/assets/questions/trick/T43.jpg deleted file mode 100644 index 2900db479e..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T43.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T44.jpg b/public/libraries/calvi/assets/questions/trick/T44.jpg deleted file mode 100644 index 183a0cce2a..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T44.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T45.jpg b/public/libraries/calvi/assets/questions/trick/T45.jpg deleted file mode 100644 index ddaea51eb8..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T45.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T46.jpg b/public/libraries/calvi/assets/questions/trick/T46.jpg deleted file mode 100644 index 9009afe418..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T46.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T47.jpg b/public/libraries/calvi/assets/questions/trick/T47.jpg deleted file mode 100644 index d7d6bb2679..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T47.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T48.jpg b/public/libraries/calvi/assets/questions/trick/T48.jpg deleted file mode 100644 index 35c91546e3..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T48.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T49.jpg b/public/libraries/calvi/assets/questions/trick/T49.jpg deleted file mode 100644 index e41f242ce7..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T49.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T5.jpg b/public/libraries/calvi/assets/questions/trick/T5.jpg deleted file mode 100644 index 27fb697b60..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T5.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T50.jpg b/public/libraries/calvi/assets/questions/trick/T50.jpg deleted file mode 100644 index ae6a121d5c..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T50.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T52.jpg b/public/libraries/calvi/assets/questions/trick/T52.jpg deleted file mode 100644 index d1a2729f64..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T52.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T6.jpg b/public/libraries/calvi/assets/questions/trick/T6.jpg deleted file mode 100644 index 280ebe4fe2..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T6.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T8.jpg b/public/libraries/calvi/assets/questions/trick/T8.jpg deleted file mode 100644 index 996e41f114..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T8.jpg and /dev/null differ diff --git a/public/libraries/calvi/assets/questions/trick/T9.jpg b/public/libraries/calvi/assets/questions/trick/T9.jpg deleted file mode 100644 index 9a1bdf6705..0000000000 Binary files a/public/libraries/calvi/assets/questions/trick/T9.jpg and /dev/null differ diff --git a/public/libraries/calvi/config.json b/public/libraries/calvi/config.json index 8b0e709425..9be177acf8 100644 --- a/public/libraries/calvi/config.json +++ b/public/libraries/calvi/config.json @@ -7,7 +7,7 @@ "N1": { "description": "Visitors at Movie Theaters in 2001", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N1.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N1.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -48,7 +48,7 @@ "N2": { "description": "Traffic Accidents Trend", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N2.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N2.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -89,7 +89,7 @@ "N3": { "description": "Customers at Three Bike Shops", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N3.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N3.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -130,7 +130,7 @@ "N4": { "description": "Advertising Expense Breakdown", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N4.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N4.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -171,7 +171,7 @@ "N5": { "description": "Perfume Brand Market Share", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N5.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N5.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -212,7 +212,7 @@ "N6": { "description": "Monthly Number of New Clients", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N6.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N6.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -253,7 +253,7 @@ "N7": { "description": "Restaurant Openings in 2000", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N7.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N7.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -290,7 +290,7 @@ "N8": { "description": "Beers Consumed in 2005", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N8.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N8.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -327,7 +327,7 @@ "N9": { "description": "Store C\u2019s Sales vs Store B", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N9.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N9.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -368,7 +368,7 @@ "N10": { "description": "SAT Score vs. Income", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N10.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N10.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -405,7 +405,7 @@ "N11": { "description": "Sleep vs. Time Outdoors", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N11.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N11.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -446,7 +446,7 @@ "N12": { "description": "Grocery Store Market Share", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N12.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N12.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -487,7 +487,7 @@ "N13": { "description": "Education Level of Residents", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N13.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N13.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -528,7 +528,7 @@ "N14": { "description": "Lego ownership by state", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N14.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N14.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -569,7 +569,7 @@ "N15": { "description": "Restaurant R popularity worldwide", "type": "image", - "path": "libraries/calvi/assets/questions/normal/N15.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/normal/N15.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -610,7 +610,7 @@ "T1": { "description": "Sunny Days in Summer vs Winter", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T1.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T1.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -647,7 +647,7 @@ "T2": { "description": "Windy Days in Summer vs Winter", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T2.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T2.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -684,7 +684,7 @@ "T3": { "description": "Concert Ticket Sales", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T3.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T3.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -725,7 +725,7 @@ "T4": { "description": "Water Bottle Price Comparison", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T4.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T4.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -766,7 +766,7 @@ "T5": { "description": "Visitors at Train Stations", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T5.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T5.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -807,7 +807,7 @@ "T6": { "description": "Bacteria Trend 1970\u20132020", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T6.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T6.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -848,7 +848,7 @@ "T8": { "description": "Visitors at Amusement Parks", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T8.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T8.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -889,7 +889,7 @@ "T9": { "description": "Brand C Sales vs B", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T9.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T9.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -930,7 +930,7 @@ "T10": { "description": "Species Prevalence by State", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T10.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T10.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -967,7 +967,7 @@ "T11": { "description": "Risk of Bacteria Z in WY vs ND", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T11.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T11.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1004,7 +1004,7 @@ "T12": { "description": "Tree Planting Trend 1960\u20131980", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T12.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T12.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1041,7 +1041,7 @@ "T13": { "description": "Bookstore Trend 2000\u20132020", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T13.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T13.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1078,7 +1078,7 @@ "T14": { "description": "Movie Release Trend", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T14.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T14.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1119,7 +1119,7 @@ "T15": { "description": "Sales Trend for Item X (Apr to Jul)", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T15.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T15.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1156,7 +1156,7 @@ "T16": { "description": "Apple Harvest Trend", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T16.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T16.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1193,7 +1193,7 @@ "T17": { "description": "Sunlight vs Growth for Plant P", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T17.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T17.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1234,7 +1234,7 @@ "T18": { "description": "Vacation Days vs Satisfaction", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T18.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T18.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1275,7 +1275,7 @@ "T19": { "description": "Weight vs Survival Rate for Z", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T19.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T19.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1316,7 +1316,7 @@ "T20": { "description": "Prevalence of Plant Y Globally", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T20.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T20.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1357,7 +1357,7 @@ "T21": { "description": "Bar chart of rainfall over 14 days", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T21.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T21.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1398,7 +1398,7 @@ "T22": { "description": "Line chart of airport visitors from 2000 to 2005", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T22.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T22.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1435,7 +1435,7 @@ "T23": { "description": "Area chart of monthly shirt sales in 2021", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T23.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T23.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1472,7 +1472,7 @@ "T25": { "description": "Market share of shampoo brands", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T25.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T25.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1513,7 +1513,7 @@ "T26": { "description": "Votes for candidates", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T26.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T26.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1554,7 +1554,7 @@ "T27": { "description": "GDP growth trend", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T27.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T27.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1591,7 +1591,7 @@ "T28": { "description": "Cell phone brand market share", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T28.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T28.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1628,7 +1628,7 @@ "T29": { "description": "Household car ownership", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T29.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T29.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1665,7 +1665,7 @@ "T30": { "description": "Precipitation comparison", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T30.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T30.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1702,7 +1702,7 @@ "T34": { "description": "Board game sales trend analysis", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T34.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T34.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1743,7 +1743,7 @@ "T35": { "description": "Vegetable planting trends by three farms", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T35.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T35.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1784,7 +1784,7 @@ "T36": { "description": "Car counts in parking lots", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T36.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T36.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1821,7 +1821,7 @@ "T37": { "description": "Hiring trend in company Z", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T37.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T37.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1862,7 +1862,7 @@ "T38": { "description": "Work hours and happiness correlation", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T38.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T38.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1899,7 +1899,7 @@ "T39": { "description": "Work hours and salary correlation", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T39.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T39.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1936,7 +1936,7 @@ "T40": { "description": "Weight analysis of species C", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T40.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T40.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -1973,7 +1973,7 @@ "T42": { "description": "Infection rates per 1,000", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T42.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T42.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2014,7 +2014,7 @@ "T43": { "description": "Sales trend for gift shop A", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T43.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T43.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2055,7 +2055,7 @@ "T44": { "description": "Book price trend in City Z", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T44.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T44.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2096,7 +2096,7 @@ "T45": { "description": "Ice cream brand voting across states", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T45.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T45.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2137,7 +2137,7 @@ "T46": { "description": "Water sales vs temperature", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T46.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T46.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2174,7 +2174,7 @@ "T47": { "description": "Reading preferences by time of day", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T47.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T47.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2211,7 +2211,7 @@ "T48": { "description": "Voting on hiking trails", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T48.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T48.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2252,7 +2252,7 @@ "T49": { "description": "Average mall customers in Town X", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T49.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T49.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2293,7 +2293,7 @@ "T50": { "description": "Average new buildings in City Z", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T50.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T50.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ @@ -2334,7 +2334,7 @@ "T52": { "description": "Monthly sales trend for store B", "type": "image", - "path": "libraries/calvi/assets/questions/trick/T52.jpg", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/calvi/questions/trick/T52.jpg", "nextButtonLocation": "sidebar", "nextButtonText": "Continue", "response": [ diff --git a/public/libraries/vlat/assets/VLAT1.png b/public/libraries/vlat/assets/VLAT1.png deleted file mode 100644 index 3a2416523f..0000000000 Binary files a/public/libraries/vlat/assets/VLAT1.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT10.png b/public/libraries/vlat/assets/VLAT10.png deleted file mode 100644 index 22bbe949c3..0000000000 Binary files a/public/libraries/vlat/assets/VLAT10.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT11.png b/public/libraries/vlat/assets/VLAT11.png deleted file mode 100644 index 13532392ce..0000000000 Binary files a/public/libraries/vlat/assets/VLAT11.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT12.png b/public/libraries/vlat/assets/VLAT12.png deleted file mode 100644 index 51f9d4fcbc..0000000000 Binary files a/public/libraries/vlat/assets/VLAT12.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT2.png b/public/libraries/vlat/assets/VLAT2.png deleted file mode 100644 index 530a82f97e..0000000000 Binary files a/public/libraries/vlat/assets/VLAT2.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT3.png b/public/libraries/vlat/assets/VLAT3.png deleted file mode 100644 index bda44b6216..0000000000 Binary files a/public/libraries/vlat/assets/VLAT3.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT4.png b/public/libraries/vlat/assets/VLAT4.png deleted file mode 100644 index 85d853b908..0000000000 Binary files a/public/libraries/vlat/assets/VLAT4.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT5.png b/public/libraries/vlat/assets/VLAT5.png deleted file mode 100644 index 1c8e1572e4..0000000000 Binary files a/public/libraries/vlat/assets/VLAT5.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT6.png b/public/libraries/vlat/assets/VLAT6.png deleted file mode 100644 index c2e59e2106..0000000000 Binary files a/public/libraries/vlat/assets/VLAT6.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT7.png b/public/libraries/vlat/assets/VLAT7.png deleted file mode 100644 index cb4e30c5c4..0000000000 Binary files a/public/libraries/vlat/assets/VLAT7.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT8.png b/public/libraries/vlat/assets/VLAT8.png deleted file mode 100644 index a4447ff6e2..0000000000 Binary files a/public/libraries/vlat/assets/VLAT8.png and /dev/null differ diff --git a/public/libraries/vlat/assets/VLAT9.png b/public/libraries/vlat/assets/VLAT9.png deleted file mode 100644 index 3370c14adb..0000000000 Binary files a/public/libraries/vlat/assets/VLAT9.png and /dev/null differ diff --git a/public/libraries/vlat/config.json b/public/libraries/vlat/config.json index 645b3e9277..cfdcc9a790 100644 --- a/public/libraries/vlat/config.json +++ b/public/libraries/vlat/config.json @@ -6,7 +6,7 @@ "baseComponents": { "line": { "type": "image", - "path": "libraries/vlat/assets/VLAT1.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT1.png", "style": { "width": "800px" }, @@ -16,7 +16,7 @@ }, "bar": { "type": "image", - "path": "libraries/vlat/assets/VLAT2.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT2.png", "style": { "width": "800px" }, @@ -26,7 +26,7 @@ }, "stackbar": { "type": "image", - "path": "libraries/vlat/assets/VLAT3.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT3.png", "style": { "width": "800px" }, @@ -36,7 +36,7 @@ }, "stackbar100": { "type": "image", - "path": "libraries/vlat/assets/VLAT4.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT4.png", "style": { "width": "800px" }, @@ -46,7 +46,7 @@ }, "pie": { "type": "image", - "path": "libraries/vlat/assets/VLAT5.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT5.png", "style": { "width": "800px" }, @@ -56,7 +56,7 @@ }, "histogram": { "type": "image", - "path": "libraries/vlat/assets/VLAT6.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT6.png", "style": { "width": "800px" }, @@ -66,7 +66,7 @@ }, "scatterplot": { "type": "image", - "path": "libraries/vlat/assets/VLAT7.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT7.png", "style": { "width": "800px" }, @@ -76,7 +76,7 @@ }, "area": { "type": "image", - "path": "libraries/vlat/assets/VLAT8.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT8.png", "style": { "width": "800px" }, @@ -86,7 +86,7 @@ }, "stackarea": { "type": "image", - "path": "libraries/vlat/assets/VLAT9.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT9.png", "style": { "width": "800px" }, @@ -96,7 +96,7 @@ }, "bubble": { "type": "image", - "path": "libraries/vlat/assets/VLAT10.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT10.png", "style": { "width": "800px" }, @@ -106,7 +106,7 @@ }, "map": { "type": "image", - "path": "libraries/vlat/assets/VLAT11.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT11.png", "style": { "width": "800px" }, @@ -116,7 +116,7 @@ }, "treemap": { "type": "image", - "path": "libraries/vlat/assets/VLAT12.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT12.png", "style": { "width": "800px" }, @@ -1358,7 +1358,7 @@ "instruction": "What is the total length of the metro system in Beijing?", "instructionLocation": "sidebar", "type": "image", - "path": "libraries/vlat/assets/VLAT10.png", + "path": "https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT10.png", "style": { "width": "800px" }, diff --git a/src/controllers/tests/ComponentController.spec.tsx b/src/controllers/tests/ComponentController.spec.tsx index 168ef7ce9e..5725b212b6 100644 --- a/src/controllers/tests/ComponentController.spec.tsx +++ b/src/controllers/tests/ComponentController.spec.tsx @@ -316,6 +316,16 @@ describe('ImageController', () => { const { container } = render(); await waitFor(() => expect(container.querySelector('img')).toBeTruthy()); }); + + test('checks absolute image URLs without prefixing them', async () => { + const remotePath = 'https://raw.githubusercontent.com/revisit-studies/library-assets/v1/vlat/VLAT1.png'; + vi.mocked(getStaticAssetByPath).mockResolvedValueOnce('image-data'); + + const { container } = render(); + + await waitFor(() => expect(getStaticAssetByPath).toHaveBeenCalledWith(remotePath)); + expect(container.querySelector('img')?.getAttribute('src')).toBe(remotePath); + }); }); // ── MarkdownController ──────────────────────────────────────────────────────── diff --git a/src/parser/tests/libraryParser.spec.ts b/src/parser/tests/libraryParser.spec.ts index 27ffb153de..5d75da1d21 100644 --- a/src/parser/tests/libraryParser.spec.ts +++ b/src/parser/tests/libraryParser.spec.ts @@ -6,6 +6,8 @@ import { ComponentBlock, DynamicBlock, LibraryConfig, StudyConfig, InheritedComponent, IndividualComponent, ParserErrorWarning, } from '../types'; import { isDynamicBlock } from '../utils'; +import calviConfig from '../../../public/libraries/calvi/config.json'; +import vlatConfig from '../../../public/libraries/vlat/config.json'; function isComponentBlock(value: string | ComponentBlock | DynamicBlock): value is ComponentBlock { return typeof value === 'object' && value !== null && 'components' in value && !isDynamicBlock(value); @@ -1368,6 +1370,40 @@ describe('verifyLibraryUsage', () => { }); describe('loadLibrariesParseNamespace', () => { + test('loads CALVI and VLAT configs with tag-pinned external image assets', async () => { + const libraryConfigs: Record = { + calvi: calviConfig as LibraryConfig, + vlat: vlatConfig as LibraryConfig, + }; + + global.fetch = vi.fn().mockImplementation((path: URL | RequestInfo) => { + const pathString = path.toString(); + const libraryName = pathString.includes('/calvi/') + ? 'calvi' + : 'vlat'; + + return Promise.resolve({ + text: async () => JSON.stringify(libraryConfigs[libraryName]), + }); + }); + + const errors: ParserErrorWarning[] = []; + const warnings: ParserErrorWarning[] = []; + + const result = await loadLibrariesParseNamespace(['calvi', 'vlat'], errors, warnings); + const assetBaseUrl = 'https://raw.githubusercontent.com/revisit-studies/library-assets/v1'; + const calviN1 = result.calvi.components['$calvi.components.N1'] as { path: string }; + const vlatLine = result.vlat.components['$vlat.components.line-value'] as { path: string }; + + expect(errors).toHaveLength(0); + expect(result.calvi.sequences?.full).toBeDefined(); + expect(result.calvi.sequences?.specificBank).toBeDefined(); + expect(result.calvi.sequences?.fullBank).toBeDefined(); + expect(result.vlat.sequences?.full).toBeDefined(); + expect(calviN1.path).toBe(`${assetBaseUrl}/calvi/questions/normal/N1.jpg`); + expect(vlatLine.path).toBe(`${assetBaseUrl}/vlat/VLAT1.png`); + }); + test('loads libraries and namespaces components correctly', async () => { const mockLibraryConfig = { $schema: '',