@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.
- package/LICENSE +1 -1
- package/app/components/actions/case-manage.ts +50 -17
- package/app/components/audit/viewer/audit-entries-list.tsx +5 -2
- package/app/components/audit/viewer/use-audit-viewer-data.ts +6 -3
- package/app/components/audit/viewer/use-audit-viewer-export.ts +1 -1
- package/app/components/canvas/confirmation/confirmation.tsx +6 -2
- package/app/components/colors/colors.module.css +4 -3
- package/app/components/navbar/navbar.tsx +34 -9
- package/app/components/sidebar/cases/case-sidebar.tsx +44 -70
- package/app/components/sidebar/cases/cases-modal.tsx +76 -35
- package/app/components/sidebar/cases/cases.module.css +20 -0
- package/app/components/sidebar/files/files-modal.tsx +37 -39
- package/app/components/sidebar/notes/addl-notes-modal.tsx +82 -0
- package/app/components/sidebar/notes/{notes-sidebar.tsx → notes-editor-form.tsx} +37 -74
- package/app/components/sidebar/notes/notes-editor-modal.tsx +5 -7
- package/app/components/sidebar/notes/notes.module.css +27 -11
- package/app/components/sidebar/sidebar-container.tsx +1 -0
- package/app/components/sidebar/sidebar.tsx +3 -0
- package/app/{tailwind.css → global.css} +1 -3
- package/app/hooks/useOverlayDismiss.ts +6 -4
- package/app/root.tsx +1 -1
- package/app/routes/striae/striae.tsx +6 -0
- package/app/services/audit/audit.service.ts +2 -2
- package/app/services/audit/builders/audit-event-builders-case-file.ts +1 -1
- package/app/types/audit.ts +1 -0
- package/app/utils/data/confirmation-summary/summary-core.ts +279 -0
- package/app/utils/data/data-operations.ts +17 -861
- package/app/utils/data/index.ts +11 -1
- package/app/utils/data/operations/batch-operations.ts +113 -0
- package/app/utils/data/operations/case-operations.ts +168 -0
- package/app/utils/data/operations/confirmation-summary-operations.ts +301 -0
- package/app/utils/data/operations/file-annotation-operations.ts +196 -0
- package/app/utils/data/operations/index.ts +7 -0
- package/app/utils/data/operations/signing-operations.ts +225 -0
- package/app/utils/data/operations/types.ts +42 -0
- package/app/utils/data/operations/validation-operations.ts +48 -0
- package/app/utils/forensics/export-verification.ts +40 -111
- package/functions/api/_shared/firebase-auth.ts +2 -7
- package/functions/api/image/[[path]].ts +20 -23
- package/functions/api/pdf/[[path]].ts +27 -8
- package/package.json +5 -10
- package/scripts/deploy-primershear-emails.sh +1 -1
- package/worker-configuration.d.ts +2 -2
- package/workers/audit-worker/package.json +1 -1
- package/workers/audit-worker/wrangler.jsonc.example +1 -1
- package/workers/data-worker/package.json +1 -1
- package/workers/data-worker/wrangler.jsonc.example +1 -1
- package/workers/image-worker/package.json +1 -1
- package/workers/image-worker/src/image-worker.example.ts +16 -5
- package/workers/image-worker/wrangler.jsonc.example +1 -1
- package/workers/keys-worker/package.json +1 -1
- package/workers/keys-worker/wrangler.jsonc.example +1 -1
- package/workers/pdf-worker/package.json +1 -1
- package/workers/pdf-worker/src/formats/format-striae.ts +1 -7
- package/workers/pdf-worker/src/pdf-worker.example.ts +37 -58
- package/workers/pdf-worker/src/report-types.ts +3 -3
- package/workers/pdf-worker/wrangler.jsonc.example +1 -1
- package/workers/user-worker/package.json +1 -1
- package/workers/user-worker/src/user-worker.example.ts +17 -0
- package/workers/user-worker/wrangler.jsonc.example +1 -1
- package/wrangler.toml.example +1 -1
- package/NOTICE +0 -13
- package/app/components/sidebar/notes/notes-modal.tsx +0 -52
- package/postcss.config.js +0 -6
- 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
package/tailwind.config.ts
DELETED
|
@@ -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;
|