short url integration follow-up (code and error mgmt)
refactor & of !1125 (diffs):
- code dedup: useShortenUrl + handler
- api entry for shorten service (no axios or fetch in the app)
- use RQ without cache to have global loaders
error mgmt
- if the short URL fails in a web page browser --> return the existing error message
"Whoops, something went wrong on our side. We are working to solve this. Please try again later."
- if the BE fails to generate a short URL --> return the existing error message
"Whoops, something went wrong on our side. We are working to solve this. Please try again later."
In this case, it should be displayed as a small pop-up message when the user has clicked on "Generate short URL"
Edited by jean-baptiste nonin