su-fit-vut / kachna-online

Students' Club U Kachničky: Member's portal
MIT License
5 stars 5 forks source link

Save certain form fields on-the-fly, without explicit confirmation #80

Open ondryaso opened 2 years ago

ondryaso commented 2 years ago

Proposal

In the reservation details page (both in the user and the manager view), there's a single form with a single field for the internal note. This field could be saved automatically, while the user is typing, without having to confirm the change by clicking the Save note button.

Notes

The behaviour of this would be basically the same as in the user selection component. The form would send a PUT request to the /boardGames/reservations/{id}/note (or /noteInternal) when the user stops typing for some short, pre-defined time.

It would be crucial to add some kind of note saved indication, like a small spinner in the right side of the field that would turn to a checked symbol when the request is finished.