arkhn / Cohort360

A web application to find patients, build cohorts and visualize data
Apache License 2.0
0 stars 0 forks source link

Added snackbar in AccessRequests component #85

Closed BPierrick closed 3 years ago

BPierrick commented 3 years ago

Fixes

Fixes #80 by @MiskoG

Description

Screenshots

Capture d’écran 2021-04-13 à 11 17 35 Capture d’écran 2021-04-13 à 11 25 28
MiskoG commented 3 years ago

@BPierrick Awesome !

I just have a doubt concerning the scenario where the snackbar is red - I understand what was your intention (red = refusal) but here the user is the administrator. And generally speaking in UI, a red thing is used for dangerous actions (= delete for example) or errors.

I feel it would be safer to just show a green snackbar everytime with for example "Votre réponse a bien été prise en compte". Bonus : we can keep the red snackbar when the API response is an error, with something like "Une erreur est survenue. Votre réponse n'a pas pu être prise en compte."

simonvadee commented 3 years ago

I agree with @MiskoG, the red snackbar should only be used for api errors

MiskoG commented 3 years ago

Exactly 👍