@striae-org/striae 4.2.0 → 4.2.1

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 (65) hide show
  1. package/LICENSE +1 -1
  2. package/app/components/actions/case-manage.ts +50 -17
  3. package/app/components/audit/viewer/audit-entries-list.tsx +5 -2
  4. package/app/components/audit/viewer/use-audit-viewer-data.ts +6 -3
  5. package/app/components/audit/viewer/use-audit-viewer-export.ts +1 -1
  6. package/app/components/canvas/confirmation/confirmation.tsx +6 -2
  7. package/app/components/colors/colors.module.css +4 -3
  8. package/app/components/navbar/navbar.tsx +34 -9
  9. package/app/components/sidebar/cases/case-sidebar.tsx +44 -70
  10. package/app/components/sidebar/cases/cases-modal.tsx +76 -35
  11. package/app/components/sidebar/cases/cases.module.css +20 -0
  12. package/app/components/sidebar/files/files-modal.tsx +37 -39
  13. package/app/components/sidebar/notes/addl-notes-modal.tsx +82 -0
  14. package/app/components/sidebar/notes/{notes-sidebar.tsx → notes-editor-form.tsx} +37 -74
  15. package/app/components/sidebar/notes/notes-editor-modal.tsx +5 -7
  16. package/app/components/sidebar/notes/notes.module.css +27 -11
  17. package/app/components/sidebar/sidebar-container.tsx +1 -0
  18. package/app/components/sidebar/sidebar.tsx +3 -0
  19. package/app/{tailwind.css → global.css} +1 -3
  20. package/app/hooks/useOverlayDismiss.ts +6 -4
  21. package/app/root.tsx +1 -1
  22. package/app/routes/striae/striae.tsx +6 -0
  23. package/app/services/audit/audit.service.ts +2 -2
  24. package/app/services/audit/builders/audit-event-builders-case-file.ts +1 -1
  25. package/app/types/audit.ts +1 -0
  26. package/app/utils/data/confirmation-summary/summary-core.ts +279 -0
  27. package/app/utils/data/data-operations.ts +17 -861
  28. package/app/utils/data/index.ts +11 -1
  29. package/app/utils/data/operations/batch-operations.ts +113 -0
  30. package/app/utils/data/operations/case-operations.ts +168 -0
  31. package/app/utils/data/operations/confirmation-summary-operations.ts +301 -0
  32. package/app/utils/data/operations/file-annotation-operations.ts +196 -0
  33. package/app/utils/data/operations/index.ts +7 -0
  34. package/app/utils/data/operations/signing-operations.ts +225 -0
  35. package/app/utils/data/operations/types.ts +42 -0
  36. package/app/utils/data/operations/validation-operations.ts +48 -0
  37. package/app/utils/forensics/export-verification.ts +40 -111
  38. package/functions/api/_shared/firebase-auth.ts +2 -7
  39. package/functions/api/image/[[path]].ts +20 -23
  40. package/functions/api/pdf/[[path]].ts +27 -8
  41. package/package.json +5 -10
  42. package/scripts/deploy-primershear-emails.sh +1 -1
  43. package/worker-configuration.d.ts +2 -2
  44. package/workers/audit-worker/package.json +1 -1
  45. package/workers/audit-worker/wrangler.jsonc.example +1 -1
  46. package/workers/data-worker/package.json +1 -1
  47. package/workers/data-worker/wrangler.jsonc.example +1 -1
  48. package/workers/image-worker/package.json +1 -1
  49. package/workers/image-worker/src/image-worker.example.ts +16 -5
  50. package/workers/image-worker/wrangler.jsonc.example +1 -1
  51. package/workers/keys-worker/package.json +1 -1
  52. package/workers/keys-worker/wrangler.jsonc.example +1 -1
  53. package/workers/pdf-worker/package.json +1 -1
  54. package/workers/pdf-worker/src/formats/format-striae.ts +1 -7
  55. package/workers/pdf-worker/src/pdf-worker.example.ts +37 -58
  56. package/workers/pdf-worker/src/report-types.ts +3 -3
  57. package/workers/pdf-worker/wrangler.jsonc.example +1 -1
  58. package/workers/user-worker/package.json +1 -1
  59. package/workers/user-worker/src/user-worker.example.ts +17 -0
  60. package/workers/user-worker/wrangler.jsonc.example +1 -1
  61. package/wrangler.toml.example +1 -1
  62. package/NOTICE +0 -13
  63. package/app/components/sidebar/notes/notes-modal.tsx +0 -52
  64. package/postcss.config.js +0 -6
  65. package/tailwind.config.ts +0 -22
@@ -1,52 +0,0 @@
1
- import { useState } from 'react';
2
- import { useOverlayDismiss } from '~/hooks/useOverlayDismiss';
3
- import styles from './notes.module.css';
4
-
5
- interface NotesModalProps {
6
- isOpen: boolean;
7
- onClose: () => void;
8
- notes: string;
9
- onSave: (notes: string) => void;
10
- }
11
-
12
- export const NotesModal = ({ isOpen, onClose, notes, onSave }: NotesModalProps) => {
13
- const [tempNotes, setTempNotes] = useState(notes);
14
- const {
15
- requestClose,
16
- overlayProps,
17
- getCloseButtonProps
18
- } = useOverlayDismiss({
19
- isOpen,
20
- onClose
21
- });
22
-
23
- if (!isOpen) return null;
24
-
25
- const handleSave = () => {
26
- onSave(tempNotes);
27
- requestClose();
28
- };
29
-
30
- return (
31
- <div
32
- className={styles.modalOverlay}
33
- aria-label="Close notes dialog"
34
- {...overlayProps}
35
- >
36
- <div className={styles.modal}>
37
- <button {...getCloseButtonProps({ ariaLabel: 'Close notes dialog' })}>×</button>
38
- <h5 className={styles.modalTitle}>Additional Notes</h5>
39
- <textarea
40
- value={tempNotes}
41
- onChange={(e) => setTempNotes(e.target.value)}
42
- className={styles.modalTextarea}
43
- placeholder="Enter additional notes..."
44
- />
45
- <div className={styles.modalButtons}>
46
- <button onClick={handleSave} className={styles.saveButton}>Save</button>
47
- <button onClick={requestClose} className={styles.cancelButton}>Cancel</button>
48
- </div>
49
- </div>
50
- </div>
51
- );
52
- };
package/postcss.config.js DELETED
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,22 +0,0 @@
1
- import type { Config } from "tailwindcss";
2
-
3
- export default {
4
- content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
5
- theme: {
6
- extend: {
7
- fontFamily: {
8
- sans: [
9
- "Inter",
10
- "ui-sans-serif",
11
- "system-ui",
12
- "sans-serif",
13
- "Apple Color Emoji",
14
- "Segoe UI Emoji",
15
- "Segoe UI Symbol",
16
- "Noto Color Emoji",
17
- ],
18
- },
19
- },
20
- },
21
- plugins: [],
22
- } satisfies Config;