tolgee / tolgee-js

Tolgee JavaScript libraries monorepo
https://tolgee.io
MIT License
218 stars 24 forks source link

Dev tools error handling #3329

Open JanCizmar opened 1 month ago

JanCizmar commented 1 month ago

In past month users repeatedly reported 4xx error being printed in the SDKs. While some of these are backend issues, we still need to provide better user experience when the API key is missing or when API key scope is missing.

Recently I've added missing scope as a parameter when responding with 403, so we can tell the user exactly which scopes they need to add to proceed.

image

ZuzanaOdstrcilova commented 1 week ago

Here is the design for errors: https://www.figma.com/file/wVmz098ZrSxswOI0nbIjQ2/Design-system-Tolgee?type=design&node-id=1536%3A5540&mode=design&t=dFCUMmw86Htmaxn2-1

Image