Skip to content
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

Update Profiler UI for Symfony 6.2+. #1607

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

nickygerritsen
Copy link
Contributor

@nickygerritsen nickygerritsen commented Jan 5, 2023

This is based on the closed PR #1558, but only does two changes:

  • It updates the icon in 6.2+.
  • It adds the metric groups.

I will do a separate PR to add the tabs.

Screenshot on 6.1:
image

And on 6.2:
image

@ostrolucky ostrolucky changed the base branch from 2.8.x to 2.9.x January 5, 2023 18:56
@ostrolucky ostrolucky added this to the 2.9.0 milestone Jan 5, 2023
@ostrolucky ostrolucky changed the base branch from 2.9.x to 2.8.x January 5, 2023 19:00
@ostrolucky ostrolucky changed the base branch from 2.8.x to 2.9.x January 5, 2023 19:00
@nickygerritsen
Copy link
Contributor Author

Not sure why the test fails btw. If I add $twigLoaderFilesystem->addPath(__DIR__ . '/../Resources/views', 'Doctrine'); to the setUp method it works, but we already load other resources in the twig...?

Resources/views/Collector/db.html.twig Outdated Show resolved Hide resolved
Resources/views/Collector/db.html.twig Outdated Show resolved Hide resolved
Resources/views/Collector/db.html.twig Outdated Show resolved Hide resolved
Resources/views/Collector/db.html.twig Show resolved Hide resolved
Resources/views/Collector/db.html.twig Outdated Show resolved Hide resolved
Resources/views/Collector/db.html.twig Outdated Show resolved Hide resolved
@nickygerritsen
Copy link
Contributor Author

I changed the PR quite a bit and only updated the icon and added the metric groups. Once this is merged we can work from there to add the tabs for the different things.

I also didn't drop any metrics or changed any order anymore.

<span class="value">{{ collector.invalidEntityCount }}</span>
<span class="label">Invalid entities</span>
</div>
<div class="metric-group">
Copy link
Member

Choose a reason for hiding this comment

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

What are these for? Is it so that it stretches to full width?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It “groups” the metrics. Look at the screenshots: in 6.1 it is 4 blocks, in 6.2 it is 4 parts of a bigger block. Without it, there would be whitespace between the blocks

@ostrolucky ostrolucky merged commit 69d80b4 into doctrine:2.9.x Jan 5, 2023
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.

None yet

2 participants