UniversityOfSaskatchewanCMPT371 / term-project-2024-team-3

3 stars 2 forks source link

165/generalize watch service #292

Closed cameronbeattie306 closed 6 months ago

cameronbeattie306 commented 6 months ago

Resolves #277

This branch generalizes our watch controller so it will be easier to expand in the future.

I also have various changes to the processed data page

Also created an interface for the watch service, again for expandability.

github-actions[bot] commented 6 months ago

Backend Code Coverage Report

Overall Project 19.32% -0.06% :x:
Files changed 99.02% :green_apple:


File Coverage
WatchController.java 100% :green_apple:
AppleWatchService.java 0.28% -0.17% :x:
FitbitService.java 0.24% -0.14% :x:
ArchiveUtil.java 0% :green_apple:
DownloadUtil.java 0% :green_apple:
github-actions[bot] commented 6 months ago

Frontend Code Coverage Report

St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
71.21% (+71.21% πŸ”Ό)
512/719
πŸ”΄ Branches
55.79% (+55.79% πŸ”Ό)
130/233
🟑 Functions
69.94% (+69.94% πŸ”Ό)
121/173
🟑 Lines
71.87% (+71.87% πŸ”Ό)
511/711
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :-: | :- | :- | :- | :- | :- | | 🟒 |
`...` / baseapi.ts
| 100% | 75% | 100% | 100% | | 🟒 | shared/api/Api.ts | 100% | 50% | 100% | 100% | | 🟒 |
`...` / useLogin.ts
| 100% | 100% | 100% | 100% | | 🟑 |
`...` / LoginPage.tsx
| 74.42% | 70% | 58.33% | 74.42% | | 🟒 |
`...` / useSignup.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / SignUpPage.tsx
| 80.3% | 69.23% | 68.75% | 80.3% | | 🟑 |
`...` / index.ts
| 78.95% | 58.33% | 100% | 78.95% | | 🟒 |
`...` / PrivacyPolicy.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useUpload.ts
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / index.tsx
| 0% | 100% | 0% | 0% | | πŸ”΄ |
`...` / FileDropzone.tsx
| 1.72% | 0% | 0% | 1.85% | | 🟒 |
`...` / useIsUserLoggedIn.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useAuth.tsx
| 90% | 50% | 100% | 88.89% | | 🟒 |
`...` / HelpPopup.tsx
| 85.71% | 56.25% | 100% | 85.71% | | 🟒 |
`...` / ProgressBar.tsx
| 93.55% | 89.47% | 100% | 93.55% | | 🟒 |
`...` / useGetUploadedFiles.ts
| 90.91% | 100% | 83.33% | 90.91% | | 🟒 |
`...` / useProcessFile.ts
| 100% | 50% | 100% | 100% | | 🟑 |
`...` / ErrorSnackbar.tsx
| 73.33% | 66.67% | 50% | 73.33% | | 🟒 |
`...` / UploadedFiles.tsx
| 91.11% | 66.67% | 100% | 91.11% | | 🟒 |
`...` / useGetProcessedDataList.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / usePredictFile.ts
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / useDownload.ts
| 45.45% | 0% | 75% | 48.39% | | πŸ”΄ |
`...` / ProcessedDataPage.tsx
| 49.33% | 29.73% | 66.67% | 49.33% | | πŸ”΄ |
`...` / HomePage.tsx
| 57.14% | 100% | 33.33% | 57.14% | | 🟒 |
`...` / ProtectedRoute.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useGetPredictedDataList.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / useLogout.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / LoadingSpinner.css
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / LoadingSpinner.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / Logout.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / Navbar.tsx
| 100% | 75% | 100% | 100% | | 🟒 |
`...` / useDeleteFile.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / FileDropzoneControls.tsx
| 100% | 100% | 100% | 100% | | πŸ”΄ |
`...` / PredictedDataPage.tsx
| 50% | 35.71% | 16.67% | 51.72% | | πŸ”΄ |
`...` / FileUploadPage.tsx
| 45.45% | 25% | 40% | 45.45% | | πŸ”΄ |
`...` / GoogleLogin.tsx
| 0% | 0% | 0% | 0% |

Test suite run success

102 tests passing in 32 suites.

Report generated by πŸ§ͺjest coverage report action from 59e1bbaf330c9213945cbda8c5531e2d77399f21