0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/apps/portal/src/tests
Cathy Sarisky 1196688b0e
🌐 Improved i18n support for Portal error messages (#21190)
no ref

Expose (some) Portal error strings for translations

💩This is a somewhat hacky (but test-passing and individual inspection
passing) solution to the way Portal handles errors. Or rather, the
half-dozen ways Portal handles errors.

Passing 't' around with context and state, and occasionally recreating
it from the site object. Yes, I am also somewhat horrified, but a better
implementation will need a major rewrite of Portal.

Addresses errors in both the popover React app and in the
data-attributes.

There are probably more. Since Portal exposes raw API responses in some
places, it's hard to enumerate everything that /might/ end up being
client-facing, but at least I've gotten the ones that I've commonly
seen.

Improvements very welcome.
2024-10-03 13:35:23 +00:00
..
unit Reverted "🌐 Updated Portal error handling to be i18n-friendly (#21176)" (#21184) 2024-10-02 12:06:09 +00:00
App.test.js 🎨 Convert portal links to relative to avoid homepage flash on click (#20896) 2024-09-02 11:23:12 +00:00
data-attributes.test.js Added support in Portal for integrity tokens on magic link API 2024-08-22 22:23:16 +01:00
EmailSubscriptionsFlow.test.js 🔒 Added uuid verification to member endpoints not requiring a session 2024-08-20 16:24:02 +02:00
errors.test.js 🌐 Improved i18n support for Portal error messages (#21190) 2024-10-03 13:35:23 +00:00
FeedbackFlow.test.js 🔒 Added uuid verification to member endpoints not requiring a session 2024-08-20 16:24:02 +02:00
portal-links.test.js Added help pages to Portal links (#20974) 2024-09-11 13:19:16 +00:00
SigninFlow.test.js Added support in Portal for integrity tokens on magic link API 2024-08-22 22:23:16 +01:00
SignupFlow.test.js Added support in Portal for integrity tokens on magic link API 2024-08-22 22:23:16 +01:00
UpgradeFlow.test.js