-
Notifications
You must be signed in to change notification settings - Fork 112
Fix profile edit form UX and remove duplicate save action #217
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
📝 WalkthroughWalkthroughThe ProfilePage header button was changed to only enter editing mode (no toggle). The header no longer shows "Save Changes". Input fields were restyled with a dark background, rounded corners, padding, and a green focus ring; bottom Cancel/Save controls remain when editing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 1
🤖 Fix all issues with AI Agents
In @frontend/src/components/pages/ProfilePage.tsx:
- Around line 36-41: The Edit button remains active while editing; update the
rendering around the motion.button that uses setIsEditing and the isEditing
state so it either does not render when isEditing is true (e.g., wrap the
motion.button with {!isEditing && ...}) or set disabled={isEditing} and adjust
the className to show a disabled style and prevent onClick from calling
setIsEditing when isEditing is true; modify the motion.button (and the Edit
icon) behavior accordingly so the button is hidden or visibly disabled during
edit mode.
🧹 Nitpick comments (1)
frontend/src/components/pages/ProfilePage.tsx (1)
4-4: Remove unused icon imports.The
SaveandDoorClosedicons are imported but not used in the component. TheSaveicon was likely used in the previous toggle implementation before this PR's changes.🔎 Cleanup unused imports
-import { User, Mail, Building, Globe, Github, Twitter, Edit, Camera, Save, DoorClosed } from 'lucide-react'; +import { User, Mail, Building, Globe, Github, Twitter, Edit, Camera } from 'lucide-react';
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
frontend/src/components/pages/ProfilePage.tsx
🔇 Additional comments (1)
frontend/src/components/pages/ProfilePage.tsx (1)
84-84: Excellent styling improvements for form fields!The updated input field styling successfully addresses the UX issue mentioned in the PR objectives. Fields are now visually distinguishable with:
- Clear background color (
bg-gray-800)- Proper padding and rounded corners
- Green focus ring for interaction feedback
- Reduced opacity when disabled
The consistent dark-theme styling across all fields (Name, Email, Company, Website, GitHub, Twitter) creates a cohesive and professional appearance.
Also applies to: 98-98, 112-112, 128-128, 142-142, 156-156
|
Hey @smokeyScraper @Aditya30ag 👋 This PR focuses on improving the profile edit experience by resolving a few UX inconsistencies observed during local testing. Specifically, it makes editable fields visually distinguishable from static text and ensures that the save action appears only once during edit mode, reducing potential user confusion. Screenshots comparing the before and after states are included for clarity. Would appreciate your feedback when you get a chance. Thanks! |
Aditya30ag
left a comment
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.
The original button handled both Edit and Save states.
Now:
-There is no “Save Changes” button
-No way to exit edit mode
Closes : N/A
📝 Description
This pull request improves the profile edit experience by addressing a few UX inconsistencies observed during local testing.
Editable fields in the profile page were visually indistinguishable from static text, and the save action appeared more than once during edit mode, which could cause confusion while updating profile information. This change improves clarity while keeping existing logic and layout intact.
🔧 Changes Made
📷 Screenshots or Visual Changes (if applicable)
Profile edit UI – before / after
Before – Inputs not visually distinguishable
Before – Duplicate Save action during edit mode
After – Clear inputs and single Save action
🤝 Collaboration
Collaborated with: N/A
✅ Checklist
Summary by CodeRabbit
Refactor
Style
✏️ Tip: You can customize this high-level summary in your review settings.