UNLV-CS472-672 / 2024-S-GROUP3-Barbell

A workout-tracking app with a support website that does more than just track workouts. Cross platform in IOS and Android
4 stars 0 forks source link

210 backend trpc websocket integration websocket go brrr brrr #240

Closed thienguen closed 5 months ago

thienguen commented 5 months ago

What type of PR is this? (Check all that apply)

Description

What did you change? How did you change it?

  1. I got cooked in the backend, pretty pretty pretty rough
  2. integrate trpc websocket in our db, having it ready in localhost
  3. (blocker) couldn't test in deployment, since this is still in local host, I will be hosting it on my personal account of this repository (fork) and then go from there
  4. All our procedures currently reside in https://trpc.io/docs/subscriptions.
  5. I will address this as a "advanced feature" in my next issue.
  6. create 2 testing environment for websocket, however, you should be focusing on the mobile environment.
  7. both API handler now resides in api.tsx respectively
  8. fixed pnpm run vitest
  9. fixed migration
  10. fixed packages versions (all fixed see commits history)
  11. Separate context instances in trpc.ts (now we know its either in nextjs or in expo again)

Tests

How was this tested?

Run like normal, invoke both the website (we treat it as a server here) and invoke the mobile app. Follow the instruction with screenshots down below

[Optional] Screenshots

image

image

image

image

image

I CAN'T RECORD THE ENTIRE SCREEN SINCE THE DEVICE KEEP TAKING THE FOCUS.

https://github.com/UNLV-CS472-672/2024-S-GROUP3-Barbell/assets/94078395/0a5b8cb1-0240-47d6-9380-4c1b7135f64b

Documentation

Link to external documentation:

[Optional] Are there any post-deployment tasks we need to perform?

TBD, will write how to test after the break...but I won't be writing more, though I do have a couple of stuff I want to organize in our repo

Update: n/a (will brought up in our meeting)

Update: (after talking to marcos) I can't test on deployment unless this code is in main (so I can sync and make it a "production", organization so nothing I can do (in a short time)

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.61%. Comparing base (20ced96) to head (aacd48a). Report is 4 commits behind head on main.

:exclamation: Current head aacd48a differs from pull request most recent head bba94a7. Consider uploading reports for the commit bba94a7 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #240 +/- ## ======================================= Coverage 98.61% 98.61% ======================================= Files 34 34 Lines 217 217 Branches 63 63 ======================================= Hits 214 214 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

thienguen commented 5 months ago

WILL WRITE TEST, BUT IT IS READY