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

Create a multistep form to register adoption #125

Closed
belgamo opened this issue Nov 3, 2022 · 3 comments · Fixed by #130
Closed

Create a multistep form to register adoption #125

belgamo opened this issue Nov 3, 2022 · 3 comments · Fixed by #130
Assignees
Labels
enhancement New feature or request front-end
Milestone

Comments

@belgamo
Copy link
Collaborator

belgamo commented Nov 3, 2022

Task

Let's recreate our old adoption register screen. This time, we want to split it into multiple screens in order to provide a better user experience. So for each field, we must have a dedicated screen and a "Next" button to advance to the next step. I suggest using react-hook-form to manage the form state and react-query for handling requests.

Validation

We also want to improve the error feedback. Let's use a tooltip to show errors. The snackbars should show up if the user tries to advance by clicking on the next button and the data typed on the field is not valid.

Photos upload

Let's keep the same user experience allowing the user to upload up to 3 pictures.

Endpoints

We already have the backend endpoints for basic crud ready to use.

Create adoption -> POST api/v1/adoptions

Tests

Please do not forget to add tests. I suggest react-testing-library.

Screenshots/Examples

image image image image image image image image
@belgamo belgamo created this issue from a note in Animavita V2 (To do) Nov 3, 2022
@belgamo belgamo added front-end enhancement New feature or request labels Nov 4, 2022
@belgamo belgamo added this to the Adoptions milestone Nov 4, 2022
@belgamo belgamo pinned this issue Nov 4, 2022
@joaoGabriel55
Copy link
Contributor

I can take this

@belgamo
Copy link
Collaborator Author

belgamo commented Nov 4, 2022

Please we haven't setup our design system yet. Use react-native-paper. Ping me on discord if you have any questions.

@belgamo belgamo linked a pull request Nov 6, 2022 that will close this issue
3 tasks
@belgamo belgamo moved this from To do to In progress in Animavita V2 Nov 6, 2022
belgamo added a commit that referenced this issue Nov 23, 2022
Animavita V2 automation moved this from In progress to Done Nov 23, 2022
@belgamo belgamo moved this from Done to In progress in Animavita V2 Nov 23, 2022
belgamo added a commit that referenced this issue Jan 15, 2023
#125 - Preparing structure to implement multistep form for adoptions
@belgamo belgamo moved this from In progress to Reviewer approved in Animavita V2 Jan 15, 2023
@belgamo belgamo moved this from Reviewer approved to Done in Animavita V2 Jan 15, 2023
@belgamo belgamo moved this from Done to Review in progress in Animavita V2 Jan 15, 2023
@belgamo belgamo moved this from Review in progress to In progress in Animavita V2 Jan 15, 2023
@belgamo belgamo moved this from In progress to Done in Animavita V2 Jan 15, 2023
@belgamo
Copy link
Collaborator Author

belgamo commented Jan 15, 2023

Added more issues to finish this task:

#147
#148
#149

@belgamo belgamo unpinned this issue Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request front-end
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants