Skip to content

🚀 Completing the amazing coding challenge!#6

Open
italoiz wants to merge 1 commit intoanadise:mainfrom
italoiz:main
Open

🚀 Completing the amazing coding challenge!#6
italoiz wants to merge 1 commit intoanadise:mainfrom
italoiz:main

Conversation

@italoiz
Copy link

@italoiz italoiz commented Mar 11, 2023

I made all the tasks, and also improve the UI in terms of highlighting the user row background. I left below a preview of the UI working.

Preview

Mar-11-2023 08-30-58

Tasks

  • Add .next/ to .gitignore.
  • Fix the missing dependency error.
  • Define the type of children in `./src/components/layouts/default.tsx'.
  • On the index page, fetch data from /api/clients using the already imported custom request function to populate the table. Use a TypeScript interface to define a type in the useState you will implement.
  • Make sure that the genders, names, and emails of clients are matching. Client avatars do not have to match with client genders.
  • Make sure that the full names of clients on the table are displayed. Hint: Use Array.prototype.map() to reformat data.
  • Make sure that the client emails on the table are selectable and copiable by the user.
  • Define the custom color #EE964B as sandy in Tailwind.
  • Get a query parameter named highlight from the URL in the index page using useEffect().
  • If there is a client with the same ID as highlight's value, change their background color on the table to sandy.
  • Use the styling from ./src/examples/modals.tsx and ./src/examples/forms.tsx to create a Formik form with Yup validation for registering a client inside a modal.
  • Make the 'Register new client' button open the modal with the form inside.
  • Complete the onRegister function to make a POST request to /api/clients with the form data using the already imported custom request function.

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.

1 participant