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

[Track 6/8] [FE / INT] Add User #16

Open
taki-tiler bot opened this issue Nov 7, 2024 · 4 comments
Open

[Track 6/8] [FE / INT] Add User #16

taki-tiler bot opened this issue Nov 7, 2024 · 4 comments

Comments

@taki-tiler
Copy link

taki-tiler bot commented Nov 7, 2024

Step 1/2 - Add User Screen Frontend (FE)

Estimated time: 2 hours

Now, we need an Add User Screen so we can... well... add new user users into our app. 😑

Add a button on your users list to navigate to your new Add User page. It can be a FAB - Floating Action Button, a button on the navigation bar or some other implementation you research on a good internet reference.

Your screen should have:

  • A form field for each of the properties that are listed in User GraphQL type

  • An Add user button

  • Fields validation, like on your login page, but according to the field type. Examples:

    • Name must be complete: at least 2 words
    • Phone should have only digits 10~11 digits (considering DDD code)
    • Birth date can have a minimum date and can't be in the future
    • Role should be a fixed set of values, according to the UserRole enum

NOTE: following the process of previous tracks, this step contemplates only FE

@henriquegeribello
Copy link
Collaborator

Finish

Copy link
Author

taki-tiler bot commented Nov 8, 2024

Step 2/2 - Add User Screen Integration

Estimated time: 3 hours

After you create the frontend, it's time to send this data to the server for creating the user.

The mutation used to create an user is the createUser mutation. Docs in Documentation Explorer.

When this integration is done, your screen should:

  • Return to the User List page if the user create request mutation has succeded
  • Shows the incoming server error message on screen if the request fails

@henriquegeribello
Copy link
Collaborator

Finish

Copy link
Author

taki-tiler bot commented Nov 11, 2024

Click here for your next track

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

No branches or pull requests

1 participant