-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feature/profiler #26
Feature/profiler #26
Conversation
✅ Deploy Preview for cosmic-bubblegum-aa631a ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
A few minor suggestions :)
Also looks like there are a few CI failures.
hi @andyexeter, |
Hi @andyexeter, for the profiler I need to update the vite-bundle flex recipe : https://github.com/lhapaipai/recipes-contrib/tree/update/vite-bundle-7 Is there anything you would like to change in the current recipe? |
I @andyexeter, if you have time to review the feature, you're welcome :-), else no problem. I'm not too sure how to push the functionality into production. updating without applying the patch:
crashes the debug bar which causes a not very pleasant developer experience but at the same time that's what major updates are for. so I don't know if I should wait for the recipe to be merged before activating the functionality in the debug bar {# src/vite-bundle/src/Resources/views/Collector/vite_collector.html.twig #}
{% extends "@WebProfiler/Profiler/layout.html.twig" %}
{% block toolbar %}
{% set icon %}
{{ include('@PentatrionVite/Collector/icon.svg') }}
<span class="sf-toolbar-value">Vite</span>
{% endset %}
{% set text %}
- <div class="sf-toolbar-info-piece">
- <b>Vite dev Server</b>
- <span>
- <a href="{{ path('_profiler_vite') }}">Config</a>
- </span>
- </div>
<div class="sf-toolbar-info-piece">
<b>Rendered <script /></b>
<span class="sf-toolbar-status">{{ collector.renderedScripts | length }}</span>
</div>
<div class="sf-toolbar-info-piece">
<b>Rendered <link /></b>
<span class="sf-toolbar-status">{{ collector.renderedStyles | length }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }}
{% endblock %} what do you think ? EDIT: |
Hi @lhapaipai I have been away on holiday last week. I will try to look at this this week :) |
no problem, we do this when we have time, there is no rush 😄 |
- spelling correction
Update assets.md
Hi @andyexeter, |
Hi @lhapaipai, This looks good to me. Only thing I'd like to query is whether the profiler can be added to Symfony's profiler instead: https://symfony.com/doc/current/profiler.html#profiler-data-collector That way, we wouldn't need our own controller or route and wouldn't need people to modify their routing config to access the profiler. |
hi @andyexeter symfony console debug:router
----------------------------- -------- -------- ------ -----------------------------------
Name Method Scheme Host Path
----------------------------- -------- -------- ------ -----------------------------------
_preview_error ANY ANY ANY /_error/{code}.{_format}
pentatrion_vite_build_proxy ANY ANY ANY /build/{path}
_profiler_vite ANY ANY ANY /_profiler/vite
_wdt ANY ANY ANY /_wdt/{token}
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_xdebug ANY ANY ANY /_profiler/xdebug
_profiler_font ANY ANY ANY /_profiler/font/{fontName}.woff2
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler_open_file ANY ANY ANY /_profiler/open
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
welcome ANY ANY ANY / the screenshot is associated to use case
solution
what do you think? would you have another idea in mind? |
@lhapaipai I see what you mean now. Let's leave it as is. LGTM 👍 |
Migration guide:
Remove the
./config/routes/dev/pentatrion_vite.yaml
fileadd the
./config/routes/pentatrion_vite.yaml
file :