GTBitsOfGood / angels-among-us

Rescue one until there are none
https://staging--angels-among-us.netlify.app
MIT License
4 stars 0 forks source link

rotate images #316

Closed cduffy8 closed 8 months ago

cduffy8 commented 8 months ago

Rotate Image In File Preview

What does this PR change and why? This PR rotates images 90 degrees at the press of a button in the file preview. This allows for simpler image upload without any pre processing for volunteers.

netlify[bot] commented 8 months ago

Deploy Preview for angels-among-us ready!

Name Link
Latest commit 5f763e0eba09bde96364e223dd21dcf5e5efde40
Latest deploy log https://app.netlify.com/sites/angels-among-us/deploys/65de227dba503c0008da08f5
Deploy Preview https://deploy-preview-316--angels-among-us.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 8 months ago

Coverage report for web

❌ An unexpected error occurred. For more details, check console

Error: The process '/usr/local/bin/yarn' failed with exit code 1
St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements
24.53% (-0.23% πŸ”»)
521/2124
πŸ”΄ Branches
8.74% (-0.06% πŸ”»)
61/698
πŸ”΄ Functions
13.01% (-0.17% πŸ”»)
83/638
πŸ”΄ Lines
20.41% (-0.18% πŸ”»)
385/1886
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------- | :--------- | :------- | :-------- | :---- | | πŸ”΄ |
`...` / rotateImageHelper.tsx
| 4.35% | 0% | 0% | 4.76% |
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------- | :------------------------------------------------------------- | :------- | :-------- | :----------------------------------------------------------- | | πŸ”΄ |
`...` / FilePreview.tsx
|
35.71% (-8.73% πŸ”»)
| 0% | 0% |
38.46% (-11.54% πŸ”»)
|

Test suite run failed

Failed tests: 17/44. Failed suites: 2/7.
``` ● [DB] Account - Unit Test β€Ί findAccount β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί findAccount β€Ί all caps email ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί findAccount β€Ί unauthorized email ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί findAccount β€Ί db error ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί removeAllAccounts β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί removeAllAccounts β€Ί unauthorized account ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί removeAllAccounts β€Ί authorized with unauthorized accounts ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί updateAccount β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί updateAccount β€Ί unauthorized account ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί addAccount β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί addAccount β€Ί existing account ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί findAll β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί findAll β€Ί db error ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί searchAccounts β€Ί happy ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] Account - Unit Test β€Ί searchAccounts β€Ί not found ValidationError: Account validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ``` --- ``` ● [DB] User - Unit Test β€Ί searchUsers β€Ί happy ValidationError: User validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ● [DB] User - Unit Test β€Ί searchUsers β€Ί empty array ValidationError: User validation failed: lowerEmail: Path `lowerEmail` is required. at model.Object..Document.invalidate (node_modules/mongoose/lib/document.js:3174:32) at node_modules/mongoose/lib/document.js:2962:17 at node_modules/mongoose/lib/schematype.js:1349:9 ```

Report generated by πŸ§ͺjest coverage report action from 5f763e0eba09bde96364e223dd21dcf5e5efde40