Skip to content
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

Feat: Implement Profile Page from Figma Design #128

Closed
wants to merge 1 commit into from

Conversation

bertrandshema
Copy link
Contributor

This PR implements the Profile Page for the ecommerce app, based on the provided Figma design. The Profile Page includes user information, order history, and account settings. The design is fully responsive and adheres to the specified design guidelines.

Tasks:

  • Set up routing for the Profile Page in the React application.
  • Create ProfilePage components.
  • Apply styles to match the Figma design, ensuring consistency with the app's existing style guidelines.
  • Ensure the page is responsive and looks good on different screen sizes.
  • Fetch user data from the API and populate the Profile Page.
  • Implement edit functionality for user information fields.
  • Write unit tests for the ProfilePage components.

Acceptance Criteria:

  • The Profile Page matches the Figma design in terms of layout, colors, and typography.
  • All sections are implemented and functional as described.
  • The page is responsive and works well on different devices.
  • Edit functionalities are working as expected.
  • Data fetching for user stats and recent activities is implemented.

Implementation Details:

1. Routing:

  • Added routing for the Profile Page to the React Router configuration.
  • Ensured that the route is protected and only accessible by authenticated users.

2. ProfilePage Components:

  • Created components for different sections of the Profile Page:
  • User Info: Shows user details such as email, phone number, and address.
  • Update Info Form: Lists the user's past orders.

3. Styling:

  • Applied styles to match the Figma design using Tailwind.
  • Ensured consistency with the app's existing style guidelines.
  • Implemented responsive design using media queries.
  • Tested the page on various screen sizes to ensure it looks good on all devices.

3. Data Fetching:

  • Integrated with the backend API to fetch user data.
  • Used axios for API requests and handled loading and error states.
  • Populated the Profile Page with the fetched data.

4. Edit Functionality:

  • Added edit functionality for user information fields.
  • Used controlled components and state management to handle form inputs.
  • Implemented form validation and submission logic.

5. Unit Tests:

  • Wrote unit tests for ProfilePage components using Jest and React Testing Library.
  • Ensured coverage for all key functionalities and edge cases.

@bertrandshema bertrandshema self-assigned this Jul 24, 2024
@bertrandshema bertrandshema linked an issue Jul 24, 2024 that may be closed by this pull request
12 tasks
Copy link

netlify bot commented Jul 24, 2024

Deploy Preview for dynamite-frontend failed.

Name Link
🔨 Latest commit 18baef1
🔍 Latest deploy log https://app.netlify.com/sites/dynamite-frontend/deploys/66a2889e9403750008de64f1

@bertrandshema bertrandshema force-pushed the feat-profile-page-#121 branch 4 times, most recently from 0c42e56 to d315454 Compare July 25, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Implement Profile Page from Figma Design
3 participants