zulip/zerver/tests/fixtures
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
..
apple tests: Rename APPLE_JWK to a generic name for re-use in other tests. 2021-05-23 13:30:17 -07:00
email emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
import_fixtures
ldap tests: Update tests to use example profile picture. 2022-10-31 14:36:54 -07:00
mattermost_fixtures data_import: Add import attachments support for Mattermost. 2021-07-02 11:19:45 -07:00
rocketchat_fixtures data_import: Ignore Rocket.Chat livechat streams/messages. 2021-11-07 09:50:55 -08:00
saml saml: Implement IdP-initated logout for Keycloak. 2021-10-27 13:13:55 -07:00
slack_fixtures import: Add the UTF-8 flag on file entries in zipfiles from Slack. 2023-01-31 16:07:48 -08:00
.gitignore
authors.json team: Rename contrib to contributors in page_params. 2020-07-23 10:22:28 -07:00
config.generate_data.json docs: Correct more “webapp” to “web app”. 2022-09-08 20:23:28 -07:00
csp_report.json
example_jwk tests: Rename APPLE_JWK to a generic name for re-use in other tests. 2021-05-23 13:30:17 -07:00
gitter_data.json gitter: Soft deactivate appropriate imported users. 2022-08-29 11:03:27 -07:00
markdown_test_cases.json Fix typos caught by typos. 2023-01-03 11:09:50 -08:00
narrow.json resolve topic: Add `is:resolved` search keyword/filtering support. 2021-07-13 23:18:41 -07:00
slack_message_conversion.json
user_agents_unique