From 0232d20e4269e7524cf34434a36a455f09b3b950 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:21:14 +0000 Subject: [PATCH 1/3] Initial plan From c5b08e778d99d9a5a677f38a3ff5ba60cc657981 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:26:15 +0000 Subject: [PATCH 2/3] chore: initial plan placeholder Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- mobile/package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/package-lock.json b/mobile/package-lock.json index 8db516c6..781d19a8 100644 --- a/mobile/package-lock.json +++ b/mobile/package-lock.json @@ -3721,7 +3721,7 @@ "version": "19.2.14", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "csstype": "^3.2.2" @@ -5569,7 +5569,7 @@ "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/data-view-buffer": { From 073627884ca08ddb1b7838ce95815fc20f6ca5a0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 16:28:36 +0000 Subject: [PATCH 3/3] fix(mobile): align React version with react-native-renderer to fix version mismatch crash Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- mobile/package-lock.json | 42 ++++++++++-------------- mobile/package.json | 6 ++-- mobile/src/hooks/usePushNotifications.ts | 2 ++ mobile/src/services/api.ts | 2 +- 4 files changed, 24 insertions(+), 28 deletions(-) diff --git a/mobile/package-lock.json b/mobile/package-lock.json index 781d19a8..17722c74 100644 --- a/mobile/package-lock.json +++ b/mobile/package-lock.json @@ -34,8 +34,8 @@ "expo-splash-screen": "~31.0.13", "expo-status-bar": "~3.0.9", "expo-web-browser": "~15.0.10", - "react": "19.2.4", - "react-dom": "19.2.4", + "react": "19.1.0", + "react-dom": "19.1.0", "react-native": "0.81.5", "react-native-safe-area-context": "5.6.0", "react-native-screens": "4.16.0", @@ -43,7 +43,7 @@ }, "devDependencies": { "@babel/core": "^7.24.0", - "@types/react": "~19.2.0", + "@types/react": "~19.1.0", "eslint": "^8.57.0", "eslint-config-expo": "~10.0.0", "typescript": "^5.3.0" @@ -3718,13 +3718,13 @@ } }, "node_modules/@types/react": { - "version": "19.2.14", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", - "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "version": "19.1.17", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.17.tgz", + "integrity": "sha512-Qec1E3mhALmaspIrhWt9jkQMNdw6bReVu64mjvhbhq2NFPftLPVr+l1SZgmw/66WwBNpDh7ao5AT6gF5v41PFA==", "dev": true, "license": "MIT", "dependencies": { - "csstype": "^3.2.2" + "csstype": "^3.0.2" } }, "node_modules/@types/stack-utils": { @@ -10946,9 +10946,9 @@ } }, "node_modules/react": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", - "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", + "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", "license": "MIT", "engines": { "node": ">=0.10.0" @@ -10986,15 +10986,15 @@ } }, "node_modules/react-dom": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", - "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", + "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", "license": "MIT", "dependencies": { - "scheduler": "^0.27.0" + "scheduler": "^0.26.0" }, "peerDependencies": { - "react": "^19.2.4" + "react": "^19.1.0" } }, "node_modules/react-fast-compare": { @@ -11175,12 +11175,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/react-native/node_modules/scheduler": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", - "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", - "license": "MIT" - }, "node_modules/react-native/node_modules/semver": { "version": "7.7.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", @@ -11646,9 +11640,9 @@ } }, "node_modules/scheduler": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", - "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", + "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", "license": "MIT" }, "node_modules/semver": { diff --git a/mobile/package.json b/mobile/package.json index d04b5d1d..6a26141e 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -43,8 +43,8 @@ "expo-splash-screen": "~31.0.13", "expo-status-bar": "~3.0.9", "expo-web-browser": "~15.0.10", - "react": "19.2.4", - "react-dom": "19.2.4", + "react": "19.1.0", + "react-dom": "19.1.0", "react-native": "0.81.5", "react-native-web": "~0.20.0", "react-native-safe-area-context": "5.6.0", @@ -52,7 +52,7 @@ }, "devDependencies": { "@babel/core": "^7.24.0", - "@types/react": "~19.2.0", + "@types/react": "~19.1.0", "eslint": "^8.57.0", "eslint-config-expo": "~10.0.0", "typescript": "^5.3.0" diff --git a/mobile/src/hooks/usePushNotifications.ts b/mobile/src/hooks/usePushNotifications.ts index 85c3c97c..cc62e4b4 100644 --- a/mobile/src/hooks/usePushNotifications.ts +++ b/mobile/src/hooks/usePushNotifications.ts @@ -21,6 +21,8 @@ Notifications.setNotificationHandler({ shouldShowAlert: true, shouldPlaySound: true, shouldSetBadge: true, + shouldShowBanner: true, + shouldShowList: true, }), }); diff --git a/mobile/src/services/api.ts b/mobile/src/services/api.ts index 7a523216..0cb12520 100644 --- a/mobile/src/services/api.ts +++ b/mobile/src/services/api.ts @@ -107,7 +107,7 @@ class DocuElevateAPI { headers["Authorization"] = `Bearer ${token}`; } - let body: BodyInit | undefined; + let body: string | FormData | undefined; if (options?.formData) { body = options.formData; // Let fetch set multipart content-type with boundary automatically