Skip to content

Commit 8107cf0

Browse files
committed
Refactor user profile photo handling and implement image upload feature
- Renamed `profile_photo` to `profile_photo_url` across the codebase for consistency. - Updated user model and database schema to reflect the new property name. - Enhanced the GeneralForm component to include an image upload feature with cropping capabilities using `ImageDropzoneWithCropper`. - Adjusted various components to utilize the new `profile_photo_url` property. - Added support for R2 storage provider in the image upload functionality. - Created a new component for image upload with cropping and preview features. - Updated migration files to rename the database column accordingly.
1 parent e26de52 commit 8107cf0

File tree

23 files changed

+1320
-35
lines changed

23 files changed

+1320
-35
lines changed

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/techdiary.dev.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE "users" RENAME COLUMN "profile_photo" TO "profile_photo_url";

0 commit comments

Comments
 (0)