ecamp3 icon indicating copy to clipboard operation
ecamp3 copied to clipboard

Error- / Warning- / Info-Message Handling

Open manuelmeister opened this issue 5 years ago • 3 comments

Features:

  • [x] #3037
  • [x] Translatable messages (#2902)
  • [ ] Source component decides if it handles the message itself or if the global handler gets used
  • [ ] #3076

manuelmeister avatar Apr 18 '21 13:04 manuelmeister

@BacLuc Are you working on "Global component to display the messages" or is this free to work on?

usu avatar Sep 10 '22 15:09 usu

I did not yet start with the global component to display messages. Maybe we have merge conflicts then if we both work on serverError.js, but we can resolve them. If you want to start with that, feel free.

BacLuc avatar Sep 11 '22 15:09 BacLuc

I gave a shot to include vue-toastification. Looks neat in my opinion and brings all the features we'd need to have. They have a version for Vue2 and one for Vue3. Decent amount of usage/stars/forks. Not a lot of activity recently, though.

I struggled to get it working inside ecamp3, however. Not sure where the issue is. Messages get added to the proper component, but aren't displayed. I would have said it's very similar to the issue described in https://github.com/Maronato/vue-toastification/issues/247#issue-941989113 (getPositionToasts not being a computed). But then again, the demo is working and others seem to use it without issue. So maybe an issue from my end.

If someone want to give it a try, feel free.

Other options:

  • Use a another package that is based on vuetify snackbar, e.g. https://github.com/eolant/vuetify-toast-snackbar or https://github.com/jaredhan418/vuetify-toast-snackbar-ng. Both of them are quite old and have little traction, so not sure if we really want to depend on them.
  • Implement something on our own: For sure an option. Just a bit a pity, as this seems like a problem that could be solved generically.

usu avatar Sep 13 '22 10:09 usu

I would say everything here is done or in a separate issue.

BacLuc avatar Apr 27 '24 13:04 BacLuc