Repository navigation
Add theme-level Encore entries and inheritable activation - #41
Merged
Merged
Conversation
koertho
marked this pull request as ready for review
November 16, 2026 15:31
koertho
force-pushed
the
feature/theme-entries
branch
from
November 16, 2026 16:04
baa9914 to
16f0cda
Compare
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.
Theme-wide Encore entries can now be selected once and inherited by every layout of that theme. Layout and page selections can disable or reactivate inherited entries. Theme selections have no per-entry activation checkbox.
Themes control Encore activation with a checkbox; layouts offer Inherit / Enable / Disable. New layouts inherit, while a repeatable Contao migration preserves existing explicit activation choices. Frontend rendering and backend warnings resolve the same activation setting. Upgrade instructions document the changed layout values and migration.
Validation:
SYMFONY_DEPRECATIONS_HELPER=max[total]=0).External review completed with Claude Opus 5.5 / high via the globally installed CLI. Both validated P3 findings were fixed with regression tests: explicit custom labels now survive later language loading, and custom layout entry fields remain independent of default theme entries. All checks were rerun after the fixes. See .docs/theme-entries-review.md and the full Claude review.
Rebased onto v2
8a18470(#42). The new PHP 8.2 / Contao 5.3 minimums, CI configuration and upstream tests are preserved. Changelog and overlapping test conflicts were resolved; no additional changes to the theme production logic were necessary. All validation listed above was rerun after the rebase.Backend visibility: theme entries are shown only when its Encore checkbox is on. Layout entry and import-template fields are shown for explicit activation or inheritance from an enabled theme. Selector changes refresh immediately, including bulk editing; hidden selections are retained. Native palette-resolution regression tests cover both Contao 5.3 and 5.7. Follow-up Claude Opus 5.5/high review reported no actionable findings.