-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX] [TwigBundle] Enhance the new exception page design #22439
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
Conversation
Wait, I found that the problem with wrapping long lines shown here: #20951 (comment) still happens. |
Wrapping is fixed in the new commit. |
Personally, I preferred the less dense "double line" of the original. |
@robfrawley, do you think that with single line spacing the code is harder to read? |
👎 on that one as it then dominates the average developer's screen completely. And you can just middle/right click the filename above the snippet to see the full scrollable context if you really need it. Totally down with bringing the line spacing down though, just tried it and yes it reads more like actual code. And it does give room to increase the context to 5 without sacrificing call stack. |
7c794b0
to
c2225c4
Compare
Rebased to the current master to rerun Travis CI. |
I'm sorry I didn't review this on time for 3.3.0 ... I even thought this was merged! There are some things that I'm not sure about ... but others that I like. Tomorrow I'll add more details. Thanks! |
@apfelbox IMO, this is overkill. You have access to the full file anyway if you want. |
@sustmi can you rebase this on top of the Symfony 3.4 branch to fix conflicts ? |
As I said in #22971 (comment), I'd love to see this merged in 3.3 as a bug fix rather than in 3.4. There is no DX nor feature to me, just UI/UX improvements and fixes for minor but annoying behavior issues. :) |
@sustmi would you mind rebasing please? |
I second the 3.3.1 vote. It's not a feature, just an improvement on 3.3-introduced behavior. DX/UX improvements have always been allowed in patch releases, no reason to postpone it. |
c2225c4
to
6850170
Compare
I rebased the PR to 3.4 as @stof adviced. Is that all right? |
It was necessary to remove table layout and replace it with DIVs and SPANs because it was messing with width calculations.
6850170
to
0173d22
Compare
I just noticed the discussion in #22971 (comment) so I guess you actually wanted me to rebase it to 3.3. |
You also need to change the target to 3.3. |
Oh, thanks for the notice. Done. |
@javiereguiluz Is it ready to merge or do you need more time to review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sustmi. |
…ustmi) This PR was squashed before being merged into the 3.3 branch (closes #22439). Discussion ---------- [DX] [TwigBundle] Enhance the new exception page design | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - - [x] Fix the problem with wrapping wide lines (#20951 (comment)) I got motivated by recent PR #20951 and redesigned the exception page even more. Compare before:  with after:  (Ignore the the "sf" toolbar icon in the middle of the page. This is how Firefox does full-page screenshots.) The most noticeable changes: - removed double line spacing (it just does not feel natural) - file context increased from 3 to 10 lines (it helps me to better orientate in the code) - added horizontal scrollbar for the cases when the code is wider - the highlighted line color is more saturated in order to be noticed easily Commits ------- 43212b9 [DX] [TwigBundle] Enhance the new exception page design
I got motivated by recent PR #20951 and redesigned the exception page even more.
Compare before:

with after:
(Ignore the the "sf" toolbar icon in the middle of the page. This is how Firefox does full-page screenshots.)
The most noticeable changes: