Skip to content

History of commits

4473 commits

fix(admin): leave the transfer from 9.9 to the console

auth:migrate-legacy-access and auth:drop-legacy-columns are no longer tasks of the maintenance screen: before the transfer no member of staff has a role to open the panel with, so the buttons could not be reached when they were needed. The commands stay in the console, and the group of one-time tasks goes with them.
simba77 30 oct. 2026 21:28 Branch: 10.x 1f2eec2

feat(admin): group the maintenance tasks by when they are wanted

The one-time steps of a site coming from 9.9 stood among the everyday tasks in alphabetical order. #[AsAdminTask] takes a group (AdminTaskGroup: routine, update, migration) and an order within it, and the maintenance screen shows a card per group with a line on when to run its tasks: the routine ones at any time, the ones after an update in turn from the database on, and the migration from 9.9 in its order, framed apart.
simba77 30 oct. 2026 21:13 Branch: 10.x b228400

feat(i18n): translate the titles of the maintenance tasks

A task is titled and described in English in its #[AsAdminTask] attribute, which the gettext scanner never sees, so the maintenance screen showed them untranslated. i18n:scan now collects them too (AdminTaskScanner) into the domain the attribute names, system unless it says otherwise, and the screen looks them up in that domain. The Russian translations of the tasks of the system are added.
simba77 30 oct. 2026 21:10 Branch: 10.x c6bf907

feat(admin): list the maintenance tasks in one card

Each task was a card of its own with a solid button. They are rows of one list now: the title, the description, the command, the status and the time of the last run, an outlined button on the right, and the output of the last run folded under the row in the colours of the theme. The note about the scheduler is a line under the list, shown when there are background tasks.
simba77 30 oct. 2026 21:07 Branch: 10.x d41a89e

feat(admin): lay out the system check in cards with a summary

The checks were four bordered tables. A line on top now sums them up, and each group is a card of rows with a mark, the name, the value and the description under it. A failed check is marked by how much it matters, which the checker already told: a required one in red, a recommendation in amber, a note such as the accounts on the old password hash in blue rather than as an error.
simba77 30 oct. 2026 20:29 Branch: 10.x 47a2c81

feat(admin): turn the languages of the site on and off

/admin/languages lists every language whose files are on the disk, read afresh on each opening, with the default chosen in one column and a switch for being on the site in the other; the default is always on. The configured list (lng_list) holds the languages turned on, so the switch, the profile and the detection of the language offer only them, and a member who chose one turned off sees the default. The files of a language turned off stay in place. The management of language packs is removed with its routes (/admin/languages/manage, install, update, delete): its catalogue on johncms.com answers with a page instead of a list, its buttons posted to addresses that did not exist, and deleting removed files of the release. The button to read the list again is gone as well.
simba77 30 oct. 2026 17:01 Branch: 10.x 6de2466

fix(admin): name the smilies section like the rest of the site

The item of the menu said Update Smilies, which the page no longer is about; it is Smilies now, as the heading. The Russian translations of the section call them смайлы, as the catalogue and the other modules do, instead of смайлики.
simba77 30 oct. 2026 16:43 Branch: 10.x 1af8901

perf(smilies): look at the folders only from the admin panel

Drawing the smilies checked the time of every folder of public/assets/emoticons against the cache on each request. The site now reads the cache file only and builds it when it is missing or of an older format. SmiliesMap::isStale() compares the folders with it, and /admin/emoticons asks it on opening and builds the list again when a picture was put in, taken out or renamed. cache:clear no longer keeps the file of the smilies: it is built again on the next request.
simba77 30 oct. 2026 16:37 Branch: 10.x d57f4cb

feat(admin): show the folders of the smilies on /admin/emoticons

The page was a single button to build the cache, which builds itself now. It explains how to add a smiley, which folder gives which codes, and shows each folder of public/assets/emoticons with the number of its pictures, a few of them and the code one is written with. The public catalogue and the rebuild, kept for an emergency, move to the head of the page; the message of the rebuild counts pictures.
simba77 30 oct. 2026 16:29 Branch: 10.x 92db8e6

fix(smilies): build the map of the smilies by itself

The map of the codes was built only by the button on /admin/emoticons and by the installer: a picture put in a folder was no smiley until someone pressed it, and without the cache file the site drew no smilies at all. SmiliesMap (system/src/Smilies) now builds the file whenever it is missing, of an older format or older than the folders of public/assets/emoticons, which SmileyFolders lists. The cache keeps the paths of the pictures from the root of the site; the renderer adds the address of the site, so changing it no longer leaves the smilies on the old one. The scanner, the cache repository and their interfaces leave the admin module, the installer no longer builds the cache, and the rebuild counts pictures rather than their Latin and Cyrillic codes.
simba77 30 oct. 2026 16:26 Branch: 10.x e95ac2e