Skip to content

Feat/mobile pfp camera#54

Open
bennettfei wants to merge 7 commits intodevfrom
feat/mobile-pfp-camera
Open

Feat/mobile pfp camera#54
bennettfei wants to merge 7 commits intodevfrom
feat/mobile-pfp-camera

Conversation

@bennettfei
Copy link
Copy Markdown

This pr includes the ability to take profile photos directly from the officer db. This will be useful when it's time to take headshots so we don't have to take headshots externally, organize them, and upload them into the db. Firebase is automatically updated with the new profile photo.

Key Features:
A camera button now appears above the pencil icon for uploading images. This allows users to have more freedom when uploading headshots into the db.
For desktop: Customized webcam preview modal with error handling in case your camera permissions are off / your camera is not connecting.
For mobile: Clicking the camera icon will automatically pop up the camera of your OS.

This combines functionality with Jeydin's photo editor and will be included as a part of the pfp uploading flow.

bennettfei and others added 6 commits March 5, 2026 18:30
This commit adds a new Camera component that allows users to take a picture using their device's camera and upload it as their profile picture. The ImageUpdate component has been modified to include the Camera component and handle the new image upload functionality.
On desktop, users will see a webcam preview and a button to capture the photo. On mobile, the device camera will open when the camera button is pressed. Also added error handling if camera permissions are not granted.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
officer-database Ready Ready Preview, Comment Apr 1, 2026 8:20pm

Request Review

@bennettfei bennettfei requested a review from LukeSultzer March 12, 2026 03:43
@jeydinpham jeydinpham linked an issue Mar 12, 2026 that may be closed by this pull request
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.

style: Camera Implementation

2 participants