Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[WebProfilerBundle] Update the mailer panel#47643
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stof commentedSep 21, 2022
One thing that seems gone is showing which transport was used for each email (previously, it was shown in the tabs switching between emails) |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
stof commentedSep 21, 2022
@javiereguiluz can you share the before/after comparison for how the panel looks like with multiple transports ? |
javiereguiluz commentedSep 21, 2022
@stof thanks for the review. About the transport, to reduce the noise I thought it was a good idea to only display the transport if there's more than one transport. This is how it'd look like when showing the transport name: But thanks to your comment, I realized that maybe your app defines multiple transports, but this request only used one of them ... so you need the transport info somewhere. What about showing it like this: Do you know how long can be the transport name in practice? It's the full DNS or a human-friendly short name? Thanks! |
stof commentedSep 21, 2022
IIRC, it is the full DSN (minus the auth part) |
javiereguiluz commentedSep 21, 2022
ro0NL commentedSep 21, 2022
what about showing multiple emails inbox-like? eg. a list of subject and date. |
stof commentedSep 21, 2022
@ro0NL I doubt you will have web requests sending lots of emails (such case must be handled asynchronously). So it is better to optimize the experience for a few emails than for the case of a big list IMO. |
ro0NL commentedSep 21, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
im not sure how not seeing the subject improves the experience ... |
stof commentedSep 21, 2022
Well, if you want to display the subject instead of just |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedSep 21, 2022
I liked@ro0NL proposal, so I gave it a shot ... and I think it works better. It now shows a clickable list of messages to follow the familiar behavior of email clients: We also protect the design against too long lists: |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twigShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twigShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedSep 22, 2022
@stof I thought about what you said and I think you were right. That's why I've changed my mind and introduced some buttons in the table of emails to make it accessible. This is how it looks when using a browser with accessibility capabilities. In regular browsers, the buttons are completely hidden: So, I think this feature is now ready and complete. Thanks. |
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twigShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twigShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
fabpot commentedOct 1, 2022
Thank you@javiereguiluz. |







Related to#47148, this updates one of the panels which weren't updated in that other PR.
Before - 1 email sent
Before - Multiple emails sent
Before - Email attachments
After - 1 email sent
Comments:
After - Multiple emails sent
Comments:
After - MIME parts
Comments:
After - Raw message
Comments:
*.emlfile