From 10f16480aa57eb8c17874db48e8f221c760da0c0 Mon Sep 17 00:00:00 2001
From: KoWeiJAC <kowei.hung@judicialappointments.digital>
Date: Thu, 7 Nov 2024 01:27:37 +0800
Subject: [PATCH 1/2] log submitted timestamp for each stage

---
 src/store/application.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/store/application.js b/src/store/application.js
index 3b1b6b07..91e7ecb2 100644
--- a/src/store/application.js
+++ b/src/store/application.js
@@ -60,6 +60,7 @@ export default {
           const data = {
             status: 'applied',
             appliedAt: serverTimestamp(),
+            [`_submittedLog.${state.record._processing.stage}`]: serverTimestamp(),
           };
 
           // check if application was made in Welsh

From 8b468a3cbda45fdecbc31072d18448f87a30a2fc Mon Sep 17 00:00:00 2001
From: KoWeiJAC <kowei.hung@judicialappointments.digital>
Date: Tue, 12 Nov 2024 08:35:50 +0000
Subject: [PATCH 2/2] down grade sentry package for it can run

---
 package-lock.json | 254 +++++++++++++++++++---------------------------
 package.json      |   2 +-
 2 files changed, 106 insertions(+), 150 deletions(-)

diff --git a/package-lock.json b/package-lock.json
index 1d5bb532..39fbe65c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,7 @@
       "dependencies": {
         "@jac-uk/jac-kit": "4.1.14",
         "@ministryofjustice/frontend": "0.2.4",
-        "@sentry/vue": "^8.33.1",
+        "@sentry/vue": "^7.61.1",
         "@vue/compat": "^3.3.4",
         "autoprefixer": "^10.4.16",
         "firebase": "^10.11.0",
@@ -1910,120 +1910,95 @@
         "win32"
       ]
     },
-    "node_modules/@sentry-internal/browser-utils": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.33.1.tgz",
-      "integrity": "sha512-TW6/r+Gl5jiXv54iK1xZ3mlVgTS/jaBp4vcQ0xGMdgiQ3WchEPcFSeYovL+YHT3tSud0GZqVtDQCz+5i76puqA==",
+    "node_modules/@sentry-internal/tracing": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.61.1.tgz",
+      "integrity": "sha512-E8J6ZMXHGdWdmgKBK/ounuUppDK65c4Hphin6iVckDGMEATn0auYAKngeyRUMLof1167DssD8wxcIA4aBvmScA==",
       "dependencies": {
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       },
       "engines": {
-        "node": ">=14.18"
-      }
-    },
-    "node_modules/@sentry-internal/feedback": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-8.33.1.tgz",
-      "integrity": "sha512-qauMRTm3qDaLqZ3ibI03cj4gLF40y0ij65nj+cns6iWxGCtPrO8tjvXFWuQsE7Aye9dGMnBgmv7uN+NTUtC3RA==",
-      "dependencies": {
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
-      },
-      "engines": {
-        "node": ">=14.18"
-      }
-    },
-    "node_modules/@sentry-internal/replay": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-8.33.1.tgz",
-      "integrity": "sha512-fm4coIOjmanU29NOVN9MyaP4fUCOYytbtFqVSKRFNZQ/xAgNeySiBIbUd6IjujMmnOk9bY0WEUMcdm3Uotjdog==",
-      "dependencies": {
-        "@sentry-internal/browser-utils": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
-      },
-      "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       }
     },
-    "node_modules/@sentry-internal/replay-canvas": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-8.33.1.tgz",
-      "integrity": "sha512-nsxTFTPCT10Ty/v6+AiST3+yotGP1sUb8xqfKB9fPnS1hZHFryp0NnEls7xFjBsBbZPU1GpFkzrk/E6JFzixDQ==",
+    "node_modules/@sentry/browser": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.61.1.tgz",
+      "integrity": "sha512-v6Wv0O/PF+sqji+WWpJmxAlQafsiKmsXQLzKAIntVjl3HbYO5oVS3ubCyqfxSlLxIhM5JuHcEOLn6Zi3DPtpcw==",
       "dependencies": {
-        "@sentry-internal/replay": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry-internal/tracing": "7.61.1",
+        "@sentry/core": "7.61.1",
+        "@sentry/replay": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       },
       "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       }
     },
-    "node_modules/@sentry/browser": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-8.33.1.tgz",
-      "integrity": "sha512-c6zI/igexkLwZuGk+u8Rj26ChjxGgkhe6ZbKFsXCYaKAp5ep5X7HQRkkqgbxApiqlC0LduHdd/ymzh139JLg8w==",
+    "node_modules/@sentry/core": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.61.1.tgz",
+      "integrity": "sha512-WTRt0J33KhUbYuDQZ5G58kdsNeQ5JYrpi6o+Qz+1xTv60DQq/tBGRJ7d86SkmdnGIiTs6W1hsxAtyiLS0y9d2A==",
       "dependencies": {
-        "@sentry-internal/browser-utils": "8.33.1",
-        "@sentry-internal/feedback": "8.33.1",
-        "@sentry-internal/replay": "8.33.1",
-        "@sentry-internal/replay-canvas": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       },
       "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       }
     },
-    "node_modules/@sentry/core": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.33.1.tgz",
-      "integrity": "sha512-3SS41suXLFzxL3OQvTMZ6q92ZapELVq2l2SoWlZopcamWhog2Ru0dp2vkunq97kFHb2TzKRTlFH4+4gbT8SJug==",
+    "node_modules/@sentry/replay": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.61.1.tgz",
+      "integrity": "sha512-Nsnnzx8c+DRjnfQ0Md11KGdY21XOPa50T2B3eBEyFAhibvYEc/68PuyVWkMBQ7w9zo/JV+q6HpIXKD0THUtqZA==",
       "dependencies": {
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1"
       },
       "engines": {
-        "node": ">=14.18"
+        "node": ">=12"
       }
     },
     "node_modules/@sentry/types": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.33.1.tgz",
-      "integrity": "sha512-GjoAMvwtpIemoF/IiwZ7A60g4nQv3qwzR21GvJqDVUoKD0e8pv9OLX+HyXoUat4wEDGSuDUcUyUKD2G+od73QA==",
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.61.1.tgz",
+      "integrity": "sha512-CpPKL+OfwYOduRX9AT3p+Ie1fftgcCPd5WofTVVq7xeWRuerOOf2iJd0v+8yHQ25omgres1YOttDkCcvQRn4Jw==",
       "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       }
     },
     "node_modules/@sentry/utils": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-8.33.1.tgz",
-      "integrity": "sha512-uzuYpiiJuFY3N4WNHMBWUQX5oNv2t/TbG0OHRp3Rr7yeu+HSfD542TIp9/gMZ+G0Cxd8AmVO3wkKIFbk0TL4Qg==",
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.61.1.tgz",
+      "integrity": "sha512-pUPXoiuYrTEPcBHjRizFB6eZEGm/6cTBwdWSHUjkGKvt19zuZ1ixFJQV6LrIL/AMeiQbmfQ+kTd/8SR7E9rcTQ==",
       "dependencies": {
-        "@sentry/types": "8.33.1"
+        "@sentry/types": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       },
       "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       }
     },
     "node_modules/@sentry/vue": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-8.33.1.tgz",
-      "integrity": "sha512-Ec3Z/KM96PhSdc3NSQUkKRETSipnIy55M35ujGCbdMnlGr95TjmInxVIxQGZap8S0EVzcpGCWFTGlzUR/pmVJQ==",
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-7.61.1.tgz",
+      "integrity": "sha512-xzfrU49l914Hzot9csZDB8rt4PifwzFjF4atDuJIjm+J2GYJa9cI3Hab8IS3m1qH2WgqgWYQ4GnKZ2DNgeDfpA==",
       "dependencies": {
-        "@sentry/browser": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/browser": "7.61.1",
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       },
       "engines": {
-        "node": ">=14.18"
+        "node": ">=8"
       },
       "peerDependencies": {
         "vue": "2.x || 3.x"
@@ -13951,93 +13926,74 @@
       "dev": true,
       "optional": true
     },
-    "@sentry-internal/browser-utils": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.33.1.tgz",
-      "integrity": "sha512-TW6/r+Gl5jiXv54iK1xZ3mlVgTS/jaBp4vcQ0xGMdgiQ3WchEPcFSeYovL+YHT3tSud0GZqVtDQCz+5i76puqA==",
+    "@sentry-internal/tracing": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.61.1.tgz",
+      "integrity": "sha512-E8J6ZMXHGdWdmgKBK/ounuUppDK65c4Hphin6iVckDGMEATn0auYAKngeyRUMLof1167DssD8wxcIA4aBvmScA==",
       "requires": {
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       }
     },
-    "@sentry-internal/feedback": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-8.33.1.tgz",
-      "integrity": "sha512-qauMRTm3qDaLqZ3ibI03cj4gLF40y0ij65nj+cns6iWxGCtPrO8tjvXFWuQsE7Aye9dGMnBgmv7uN+NTUtC3RA==",
-      "requires": {
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
-      }
-    },
-    "@sentry-internal/replay": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-8.33.1.tgz",
-      "integrity": "sha512-fm4coIOjmanU29NOVN9MyaP4fUCOYytbtFqVSKRFNZQ/xAgNeySiBIbUd6IjujMmnOk9bY0WEUMcdm3Uotjdog==",
-      "requires": {
-        "@sentry-internal/browser-utils": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
-      }
-    },
-    "@sentry-internal/replay-canvas": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-8.33.1.tgz",
-      "integrity": "sha512-nsxTFTPCT10Ty/v6+AiST3+yotGP1sUb8xqfKB9fPnS1hZHFryp0NnEls7xFjBsBbZPU1GpFkzrk/E6JFzixDQ==",
+    "@sentry/browser": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.61.1.tgz",
+      "integrity": "sha512-v6Wv0O/PF+sqji+WWpJmxAlQafsiKmsXQLzKAIntVjl3HbYO5oVS3ubCyqfxSlLxIhM5JuHcEOLn6Zi3DPtpcw==",
       "requires": {
-        "@sentry-internal/replay": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry-internal/tracing": "7.61.1",
+        "@sentry/core": "7.61.1",
+        "@sentry/replay": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       }
     },
-    "@sentry/browser": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-8.33.1.tgz",
-      "integrity": "sha512-c6zI/igexkLwZuGk+u8Rj26ChjxGgkhe6ZbKFsXCYaKAp5ep5X7HQRkkqgbxApiqlC0LduHdd/ymzh139JLg8w==",
+    "@sentry/core": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.61.1.tgz",
+      "integrity": "sha512-WTRt0J33KhUbYuDQZ5G58kdsNeQ5JYrpi6o+Qz+1xTv60DQq/tBGRJ7d86SkmdnGIiTs6W1hsxAtyiLS0y9d2A==",
       "requires": {
-        "@sentry-internal/browser-utils": "8.33.1",
-        "@sentry-internal/feedback": "8.33.1",
-        "@sentry-internal/replay": "8.33.1",
-        "@sentry-internal/replay-canvas": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       }
     },
-    "@sentry/core": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.33.1.tgz",
-      "integrity": "sha512-3SS41suXLFzxL3OQvTMZ6q92ZapELVq2l2SoWlZopcamWhog2Ru0dp2vkunq97kFHb2TzKRTlFH4+4gbT8SJug==",
+    "@sentry/replay": {
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.61.1.tgz",
+      "integrity": "sha512-Nsnnzx8c+DRjnfQ0Md11KGdY21XOPa50T2B3eBEyFAhibvYEc/68PuyVWkMBQ7w9zo/JV+q6HpIXKD0THUtqZA==",
       "requires": {
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1"
       }
     },
     "@sentry/types": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.33.1.tgz",
-      "integrity": "sha512-GjoAMvwtpIemoF/IiwZ7A60g4nQv3qwzR21GvJqDVUoKD0e8pv9OLX+HyXoUat4wEDGSuDUcUyUKD2G+od73QA=="
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.61.1.tgz",
+      "integrity": "sha512-CpPKL+OfwYOduRX9AT3p+Ie1fftgcCPd5WofTVVq7xeWRuerOOf2iJd0v+8yHQ25omgres1YOttDkCcvQRn4Jw=="
     },
     "@sentry/utils": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-8.33.1.tgz",
-      "integrity": "sha512-uzuYpiiJuFY3N4WNHMBWUQX5oNv2t/TbG0OHRp3Rr7yeu+HSfD542TIp9/gMZ+G0Cxd8AmVO3wkKIFbk0TL4Qg==",
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.61.1.tgz",
+      "integrity": "sha512-pUPXoiuYrTEPcBHjRizFB6eZEGm/6cTBwdWSHUjkGKvt19zuZ1ixFJQV6LrIL/AMeiQbmfQ+kTd/8SR7E9rcTQ==",
       "requires": {
-        "@sentry/types": "8.33.1"
+        "@sentry/types": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       }
     },
     "@sentry/vue": {
-      "version": "8.33.1",
-      "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-8.33.1.tgz",
-      "integrity": "sha512-Ec3Z/KM96PhSdc3NSQUkKRETSipnIy55M35ujGCbdMnlGr95TjmInxVIxQGZap8S0EVzcpGCWFTGlzUR/pmVJQ==",
-      "requires": {
-        "@sentry/browser": "8.33.1",
-        "@sentry/core": "8.33.1",
-        "@sentry/types": "8.33.1",
-        "@sentry/utils": "8.33.1"
+      "version": "7.61.1",
+      "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-7.61.1.tgz",
+      "integrity": "sha512-xzfrU49l914Hzot9csZDB8rt4PifwzFjF4atDuJIjm+J2GYJa9cI3Hab8IS3m1qH2WgqgWYQ4GnKZ2DNgeDfpA==",
+      "requires": {
+        "@sentry/browser": "7.61.1",
+        "@sentry/core": "7.61.1",
+        "@sentry/types": "7.61.1",
+        "@sentry/utils": "7.61.1",
+        "tslib": "^2.4.1 || ^1.9.3"
       }
     },
     "@sinclair/typebox": {
diff --git a/package.json b/package.json
index 9a30f16f..bbfbe69e 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
   "dependencies": {
     "@jac-uk/jac-kit": "4.1.14",
     "@ministryofjustice/frontend": "0.2.4",
-    "@sentry/vue": "^8.33.1",
+    "@sentry/vue": "^7.61.1",
     "@vue/compat": "^3.3.4",
     "autoprefixer": "^10.4.16",
     "firebase": "^10.11.0",