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

Analyze my sleep - front-end #22

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Analyze my sleep - front-end #22

merged 1 commit into from
Sep 23, 2020

Conversation

abelfodil
Copy link
Contributor

No description provided.

Copy link
Contributor

@conorato conorato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

On pourrait aussi ajouter quelques validations du côté client pour guider l'utilisateur:

  • Browse file: Accepter un fichier .txt ou .csv seulement (si c'est possible, seulement permettre à l'utilisateur de choisir les fichiers avec ces extensions quand il browse (les autres fichiers étant grisés)).
  • Age: un nombre entre 0 et 125 (à mettons)

Quand on appuie sur le bouton pour soumettre le fichier, on pourrait vérifier que tous les champs sont remplis avant d'envoyer la requête au serveur.

web/src/views/analyze-sleep/upload-form.js Outdated Show resolved Hide resolved
web/src/views/analyze-sleep/upload-form.js Outdated Show resolved Hide resolved
web/src/views/analyze-sleep/upload-form.js Outdated Show resolved Hide resolved
@abelfodil abelfodil force-pushed the upload-sleep branch 2 times, most recently from aa6b75b to 2f5309a Compare September 23, 2020 17:01
@abelfodil abelfodil merged commit 92c7571 into master Sep 23, 2020
@abelfodil abelfodil deleted the upload-sleep branch September 23, 2020 19:32
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.

2 participants