fix(directus): prevent email templates clipping on mobile#608
fix(directus): prevent email templates clipping on mobile#608dembrane-sam-bot wants to merge 1 commit into
Conversation
|
Thank you for contributing to Dembrane ECHO! Before we consider your Pull Request, we ask that you sign our Contributor License Agreement (CLA). This is only required for your first Pull Request. Please review the CLA, and sign it by adding your GitHub username to the contributors.yml file. Thanks! |
|
Warning Review limit reached
More reviews will be available in 15 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThree email templates (base, English, and Dutch notifications) are refactored to move outer padding from inline table styles to a dedicated outer-padding class on inner table cells, with corresponding media query updates ensuring responsive padding adjustments on mobile viewports. ChangesEmail template padding and responsive layout refactor
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cff55d4 to
8cd1e63
Compare
## What Routes the app's transactional email through SendGrid's **EU data residency** region so recipient PII and email content stay in EU data centers (GDPR). - Adds `SENDGRID_REGION` setting (`EmailSettings`), default `"eu"`. - `email.py` calls `set_sendgrid_data_residency(region)` before sending, switching the client host to `api.eu.sendgrid.com` when region != `global`. - Documents `SENDGRID_REGION` in `server/.env.sample`. ## Why dembrane is moving email to EU residency. An EU regional subuser (`sameer-eu`, EU IP `159.183.46.124`) and the `dembrane.com` domain authentication (EU CNAMEs in Cloudflare) are already set up. This wires the **app sender** (`email.py` → SendGrid HTTP API) to use it. Verified: a live test send via `api.eu.sendgrid.com` with the EU subuser key returns `202`, and the residency call flips the client host correctly. ## Requires (infra, not in this PR) 1. `SENDGRID_API_KEY` must be set to the **EU regional subuser** key (restricted Mail Send) in the `echo-api` + `echo-worker` sealed secrets. A global-account key won't be EU-resident even on the EU host. 2. **Separate path:** the `echo-directus` container sends its own emails via SMTP. To make those EU-resident too, set `EMAIL_SMTP_HOST=smtp.eu.sendgrid.net` and `EMAIL_SMTP_PASSWORD=<EU subuser key>` on that deployment. ## Scope note This is backend/infra email routing. It is **not** related to the email-template mobile-layout work in #608 / ECHO-832, despite both touching "email". 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added SendGrid data residency region configuration option to enable EU-compliant email delivery, with EU region set as the default. * Introduced environment variable support for customizing the configured email routing region. * Enhanced configuration documentation with EU data residency requirements and guidance on how regional routing affects recipient data handling. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
What this changes
Confidence: high. Standard email layout practice is to place padding on cells (
<td>) instead of the container<table>, which avoids WebKit viewport calculation bugs on responsive tables. Tested locally via inspection of the HTML layout tree.Refs: Slack message C0884QPQF6W-1780501376.541469
Summary by CodeRabbit