feat: add screenshot capture to Copy Agent page

Staff can now capture their screen via the browser's Screen Capture
API, crop the result, name the file, and save it directly to a
selected patient's Cloud Storage attachments folder.
This commit is contained in:
2026-07-12 17:25:12 -04:00
parent 58d56c895b
commit 118315a04e
4 changed files with 272 additions and 105 deletions

10
package-lock.json generated
View File

@@ -150,6 +150,7 @@
"react-dom": "^19.1.0",
"react-hook-form": "^7.55.0",
"react-icons": "^5.4.0",
"react-image-crop": "^11.1.2",
"react-resizable-panels": "^2.1.7",
"recharts": "^2.15.2",
"socket.io-client": "^4.8.1",
@@ -11994,6 +11995,15 @@
"react": "*"
}
},
"node_modules/react-image-crop": {
"version": "11.1.2",
"resolved": "https://registry.npmjs.org/react-image-crop/-/react-image-crop-11.1.2.tgz",
"integrity": "sha512-+0Pc2fxpwKL4u4oLmdKBw8XSwUceFbXbKEHvFOlsl/MGB1OVNic4uBlAPmEHGXYgoJIq+b63xHbc/aJMG0AVkA==",
"license": "ISC",
"peerDependencies": {
"react": ">=16.13.1"
}
},
"node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",