Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[WebProfilerBundle] Tweak the colors of the security panel #44115

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
Nov 18, 2021

Conversation

javiereguiluz
Copy link
Member

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

In 5.4, by default the Security panel in the toolbar displays a yellow background when there's no security:

toolbar-before

I think this shouldn't be the case because a yellow background means: "Hey, look here because there's something you probably need to fix" But, it's OK if certain pages don't have any security, so there's no issue to fix.

After this PR, this is how it looks:

toolbar-after

@javiereguiluz javiereguiluz added this to the 5.4 milestone Nov 17, 2021
@carsonbot carsonbot changed the title [Profiler] Tweak the colors of the security panel [WebProfilerBundle] Tweak the colors of the security panel Nov 17, 2021
@noniagriconomie
Copy link
Contributor

@javiereguiluz Hello, I remembered a discussion ago on this kind of subject here:

+1 to remove the color if no security is involved in this profile :)

@stof
Copy link
Member

stof commented Nov 18, 2021

the color for the toolbar info seems to be kept as is, using the removed variable.

{% set color_code = '' %}
{% endif %}

{% set is_authenticated = collector.enabled and collector.authenticated %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this variable is used only in the {% if collector.enabled and collector.token %} condition of the text, maybe the usage can be changed to collector.authenticated instead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some changes ... but I'm not sure if it's what you were asking for.

@fabpot
Copy link
Member

fabpot commented Nov 18, 2021

Thank you @javiereguiluz.

@fabpot fabpot merged commit 6d76dfe into symfony:5.4 Nov 18, 2021
This was referenced Nov 18, 2021
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.