Skip to content

feat(membership): password reset request names the template + language or fallback: <reason>, and the MJML renderer state - #96

Merged
Domantas merged 1 commit into
mainfrom
fix/n46-template-report
Oct 22, 2026
Merged

Domantas merged 1 commit into
mainfrom
fix/n46-template-report

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Gateway N46 reopened (Happy Tummy: a TEST reset e-mail arrived as the fixed English text).

The admin test reset route (POST /v3/membership/userauth/password/reset/test, gateway d5ac44c6c) now answers which template and language the hub will use — templateId, templateName, templateSource, language, languageRule, templateLanguages — or fallback: <code>: <reason> (e.g. mjml-render-failed (401) when the MJML renderer refuses the hub's token), plus mjmlRenderer (ok, unauthorized (401), unreachable, …).

norbix membership password reset request <email> --env TEST:

  • prints the template + language line, the fallback: line and the MJML renderer state; --json returns the fields as they are;
  • reads the hub's fallbackReason before template (the hub now names the chosen template even when it fell back to the fixed text).

Tests: 4 new (text report, fallback, --json, delivery fallback first); npm test 1102/0. Proved against a private Community stack with the MJML renderer refusing the token.

🤖 Generated with Claude Code

…e the hub will use, or fallback: <reason> (mjml-render-failed (401)), and the MJML renderer state

Gateway N46 reopened: the admin test reset route answers templateId,
templateName, templateSource, language, languageRule, templateLanguages,
fallback and mjmlRenderer; --json returns them as they are. The hub's sent
entry names the chosen template even when it fell back, so the report now
reads fallbackReason first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit cab666f into main Oct 22, 2026
11 checks passed
@Domantas
Domantas deleted the fix/n46-template-report branch October 22, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant