Skip to content

History of commits

4477 commits

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 avq 2026 20:58 Branch: 10.x c06d067

refactor(admin): move the forum settings and hidden content pages to Twig

The settings page and the lists of hidden posts and topics become @admin/forum-settings.twig and @admin/forum-hidden-*.twig; the three controllers return ViewResponse and drop the Render dependency. - the whole forum config no longer reaches the template, only its settings - whether the address and the user agent of an author may be shown is decided by the row mappers, so the templates no longer compare rights themselves, and the block itself became @admin/components/hidden-item-origin.twig - the text of a hidden post is Twig\Markup, since the formatter escapes it
simba77 7 avq 2026 20:51 Branch: 10.x 29fe128

refactor(admin): move the forum dashboard and structure pages to Twig

Seven pages of /admin/forum become @admin/forum.twig and @admin/forum-section-*.twig; both controllers return ViewResponse and drop the Render dependency. - validation messages of the add form travel as a list instead of a string glued with <br> - the access modes and the section types moved to the controller and are shared by the add and the edit form - the sections offered to move topics into arrive as rows, not as models - five translations carried a <br> their msgid does not have, so autoescape would print the tag as text: the tag is dropped from kk, ky, pl, ru and vi
simba77 7 avq 2026 20:46 Branch: 10.x d7a7410

refactor(admin): move the IP ban and whois pages to Twig

The six pages of /admin/ip-bans become @admin/ip-ban*.twig and the whois page becomes @admin/ip-whois.twig; both controllers return ViewResponse and drop the Render dependency. - validation messages travel as a list instead of a string glued with <br>, and the alert component prints them one per line - the highlighting of a whois answer moves out of the template into IpWhoisHighlighter, which escapes the answer and returns Twig\Markup - the list of bans takes show_actions instead of no_buttons
simba77 7 avq 2026 20:33 Branch: 10.x 9dc67bb

refactor(admin): move the language pages to Twig

/admin/languages and its management page become @admin/languages.twig and @admin/languages-manage.twig; the controller returns ViewResponse and drops the Render dependency. - the whole johncms config no longer reaches the template: the language list arrives as rows of code, name and active - entries of the remote language catalog are normalised in the controller, so the template reads the same keys whatever the source - the PHP closure building the install/update/delete forms is now a macro
simba77 7 avq 2026 09:33 Branch: 10.x 3e2d02b

refactor(admin): move the advertising pages to Twig

The list, the form and the confirmation of /admin/ads become @admin/ads.twig, @admin/ad-form.twig and @admin/ad-confirm.twig; the controller returns ViewResponse and no longer depends on Render. - the PHP closure that glued the reorder forms together is now a Twig macro - the option lists of the radio groups moved to the controller, and the place filters of the list are built from the same source - the two hints carrying a <br> inside their msgid are printed with |raw
simba77 7 avq 2026 09:27 Branch: 10.x 644adf1

feat(console): generate ide-twig.json for IDE template navigation

The Twig namespaces are a convention of the application, so an IDE cannot resolve @namespace template names on its own. The new twig:ide-config command writes ide-twig.json from TemplatePathRegistry, the same source the runtime loader uses. - twig:ide-config [--theme=default] [--check] - ide-twig.json is committed; the verification gate runs --check so a module added to the configuration cannot leave it stale
simba77 7 avq 2026 09:14 Branch: 10.x bf8dff7

refactor(admin): move the counters pages to Twig

Five .phtml become @admin/counters.twig, counter-{view,form,preview,delete-confirm}.twig, and the error branch moves to @admin/pages/result.twig. The list builds its up and down forms with a macro instead of a closure that wrote HTML by hand. The snippets keep being printed as they are on the view and the preview pages: that is what the pages are for — an administrator checks there that the counter really runs before saving it.
simba77 6 avq 2026 23:00 Branch: 10.x eac08dc

refactor(admin): move the file integrity pages to Twig

Three .phtml become @admin/file-integrity{,-snapshot-confirm,-scan-result}.twig, and the two outcomes of a scan move to @admin/pages/result.twig. The message about a consistent snapshot carries a <br>, so it is handed over as Markup. The active item of the sidebar keeps travelling as sec_menu, the same key the Plates pages used: the panel is migrated page by page, and the menu contract stays put.
simba77 6 avq 2026 22:55 Branch: 10.x 9b4cf25

refactor(admin): give the panel a base layout of its own

The layouts of the panel extended the base of the public site, which would have to be parametrised along three axes at once — the set of icons, the build entry point and the shape of the title. @admin/layouts/base.twig carries its own head instead: the admin bundle, the single favicon the panel needs, and a title without the site name appended, the way the Plates panel always titled its pages. body_class becomes a block, so the guest layout keeps the plain body it had. The base of the theme no longer claims the admin layouts extend it.
simba77 6 avq 2026 22:52 Branch: 10.x 1d3f4c5