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

Skip to content

Improving the Symfony Web Debug Toolbar and Profiler #15439

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

Closed
5 of 8 tasks
javiereguiluz opened this issue Aug 3, 2015 · 11 comments
Closed
5 of 8 tasks

Improving the Symfony Web Debug Toolbar and Profiler #15439

javiereguiluz opened this issue Aug 3, 2015 · 11 comments

Comments

@javiereguiluz
Copy link
Member

This is a meta-issue to list all the bugs and improvements related to the new Symfony toolbar and the new Symfony Profiler:

Toolbar

Bugs

Improvements

Profiler

Bugs

  • ...

Improvements

  • [ ] [Exception] Use a dark theme for code snippets (reuse the work done in [WIP][DX] Better exception page #12363)
  • [Logs] Use a pretty-JSON formatter for the log context. Make it expandable on click? Done in Improved the logger panel when the log context is very long #17852
  • [ ] [Security] Display the Roles as a list instead of inline JSON
  • [Logs] Highlight some messages if possible (we can highlight contents enclosed by quotes in regular messages and we can also highlight Doctrine queries)
  • [Mailer] Add a way to see the rendered HTML contents instead of the raw source code for HTML emails.
  • [Translation] Improve the Show params toggle
  • [ ] [General] Reconsider the colors used for the status banner. Now: 3xx HTTP = yellow, 4xx & 5xx = red, otherwise = green. Proposal: 3xx = green, 4xx = yellow, 5xx = red, otherwise = green
@linaori
Copy link
Contributor

linaori commented Aug 3, 2015

The ajax icon blinks till the request is over, personally I like this because you can see when it's still in progress of making the request. I think this is a nice feature and should remain as it is.

@derrabus
Copy link
Member

derrabus commented Aug 4, 2015

In Symfony 2.7, debug toolbar and profiler shared the same design concepts (textured curved elements). Now that the toolbar got its new flat layout, shouldn't the profiler be adjusted to this look as well? At least the menu on the left side?

@javiereguiluz
Copy link
Member Author

@derrabus absolutely! That is the next planned step. We're already in the sketch and mockup phase.

@derrabus
Copy link
Member

derrabus commented Aug 4, 2015

Awesome. :-)

@stof
Copy link
Member

stof commented Aug 4, 2015

@derrabus we decided to make it in 2 separate PRs to make things easier to review and manage

@gharlan
Copy link
Contributor

gharlan commented Aug 5, 2015

The ajax icon blinks till the request is over, personally I like this because you can see when it's still in progress of making the request. I think this is a nice feature and should remain as it is.

👍

@xabbuh
Copy link
Member

xabbuh commented Aug 5, 2015

I am also 👍 for keeping the blinking icon as an indicator.

@javiereguiluz javiereguiluz changed the title Improving the Symfony Web Debug Toolbar Improving the Symfony Web Debug Toolbar and Profiler Aug 13, 2015
@hason
Copy link
Contributor

hason commented Aug 13, 2015

I have prepared an update of #12363. I will send PR after merging of #15523.

@xabbuh
Copy link
Member

xabbuh commented Aug 17, 2015

@javiereguiluz If the icon blinks even when all requests have finished, then this seems to be bug to me too. I just don't think it should stop blinking after a fixed time even if there are still requests being executed.

@mayeco
Copy link
Contributor

mayeco commented Aug 18, 2015

👎 for keeping the blinking icon (all the time)... if you work with many ajax request like in a SPA you will never know when a request start or finished, is very bad :(

fabpot added a commit that referenced this issue Oct 1, 2015
This PR was squashed before being merged into the 2.8 branch (closes #16023).

Discussion
----------

Minor fixes for the profiler and toolbar

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | partially #15439
| License       | MIT
| Doc PR        | -

Changes:

  * Fixed a misaligned icon
  * Changed the priorities of the collectors to better control their position and to leave a "gap" between priorities so custom panels can be displayed between the default panels. This idea came from @stof.

By the way, @stof do you know how can I set the priority of the SwiftMailer collector? Its definition is the only one that doesn't use the `<tag name="data_collector" />`:

```xml
<service id="swiftmailer.data_collector" class="%swiftmailer.data_collector.class%">
    <argument type="service" id="service_container" />
</service>
```

https://github.com/symfony/swiftmailer-bundle/blob/master/Resources/config/swiftmailer.xml#L90-L92

Commits
-------

bff4098 Minor fixes for the profiler and toolbar
@javiereguiluz
Copy link
Member Author

Closing this because it's hard to work with "meta-issues" which last a long time. Most of the things listed originally have already been implemented. The others are either not essential or very hard to implement, so we'll deal with them in separate PRs. Thanks!

ostrolucky pushed a commit to ostrolucky/symfony that referenced this issue Mar 25, 2018
…iluz)

This PR was squashed before being merged into the 2.8 branch (closes symfony#16023).

Discussion
----------

Minor fixes for the profiler and toolbar

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | partially symfony#15439
| License       | MIT
| Doc PR        | -

Changes:

  * Fixed a misaligned icon
  * Changed the priorities of the collectors to better control their position and to leave a "gap" between priorities so custom panels can be displayed between the default panels. This idea came from @stof.

By the way, @stof do you know how can I set the priority of the SwiftMailer collector? Its definition is the only one that doesn't use the `<tag name="data_collector" />`:

```xml
<service id="swiftmailer.data_collector" class="%swiftmailer.data_collector.class%">
    <argument type="service" id="service_container" />
</service>
```

https://github.com/symfony/swiftmailer-bundle/blob/master/Resources/config/swiftmailer.xml#L90-L92

Commits
-------

bff4098 Minor fixes for the profiler and toolbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants