@striae-org/striae 4.0.1 → 4.0.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.
Files changed (89) hide show
  1. package/.env.example +1 -0
  2. package/app/components/actions/case-export/data-processing.ts +1 -1
  3. package/app/components/actions/case-export/download-handlers.ts +4 -3
  4. package/app/components/actions/case-export/metadata-helpers.ts +1 -1
  5. package/app/components/actions/case-import/confirmation-import.ts +1 -1
  6. package/app/components/actions/case-import/image-operations.ts +1 -1
  7. package/app/components/actions/case-import/orchestrator.ts +1 -1
  8. package/app/components/actions/case-import/storage-operations.ts +3 -3
  9. package/app/components/actions/case-import/validation.ts +3 -4
  10. package/app/components/actions/case-import/zip-processing.ts +1 -1
  11. package/app/components/actions/case-manage.ts +3 -5
  12. package/app/components/actions/confirm-export.ts +4 -5
  13. package/app/components/actions/generate-pdf.ts +1 -1
  14. package/app/components/actions/image-manage.ts +2 -3
  15. package/app/components/actions/notes-manage.ts +1 -1
  16. package/app/components/actions/signout.tsx +1 -1
  17. package/app/components/audit/user-audit-viewer.tsx +1 -1
  18. package/app/components/auth/auth-provider.tsx +1 -1
  19. package/app/components/auth/mfa-verification.tsx +1 -1
  20. package/app/components/button/button.tsx +1 -1
  21. package/app/components/canvas/box-annotations/box-annotations.tsx +1 -1
  22. package/app/components/canvas/confirmation/confirmation.tsx +1 -1
  23. package/app/components/icon/icon.tsx +1 -1
  24. package/app/components/public-signing-key-modal/public-signing-key-modal.tsx +1 -1
  25. package/app/components/sidebar/case-export/case-export.tsx +1 -1
  26. package/app/components/sidebar/cases/case-sidebar.tsx +3 -3
  27. package/app/components/sidebar/cases/cases-modal.tsx +1 -1
  28. package/app/components/sidebar/files/files-modal.tsx +1 -1
  29. package/app/components/sidebar/notes/notes-sidebar.tsx +1 -1
  30. package/app/components/sidebar/sidebar-container.tsx +2 -17
  31. package/app/components/sidebar/sidebar.module.css +0 -29
  32. package/app/components/theme-provider/theme-provider.tsx +1 -1
  33. package/app/components/theme-provider/theme.ts +1 -1
  34. package/app/components/user/delete-account.tsx +1 -1
  35. package/app/components/user/manage-profile.tsx +1 -1
  36. package/app/components/user/mfa-phone-update.tsx +1 -1
  37. package/app/root.tsx +18 -51
  38. package/app/routes/auth/emailActionHandler.tsx +1 -2
  39. package/app/routes/auth/emailVerification.tsx +1 -1
  40. package/app/routes/auth/login.example.tsx +775 -0
  41. package/app/routes/auth/login.module.example.css +523 -0
  42. package/app/routes/auth/login.tsx +4 -6
  43. package/app/routes/auth/passwordReset.tsx +1 -1
  44. package/app/routes/striae/striae.tsx +2 -2
  45. package/app/services/audit/audit-export-signing.ts +2 -2
  46. package/app/services/audit/audit-export.service.ts +1 -2
  47. package/app/services/audit/audit.service.ts +1 -1
  48. package/app/services/firebase/index.ts +1 -1
  49. package/app/utils/api/index.ts +4 -0
  50. package/app/utils/auth/index.ts +5 -0
  51. package/app/utils/common/index.ts +3 -0
  52. package/app/utils/{version.ts → common/version.ts} +1 -1
  53. package/app/utils/{data-operations.ts → data/data-operations.ts} +4 -4
  54. package/app/utils/data/index.ts +2 -0
  55. package/app/utils/{permissions.ts → data/permissions.ts} +1 -1
  56. package/app/utils/forensics/index.ts +5 -0
  57. package/app/utils/ui/index.ts +2 -0
  58. package/package.json +18 -20
  59. package/public/.well-known/keybase.txt +56 -0
  60. package/scripts/deploy-config.sh +29 -0
  61. package/scripts/deploy-worker-secrets.sh +1 -2
  62. package/workers/audit-worker/wrangler.jsonc.example +1 -1
  63. package/workers/data-worker/wrangler.jsonc.example +1 -1
  64. package/workers/image-worker/wrangler.jsonc.example +1 -1
  65. package/workers/keys-worker/wrangler.jsonc.example +1 -1
  66. package/workers/pdf-worker/src/pdf-worker.example.ts +144 -39
  67. package/workers/pdf-worker/wrangler.jsonc.example +1 -1
  68. package/workers/user-worker/wrangler.jsonc.example +1 -1
  69. package/wrangler.toml.example +1 -1
  70. package/public/.well-known/publickey.info@striae.org.asc +0 -17
  71. package/public/oin-badge.png +0 -0
  72. /package/app/utils/{data-api-client.ts → api/data-api-client.ts} +0 -0
  73. /package/app/utils/{image-api-client.ts → api/image-api-client.ts} +0 -0
  74. /package/app/utils/{pdf-api-client.ts → api/pdf-api-client.ts} +0 -0
  75. /package/app/utils/{user-api-client.ts → api/user-api-client.ts} +0 -0
  76. /package/app/utils/{auth-action-settings.ts → auth/auth-action-settings.ts} +0 -0
  77. /package/app/utils/{auth.ts → auth/auth.ts} +0 -0
  78. /package/app/utils/{mfa-phone.ts → auth/mfa-phone.ts} +0 -0
  79. /package/app/utils/{mfa.ts → auth/mfa.ts} +0 -0
  80. /package/app/utils/{password-policy.ts → auth/password-policy.ts} +0 -0
  81. /package/app/utils/{batch-operations.ts → common/batch-operations.ts} +0 -0
  82. /package/app/utils/{id-generator.ts → common/id-generator.ts} +0 -0
  83. /package/app/utils/{SHA256.ts → forensics/SHA256.ts} +0 -0
  84. /package/app/utils/{audit-export-signature.ts → forensics/audit-export-signature.ts} +0 -0
  85. /package/app/utils/{confirmation-signature.ts → forensics/confirmation-signature.ts} +0 -0
  86. /package/app/utils/{export-verification.ts → forensics/export-verification.ts} +0 -0
  87. /package/app/utils/{signature-utils.ts → forensics/signature-utils.ts} +0 -0
  88. /package/app/utils/{annotation-timestamp.ts → ui/annotation-timestamp.ts} +0 -0
  89. /package/app/utils/{style.ts → ui/style.ts} +0 -0
@@ -0,0 +1,523 @@
1
+ .container {
2
+ position: relative;
3
+ display: flex;
4
+ justify-content: center;
5
+ align-items: center;
6
+ min-height: 100vh;
7
+ padding: var(--spaceL);
8
+ z-index: var(--zIndex0);
9
+ }
10
+
11
+ .logo {
12
+ position: fixed;
13
+ top: var(--spaceL);
14
+ left: var(--spaceL);
15
+ width: 150px;
16
+ height: 150px;
17
+ background-image: url("/logo-dark.png");
18
+ background-size: contain;
19
+ background-repeat: no-repeat;
20
+ background-position: center;
21
+ z-index: var(--zIndex2);
22
+ transition: transform var(--durationM) var(--bezierFastoutSlowin);
23
+ }
24
+
25
+ .logo:hover {
26
+ transform: scale(1.05);
27
+ }
28
+
29
+ .formWrapper {
30
+ background-color: color-mix(in lab, var(--backgroundLight) 95%, transparent);
31
+ padding: var(--space2XL);
32
+ border-radius: var(--spaceXS);
33
+ box-shadow: 0 var(--spaceXS) var(--spaceM)
34
+ color-mix(in lab, var(--black) 10%, transparent);
35
+ width: 100%;
36
+ max-width: var(--maxWidthS);
37
+ }
38
+
39
+ .title {
40
+ text-align: center;
41
+ color: var(--textTitle);
42
+ margin-bottom: var(--spaceXL);
43
+ font-size: var(--fontSizeH4);
44
+ }
45
+
46
+ .form {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: var(--spaceM);
50
+ }
51
+
52
+ .input {
53
+ padding: var(--spaceM);
54
+ border: 1.5px solid color-mix(in lab, var(--text) 20%, transparent);
55
+ border-radius: var(--spaceXS);
56
+ font-size: var(--fontSizeBodyM);
57
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
58
+ }
59
+
60
+ .input:focus {
61
+ outline: none;
62
+ border-color: var(--primary);
63
+ box-shadow: 0 0 0 2px color-mix(in lab, var(--primary) 25%, transparent);
64
+ }
65
+
66
+ .input:disabled {
67
+ background-color: color-mix(in lab, var(--background) 95%, transparent);
68
+ cursor: not-allowed;
69
+ }
70
+
71
+ .passwordField {
72
+ position: relative;
73
+ display: flex;
74
+ align-items: center;
75
+ width: 100%;
76
+ }
77
+
78
+ .passwordField .input {
79
+ padding-right: var(--space2XL);
80
+ width: 100%;
81
+ }
82
+
83
+ .passwordToggle {
84
+ position: absolute;
85
+ right: var(--spaceM);
86
+ background: none;
87
+ border: none;
88
+ cursor: pointer;
89
+ font-size: 16px;
90
+ padding: var(--spaceXS);
91
+ border-radius: var(--spaceXS);
92
+ display: flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ transition: background-color var(--durationS) var(--bezierFastoutSlowin);
96
+ z-index: 1;
97
+ height: auto;
98
+ min-width: 24px;
99
+ }
100
+
101
+ .passwordToggle:hover {
102
+ background-color: color-mix(in lab, var(--text) 10%, transparent);
103
+ }
104
+
105
+ .passwordToggle:focus {
106
+ outline: 2px solid var(--primary);
107
+ outline-offset: 2px;
108
+ }
109
+
110
+ .button {
111
+ padding: var(--spaceM) var(--spaceL);
112
+ border-radius: var(--spaceXS);
113
+ font-size: var(--fontSizeBodyS);
114
+ cursor: pointer;
115
+ background-color: var(--primary);
116
+ color: var(--white);
117
+ border: none;
118
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
119
+ }
120
+
121
+ .button:hover:not(:disabled) {
122
+ background-color: color-mix(in lab, var(--primary) 85%, var(--black));
123
+ }
124
+
125
+ .button:disabled {
126
+ background-color: color-mix(in lab, var(--background) 95%, transparent);
127
+ color: var(--textLight);
128
+ cursor: not-allowed;
129
+ }
130
+
131
+ .error {
132
+ color: color-mix(in lab, var(--error) 90%, var(--black));
133
+ text-align: left;
134
+ margin: var(--spaceXS) 0 var(--spaceS) 0;
135
+ font-size: var(--fontSizeBodyXS);
136
+ padding: var(--spaceS) var(--spaceM);
137
+ background: linear-gradient(
138
+ 135deg,
139
+ color-mix(in lab, var(--error) 12%, transparent),
140
+ color-mix(in lab, var(--error) 8%, transparent)
141
+ );
142
+ border-radius: var(--spaceXS);
143
+ border: 1px solid color-mix(in lab, var(--error) 30%, transparent);
144
+ border-left: 3px solid var(--error);
145
+ animation: slideInError var(--durationS) var(--bezierFastoutSlowin);
146
+ position: relative;
147
+ overflow: hidden;
148
+ box-shadow: 0 2px 8px color-mix(in lab, var(--text) 8%, transparent);
149
+ }
150
+
151
+ .error::before {
152
+ content: "";
153
+ position: absolute;
154
+ top: 0;
155
+ left: 0;
156
+ bottom: 0;
157
+ width: 3px;
158
+ background: var(--error);
159
+ animation: errorPulse 1.5s ease-in-out infinite;
160
+ }
161
+
162
+ .success {
163
+ color: color-mix(in lab, var(--success) 90%, var(--black));
164
+ text-align: left;
165
+ margin: var(--spaceXS) 0 var(--spaceS) 0;
166
+ font-size: var(--fontSizeBodyXS);
167
+ padding: var(--spaceS) var(--spaceM);
168
+ background: linear-gradient(
169
+ 135deg,
170
+ color-mix(in lab, var(--success) 12%, transparent),
171
+ color-mix(in lab, var(--success) 8%, transparent)
172
+ );
173
+ border-radius: var(--spaceXS);
174
+ border: 1px solid color-mix(in lab, var(--success) 30%, transparent);
175
+ border-left: 3px solid var(--success);
176
+ animation: slideInSuccess var(--durationS) var(--bezierFastoutSlowin);
177
+ position: relative;
178
+ overflow: hidden;
179
+ box-shadow: 0 2px 8px color-mix(in lab, var(--text) 8%, transparent);
180
+ }
181
+
182
+ .success::before {
183
+ content: "";
184
+ position: absolute;
185
+ top: 0;
186
+ left: 0;
187
+ bottom: 0;
188
+ width: 3px;
189
+ background: var(--success);
190
+ animation: successPulse 1.5s ease-in-out infinite;
191
+ }
192
+
193
+ .hint {
194
+ color: var(--textLight);
195
+ text-align: center;
196
+ margin: calc(var(--spaceS) * -0.5) 0 var(--spaceS) 0;
197
+ font-size: var(--fontSizeBodyXS);
198
+ line-height: 1.4;
199
+ }
200
+
201
+ .toggle {
202
+ text-align: center;
203
+ margin-top: var(--spaceL);
204
+ color: var(--textLight);
205
+ }
206
+
207
+ .toggleButton {
208
+ background: none;
209
+ border: none;
210
+ color: var(--primary);
211
+ cursor: pointer;
212
+ font-size: inherit;
213
+ padding: 0;
214
+ text-decoration: underline;
215
+ transition: color var(--durationS) var(--bezierFastoutSlowin);
216
+ }
217
+
218
+ .toggleButton:hover:not(:disabled) {
219
+ color: color-mix(in lab, var(--primary) 85%, var(--black));
220
+ }
221
+
222
+ .toggleButton:disabled {
223
+ color: var(--textLight);
224
+ cursor: not-allowed;
225
+ }
226
+
227
+ .resetLink {
228
+ background: none;
229
+ border: none;
230
+ color: var(--primary);
231
+ cursor: pointer;
232
+ font-size: inherit;
233
+ padding: 0;
234
+ text-decoration: underline;
235
+ transition: color var(--durationS) var(--bezierFastoutSlowin);
236
+ }
237
+
238
+ .resetLink:hover {
239
+ color: color-mix(in lab, var(--primary) 85%, var(--black));
240
+ }
241
+
242
+ .passwordStrength {
243
+ font-size: var(--fontSizeBodyXS);
244
+ color: var(--textLight);
245
+ margin-top: var(--spaceS);
246
+ white-space: pre-line;
247
+ }
248
+
249
+ .caseReviewToggleSection {
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: space-between;
253
+ padding: var(--spaceM);
254
+ background: var(--backgroundLight);
255
+ border-radius: var(--spaceXS);
256
+ border: 1px solid color-mix(in lab, var(--text) 10%, transparent);
257
+ margin: var(--spaceM) 0;
258
+ }
259
+
260
+ .caseReviewLabel {
261
+ font-size: var(--fontSizeBodyS);
262
+ font-weight: var(--fontWeightMedium);
263
+ color: var(--textTitle);
264
+ margin: 0;
265
+ background: none;
266
+ border: none;
267
+ padding: 0;
268
+ cursor: pointer;
269
+ text-decoration: underline;
270
+ text-decoration-color: color-mix(in lab, var(--primary) 50%, transparent);
271
+ transition: color var(--durationS) var(--bezierFastoutSlowin);
272
+ }
273
+
274
+ .caseReviewLabel:hover {
275
+ color: var(--primary);
276
+ text-decoration-color: var(--primary);
277
+ }
278
+
279
+ .caseReviewToggle {
280
+ display: flex;
281
+ background: color-mix(in lab, var(--primary) 10%, transparent);
282
+ border: 1px solid color-mix(in lab, var(--primary) 20%, transparent);
283
+ border-radius: var(--spaceXS);
284
+ overflow: hidden;
285
+ box-shadow: 0 1px 3px color-mix(in lab, var(--primary) 15%, transparent);
286
+ }
287
+
288
+ .caseReviewOption {
289
+ background: transparent;
290
+ border: none;
291
+ padding: var(--spaceS) var(--spaceM);
292
+ font-size: var(--fontSizeBodyS);
293
+ font-weight: var(--fontWeightMedium);
294
+ color: var(--primary);
295
+ cursor: pointer;
296
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
297
+ position: relative;
298
+ min-width: 50px;
299
+ }
300
+
301
+ .caseReviewOption:hover:not(:disabled) {
302
+ background: color-mix(in lab, var(--primary) 15%, transparent);
303
+ color: var(--primary);
304
+ }
305
+
306
+ .caseReviewOption:disabled {
307
+ opacity: 0.5;
308
+ cursor: not-allowed;
309
+ }
310
+
311
+ .caseReviewOptionActive {
312
+ background: var(--primary) !important;
313
+ color: white !important;
314
+ box-shadow: 0 1px 3px color-mix(in lab, var(--primary) 30%, transparent);
315
+ }
316
+
317
+ .caseReviewOptionActive:hover:not(:disabled) {
318
+ background: color-mix(in lab, var(--primary) 85%, var(--black)) !important;
319
+ }
320
+
321
+ /* Animations */
322
+ @keyframes slideInError {
323
+ from {
324
+ opacity: 0;
325
+ transform: translateY(calc(-1 * var(--spaceM))) scaleY(0.8);
326
+ max-height: 0;
327
+ padding-top: 0;
328
+ padding-bottom: 0;
329
+ margin-top: 0;
330
+ margin-bottom: 0;
331
+ }
332
+ to {
333
+ opacity: 1;
334
+ transform: translateY(0) scaleY(1);
335
+ max-height: 200px;
336
+ padding-top: var(--spaceS);
337
+ padding-bottom: var(--spaceS);
338
+ margin-top: var(--spaceXS);
339
+ margin-bottom: var(--spaceS);
340
+ }
341
+ }
342
+
343
+ @keyframes errorPulse {
344
+ 0%,
345
+ 100% {
346
+ opacity: 1;
347
+ box-shadow: 0 0 0 0 color-mix(in lab, var(--error) 40%, transparent);
348
+ }
349
+ 50% {
350
+ opacity: 0.7;
351
+ box-shadow: 0 0 0 4px color-mix(in lab, var(--error) 20%, transparent);
352
+ }
353
+ }
354
+
355
+ @keyframes slideInSuccess {
356
+ from {
357
+ opacity: 0;
358
+ transform: translateY(calc(-1 * var(--spaceM))) scaleY(0.8);
359
+ max-height: 0;
360
+ padding-top: 0;
361
+ padding-bottom: 0;
362
+ margin-top: 0;
363
+ margin-bottom: 0;
364
+ }
365
+ to {
366
+ opacity: 1;
367
+ transform: translateY(0) scaleY(1);
368
+ max-height: 200px;
369
+ padding-top: var(--spaceS);
370
+ padding-bottom: var(--spaceS);
371
+ margin-top: var(--spaceXS);
372
+ margin-bottom: var(--spaceS);
373
+ }
374
+ }
375
+
376
+ @keyframes successPulse {
377
+ 0%,
378
+ 100% {
379
+ opacity: 1;
380
+ box-shadow: 0 0 0 0 color-mix(in lab, var(--success) 40%, transparent);
381
+ }
382
+ 50% {
383
+ opacity: 0.7;
384
+ box-shadow: 0 0 0 4px color-mix(in lab, var(--success) 20%, transparent);
385
+ }
386
+ }
387
+
388
+ /* Reduce motion for accessibility */
389
+ @media (prefers-reduced-motion: reduce) {
390
+ .error,
391
+ .success {
392
+ animation: none;
393
+ }
394
+
395
+ .error::before,
396
+ .success::before {
397
+ animation: none;
398
+ }
399
+ }
400
+
401
+ /* Email Verification Description */
402
+ .verificationDescription {
403
+ font-size: var(--fontSizeBodyM);
404
+ color: var(--textBody);
405
+ text-align: center;
406
+ margin-bottom: var(--spaceL);
407
+ line-height: var(--lineHeightBody);
408
+ }
409
+
410
+ .verificationActions {
411
+ display: flex;
412
+ flex-direction: column;
413
+ gap: var(--spaceM);
414
+ width: 100%;
415
+ margin-bottom: var(--spaceL);
416
+ }
417
+
418
+ .secondaryButton {
419
+ background: transparent;
420
+ border: 1px solid var(--primary);
421
+ color: var(--primary);
422
+ padding: var(--spaceM) var(--spaceL);
423
+ border-radius: var(--spaceXS);
424
+ font-size: var(--fontSizeBodyS);
425
+ font-weight: var(--fontWeightMedium);
426
+ cursor: pointer;
427
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
428
+ }
429
+
430
+ .secondaryButton:hover:not(:disabled) {
431
+ background: color-mix(in lab, var(--primary) 10%, transparent);
432
+ }
433
+
434
+ .secondaryButton:disabled {
435
+ opacity: 0.5;
436
+ cursor: not-allowed;
437
+ }
438
+
439
+ .secondaryButtonLink {
440
+ display: inline-block;
441
+ background: transparent;
442
+ border: 1px solid var(--primary);
443
+ color: var(--primary);
444
+ padding: var(--spaceM) var(--spaceL);
445
+ border-radius: var(--spaceXS);
446
+ font-size: var(--fontSizeBodyS);
447
+ font-weight: var(--fontWeightMedium);
448
+ cursor: pointer;
449
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
450
+ text-decoration: none;
451
+ text-align: center;
452
+ width: 100%;
453
+ box-sizing: border-box;
454
+ }
455
+
456
+ .secondaryButtonLink:hover {
457
+ background: color-mix(in lab, var(--primary) 10%, transparent);
458
+ text-decoration: none;
459
+ color: var(--primary);
460
+ transform: translateY(-1px);
461
+ box-shadow: 0 2px 6px color-mix(in lab, currentColor 20%, transparent);
462
+ }
463
+
464
+ .verificationHints {
465
+ text-align: left;
466
+ background: color-mix(in lab, var(--backgroundLight) 50%, transparent);
467
+ padding: var(--spaceL);
468
+ border-radius: var(--spaceXS);
469
+ border: 1px solid color-mix(in lab, var(--text) 10%, transparent);
470
+ }
471
+
472
+ .loginToStriaeButton {
473
+ width: 100%;
474
+ padding: var(--spaceL);
475
+ background-color: #1e7e34;
476
+ color: var(--white);
477
+ border: none;
478
+ border-radius: var(--spaceXS);
479
+ font-weight: var(--fontWeightMedium);
480
+ font-size: var(--fontSizeBodyM);
481
+ cursor: pointer;
482
+ transition: all var(--durationS) var(--bezierFastoutSlowin);
483
+ box-sizing: border-box;
484
+ }
485
+
486
+ .loginToStriaeButton:hover:not(:disabled) {
487
+ background-color: #155724;
488
+ }
489
+
490
+ .loginToStriaeButton:disabled {
491
+ background-color: color-mix(in lab, var(--background) 95%, transparent);
492
+ color: var(--textLight);
493
+ cursor: not-allowed;
494
+ }
495
+
496
+ .verificationHints .hint {
497
+ font-size: var(--fontSizeBodyS);
498
+ color: var(--textTitle);
499
+ margin: 0 0 var(--spaceS) 0;
500
+ font-weight: var(--fontWeightMedium);
501
+ }
502
+
503
+ .hintList {
504
+ list-style: none;
505
+ padding: 0;
506
+ margin: 0;
507
+ }
508
+
509
+ .hintList li {
510
+ font-size: var(--fontSizeBodyXS);
511
+ color: var(--textBody);
512
+ margin-bottom: var(--spaceXS);
513
+ padding-left: var(--spaceM);
514
+ position: relative;
515
+ }
516
+
517
+ .hintList li::before {
518
+ content: "•";
519
+ color: var(--primary);
520
+ position: absolute;
521
+ left: 0;
522
+ font-weight: bold;
523
+ }
@@ -22,12 +22,10 @@ import { Toast } from '~/components/toast/toast';
22
22
  import { Icon } from '~/components/icon/icon';
23
23
  import styles from './login.module.css';
24
24
  import { Striae } from '~/routes/striae/striae';
25
- import { getUserData, createUser } from '~/utils/permissions';
25
+ import { getUserData, createUser } from '~/utils/data';
26
26
  import { auditService } from '~/services/audit';
27
- import { generateUniqueId } from '~/utils/id-generator';
28
- import { evaluatePasswordPolicy } from '~/utils/password-policy';
29
- import { buildActionCodeSettings } from '~/utils/auth-action-settings';
30
- import { userHasMFA } from '~/utils/mfa';
27
+ import { generateUniqueId } from '~/utils/common';
28
+ import { evaluatePasswordPolicy, buildActionCodeSettings, userHasMFA } from '~/utils/auth';
31
29
 
32
30
  const APP_CANONICAL_ORIGIN = 'https://striae.app';
33
31
  const SOCIAL_IMAGE_PATH = '/social-image.png';
@@ -582,7 +580,7 @@ export const Login = () => {
582
580
  <Link
583
581
  viewTransition
584
582
  prefetch="intent"
585
- to="https://striae.app"
583
+ to="/"
586
584
  className={styles.logoLink}>
587
585
  <div className={styles.logo} />
588
586
  </Link>
@@ -4,7 +4,7 @@ import { sendPasswordResetEmail, signOut } from 'firebase/auth';
4
4
  import { auth } from '~/services/firebase';
5
5
  import { handleAuthError, ERROR_MESSAGES } from '~/services/firebase/errors';
6
6
  import { auditService } from '~/services/audit';
7
- import { buildActionCodeSettings } from '~/utils/auth-action-settings';
7
+ import { buildActionCodeSettings } from '~/utils/auth';
8
8
  import styles from './passwordReset.module.css';
9
9
 
10
10
  interface PasswordResetProps {
@@ -7,8 +7,8 @@ import { Toast } from '~/components/toast/toast';
7
7
  import { getImageUrl } from '~/components/actions/image-manage';
8
8
  import { getNotes, saveNotes } from '~/components/actions/notes-manage';
9
9
  import { generatePDF } from '~/components/actions/generate-pdf';
10
- import { fetchUserApi } from '~/utils/user-api-client';
11
- import { resolveEarliestAnnotationTimestamp } from '~/utils/annotation-timestamp';
10
+ import { fetchUserApi } from '~/utils/api';
11
+ import { resolveEarliestAnnotationTimestamp } from '~/utils/ui';
12
12
  import { type AnnotationData, type FileData } from '~/types';
13
13
  import { checkCaseIsReadOnly } from '~/components/actions/case-manage';
14
14
  import styles from './striae.module.css';
@@ -1,11 +1,11 @@
1
1
  import type { User } from 'firebase/auth';
2
- import { signAuditExportData } from '~/utils/data-operations';
2
+ import { signAuditExportData } from '~/utils/data';
3
3
  import {
4
4
  AUDIT_EXPORT_SIGNATURE_VERSION,
5
5
  type AuditExportFormat,
6
6
  type AuditExportSigningPayload,
7
7
  type AuditExportType
8
- } from '~/utils/audit-export-signature';
8
+ } from '~/utils/forensics';
9
9
 
10
10
  export interface AuditExportContext {
11
11
  user: User;
@@ -1,6 +1,5 @@
1
1
  import { type ValidationAuditEntry, type AuditTrail } from '~/types';
2
- import { calculateSHA256Secure } from '~/utils/SHA256';
3
- import { type AuditExportType } from '~/utils/audit-export-signature';
2
+ import { calculateSHA256Secure, type AuditExportType } from '~/utils/forensics';
4
3
  import { AUDIT_CSV_ENTRY_HEADERS, entryToCSVRow } from './audit-export-csv';
5
4
  import { buildAuditReportContent } from './audit-export-report';
6
5
  import { type AuditExportContext, signAuditExport } from './audit-export-signing';
@@ -9,7 +9,7 @@ import type {
9
9
  AuditResult,
10
10
  PerformanceMetrics
11
11
  } from '~/types';
12
- import { generateWorkflowId } from '../../utils/id-generator';
12
+ import { generateWorkflowId } from '~/utils/common';
13
13
  import {
14
14
  fetchAuditEntriesForUser,
15
15
  persistAuditEntryForUser
@@ -6,7 +6,7 @@ import {
6
6
  //connectAuthEmulator,
7
7
  } from 'firebase/auth';
8
8
  import firebaseConfig from '~/config/firebase';
9
- import { getAppVersion } from '~/utils/version';
9
+ import { getAppVersion } from '~/utils/common';
10
10
 
11
11
  export const app = initializeApp(firebaseConfig, "Striae");
12
12
  export const auth = getAuth(app);
@@ -0,0 +1,4 @@
1
+ export * from './data-api-client';
2
+ export * from './image-api-client';
3
+ export * from './pdf-api-client';
4
+ export * from './user-api-client';
@@ -0,0 +1,5 @@
1
+ export * from './auth';
2
+ export * from './auth-action-settings';
3
+ export * from './mfa';
4
+ export * from './mfa-phone';
5
+ export * from './password-policy';
@@ -0,0 +1,3 @@
1
+ export * from './batch-operations';
2
+ export * from './id-generator';
3
+ export * from './version';
@@ -1,4 +1,4 @@
1
- import packageJson from '../../package.json';
1
+ import packageJson from '../../../package.json';
2
2
 
3
3
  export const getAppVersion = () => {
4
4
  return packageJson.version;
@@ -6,19 +6,19 @@
6
6
 
7
7
  import type { User } from 'firebase/auth';
8
8
  import { type CaseData, type AnnotationData, type ConfirmationImportData } from '~/types';
9
- import { fetchDataApi } from './data-api-client';
9
+ import { fetchDataApi } from '../api';
10
10
  import { validateUserSession, canAccessCase, canModifyCase } from './permissions';
11
11
  import {
12
12
  type ForensicManifestData,
13
13
  type ForensicManifestSignature,
14
14
  FORENSIC_MANIFEST_VERSION
15
- } from './SHA256';
16
- import { CONFIRMATION_SIGNATURE_VERSION } from './confirmation-signature';
15
+ } from '../forensics/SHA256';
16
+ import { CONFIRMATION_SIGNATURE_VERSION } from '../forensics/confirmation-signature';
17
17
  import {
18
18
  AUDIT_EXPORT_SIGNATURE_VERSION,
19
19
  type AuditExportSigningPayload,
20
20
  isValidAuditExportSigningPayload
21
- } from './audit-export-signature';
21
+ } from '../forensics/audit-export-signature';
22
22
 
23
23
  // ============================================================================
24
24
  // INTERFACES AND TYPES
@@ -0,0 +1,2 @@
1
+ export * from './data-operations';
2
+ export * from './permissions';
@@ -1,7 +1,7 @@
1
1
  import type { User } from 'firebase/auth';
2
2
  import type { UserData, ExtendedUserData, UserLimits, ReadOnlyCaseMetadata } from '~/types';
3
3
  import paths from '~/config/config.json';
4
- import { fetchUserApi } from './user-api-client';
4
+ import { fetchUserApi } from '../api';
5
5
 
6
6
  const MAX_CASES_REVIEW = paths.max_cases_review;
7
7
  const MAX_FILES_PER_CASE_REVIEW = paths.max_files_per_case_review;
@@ -0,0 +1,5 @@
1
+ export * from './SHA256';
2
+ export * from './audit-export-signature';
3
+ export * from './confirmation-signature';
4
+ export * from './export-verification';
5
+ export * from './signature-utils';
@@ -0,0 +1,2 @@
1
+ export * from './annotation-timestamp';
2
+ export * from './style';