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

Bump posthog-react-native from 3.3.9 to 3.6.1 in /client #6439

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2162f02
Bump vite from 5.4.10 to 6.0.3 in /cms
dependabot[bot] Dec 7, 2024
90699e2
Bump i18next from 24.0.2 to 24.0.5 in /functions
dependabot[bot] Dec 7, 2024
9bcf3e2
Bump vite from 5.4.10 to 6.0.3 in /cms (#6364)
gewfy Dec 7, 2024
b7dda4b
Bump i18next from 24.0.2 to 24.0.5 in /functions (#6365)
gewfy Dec 7, 2024
ced77c2
Bump typescript from 5.6.3 to 5.7.2 in /cms
dependabot[bot] Dec 7, 2024
fba6c55
Bump typescript from 5.6.3 to 5.7.2 in /cms (#6335)
gewfy Dec 7, 2024
8494f82
Update 📱 UI “Screen.Journey”
Lisa29k Dec 10, 2024
59b20ff
Update 📱 UI “Screen.Journey”
Lisa29k Dec 10, 2024
7e411d7
Update 📱 UI “Screen.Journey” (#6396)
Lisa29k Dec 10, 2024
4e086fc
Fix typo
gewfy Dec 12, 2024
e3bc84c
Updated spanish translations
gewfy Dec 12, 2024
54b2f2f
Update spanish (#6397)
gewfy Dec 12, 2024
9dc1e8d
Update Exercise “b9001702-8502-46de-bc7b-3ebf2b812c0e”
jrrjenny Dec 16, 2024
33765a7
Update Exercise “b9001702-8502-46de-bc7b-3ebf2b812c0e”
jrrjenny Dec 16, 2024
c8d031f
Update Exercise “b9001702-8502-46de-bc7b-3ebf2b812c0e”
jrrjenny Dec 16, 2024
91b666b
Update Exercise “b9001702-8502-46de-bc7b-3ebf2b812c0e”
jrrjenny Dec 16, 2024
42bc16b
Update Exercise “3adeb40b-b9f8-4b13-b1a8-02f6106df9e5”
jrrjenny Dec 16, 2024
677de60
Update Exercise “3adeb40b-b9f8-4b13-b1a8-02f6106df9e5”
jrrjenny Dec 16, 2024
e85815a
Update Exercise “b6de2e28-325e-4ce1-8894-09ac12a6c19f”
jrrjenny Dec 16, 2024
5f778db
Update Exercise “b6de2e28-325e-4ce1-8894-09ac12a6c19f”
jrrjenny Dec 16, 2024
6d01272
Update Exercise “b6de2e28-325e-4ce1-8894-09ac12a6c19f”
jrrjenny Dec 16, 2024
0efa97f
Update Exercise “f2c88307-b02e-4456-a81c-79b84c10ae04”
jrrjenny Dec 16, 2024
e9f2018
Update Exercise “f2c88307-b02e-4456-a81c-79b84c10ae04”
jrrjenny Dec 16, 2024
6a47898
Update Exercise “b9001702-8502-46de-bc7b-3ebf2b812c0e” (#6400)
jrrjenny Dec 16, 2024
08a864e
Update Exercise “3adeb40b-b9f8-4b13-b1a8-02f6106df9e5” (#6401)
jrrjenny Dec 16, 2024
993f487
Update Exercise “b6de2e28-325e-4ce1-8894-09ac12a6c19f” (#6402)
jrrjenny Dec 16, 2024
1f5ad80
Update Exercise “f2c88307-b02e-4456-a81c-79b84c10ae04” (#6403)
jrrjenny Dec 16, 2024
4593664
Update Exercise “dc38ce25-e0f3-465f-8df0-70b5f5089ce9”
jrrjenny Dec 17, 2024
4546c56
Update Exercise “dc38ce25-e0f3-465f-8df0-70b5f5089ce9”
jrrjenny Dec 17, 2024
29a19f2
Update Exercise “dc38ce25-e0f3-465f-8df0-70b5f5089ce9”
jrrjenny Dec 17, 2024
00bf284
Update Exercise “dc38ce25-e0f3-465f-8df0-70b5f5089ce9”
jrrjenny Dec 17, 2024
c3752c7
Update Exercise “dc38ce25-e0f3-465f-8df0-70b5f5089ce9” (#6420)
jrrjenny Dec 17, 2024
631f638
Czech translations
gewfy Dec 17, 2024
3564110
Danish translations
gewfy Dec 17, 2024
70b3515
Dutch translations
gewfy Dec 17, 2024
11a8966
Fixed danish translations
gewfy Dec 17, 2024
b5a9d47
Fixed czech translations
gewfy Dec 17, 2024
fe80dd5
Portuguese translations
gewfy Dec 17, 2024
a216d9f
Import array merges in csv import
gewfy Dec 17, 2024
e377c3c
Generate static web for all languages
gewfy Dec 17, 2024
d3b971c
Temporarily disabled color correction in web videos
gewfy Dec 17, 2024
c4e542d
Merge branch 'main' into update-psypal-translations
gewfy Dec 17, 2024
a71a500
Final merge
gewfy Dec 17, 2024
f571bbc
Update psypal translations (#6422)
gewfy Dec 17, 2024
1a90c10
Add mergeWithArrays tests
gewfy Dec 17, 2024
880edba
Add mergeWithArrays tests (#6423)
gewfy Dec 17, 2024
008fc8e
Update 📱 UI “Modal.SessionFeedback”
Lisa29k Dec 19, 2024
ac49c9c
Update 📱 UI “Modal.SessionFeedback” (#6424)
Lisa29k Dec 19, 2024
275201a
Force bundle update to latest version
gewfy Dec 19, 2024
0a730d7
Force bundle update to latest version (#6425)
gewfy Dec 19, 2024
c116f07
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288”
Lisa29k Dec 20, 2024
b016547
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288”
Lisa29k Dec 20, 2024
1856b0a
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288” (#6426)
Lisa29k Dec 20, 2024
ac6969e
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288”
ntous Dec 20, 2024
60bbea8
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288”
Lisa29k Dec 20, 2024
64dc36e
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288” (#6427)
Lisa29k Dec 20, 2024
a9c9f50
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288”
gewfy Dec 20, 2024
d854285
Update Exercise “1a53e633-6916-4fea-a072-977c4b215288” (#6428)
gewfy Dec 20, 2024
5283419
Correct bunde versions
gewfy Dec 20, 2024
1d4e315
Fix broken gets tarted in es
gewfy Dec 20, 2024
e465a80
Fix broken get started in es (#6430)
gewfy Dec 20, 2024
1af33b3
Correct bunde versions (#6429)
gewfy Dec 20, 2024
3544159
Check for id missmatches in content
gewfy Dec 20, 2024
272ed18
Fix content ids script
gewfy Dec 20, 2024
5f40b3e
Add missing ids
gewfy Dec 20, 2024
11dbbc8
Eslint fix
gewfy Dec 20, 2024
0585ec2
Fix content ids (#6431)
gewfy Dec 20, 2024
4d957d1
Bump posthog-react-native from 3.3.9 to 3.6.1 in /client
dependabot[bot] Dec 23, 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
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"intl-pluralrules": "^2.0.1",
"lodash.throttle": "^4.1.1",
"lottie-react-native": "^6.7.2",
"posthog-react-native": "^3.3.9",
"posthog-react-native": "^3.6.1",
"ramda": "^0.30.1",
"react": "18.2.0",
"react-i18next": "^15.0.1",
Expand Down
5 changes: 4 additions & 1 deletion client/src/lib/components/VideoLooper/VideoLooper.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import React, {
import {VideoLooperProperties} from './VideoLooper';
import styled from 'styled-components';

const useCanvasColorCorrection = !(
const useCanvasColorCorrection = false; // Currently disabled because of rendering issues on Windows
/*
!(
typeof window !== 'undefined' &&
/^((?!chrome|android).)*safari/i.test(navigator.userAgent)
); // Not Safari
*/

const Wrapper = styled.div({
position: 'relative',
Expand Down
8 changes: 4 additions & 4 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9539,10 +9539,10 @@ [email protected]:
picocolors "^1.0.0"
source-map-js "^1.2.0"

posthog-react-native@^3.3.9:
version "3.3.9"
resolved "https://registry.yarnpkg.com/posthog-react-native/-/posthog-react-native-3.3.9.tgz#bb551d3858430ca686a1b459f15bde20e9033948"
integrity sha512-Gb7Hc0HKMGc9T3bWXF1IfAOYkBlzIOKl71CVveEdNEzUkxvN3bfsq5CQ2TXNpzz31q2BMvfVEt0SIN9JQZCeKA==
posthog-react-native@^3.6.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/posthog-react-native/-/posthog-react-native-3.6.1.tgz#a0a7189761013fac3ef46582b5e3b279067ba7ca"
integrity sha512-IRGfLEranh+8nTvUsyw97XeqhGwi0ine/F6tMGrdT+RmlsRFA9eRYLwupkdCviRL9mMVugBY6J4v1R1MvBw+1w==

prelude-ls@^1.2.1:
version "1.2.1"
Expand Down
4 changes: 2 additions & 2 deletions cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"prettier": "^3.4.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"vite": "^5.4.10"
"typescript": "^5.7.2",
"vite": "^6.0.3"
}
}
551 changes: 290 additions & 261 deletions cms/yarn.lock

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions content/fixContentIds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import {writeFileSync} from 'fs';
import {getContentByType} from './src/utils/utils';
import path from 'path';

const typesWithIds = ['categories', 'collections', 'exercises', 'tags'];

typesWithIds.forEach(type => {
const content = getContentByType(type, false);
Object.entries(content).forEach(([fileKey, translations]) => {
Object.entries(translations).forEach(([languageTag, translation]) => {
if (translation.id !== fileKey) {
const filePath = path.resolve('src', type, `${fileKey}.json`);
console.log(
`🚨 Fixing ID ${translation.id} for ${type}/${fileKey}/${languageTag}`,
);

translations = {
...translations,
[languageTag]: {
...translation,
id: fileKey,
},
};

writeFileSync(filePath, JSON.stringify(translations, null, 2));
}
});
});
});

console.log('Done!');
7 changes: 4 additions & 3 deletions content/importFromCsv.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {mergeDeepLeft, uniq} from 'ramda';
import {mergeDeepWith, uniq} from 'ramda';
import {unflatten} from 'safe-flat';
import * as csv from '@fast-csv/parse';
import {getContentByType} from './src/utils/utils';
import {getContentByType, mergeWithArrays} from './src/utils/utils';
import {DEFAULT_LANGUAGE_TAG, LANGUAGE_TAG} from '../shared/src/i18n/constants';
import fs from 'fs';
import path from 'path';
Expand Down Expand Up @@ -65,7 +65,8 @@ const main = async () => {
const filePath = path.resolve('src', type, `${fileKey}.json`);
const fileContent = {
...content,
[TO_LANGUAGE_TAG]: mergeDeepLeft(
[TO_LANGUAGE_TAG]: mergeDeepWith(
mergeWithArrays,
unflatten(fileTranslations),
skipLanguageMergeForTypes.includes(type)
? {}
Expand Down
12 changes: 9 additions & 3 deletions content/src/categories/07c58365-832b-4b3f-b926-c09682632441.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,15 @@
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/v1702302654/Lottie/deal_with_stress_kodv1x.json"
}
},
"da": {},
"cs": {},
"nl": {},
"da": {
"id": "07c58365-832b-4b3f-b926-c09682632441"
},
"cs": {
"id": "07c58365-832b-4b3f-b926-c09682632441"
},
"nl": {
"id": "07c58365-832b-4b3f-b926-c09682632441"
},
"es": {
"name": "Gestionar el estrés",
"id": "07c58365-832b-4b3f-b926-c09682632441",
Expand Down
14 changes: 10 additions & 4 deletions content/src/categories/4fba05de-cc63-4613-9c84-a34f4cbbc58e.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/v1702302654/Lottie/working_on_your.._yedzqe.json"
}
},
"da": {},
"cs": {},
"nl": {},
"da": {
"id": "4fba05de-cc63-4613-9c84-a34f4cbbc58e"
},
"cs": {
"id": "4fba05de-cc63-4613-9c84-a34f4cbbc58e"
},
"nl": {
"id": "4fba05de-cc63-4613-9c84-a34f4cbbc58e"
},
"es": {
"name": "Trabajar en tus relaciones",
"name": "Trabajar las relaciones",
"id": "4fba05de-cc63-4613-9c84-a34f4cbbc58e",
"collections": [
"716c2b31-612c-40c4-8e85-90f0a2af380e"
Expand Down
14 changes: 10 additions & 4 deletions content/src/categories/b7257c0a-f180-405f-8aff-05f9f75bddbd.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,17 @@
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/v1702302654/Lottie/understand_myself_qeibfi.json"
}
},
"da": {},
"cs": {},
"nl": {},
"da": {
"id": "b7257c0a-f180-405f-8aff-05f9f75bddbd"
},
"cs": {
"id": "b7257c0a-f180-405f-8aff-05f9f75bddbd"
},
"nl": {
"id": "b7257c0a-f180-405f-8aff-05f9f75bddbd"
},
"es": {
"name": "Conocerse a uno/a mismo/a",
"name": "Conocerte",
"id": "b7257c0a-f180-405f-8aff-05f9f75bddbd",
"collections": [
"1d35e981-4b8e-47f0-887a-0c90d21fb991",
Expand Down
12 changes: 9 additions & 3 deletions content/src/categories/e2d46c10-77c3-4784-a9ea-4e7b4939711d.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,15 @@
"source": "https://res.cloudinary.com/cupcake-29k/raw/upload/v1702302654/Lottie/find_meaning_wta8nc.json"
}
},
"da": {},
"cs": {},
"nl": {},
"da": {
"id": "e2d46c10-77c3-4784-a9ea-4e7b4939711d"
},
"cs": {
"id": "e2d46c10-77c3-4784-a9ea-4e7b4939711d"
},
"nl": {
"id": "e2d46c10-77c3-4784-a9ea-4e7b4939711d"
},
"es": {
"name": "Encontrar sentido",
"id": "e2d46c10-77c3-4784-a9ea-4e7b4939711d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
"b7f8731c-64d7-4c0f-9bc8-a3e50ec2eaf7",
"1e96f73b-8193-4aa6-a52c-31355eac3c08",
"12f448d2-39bc-4232-b8cf-b6cb570c7e00"
]
],
"id": "0eda04e3-4b45-44d6-b779-7b40f43f966c"
},
"cs": {
"tags": [
Expand All @@ -136,7 +137,8 @@
"b7f8731c-64d7-4c0f-9bc8-a3e50ec2eaf7",
"1e96f73b-8193-4aa6-a52c-31355eac3c08",
"12f448d2-39bc-4232-b8cf-b6cb570c7e00"
]
],
"id": "0eda04e3-4b45-44d6-b779-7b40f43f966c"
},
"nl": {
"tags": [
Expand All @@ -151,10 +153,11 @@
"b7f8731c-64d7-4c0f-9bc8-a3e50ec2eaf7",
"1e96f73b-8193-4aa6-a52c-31355eac3c08",
"12f448d2-39bc-4232-b8cf-b6cb570c7e00"
]
],
"id": "0eda04e3-4b45-44d6-b779-7b40f43f966c"
},
"es": {
"description": "Este es un punto de partida para una aventura hacia tu naturaleza interior y exterior.",
"description": "Este es el punto de partida para una aventura hacia tu naturaleza interior y exterior.",
"name": "Adéntrate en la naturaleza.",
"hidden": false,
"published": true,
Expand Down
71 changes: 59 additions & 12 deletions content/src/collections/12c07699-0129-4f9a-aab2-564e45d81484.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"image": "https://res.cloudinary.com/cupcake-29k/image/upload/t_cocreator_image/v1731443225/SEE/FullCategories_CardImage-03_fqzn6x.png"
}
],
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"link": "",
"id": "12c07699-0129-4f9a-aab2-564e45d81484",
"exercises": [
Expand All @@ -34,7 +36,9 @@
"published": false,
"sortOrder": 1,
"card": {},
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"link": "",
"id": "12c07699-0129-4f9a-aab2-564e45d81484",
"exercises": [
Expand All @@ -50,7 +54,9 @@
"published": false,
"sortOrder": 1,
"card": {},
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"link": "",
"id": "12c07699-0129-4f9a-aab2-564e45d81484",
"exercises": [
Expand All @@ -66,7 +72,9 @@
"published": false,
"sortOrder": 1,
"card": {},
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"link": "",
"id": "12c07699-0129-4f9a-aab2-564e45d81484",
"exercises": [
Expand All @@ -77,34 +85,73 @@
]
},
"da": {
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"exercises": [
"0e663e57-e320-4ec2-b246-b0a9de3f4056",
"3843d06f-1c38-47b9-ad9b-5a780f364186",
"4ade5d0d-6959-4ba6-9b0c-d98aef65b754",
"4dd7b844-b54a-4d00-b867-73d19a9b0729"
],
"card": {}
"card": {},
"id": "12c07699-0129-4f9a-aab2-564e45d81484"
},
"cs": {
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"exercises": [
"0e663e57-e320-4ec2-b246-b0a9de3f4056",
"3843d06f-1c38-47b9-ad9b-5a780f364186",
"4ade5d0d-6959-4ba6-9b0c-d98aef65b754",
"4dd7b844-b54a-4d00-b867-73d19a9b0729"
],
"card": {}
"card": {},
"id": "12c07699-0129-4f9a-aab2-564e45d81484"
},
"nl": {
"tags": ["8da0534a-5da9-430a-bdf3-242ace6460fb"],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"exercises": [
"0e663e57-e320-4ec2-b246-b0a9de3f4056",
"3843d06f-1c38-47b9-ad9b-5a780f364186",
"4ade5d0d-6959-4ba6-9b0c-d98aef65b754",
"4dd7b844-b54a-4d00-b867-73d19a9b0729"
],
"card": {}
"card": {},
"id": "12c07699-0129-4f9a-aab2-564e45d81484"
},
"es": {}
}
"es": {
"description": "Ser resiliente significa que somos fuertes por dentro, que tenemos control y podemos enfrentar cualquier dificultad que aparezca en el camino. Incluso si ocurren cosas difíciles, al ser resilientes, podemos recuperarnos y volver a tener nuevamente el control.",
"name": "VER Resiliencia",
"hidden": false,
"locked": true,
"published": true,
"sortOrder": 1,
"card": {
"image": {
"source": "https://res.cloudinary.com/cupcake-29k/image/upload/t_card_image/v1731443225/SEE/FullCategories_CardImage-03_fqzn6x.png"
}
},
"coCreators": [
{
"name": "SEE Learning",
"url": "https://seelearning.emory.edu/en/home",
"image": "https://res.cloudinary.com/cupcake-29k/image/upload/t_cocreator_image/v1731443225/SEE/FullCategories_CardImage-03_fqzn6x.png"
}
],
"tags": [
"8da0534a-5da9-430a-bdf3-242ace6460fb"
],
"link": "",
"id": "12c07699-0129-4f9a-aab2-564e45d81484",
"exercises": [
"0e663e57-e320-4ec2-b246-b0a9de3f4056",
"3843d06f-1c38-47b9-ad9b-5a780f364186",
"4ade5d0d-6959-4ba6-9b0c-d98aef65b754",
"4dd7b844-b54a-4d00-b867-73d19a9b0729"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,15 @@
"imageBackgroundColor": "#fbf5e9"
}
},
"da": {},
"cs": {},
"nl": {},
"da": {
"id": "1d35e981-4b8e-47f0-887a-0c90d21fb991"
},
"cs": {
"id": "1d35e981-4b8e-47f0-887a-0c90d21fb991"
},
"nl": {
"id": "1d35e981-4b8e-47f0-887a-0c90d21fb991"
},
"es": {
"description": "Practica y prioriza el autocuidado - incluso en tiempos difíciles.",
"name": "Cuídate",
Expand Down
Loading
Loading