-
Notifications
You must be signed in to change notification settings - Fork 0
#7 - Activity history #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request implements user profile management and activity tracking features for a Strava-like application. The changes add comprehensive profile functionality with avatar management and introduce an activity history system.
Key changes include:
- User profile CRUD operations with avatar upload/delete capabilities and identicon fallbacks
- Activity creation and listing with photo attachments
- Database schema updates for user profiles (first/last name, birth date, height, weight, gender) and activities table
- Integration of image manipulation libraries (Intervention Image) and identicon generation
Reviewed changes
Copilot reviewed 32 out of 33 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Feature/ProfileTest.php | Comprehensive test suite for profile endpoints including CRUD operations and avatar management |
| routes/api.php | Added routes for activities, profile management, and avatar endpoints |
| phpunit.xml.ci | New CI-specific PHPUnit configuration for PostgreSQL testing |
| database/migrations/2025_12_21_173736_create_activities_table.php | Migration for activities table with user relationship and activity metadata |
| database/migrations/0001_01_01_000000_create_users_table.php | Extended users table with profile fields (names, birth date, height, weight, gender) |
| database/factories/UserFactory.php | Updated to use Hash::make for password generation |
| config/filesystems.php | Added disk configurations for avatars and activity photos |
| composer.lock | Added intervention/image-laravel and yzalis/identicon packages |
| composer.json | Updated dependencies to include image manipulation libraries |
| app/Models/User.php | Extended with profile attributes, gender enum cast, and avatar accessor |
| app/Models/Activity.php | New model for activities with user relationship and photo accessor |
| app/Http/Resources/UserResource.php | Resource transformer for user profile data |
| app/Http/Resources/ActivityResource.php | Resource transformer for activity data |
| app/Http/Requests/UpdateProfileRequest.php | Validation rules for profile updates |
| app/Http/Requests/StoreActivityRequest.php | Validation rules for activity creation |
| app/Http/Requests/ChangeAvatarRequest.php | Validation rules for avatar uploads |
| app/Http/Controllers/Profile/ProfilesController.php | Controller for listing and showing user profiles |
| app/Http/Controllers/Profile/ProfileController.php | Controller for current user profile management and avatar operations |
| app/Http/Controllers/ActivitiesController.php | Controller for activity CRUD operations and photo retrieval |
| app/Helpers/IdenticonHelper.php | Helper class for generating identicon avatars |
| app/Enums/Gender.php | Enum for gender values (male/female) |
| app/Enums/ActivityType.php | Enum for activity types (run, ride, walk, other) |
| app/Actions/Profile/UpdateProfileAction.php | Action class for updating user profiles |
| app/Actions/Avatars/GetDefaultAvatarAction.php | Action for generating default identicon avatars |
| app/Actions/Avatars/GetAvatarAction.php | Action for retrieving stored avatars |
| app/Actions/Avatars/DeleteAvatarAction.php | Action for deleting user avatars |
| app/Actions/Avatars/ChangeAvatarAction.php | Action for uploading and storing avatars |
| app/Actions/Activities/ListActivitiesAction.php | Action for paginated activity listing |
| app/Actions/Activities/GetActivityPhotoAction.php | Action for retrieving activity photos |
| app/Actions/Activities/CreateActivityAction.php | Action for creating new activities |
| Taskfile.yml | Added test database creation task and updated test command |
| .github/workflows/test-and-lint-php.yml | Updated to use phpunit.xml.ci configuration |
| .env.ci | Switched to SQLite in-memory database for CI |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
…ivity-history # Conflicts: # app/Http/Requests/StoreActivityRequest.php
|
🤓 |
|
CONFLICTS 🤓👆 |
No description provided.