Skip to content

feat: email end trial - #1061

Merged
AldemirLucas merged 3 commits into
mainfrom
feat/email_end_trial
Aug 19, 2026
Merged

feat: email end trial#1061
AldemirLucas merged 3 commits into
mainfrom
feat/email_end_trial

Conversation

@AldemirLucas

@AldemirLucas AldemirLucas commented Aug 19, 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 and others added 3 commits August 10, 2026 12:44
- 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 self-assigned this Aug 19, 2026
@AldemirLucas
AldemirLucas requested a review from Winzen August 19, 2026 22:27

@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.

👌

@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

@AldemirLucas
AldemirLucas merged commit 76411be into main Aug 19, 2026
8 of 9 checks passed
@Winzen Winzen added the prod Indica que o Pull Request está com a branch de destino (base) apontando para main label Aug 19, 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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants