Repository navigation
upgrade file - #262
Merged
Merged
upgrade file#262
Conversation
Contributor
Reviewer's GuideUPGRADE.md was rewritten as a comprehensive newest-first guide covering every version line from 10.0 to 19.2, correcting release attribution and documenting version-specific migration steps, while also translating and preserving the legacy-project migration guidance in English. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 3 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="UPGRADE.md" line_range="144-145" />
<code_context>
+ `$menu-active-color`, plus their `-dark` variants.
+- **`symfony/ux-toggle-password` removed.** The bundle ships its own `TogglePasswordTypeExtension`, on by default for
+ every password field. Remove the UX package and its importmap/`controllers.json` entry, and register the bundle's
+ controller: importmap `sumocoders/TogglePassword` pointing to `controllers/toggle_password_controller.js`, and
+ `app.register('toggle-password', TogglePassword)`.
+- Navigation is now an offcanvas. The user menu, the theme toggler and the new language toggler live in it.
+- The `logo_image` block moved from `navigation.html.twig` to `base.html.twig`, and there are new blocks
</code_context>
<issue_to_address>
**Password controls stop working**
When a project follows the 15.0 instructions without importing `TogglePassword`, `app.register('toggle-password', TogglePassword)` evaluates an undeclared identifier, so the Stimulus bootstrap throws and password visibility controls stop working.
Import `TogglePassword` from the registered controller module in the bootstrap file before calling `app.register`.
Also at `UPGRADE.md:146`.
</issue_to_address>
### Comment 2
<location path="UPGRADE.md" line_range="137-139" />
<code_context>
+Layout and dark-mode rework.
+
+- **`style-dark.scss` removed**, together with `themes/_dark.scss`, `_bootstrap-colors.scss` and `dark/*`. Dark mode
+ now uses Bootstrap color modes: `_bootstrap-variables-dark.scss` and `@include color-mode(dark)`. Move project dark
+ overrides into the main stylesheet and remove the second stylesheet `<link>`. To turn dark mode off, set
+ `$enable-dark-mode: false`.
+- New SCSS variables for the menu and top bar: `$top-color`, `$menu-bg`, `$menu-color`, `$menu-active-bg`,
+ `$menu-active-color`, plus their `-dark` variants.
</code_context>
<issue_to_address>
**Dark stylesheet breaks Sass builds**
When an upgrading project still has the old dark stylesheet entry in its Sass configuration, a stale `style-dark.scss` entry in `config/packages/symfonycasts_sass.yaml` makes `sass:build` resolve the removed stylesheet and fail, blocking the upgrade build.
Tell readers to remove the `style-dark` entry from `config/packages/symfonycasts_sass.yaml` along with the stylesheet link.
</issue_to_address>
### Comment 3
<location path="UPGRADE.md" line_range="227" />
<code_context>
+ form-collection, password-strength-checker, popover, scroll-to-top, sidebar-collapsable, tabs, theme, toast,
+ tooltip) and the helpers `js/toast.js` (`sumocoders/addToast`), `js/cookie.js` and `js/debounce.js`. Removed:
+ SelectSearch, Popover.js, Tooltip.js, Theme.js, Flash.js, Form.js, and the goback and scrolling JS. Markup using
+ `data-role=...` hooks must switch to `data-controller`.
+- Add `vendor/sumocoders/framework-core-bundle/assets-public/` to the asset_mapper paths. Each controller is added with
+ `symfony console importmap:require sumocoders/<Name> --path "./vendor/sumocoders/framework-core-bundle/assets-public/<path>"`
</code_context>
<issue_to_address>
**Form collections stop recognizing items**
When a project applies the data-role migration instruction to form-collection child hooks, when a project replaces collection child hooks as instructed, `FormCollectionController` still queries `[data-role="collection-item"]` and `[data-role="collection-item-change-order"]`; it then misses the items and drag handles, breaking collection add, delete, and sorting behavior.
Clarify that only legacy controller-entry hooks should migrate, and that data-role attributes queried by the current Stimulus controllers must remain.
</issue_to_address>Sourcery assessment
Approval pending. 3 findings to address first.
Blocking findings: UPGRADE.md:145, UPGRADE.md:139, UPGRADE.md:227
tijsverkoyen
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UPGRADE.mdonly had notes for 19.2 and a mislabelled "18.1" section. It now has a section per version line from 10.0 to 19.2, newest first, with patch releases folded into their line.#e1e1e1) moved to 19.0: there is no 18.1 tag and it shipped in 19.0.1. Added the AssetMapper font path step it needs.composer.jsondiffs and spot-checked code diffs. Biggest actions: 11.0 (Encore → AssetMapper), 14.0 (CSP config → NelmioSecurityBundle, FOS JS routing removed, async mail), 15.0 (style-dark.scssandux-toggle-passwordremoved), 16.0 (Bootstrap Icons), 18.0 (MatchAgainstremoved, typed constants).Not reviewed line by line: every template and SCSS change in 11.0 and 15.0, so a missing step is most likely there.
Summary by Sourcery
Bring UPGRADE.md up to date with comprehensive release-by-release guidance and translated legacy migration documentation.
Enhancements:
Documentation: