Closed darenc9 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
fit-future | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 17, 2024 9:20am |
fit-future-ui | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 17, 2024 9:20am |
Summary
This pull request includes comprehensive updates to both the backend and frontend for managing routines. It introduces the routine schema definition, service layer implementation, API routes, and unit tests on the backend. The frontend adds a routine browse page, routine editor page, routine builder page, and a routine details page, along with several components needed for the routines.
Backend-api Updates
Routines
Routine.js
- created schema forRoutine
to define its structureroutine-service.js
- implementedroutine-service
to handle CRUD operations for routinesroutineRoutes.js
- created routes to define API endpoints for routines, implementing the routine-serviceroutine-service.test.js
- jest unit tests to test routine services functionalityroutineRoutestest.js
- jest unit tests to test routine routes functionalityFrontend-ui Updates
Routines
src/app/browse/page.jsx
src/app/routines/[id]/page.jsx
Routine Details Page
src/app/routines/edit/[id]/page.jsx
Edit Routine Page
, which is accessible in theRoutine Details Page
,src/components/browse/RoutineFilter.jsx
src/components/browse/RoutineList.jsx
src/components/build/RoutineBuilderContent.jsx
Routine Builder
src/components/edit/RoutineEdit.jsx
Routine Editor