Skip to content

Conversation

@KacperWalenga
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 21, 2025 19:34
@KacperWalenga KacperWalenga linked an issue Dec 21, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a 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.

KacperWalenga and others added 3 commits December 21, 2025 21:05
…ivity-history

# Conflicts:
#	app/Http/Requests/StoreActivityRequest.php
@KacperWalenga
Copy link
Member Author

🤓

@AmonDeShir
Copy link
Member

CONFLICTS 🤓👆

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.

Activity History

3 participants