@striae-org/striae 7.1.2 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/actions/case-manage/operations.ts +2 -1
- package/app/routes/striae/utils/case-export.ts +1 -17
- package/app/utils/data/operations/case-export-loader.ts +17 -0
- package/package.json +16 -16
- package/workers/audit-worker/package.json +2 -2
- package/workers/audit-worker/wrangler.jsonc.example +1 -1
- package/workers/data-worker/package.json +2 -2
- package/workers/data-worker/wrangler.jsonc.example +1 -1
- package/workers/image-worker/package.json +2 -2
- package/workers/image-worker/wrangler.jsonc.example +1 -1
- package/workers/lists-worker/package.json +2 -2
- package/workers/lists-worker/wrangler.jsonc.example +1 -1
- package/workers/pdf-worker/package.json +2 -2
- package/workers/pdf-worker/wrangler.jsonc.example +1 -1
- package/workers/user-worker/package.json +2 -2
- package/workers/user-worker/wrangler.jsonc.example +1 -1
- package/wrangler.toml.example +1 -1
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from '~/utils/data';
|
|
17
17
|
import { type CaseData, type CaseExportData, type ValidationAuditEntry } from '~/types';
|
|
18
18
|
import { auditService } from '~/services/audit';
|
|
19
|
-
import {
|
|
19
|
+
import { loadCaseExportActions } from '~/utils/data/operations/case-export-loader';
|
|
20
20
|
import { buildArchivePackage } from './archive-package-builder';
|
|
21
21
|
import { deleteFileWithoutAudit } from './delete-helpers';
|
|
22
22
|
import { isReadOnlyCaseData, sortCaseNumbers, validateCaseNumber } from './utils';
|
|
@@ -600,6 +600,7 @@ export const archiveCase = async (
|
|
|
600
600
|
isReadOnly: false,
|
|
601
601
|
} as CaseData;
|
|
602
602
|
|
|
603
|
+
const { exportCaseData, formatDateForFilename } = await loadCaseExportActions();
|
|
603
604
|
const exportData = await exportCaseData(user, caseNumber, { includeMetadata: true });
|
|
604
605
|
const archivedExportData: CaseExportData = {
|
|
605
606
|
...exportData,
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type CaseExportActionsModule = typeof CaseExportActions;
|
|
4
|
-
|
|
5
|
-
let caseExportActionsPromise: Promise<CaseExportActionsModule> | null = null;
|
|
6
|
-
|
|
7
|
-
export const loadCaseExportActions = (): Promise<CaseExportActionsModule> => {
|
|
8
|
-
if (!caseExportActionsPromise) {
|
|
9
|
-
caseExportActionsPromise = import('~/components/actions/case-export').catch((error: unknown) => {
|
|
10
|
-
// Clear cached failures so transient chunk/network errors can recover on retry.
|
|
11
|
-
caseExportActionsPromise = null;
|
|
12
|
-
throw error;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return caseExportActionsPromise;
|
|
17
|
-
};
|
|
1
|
+
export { loadCaseExportActions, type CaseExportActionsModule } from '~/utils/data/operations/case-export-loader';
|
|
18
2
|
|
|
19
3
|
export const getExportProgressLabel = (progress: number): string => {
|
|
20
4
|
if (progress < 30) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as CaseExportActions from '~/components/actions/case-export';
|
|
2
|
+
|
|
3
|
+
export type CaseExportActionsModule = typeof CaseExportActions;
|
|
4
|
+
|
|
5
|
+
let caseExportActionsPromise: Promise<CaseExportActionsModule> | null = null;
|
|
6
|
+
|
|
7
|
+
export const loadCaseExportActions = (): Promise<CaseExportActionsModule> => {
|
|
8
|
+
if (!caseExportActionsPromise) {
|
|
9
|
+
caseExportActionsPromise = import('~/components/actions/case-export').catch((error: unknown) => {
|
|
10
|
+
// Clear cached failures so transient chunk/network errors can recover on retry.
|
|
11
|
+
caseExportActionsPromise = null;
|
|
12
|
+
throw error;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return caseExportActionsPromise;
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@striae-org/striae",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Striae is a specialized, cloud-native platform designed to streamline forensic firearms identification by providing an intuitive environment for digital comparison image annotation, authenticated confirmations, and automated report generation.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -102,44 +102,44 @@
|
|
|
102
102
|
"deploy-workers:user": "cd workers/user-worker && npm run deploy"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@react-router/cloudflare": "^7.15.
|
|
105
|
+
"@react-router/cloudflare": "^7.15.1",
|
|
106
106
|
"firebase": "^12.13.0",
|
|
107
107
|
"isbot": "^5.1.40",
|
|
108
108
|
"jszip": "^3.10.1",
|
|
109
109
|
"qrcode": "^1.5.4",
|
|
110
110
|
"react": "^19.2.6",
|
|
111
111
|
"react-dom": "^19.2.6",
|
|
112
|
-
"react-router": "^7.15.
|
|
112
|
+
"react-router": "^7.15.1"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@cloudflare/vitest-pool-workers": "^0.
|
|
116
|
-
"@react-router/dev": "^7.15.
|
|
117
|
-
"@react-router/fs-routes": "^7.15.
|
|
115
|
+
"@cloudflare/vitest-pool-workers": "^0.16.9",
|
|
116
|
+
"@react-router/dev": "^7.15.1",
|
|
117
|
+
"@react-router/fs-routes": "^7.15.1",
|
|
118
118
|
"@types/qrcode": "^1.5.6",
|
|
119
|
-
"@types/react": "^19.2.
|
|
119
|
+
"@types/react": "^19.2.15",
|
|
120
120
|
"@types/react-dom": "^19.2.3",
|
|
121
|
-
"@typescript-eslint/eslint-plugin": "^8.59.
|
|
122
|
-
"@typescript-eslint/parser": "^8.59.
|
|
123
|
-
"@vitest/coverage-v8": "^4.1.
|
|
121
|
+
"@typescript-eslint/eslint-plugin": "^8.59.4",
|
|
122
|
+
"@typescript-eslint/parser": "^8.59.4",
|
|
123
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
124
124
|
"eslint": "^9.39.4",
|
|
125
125
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
126
126
|
"eslint-plugin-import": "^2.32.0",
|
|
127
127
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
128
128
|
"eslint-plugin-react": "^7.37.5",
|
|
129
129
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
130
|
-
"firebase-admin": "^13.
|
|
130
|
+
"firebase-admin": "^13.10.0",
|
|
131
131
|
"modern-normalize": "^3.0.1",
|
|
132
132
|
"typescript": "^6.0.3",
|
|
133
|
-
"vite": "^8.0.
|
|
134
|
-
"vitest": "^4.1.
|
|
135
|
-
"wrangler": "^4.
|
|
133
|
+
"vite": "^8.0.14",
|
|
134
|
+
"vitest": "^4.1.7",
|
|
135
|
+
"wrangler": "^4.94.0"
|
|
136
136
|
},
|
|
137
137
|
"overrides": {
|
|
138
138
|
"@tootallnate/once": "3.0.1",
|
|
139
139
|
"uuid": "^14.0.0"
|
|
140
140
|
},
|
|
141
141
|
"engines": {
|
|
142
|
-
"node": ">=
|
|
142
|
+
"node": ">=22.0.0"
|
|
143
143
|
},
|
|
144
144
|
"packageManager": "npm@11.13.0"
|
|
145
|
-
}
|
|
145
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "audit-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "wrangler deploy",
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"start": "wrangler dev"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"wrangler": "^4.
|
|
11
|
+
"wrangler": "^4.90.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "wrangler deploy",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@cloudflare/vitest-pool-workers": "^0.14.9",
|
|
12
|
-
"wrangler": "^4.
|
|
12
|
+
"wrangler": "^4.90.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "image-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "wrangler deploy",
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"start": "wrangler dev"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"wrangler": "^4.
|
|
11
|
+
"wrangler": "^4.90.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lists-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "wrangler deploy",
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"start": "wrangler dev"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"wrangler": "^4.
|
|
11
|
+
"wrangler": "^4.90.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate:assets": "node scripts/generate-assets.js",
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"start": "wrangler dev"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"wrangler": "^4.
|
|
12
|
+
"wrangler": "^4.90.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "user-worker",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"deploy": "wrangler deploy",
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"start": "wrangler dev"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"wrangler": "^4.
|
|
11
|
+
"wrangler": "^4.90.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/wrangler.toml.example
CHANGED