-
Notifications
You must be signed in to change notification settings - Fork 0
Frontend #49
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
Conversation
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.
Pull Request Overview
This PR enhances the frontend profile page by adding inline editing capabilities including profile photo updates and teacher-specific information editing, while also adjusting build configuration settings.
- Introduces edit mode support with new UI components and state management for photo and teacher details
- Updates the API call for profile updates to include optional photo upload and teacher information
- Modifies next.config.ts to disable TypeScript and ESLint errors during build
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
peachide/src/app/page.tsx | Adds inline editing, photo upload, and teacher information editing functionality to the user profile page |
peachide/next.config.ts | Disables TypeScript and ESLint build errors to allow builds despite code quality issues |
before this, every chat by everyone will be shown, which is a bug
This pull request introduces profile editing functionality to the
Home
component inpeachide/src/app/page.tsx
and updates the Next.js configuration to allow builds to proceed despite TypeScript and ESLint errors. The most significant changes include adding new states and handlers for profile editing, implementing file upload and validation for user photos, and enhancing the UI with editable fields and action buttons.Profile Editing Functionality:
isEditing
,isLoading
,editData
,previewPhoto
) and handlers (handleEditToggle
,handlePhotoChange
,handleSave
) to support profile editing, including file upload and validation for user photos. [1] [2]isEditing
state. [1] [2]UI Enhancements:
Configuration Updates:
next.config.ts
to ignore TypeScript build errors and ESLint warnings during builds. This ensures smoother development workflows.