Skip to content

Conversation

@Luchiweb
Copy link
Collaborator

@Luchiweb Luchiweb commented Aug 18, 2023

  1. Task: link
  2. Screenshot: image
  3. Deploy: link
  4. Done 21.08.2023 / deadline 21.08.2023
  5. Score:

CrossCheck Criteria 315/315

Login Page Implementation (130 points)

  • (20 points) Implement client-side validation for the login form, including email and password fields.
  • (20 points) Display clear error messages indicating any validation issues, such as an improperly formatted email.
  • (25 points) Integrate the login form with a chosen authentication service (CommerceTools) to handle user authentication.
  • (20 points) Implement error handling for failed authentication attempts, such as incorrect email or password, and display user-friendly error messages.
  • (15 points) Redirect users to the application's main page upon successful login.
  • (15 points) Redirect users who are already logged in to the main page if they try to access the login page.
  • (10 points) Obtain the authentication token securely after a successful login attempt by sending a request to the token endpoint
  • (5 points) Add a button or link on the login page that allows users to navigate to the registration page.

Registration Page Implementation (120 points)

  • (25 points) Implement client-side validation for all required fields in the registration form, such as email, password, first name, last name, date of birth, and address fields (e.g., street, city, postal code, and country) for proper use with CommerceTools.
  • (20 points) Display clear error messages indicating any validation issues, such as an improperly formatted email or a weak password.
  • (10 points) Integrate the registration form with a chosen authentication service, such as commercetools, to handle user registration.
  • (15 points) Implement error handling for failed registration attempts, and display user-friendly error messages.
  • (15 points) Redirect users to the application's main page upon successful account creation and automatic login.
  • (15 points) Allow users to set a default address during registration.
  • (15 points) Enable users to select different billing and shipping addresses or choose a single address for both billing and shipping during the registration process.
  • (5 points) Add a button or link on the registration page that allows users to navigate to the login page.

Main Page Enhancements (10 points)

  • (5 points) Add links to all the functional pages of the application on the main page. These should include, but are not limited to, the login and registration pages.
  • (5 points) Each link should redirect the user correctly to the corresponding page without any errors.

Routing Implementation (30 points)

  • (15 points) Implement routing for navigation between login, registration, and main pages.
  • (15 points) Implement a 404 (Not Found) page for invalid route requests.

Evaluation Criteria for Header (25 points)

  • (15 points) Navigation to login and registration pages for unauthorized users.
  • (5 points) Ability to access the main page for all users.
  • (5 points) Logout functionality for authorized users.

Mentor Evaluation Criteria (60 points)

  • (10 points) Code Review Participation
  • (10 points) No Merges Without Approvals
  • (10 points) Pull Request Descriptions
  • (10 points) Task Board Management
  • (5 points) Active Participation in Development Discussions
  • (15 points) Unit Test Coverage

Sviatl and others added 22 commits August 8, 2023 12:53
…ses in ElementCreator, use jest-dom methods for tests
* feat: add header view component

* feat: add header elements

* refactor: prittier changes of header

* feat: add ElementAnchorCreator in header.css and svg logo as external file

* refactor: use assets imports before all others

* refactor: chain in appendNode, rename ul in linkList

* refactor: chain in appendNode, rename ul in linkList

* feat: add header view component

* feat: add header elements

* refactor: prittier changes of header

* feat: add ElementAnchorCreator in header.css and svg logo as external file

* refactor: use assets imports before all others

* refactor: chain in appendNode, rename ul in linkList

* refactor: chain in appendNode, rename ul in linkList

* feat: add header test

* feat: add cart, customer links and sign out button

* feat: add cart, customer links and sign out button

* refactor: add comments TODO and change export place
* feat: add class router

* feat: merged with login-registration-main

* feat: routing login/signup/main

* refactor: change type of routes: Record<string, string>

* refactor: change AS to instanceof

* refactor: use foreach nstead of let i = 0...

* feat: add laizy loading for routing views

* feat: change main view for routing

* feat: add 404 to main view and router

* feat: add 404 to main view and router

* refactor: remove unuser async

* refactor: remove unuser async

* refactor: remove unuser async

* refactor: saparate list of routers

* feat: add hashValue in router

* feat: add hashValue in router

* fix: sintax link ice-adventures

* refactor: delete unused navigateToLogin

* refactor: change click event on mouseover in header categories

* refactor: change click event on mouseover in header categories
* feat: add message viewer

* fix: remove unnecessary switch/case
@Luchiweb Luchiweb changed the title sprint 2 Login, Registration, and Main Pages Implementation Aug 18, 2023
Sviatl and others added 6 commits August 18, 2023 18:03
* feat: add view about is and categories

* feat: add view about is and categories

* feat: add categories view

* feat: add links to footer

* feat: add links to footer

* feat: validate categories in list of categories

* feat: validate categories in list of categories

* feat: add event listenet for header links to prevent default ant render context

* feat: router do not reload page if link was not changed

* feat: add HendlerLinks to footer

* feat: add HendleLinks to login and registration

* feat: redirect to main when loggen in and try login

* feat: add handler links to 404, add links of cart, profile

* feat: add preventDefoult for search input

* feat: add preventDefoult for search input

* fix: save previous path for router

* fix: comment TODO

* feat: logout redirects to signup

* feat: change links cart and profile

* refactor: raname delivery adress

* refactor: raname delivery adress
* fix: logout clear token store

* feat: add btns login signup for logged in user

* feat: change font sixa of caterities

* feat: add comment for sprint 3

* feat: change link /main to /

* feat: change main page to /

* feat: add input validation test

* feat: add validation tests

* feat: add test onli letters

* feat: add validate password tests

* feat: change validation tests

* feat: change input validation only letters test

* feat: change anli letters: not allow 1 space
… shown (#31)

* fix: adaptive layout when btns login and signup allwaya shown

* feat: add validation country test

* feat: add cart component test

* feat: add password tests

* feat: add publicPath: / in config webpack for nesting 404 page

* feat: add plugin to webpack to copy netlify.toml to dist for routing on netlify

* feat: add plugin to webpack to copy netlify.toml to dist for routing on netlify
@akrutsko akrutsko self-requested a review August 22, 2023 13:23
@akrutsko akrutsko self-assigned this Aug 22, 2023
@netlify
Copy link

netlify bot commented Aug 22, 2023

Deploy Preview for codecircus-ecomm ready!

Name Link
🔨 Latest commit 4e7784b
🔍 Latest deploy log https://app.netlify.com/sites/codecircus-ecomm/deploys/64e4f1164d9bc50008f76c97
😎 Deploy Preview https://deploy-preview-26--codecircus-ecomm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@akrutsko akrutsko changed the title Login, Registration, and Main Pages Implementation feat: implement login, registration, and main pages Aug 22, 2023
@akrutsko akrutsko merged commit 914b6db into develop Aug 22, 2023
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.

5 participants