Skip to content

Conversation

lucasnevespereira
Copy link
Collaborator

πŸ“ Description

This PR implements a complete CRUD (Create, Read, Update, Delete) management system for exercises in the admin panel.

src/features/admin/exercises/
β”œβ”€β”€ actions/         
β”‚   β”œβ”€β”€ create-exercise.action.ts
β”‚   β”œβ”€β”€ get-exercises.action.ts
β”‚   β”œβ”€β”€ update-exercise.action.ts
β”‚   └── delete-exercise.action.ts
β”œβ”€β”€ types/            
β”‚   └── exercise.types.ts
└── ui/               
    β”œβ”€β”€ exercises-list.tsx
    β”œβ”€β”€ create-exercise-button.tsx
    β”œβ”€β”€ create-exercise-modal.tsx
    β”œβ”€β”€ edit-exercise-button.tsx
    β”œβ”€β”€ edit-exercise-modal.tsx
    └── delete-exercise-button.tsx

πŸ“‹ Checklist

  • My code follows the project conventions
  • This PR includes breaking changes
  • I have updated documentation if necessary

πŸ—ƒοΈ Steps to test and reproduce

  1. Run app locally with make dev
  2. Create a user
  3. Set user role as admin
docker exec -it workout-cool-postgres-1 psql -U username -d workout_cool -c "UPDATE \"user\" SET role = 'admin' WHERE email = 'lnevespereira@proton.me';"
  1. Check if user has role admin
docker exec -it workout-cool-postgres-1 psql -U username -d workout_cool -c 'SELECT id, email, role FROM "user";'
  1. Go to /admin/exercises
  2. CRUD exercises

πŸ“Έ Screenshots (if applicable)

Screenshot 2025-07-17 at 22 20 55

Copy link

vercel bot commented Jul 17, 2025

@lucasnevespereira is attempting to deploy a commit to the Workoutcool Team Team on Vercel.

A member of the Team first needs to authorize it.

@carlosguzu
Copy link

Managing programs is a great implementation thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants