Skip to content

fix: register cta and info-box in DEFAULT_COMPONENTS#8

Merged
PhilMeyr merged 1 commit into
masterfrom
feat/register-cta-infobox-by-default
Jun 16, 2026
Merged

fix: register cta and info-box in DEFAULT_COMPONENTS#8
PhilMeyr merged 1 commit into
masterfrom
feat/register-cta-infobox-by-default

Conversation

@PhilMeyr

Copy link
Copy Markdown
Contributor

Problème

Les composants Cta et InfoBox (et leurs styles SCSS) sont fournis par la gem, mais les tags <cta>/<info-box> n'étaient pas enregistrés par défaut dans DEFAULT_COMPONENTS — contrairement à button, callout, wrapper, etc. Résultat : sans register_component manuel, <cta>/<info-box> ressortent en tags bruts non transformés.

Correctif

Ajout de 'cta' => ActiveMail::Components::Cta et 'info-box' => ActiveMail::Components::InfoBox à DEFAULT_COMPONENTS. Les deux tags fonctionnent désormais out of the box. Bump 1.1.1.

Impact

Additif et rétrocompatible. Les apps qui enregistraient déjà ces tags (ou des alias type <ds-cta>) ne sont pas affectées (le registre custom prime). Permet de retirer les shims/alias dépréciés côté app.

Tests

Suite complète verte (282 runs) + rubocop.

The Cta and InfoBox components and their styles already shipped, but the tags
required manual registration to work — unlike button/callout/wrapper which are
registered by default. Add 'cta' and 'info-box' to DEFAULT_COMPONENTS so they
work out of the box. Bump to 1.1.1.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@PhilMeyr
PhilMeyr merged commit d9e546c into master Jun 16, 2026
12 checks passed
@PhilMeyr
PhilMeyr deleted the feat/register-cta-infobox-by-default branch June 16, 2026 19:48
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