Skip to content

Add theme-level Encore entries and inheritable activation - #41

Merged
koertho merged 7 commits into
v2from
feature/theme-entries
Nov 17, 2026
Merged

koertho merged 7 commits into
v2from
feature/theme-entries

Conversation

@koertho

@koertho koertho commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • 110 tests / 397 assertions pass on Contao 5.3.54 with PHP 8.2, 8.3, 8.4 and 8.5, and Contao 5.7.17 with PHP 8.5.
  • Every run uses strict deprecation handling (SYMFONY_DEPRECATIONS_HELPER=max[total]=0).
  • Real Encore renderer tests cover classic placeholders and modern lazy output; the migration runs against a real SQLite database.
  • PHPStan, ECS and Composer validation pass.
  • Self-review completed; findings concerning translation precedence, BLOB capacity and deprecated palette exceptions were addressed.

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.

@koertho
koertho marked this pull request as ready for review November 16, 2026 15:31
@koertho
koertho force-pushed the feature/theme-entries branch from baa9914 to 16f0cda Compare November 16, 2026 16:04
@koertho
koertho merged commit b41e146 into v2 Nov 17, 2026
8 checks passed
@koertho
koertho deleted the feature/theme-entries branch November 17, 2026 13:13
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