Skip to content

History of commits

4476 commits

refactor(consent): move the admin pages to Twig

The six admin templates of the module become @consent/admin/*.twig and the five controllers return ViewResponse. - the module's ckeditor wrapper is gone: the consent form includes the theme component - the per-field validation messages go through @theme/components/field-errors
simba77 7 აგვ 2026 22:13 Branch: 10.x 69155ce

refactor(news): move the admin pages to Twig

The seven admin templates of the module become @news/admin/*.twig and the three controllers return ViewResponse; the delete confirmation stays a fragment, since it is shown in a modal. - the SpecialChars cast is gone from NewsArticle and NewsSection: it escaped on read, and with autoescape a name carrying markup reached the page escaped twice. Every consumer of these fields is Twig now - the module's ckeditor wrapper is gone: the article form includes the theme component - the flash messages are no longer escaped in the controller
simba77 7 აგვ 2026 22:06 Branch: 10.x b62e112

refactor(collections): move the admin pages to Twig

The nine admin templates of the module become @collections/admin/*.twig and the four controllers return ViewResponse; system::pages/result becomes @admin/pages/result.twig. - the module's own ckeditor wrapper is gone: the item form includes the theme component - the delete confirmation is one template for collections, sections, fields and items, as it was
simba77 7 აგვ 2026 21:53 Branch: 10.x aec7b9a

refactor(view): merge the five ckeditor wrappers into one theme component

Every module that edits formatted text carried its own copy of the same wrapper, differing only in the field name and whether uploading is on. They become @theme/components/editor.twig, taking those as parameters. The plan called for this once a fourth copy appeared; there were five.
simba77 7 აგვ 2026 21:47 Branch: 10.x 17e6e79

refactor(admin): move the maintenance and system check pages to Twig

The last two pages of the panel become @admin/maintenance.twig and @admin/system-check.twig; both controllers return ViewResponse and drop the Render dependency. - the status labels and their badge classes were built in the template and now come from the controller with the rest of the row - a check description explains how to fix the check and one of them carries a link to the manual, so the controller hands it over as Twig\Markup - the three tables of the system check were copies and became a loop Only sidebar-admin-menu.phtml is left in modules/admin/templates: the admin parts of the other modules still render it through system::pages/result.
simba77 7 აგვ 2026 21:42 Branch: 10.x 743c90e

refactor(admin): move the login pages to Twig

The login screen and the verification code become @admin/login.twig and @admin/login-captcha.twig, extending the guest layout of the panel; the controller returns ViewResponse and drops the Render dependency. - the form reads $request->hasBody('login') instead of $_POST - the captcha field "remember" was rendered from an undefined variable and now arrives from the request KernelSmokeTest told the two areas apart by /themes/admin/assets/, which the login page was the last to use; it now compares the built bundles instead. The baseline loses the entry for the ?? that went away with $_POST.
simba77 7 აგვ 2026 21:33 Branch: 10.x 5ef8d6b

refactor(admin): move the smilies page to Twig

/admin/emoticons becomes @admin/smilies.twig and the controller returns ViewResponse. The old smilies.phtml is deleted rather than migrated: no code renders admin::smilies, and the file holds a layout call and nothing else.
simba77 7 აგვ 2026 21:11 Branch: 10.x 4f727f2

refactor(admin): move the settings pages to Twig

The system settings, the module permissions and the antiflood settings become @admin/settings.twig, @admin/modules-access.twig and @admin/antiflood.twig; the three controllers return ViewResponse and drop the Render dependency. - none of the three receives the whole johncms config any more: each gets the values its form actually edits - the current time of the site was computed in the template with date() and now arrives as a fact - the six permission blocks of the modules page were copies of one another and became a loop over the modules the controller describes
simba77 7 აგვ 2026 21:07 Branch: 10.x bee1d75

refactor(admin): move the user moderation pages to Twig

Deleting a user, cleaning up the inactive profiles, the amnesty and the karma settings become @admin templates; the four controllers return ViewResponse and drop the Render dependency. - the karma page no longer receives the whole johncms config, only its karma settings - the two hints carrying markup inside their msgid are printed with |raw
simba77 7 აგვ 2026 21:01 Branch: 10.x 2b32dd5

refactor(admin): move the user lists to Twig

The list of users, the staff, the ban panel, the pending registrations and the IP search become @admin templates, and the shared row of a visitor becomes @admin/components/user-row.twig; the five controllers return ViewResponse. - the name of a visitor and the labels of their action buttons were printed unescaped, so a name carrying markup reached the page as markup - whether the address and the user agent may be shown is decided by AdminUserRowMapper, and the row it builds always carries every key the template reads - the PHP closure building the moderation forms is now a macro
simba77 7 აგვ 2026 20:58 Branch: 10.x c06d067