Skip to content

History of commits

4473 commits

refactor(notifications): let every module report what waits for a visitor

The lines of the notifications page and the badge of the header came from Counters, a class of the core that knew the tables and the permissions of the mail, the forum, the library, the downloads and the album, and the page itself checked the permissions of the library and the downloads. The core depended on those modules, and so did notifications, without declaring it. A module now reports what of it waits for the signed-in visitor through SystemNotificationProviderInterface, an extension point of the core, and SystemNotifications gathers what the switched-on modules report: the notifications page lists it, the badge of the header adds it up with the unread personal notifications. Seven providers take over: the registrations waiting in the panel, the queues of moderation of the library and the downloads, unread topics of the forum, letters not read, unread comments on photos, a ban and new entries of the personal guestbook. The library, the downloads and the album get the counts their providers need in their repositories. Two things change on the page: the queue of the downloads shows how many files wait rather than a bare 1, and the badge of the mail leaves out spam, counting what the inbox calls new. The four strings without a home in their new domain move there with their translations in every language, and the eight that no longer belong to notifications and system leave them. Counters::notifications() is gone; what remains of Counters in the baseline is smaller by two references.
simba77 23 oct. 2026 22:34 Branch: 10.x d96c59b

test(notifications): record what waits for a signed-in visitor

The letters not read, the queues of moderation the staff look after, a ban, new entries of a personal guestbook, unread comments on photos and unread topics of the forum for whoever asked for them: each a line of the notifications page leading to its place, all of them added up in the badge of the header. Pinned before the modules start reporting their own.
simba77 23 oct. 2026 22:27 Branch: 10.x e1689b1

refactor(online): let the module of a page name it in who-is-online

Online parsed the addresses of the forum through a formatter of the forum, which it fetched from the container and did without when the lookup failed, and it registered the translations of the forum by hand. It depended on the forum without declaring it. Where a visitor is now comes from the module the page belongs to. A module implements VisitorPlaceProviderInterface, an extension point of the core, and UserPlaceFormatter asks the providers before the dictionary of places. The forum names its own addresses; online, the history and the profile print whatever the formatter says, so the profile names the topic a member is in too, where it used to say "somewhere on the site". The six entries of the baseline that held online to the forum are gone. The documentation describes the extension point.
simba77 23 oct. 2026 22:25 Branch: 10.x 5f92fb1

test(online): record where who-is-online says a visitor is

A place inside the forum is named by its topic, on the list of members, in the history and on the list of guests the staff see; any other place comes from the dictionary of places. Pinned before the forum stops being a dependency of the module.
simba77 23 oct. 2026 22:21 Branch: 10.x 2a2db0c

feat(i18n): load the dictionary of a module wherever its messages are asked for

The domain of a module was registered only on its own routes. A module that showed something of another — online naming a topic of the forum — registered that domain by hand, and anything that forgot showed the untranslated message. The translator now takes a locator, and the one of the site answers with the locale directory of the switched-on module holding that alias. A domain nobody registered is loaded the first time a message of it is asked for, kept for the change of locale like any other, and a domain the locator does not know is not asked about again. This is what lets a module show its messages through an extension point on pages of another.
simba77 23 oct. 2026 22:19 Branch: 10.x 57eb7b0

chore(deps): update the JS dependencies within their constraints

Vite 8.3, Vue 3.5.44, axios 1.20, sass 1.106, swiper 14.3 and the rest of the tree move to the newest release their ranges allow. npm audit is clean, the assets build, and the functional suite renders every page with them. jQuery 4 is a major release and stays out.
simba77 23 oct. 2026 22:08 Branch: 10.x 22dd590

chore(deps): update the PHP dependencies within their constraints

Every package moves to the newest release its constraint allows. Two of them carried advisories composer audit reported: symfony/http-foundation, a ReDoS in the parsing of Cache-Control (7.4.16 -> 7.4.21), and league/flysystem, a bypass of the check for control characters in a path (3.35.2 -> 3.36.0). The audit is clean now. roave/security-advisories now refuses PHP below 8.4.27, which carries advisories of its own; the php-fpm image of the stack has to be rebuilt to get it (docker compose build php-fpm). PHPStan 2.3 remembers what a method returned unless it is told the method is impure, and read two tests asserting a value twice as asserting it against itself. remember() and rememberForever() of the cache, and the helper of the mail queue test that reads a row anew, say so now. The baseline follows the new wording of three findings it already held.
simba77 23 oct. 2026 22:08 Branch: 10.x e418faf

test: check the dependency rules of the architecture with phpat

The rules of .agents/architecture.md about which class may depend on which were checked by a reviewer, and only when somebody asked for a review. phpat turns them into PHPStan rules, so composer phpstan — and with it the gate and CI — fails on a new breach: - the core depends on no module; - a module depends only on the core, on system modules and on the modules its manifest requires; - the Domain and the Application stay out of HTTP, controllers and middleware aside; - the Domain and the Application depend on no Infrastructure; - a module reads no request off the RequestStack; - a repository contract is declared in the Domain and implemented in the Infrastructure. The modules, the system ones and what each requires are read from composer.json and the manifests, so a module added later is held to the same rules. What the code already broke is in the baseline: Counters in the core, 33 dependencies on Infrastructure, 9 on HTTP types, and four modules depending on others they do not require — online on forum, notifications on downloads and library, homepage on news.
simba77 23 oct. 2026 21:50 Branch: 10.x aeee4e4

test(install): install a site from scratch and open it as its administrator

Nothing tested the installer, and three fixes of it landed this summer. It writes the configuration of the site into config/autoload and ends its steps with exit, so InstallerTest drives it from outside: the built-in server of PHP serves public/ through a router that does what nginx of the stack does, and the test goes through the steps as a browser would. A wrong password and a missing database are refused, an empty form is refused, a filled one installs the site with its demo data, and the installer closes behind itself. Then the home page and the panel have to open for the administrator it signed in — the first run found the panel refusing that account. It needs a fresh checkout and MySQL, and skips itself elsewhere, the checkout of the stack included. composer test:install runs it; the default run of PHPUnit leaves the suite out. CI runs it after the functional suite on every server of the matrix.
simba77 23 oct. 2026 21:37 Branch: 10.x e9f5d45

fix(install): make the administrator of a new site a supervisor

The installer created the administrator with rights = 9, the access level of 9.x. Neither the column nor the attribute exists in 10.x: the model dropped the value without a word, no role was granted, and the account that installed the site was refused its own panel with a 403. The administrator is now granted the supervisor role, right after the seeder has created it, through the repository the move from 9.9 grants roles with. The access levels written for the administrator and the demo accounts are gone, since nothing ever read them.
simba77 23 oct. 2026 21:36 Branch: 10.x 95ee347