zulip/tools/lib
Daniil Fadeev 2f203f4de1 emails: Inline CSS in emails in build_email.
Previously, we had an architecture where CSS inlining for emails was
done at provision time in inline_email_css.py. This was necessary
because the library we were using for this, Premailer, was extremely
slow, and doing the inlining for every outgoing email would have been
prohibitively expensive.

Now that we've migrated to a more modern library that inlines the
small amount of CSS we have into emails nearly instantly, we are able
to remove the complex architecture built to work around Premailer
being slow and just do the CSS inlining as the final step in sending
each individual email.

This has several significant benefits:

* Removes a fiddly provisioning step that made the edit/refresh cycle
  for modifying email templates confusing; there's no longer a CSS
  inlining step that, if you forget to do it, results in your testing a
  stale variant of the email templates.
* Fixes internationalization problems related to translators working
  with pre-CSS-inlined emails, and then Django trying to apply the
  translators to the post-CSS-inlined version.
* Makes the send_custom_email pipeline simpler and easier to improve.

Signed-off-by: Daniil Fadeev <fadeevd@zulip.com>
2023-04-05 12:22:29 -07:00
..
__init__.py
capitalization.py sentry: Provide a server-side tunnel. 2023-03-24 15:16:38 -07:00
git-tools.bash lint: Add .bash extension for tools/lib/git-tools.bash. 2021-06-25 09:01:13 -07:00
gitlint_rules.py gitlint-rules: Rename to gitlint_rules. 2023-03-03 18:02:38 -08:00
html_branches.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
pretty_print.py ruff: Fix SIM201 Use `… != …` instead of `not … == …`. 2023-01-23 11:18:36 -08:00
provision.py dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
provision_inner.py emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
sanity_check.py sanity_check: Improve output for manual installation. 2021-04-01 10:54:56 -07:00
template_parser.py ruff: Fix SIM102 nested `if` statements. 2023-01-23 11:18:36 -08:00
test_script.py dependencies: Upgrade JavaScript dependencies. 2022-12-07 09:55:05 -08:00
test_server.py run-dev: Drop .py from script name. 2023-03-03 18:02:37 -08:00