René's URL Explorer Experiment


Title: [BootstrapAdminUi] Add custom stimulus controller · Issue #200 · Sylius/Stack · GitHub

Open Graph Title: [BootstrapAdminUi] Add custom stimulus controller · Issue #200 · Sylius/Stack

X Title: [BootstrapAdminUi] Add custom stimulus controller · Issue #200 · Sylius/Stack

Description: Description When using the BootstrapAdminUi bundle out of the box, it is a nice DX to not have to install and configure Symfony Stimulus Bundle and care that it exists at all. At some point, when needed to add custom Stimulus controllers...

Open Graph Description: Description When using the BootstrapAdminUi bundle out of the box, it is a nice DX to not have to install and configure Symfony Stimulus Bundle and care that it exists at all. At some point, when n...

X Description: Description When using the BootstrapAdminUi bundle out of the box, it is a nice DX to not have to install and configure Symfony Stimulus Bundle and care that it exists at all. At some point, when n...

Opengraph URL: https://github.com/Sylius/Stack/issues/200

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BootstrapAdminUi] Add custom stimulus controller","articleBody":"### Description\r\n\r\nWhen using the BootstrapAdminUi bundle out of the box, it is a nice DX to not have to install and configure [Symfony Stimulus Bundle](https://symfony.com/bundles/StimulusBundle/current/index.html) and care that it exists at all.\r\n\r\nAt some point, when needed to add custom Stimulus controllers, we tried with what it seems a \"standard Symfony way\" by adding [Symfony Stimulus Bundle](https://symfony.com/bundles/StimulusBundle/current/index.html).\r\nFor completeness, we chose [AssetMapper](https://symfony.com/doc/current/frontend/asset_mapper.html) to handle assets.\r\n\r\nConsequences are there are two started Stimulus apps: [one by BootstrapAdminUi ](https://github.com/Sylius/Stack/blob/8fcb13f517662e7aa0cb24453dcd2e721a4af0eb/src/BootstrapAdminUi/assets/app.js) and the other is the custom one with Stimulus Bundle.\r\nSo all requests made by [live components](https://symfony.com/bundles/ux-live-component/current/index.html) are made twice.\r\n\r\n### Additional context\r\n\r\nBy overriding the template of the `sylius_admin.base#javascripts` hook, we may avoid the load of the asset `bundles/syliusbootstrapadminui/app.js`.\r\nIt avoids the start of the Stimulus app by BootstrapAdminUi but other features like the ones provided by https://github.com/Sylius/Stack/tree/8fcb13f517662e7aa0cb24453dcd2e721a4af0eb/src/BootstrapAdminUi/assets/scripts are broken.\r\n\r\n### How to reproduce\r\n\r\n* Follow https://stack.sylius.com/getting-started.\r\n* Install [Symfony Stimulus Bundle](https://symfony.com/bundles/StimulusBundle/current/index.html)\r\n* Go on an admin page where there is a live component.\r\n* Trigger an action (either live action or update a model or emit an event etc..)\r\n* Check the number of AJAX requests with the [profiler](https://symfony.com/doc/current/profiler.html)\r\n\r\n### Possible solutions\r\n\r\nBefore proposing a patch, I'd like to have feedback on how to address this.\r\nMaybe I missed something somewhere 🤔 \r\n\r\n* BootstrapAdminUi may stop starting a Stimulus app.\r\nIt will imply that users will have to do it themselves like with Stimulus Bundle.\r\nIt seems fairly simple for a user to do it. In another hand it increases the number of dependencies a user have to handle.\r\n\r\n* BootstrapAdminUi may propose a way to allow users to chose if it should start a Stimulus app or not.\r\nIt may increase the complexity of maintenance of BootstrapAdminUi.\r\nIt will keep the nice DX allowing people to not care about the Stimulus part if they don't need to.\r\n\r\n* BootstrapAdminUi may propose to reuse it's started Stimulus app in order to register custom controllers with it.\r\nUsers won't be able to use the default behavior of the Stimulus Bundle which register the controllers automagically.\r\nOthers \"admin UI theme\" may chose to do the same to ease life of users.","author":{"url":"https://github.com/brambaud","@type":"Person","name":"brambaud"},"datePublished":"2024-12-31T10:56:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/200/Stack/issues/200"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6aacd8a3-471b-5f4e-9aa4-5ea2e70fd777
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCC8:ABFE0:B9CFA8:FEEED8:6992E5E8
html-safe-nonce77ec39ec0ec312778bca9268dba056edc746dd8c6e3ce905d34c62bf7fb09fbc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0M4OkFCRkUwOkI5Q0ZBODpGRUVFRDg6Njk5MkU1RTgiLCJ2aXNpdG9yX2lkIjoiNTI2OTE1MjU4NzMwMzgwNjQ0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9fe8cead1d92f1622b0932011b2b747b0c9efc4175d78ad45cf0c9bc9c2d985a
hovercard-subject-tagissue:2764244292
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Sylius/Stack/200/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6002057fe7890a37e3a196324483992a4f2675a67f289facab1300b639c50db1/Sylius/Stack/issues/200
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6002057fe7890a37e3a196324483992a4f2675a67f289facab1300b639c50db1/Sylius/Stack/issues/200
og:image:altDescription When using the BootstrapAdminUi bundle out of the box, it is a nice DX to not have to install and configure Symfony Stimulus Bundle and care that it exists at all. At some point, when n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrambaud
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/Sylius/Stack git https://github.com/Sylius/Stack.git
octolytics-dimension-user_id719423
octolytics-dimension-user_loginSylius
octolytics-dimension-repository_id434184460
octolytics-dimension-repository_nwoSylius/Stack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id434184460
octolytics-dimension-repository_network_root_nwoSylius/Stack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84dcb133269e3cfe6e0296cc85fbacb92cae92bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Sylius/Stack/issues/200#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSylius%2FStack%2Fissues%2F200
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSylius%2FStack%2Fissues%2F200
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Sylius%2FStack
Reloadhttps://patch-diff.githubusercontent.com/Sylius/Stack/issues/200
Reloadhttps://patch-diff.githubusercontent.com/Sylius/Stack/issues/200
Reloadhttps://patch-diff.githubusercontent.com/Sylius/Stack/issues/200
Sylius https://patch-diff.githubusercontent.com/Sylius
Stackhttps://patch-diff.githubusercontent.com/Sylius/Stack
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSylius%2FStack
Fork 31 https://patch-diff.githubusercontent.com/login?return_to=%2FSylius%2FStack
Star 43 https://patch-diff.githubusercontent.com/login?return_to=%2FSylius%2FStack
Code https://patch-diff.githubusercontent.com/Sylius/Stack
Issues 19 https://patch-diff.githubusercontent.com/Sylius/Stack/issues
Pull requests 22 https://patch-diff.githubusercontent.com/Sylius/Stack/pulls
Actions https://patch-diff.githubusercontent.com/Sylius/Stack/actions
Projects 0 https://patch-diff.githubusercontent.com/Sylius/Stack/projects
Security 0 https://patch-diff.githubusercontent.com/Sylius/Stack/security
Insights https://patch-diff.githubusercontent.com/Sylius/Stack/pulse
Code https://patch-diff.githubusercontent.com/Sylius/Stack
Issues https://patch-diff.githubusercontent.com/Sylius/Stack/issues
Pull requests https://patch-diff.githubusercontent.com/Sylius/Stack/pulls
Actions https://patch-diff.githubusercontent.com/Sylius/Stack/actions
Projects https://patch-diff.githubusercontent.com/Sylius/Stack/projects
Security https://patch-diff.githubusercontent.com/Sylius/Stack/security
Insights https://patch-diff.githubusercontent.com/Sylius/Stack/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Sylius/Stack/issues/200
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Sylius/Stack/issues/200
[BootstrapAdminUi] Add custom stimulus controllerhttps://patch-diff.githubusercontent.com/Sylius/Stack/issues/200#top
bugSomething isn't workinghttps://github.com/Sylius/Stack/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/brambaud
https://github.com/brambaud
brambaudhttps://github.com/brambaud
on Dec 31, 2024https://github.com/Sylius/Stack/issues/200#issue-2764244292
Symfony Stimulus Bundlehttps://symfony.com/bundles/StimulusBundle/current/index.html
Symfony Stimulus Bundlehttps://symfony.com/bundles/StimulusBundle/current/index.html
AssetMapperhttps://symfony.com/doc/current/frontend/asset_mapper.html
one by BootstrapAdminUi https://github.com/Sylius/Stack/blob/8fcb13f517662e7aa0cb24453dcd2e721a4af0eb/src/BootstrapAdminUi/assets/app.js
live componentshttps://symfony.com/bundles/ux-live-component/current/index.html
https://github.com/Sylius/Stack/tree/8fcb13f517662e7aa0cb24453dcd2e721a4af0eb/src/BootstrapAdminUi/assets/scriptshttps://github.com/Sylius/Stack/tree/8fcb13f517662e7aa0cb24453dcd2e721a4af0eb/src/BootstrapAdminUi/assets/scripts
https://stack.sylius.com/getting-startedhttps://stack.sylius.com/getting-started
Symfony Stimulus Bundlehttps://symfony.com/bundles/StimulusBundle/current/index.html
profilerhttps://symfony.com/doc/current/profiler.html
bugSomething isn't workinghttps://github.com/Sylius/Stack/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.