Skip to content

[BootstrapAdminUi][Docs] Complete the AssetMapper setup of the admin panel - #402

Draft
loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:docs/asset-mapper-improvements
Draft

loic425 wants to merge 1 commit into
Sylius:mainfrom
loic425:docs/asset-mapper-improvements

Conversation

@loic425

@loic425 loic425 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fills the gaps found while moving a Bootstrap Admin UI (0.14) admin panel from Webpack to AssetMapper.

Bundle

  • Exposes the copy-to-clipboard and theme-switcher Stimulus controllers to AssetMapper (assets/package.json + asset_mapper.paths), so they can be enabled from assets/controllers.json. Without them, the copy buttons and the navbar theme switcher silently do nothing once symfony_ux is disabled.

Docs

  • Document assets/controllers.json, the assets/controllers/ directory and importmap:require @symfony/stimulus-bundle.
  • Load the importmap in sylius_admin.base#stylesheets to avoid a FOUC.
  • Add an "Assets" page to the Bootstrap Admin UI docs, with a workaround for older versions.

@loic425
loic425 force-pushed the docs/asset-mapper-improvements branch 2 times, most recently from 46e9342 to a0af595 Compare November 4, 2026 14:55
…panel

- Expose the copy-to-clipboard and theme-switcher Stimulus controllers to AssetMapper, so they can be enabled from assets/controllers.json
- Document the assets/controllers.json file and the assets/controllers/ directory required by StimulusBundle
- Load the importmap in the stylesheets hook to avoid a flash of unstyled content
- Add an Assets page to the Bootstrap Admin UI documentation
@loic425
loic425 force-pushed the docs/asset-mapper-improvements branch from a0af595 to fd8b8cd Compare November 4, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant