Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
509 feature fetch rating of a room from database (#548)
* added insert function * changed to roomid * changed require to import and added .env * added get end point for room ratings * chore(deps): lock file maintenance (#534) * chore(deps): lock file maintenance * chore(deps): lock file maintenance * Update node-version in ci.yml * chore(deps): lock file maintenance * chore(deps): lock file maintenance * Fix frontend npm install * Fix missing frontend test dependencies * Add typescript es2018 for common folder * Update target to ES2018 * Change backend tsconfig target * chore(deps): lock file maintenance * Updated package-lock --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jessica Feng <[email protected]> Co-authored-by: Jessica <[email protected]> * chore(deps): update weekly minor & patch updates (#535) * chore(deps): update weekly minor & patch updates * Try resolve app dependencies * chore(deps): update weekly minor & patch updates * Performed npm install * Perform npm install * Remove unnecessary appDir config * Update layout.tsx * Update TSConfig target and lib * Attempt to resolve build issues * chore(deps): update weekly minor & patch updates * chore(deps): update weekly minor & patch updates * Fix npm packages * Remove unnecessary files * Update frontend typescript target * chore(deps): update weekly minor & patch updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jessica <[email protected]> Co-authored-by: Jessica Feng <[email protected]> * fix(deps): update material-ui monorepo to v6 (major) (#532) * fix(deps): update dependency @mui/x-date-pickers to v7 * Fixed and upgraded MUI date picker * Fixed BuildingDrawer date picker * fix(deps): update material-ui monorepo to v6 * Updated frontend package-lock * Fix BuildingDrawer * Add path-scurry --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jessica Feng <[email protected]> Co-authored-by: Jessica <[email protected]> * 498 circular display rating (#525) * initial planning * initial planning * finished circular rating * fixed linting * added testing * fixed linting * changed the border so that it reflects the rating * fixed linting * moved circular rating into its own file * created additional files for CircularRating component * removed unused imports --------- Co-authored-by: Sophia Liu <[email protected]> Co-authored-by: Jessica Feng <[email protected]> * modified getRatings return type * created useRoomRatings hook * fixed useRoomRatings api path * display average room ratings * added roomID prop to BookingCalendar * added error checking for ratings array * refactored average room rating calculation * fixed linting * removed console logs * added patches to getRatings * formatted rating get route to use asyncHandler * modified insertRating logic * modified getRatings logic * updated insertRating and getRatings parameters to match FE * updated useRoomRatings hook to use new return type * added userInsertRating hook * added location and overall circular ratings --------- Co-authored-by: cherisechan <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jessica Feng <[email protected]> Co-authored-by: Jessica <[email protected]> Co-authored-by: Sophia Liu <[email protected]> Co-authored-by: Sophia Liu <[email protected]>
- Loading branch information