-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle] Improve profiler’s authenticators tab #57525
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
d0ecca2
to
002a527
Compare
002a527
to
80b1ae1
Compare
The duration and laziness info feel less readable/structured to me. Looks good apart from that |
80b1ae1
to
77872ba
Compare
Pushed previously mentioned iteration with small modifications. Updated the PR description accordingly. |
77872ba
to
771450c
Compare
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.
Thanks, I like it. Maybe the lazy
info could be a flag instead of yes/no
as done elsewhere. Pinging @javiereguiluz in case you can help making this even better.
Yay 😀 By “flag”, do you mean “icon”? |
Makes sense 👍 |
40ab8d0
to
619d8e4
Compare
619d8e4
to
a8075d4
Compare
Thank you @MatTheCat. |
…oggles (MatTheCat) This PR was merged into the 6.4 branch. Discussion ---------- [WebProfilerBundle] Fix event delegation on links inside toggles | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT In #57525, the security panel’s authenticator tab got updated with dumps in toggles. Issue is, we currently call `stopPropagation` when link are clicked to avoid closing the toggle, but dumps handle links click using event delegation. That means when you click on a `sf-dump-toggle`, the event cannot reach the `sf-dump` because its propagation is stopped. This PR handles this case by checking if a link is present in the DOM between the toggle and the element which was clicked. It also leverages the `currentTarget` property to get the clicked toggle. Commits ------- 241597d [WebProfilerBundle] Fix event delegation on links inside toggles
This PR adds two new pieces of data to the profiler’s security panel’s authenticators tab: their “laziness” (if their
supports
method returnednull
) and the exception passed to theironAuthenticationFailure
method.It also redesigns the table because displaying every possible column leads to a lot of wasted space and decreases legibility:
(You can see the table overflowing its container and the screen.)
Instead, I took inspiration from the messenger panel and
authenticate
method was calledThis will also make easier to add data if needed.