Skip to content

feat: email end trial - staging - #1056

Merged
AldemirLucas merged 1 commit into
stagingfrom
feat/email_end_trial
Aug 19, 2026
Merged

feat: email end trial - staging#1056
AldemirLucas merged 1 commit into
stagingfrom
feat/email_end_trial

Conversation

@AldemirLucas

@AldemirLucas AldemirLucas commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Issue da feature

Summary

Esta branch adiciona o e-mail de fim de trial do chatbot e padroniza o visual dos templates transacionais da BD.

E-mail de fim de trial do chatbot

  • Novo template end_trial_chatbot.html, enviado automaticamente via webhook do Stripe quando a assinatura do chatbot sai de trialing e o acesso é revogado.
  • Envio best-effort: falha no e-mail não impede a revogação do entitlement.

Atualização visual dos e-mails

  • Templates de ativação de conta, criação BD Pro, reset de senha e notificação de atualização de tabela alinhados ao novo padrão (fonte Roboto, logo atualizado, botões verdes, tipografia e espaçamentos revisados).
    Correção no cancelamento de assinatura

  • StripeSubscriptionDeleteMutation passa a usar cancel_at_period_end=True via API do Stripe em vez do helper do djstripe, evitando cancelamento imediato durante o período de trial.

@AldemirLucas
AldemirLucas requested a review from Winzen August 17, 2026 18:20
@AldemirLucas AldemirLucas self-assigned this Aug 17, 2026
- Introduced `chatbot_trial_just_ended` to determine if a subscription ended during the trial period.
- Added `maybe_send_chatbot_trial_ended_email` to send notifications when chatbot access is revoked after a trial.
- Updated `handle_subscription` and `unsubscribe` to utilize the new email notification logic.
@AldemirLucas
AldemirLucas changed the base branch from main to staging August 19, 2026 18:32
@mergify

mergify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@Winzen Winzen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@AldemirLucas AldemirLucas changed the title Feat/email end trial Feat/email end trial - staging Aug 19, 2026
@Winzen Winzen changed the title Feat/email end trial - staging feat: email end trial - staging Aug 19, 2026
@AldemirLucas
AldemirLucas merged commit dff21ae into staging Aug 19, 2026
5 of 6 checks passed
@Winzen Winzen added the staging Indica que o Pull Request está com a branch de destino (base) apontando para staging label Aug 20, 2026
@AldemirLucas
AldemirLucas deleted the feat/email_end_trial branch August 31, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging Indica que o Pull Request está com a branch de destino (base) apontando para staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants