Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WebProfilerBundle] Mailer panel tweaks #48997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

javiereguiluz
Copy link
Member

@javiereguiluz javiereguiluz commented Jan 16, 2023

Q A
Branch? 6.3
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Note: it looks like this PR changes lots of lines, but it just reorders some HTML contents and changes some indentations, so the real changes are minimal

Currently, the email details only shows the bodies defined in the email. E.g. if some email has a text body and not an HTML body, you see this:

mailer-panel-before

I think this doesn't look nice. I think it's better to always display text content + HTML content and display a message if some of them (or both) are empty.

This is how it'd look after this PR:

Email with text and HTML bodies

text-and-html

Email with text body and no HTML body

text-but-no-html

If you click on HTML tab:

text-but-no-html-empty-body

Email with HTML body and no text body

html-but-no-text

Email without text and HTML bodies

no-text-no-html

@fabpot
Copy link
Member

fabpot commented Jan 19, 2023

Thank you @javiereguiluz.

@fabpot fabpot merged commit d29623d into symfony:6.3 Jan 19, 2023
@javiereguiluz javiereguiluz deleted the profiler_mailer branch January 19, 2023 19:21
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants