Added nonfunctional profile picture edit and delete icons#265
Merged
Conversation
stasel
reviewed
Dec 16, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds non-functional edit and delete icon buttons that appear when hovering over a trainee's profile picture. The implementation uses Material-UI components with fade animations and hover effects, setting the groundwork for future functionality including confirmation modals, upload dialogs, and API integration.
Key Changes:
- Added hover state management using React useState to show/hide edit and delete icons
- Implemented visual feedback with brightness filter on avatar and scale transforms on icons
- Used Material-UI Fade component for smooth icon transitions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
spearated profile picture modal for better readablity
1c6eea1 to
cec6faa
Compare
It is now found in profile-> components
said file did not have the seperate ProfilePictureModal
zalexa19
reviewed
Feb 10, 2026
Contributor
zalexa19
left a comment
There was a problem hiding this comment.
Hi!
I looked at your pr, really happy that you extracted some code to a new component!
I left a comment about passing the Trainee to this component, other than that it looks cool :)
client/src/features/trainee-profile/profile/components/ProfilePictureModal.tsx
Outdated
Show resolved
Hide resolved
client/src/features/trainee-profile/profile/components/ProfilePictureModal.tsx
Outdated
Show resolved
Hide resolved
- removed default export from ProfilePictureModal and TraineeProfile components - passed required props to ProfilePictureModal instead of the whole data object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds nonfunctional edit and delete buttons only visible when hovering over a trainee profile picture.
Will be expanded to include confirmation and upload modals and finally api implementation.
Showcase