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

Mark post as covered #173

Closed joannacheng21 closed 1 year ago

joannacheng21 commented 1 year ago

Mark post as covered

Issue Number(s): #89, #184

Adds mark post as covered button (which displays confirmation when clicked) and uses API route to make changes on backend. Adds blue overlay for admin/content creator on feed for covered posts. Adds show/hide covered post button on feed filter for admin/content creator. Hides covered posts to volunteers.

Checklist

Critical Changes

None

Related PRs

None

Testing

Admin/Content Creator:

Volunteer:

netlify[bot] commented 1 year ago

Deploy Preview for angels-among-us ready!

Name Link
Latest commit 17d8e1c54b529f19f91a1e0cd0e82d0aa002d0e6
Latest deploy log https://app.netlify.com/sites/angels-among-us/deploys/65370e9f060d720007404015
Deploy Preview https://deploy-preview-173--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 1 year ago

Coverage report for web

St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements
28.22% (+0.05% πŸ”Ό)
489/1733
πŸ”΄ Branches
11.79% (-1.12% πŸ”»)
64/543
πŸ”΄ Functions
14.84% (-0.25% πŸ”»)
76/512
πŸ”΄ Lines
24.13% (+0.16% πŸ”Ό)
366/1517
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------- | :--------- | :------- | :-------- | :----- | | πŸ”΄ |
`...` / MarkCoveredModal.tsx
| 25% | 0% | 0% | 27.27% | | πŸ”΄ |
`...` / FeedCoveredDropdown.tsx
| 33.33% | 0% | 10% | 30.77% |
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------- | :------------------------------------------------------------- | :------------------------------------------------------------- | :-------- | :------------------------------------------------------------- | | πŸ”΄ |
`...` / post.ts
|
36.05% (-0.86% πŸ”»)
|
16.67% (-1.52% πŸ”»)
| 42.86% |
35.71% (-0.87% πŸ”»)
| | πŸ”΄ | db/actions/Post.ts |
39.56% (+0.23% πŸ”Ό)
|
15.79% (-0.88% πŸ”»)
| 28.57% |
40.7% (+0.22% πŸ”Ό)
| | πŸ”΄ |
`...` / Feed.tsx
|
41.67% (-0.64% πŸ”»)
|
8.16% (-5.63% πŸ”»)
| 41.18% |
43.21% (-0.79% πŸ”»)
| | πŸ”΄ |
`...` / PetPostModal.tsx
|
34.25% (-1.57% πŸ”»)
| 0% | 0% |
34.72% (-1.64% πŸ”»)
|

Test suite run success

40 tests passing in 5 suites.

Report generated by πŸ§ͺjest coverage report action from 17d8e1c54b529f19f91a1e0cd0e82d0aa002d0e6

github-actions[bot] commented 1 year ago

Coverage report for web

St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements 25.78% 422/1637
πŸ”΄ Branches 13.04% 63/483
πŸ”΄ Functions 13.01% 64/492
πŸ”΄ Lines 21.29% 303/1423

Test suite run success

37 tests passing in 4 suites.

Report generated by πŸ§ͺjest coverage report action from 1f347e94c82cf6b17014f649d738cb287ec904f2